Update of /cvsroot/phpslash/phpslash-ft/public_html
In directory usw-pr-cvs1:/tmp/cvs-serv16629/phpslash-ft/public_html
Modified Files:
backend.php3
Log Message:
fixed missing sitename in backend
Index: backend.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** backend.php3 6 Feb 2002 20:46:52 -0000 1.20
--- backend.php3 11 Feb 2002 20:20:18 -0000 1.21
***************
*** 65,88 ****
}
! if(!$max) {
! $max= 15;
! $ary['max'] = 15;
! }
!
! $site_homesection = $_PSL['site_homesection'];
! if ($section == "") {
! $section = $site_homesection;
! if(!$section) {
! $section = "Home";
! }
}
$stories = $story->extractStories($ary);
! $site_name = $_PSL['site_name'];
! $site_title = $_PSL['site_title'];
!
!
! switch( $view) {
case "js":
$viewtpl = "backendJS.tpl";
--- 65,75 ----
}
! if(empty($ary['max'])) {
! $ary['max']= 15;
}
$stories = $story->extractStories($ary);
! switch( $ary['view']) {
case "js":
$viewtpl = "backendJS.tpl";
***************
*** 124,129 ****
}
! if( !$target) {
! $target = "_self";
}
$date = date("H:i m:d:y T");
--- 111,116 ----
}
! if( empty($ary['target'])) {
! $ary['target'] = "_self";
}
$date = date("H:i m:d:y T");
***************
*** 141,149 ****
$template->set_var(array(
! 'SITE_NAME' => $site_name,
! 'SITE_TITLE' => $site_title,
! 'SITE_SLOGAN' => $site_slogan,
'SITE_HOST' => $HTTP_HOST, // TODO: nh asks: Will this be around with register_globals=Off?
! 'PHP_SELF' => $PHP_SELF, // TODO: Make this use $_PSL['phpself']
'ROOTDIR' => $_PSL['rooturl'],
'DATE' => $date,
--- 128,136 ----
$template->set_var(array(
! 'SITE_NAME' => $_PSL['site_name'],
! 'SITE_TITLE' => $_PSL['site_title'],
! 'SITE_SLOGAN' => $_PSL['site_slogan'],
'SITE_HOST' => $HTTP_HOST, // TODO: nh asks: Will this be around with register_globals=Off?
! 'PHP_SELF' => $_PSL['phpself'],
'ROOTDIR' => $_PSL['rooturl'],
'DATE' => $date,
***************
*** 151,160 ****
));
! if( count($stories) < $max) {
! $max = count($stories);
}
$template->set_block("storiesbackend", "each_story", "stories");
! for ($i = 0 ; $i < $max ; $i++) {
! switch( $d) {
case "0":
--- 138,147 ----
));
! if( count($stories) < $ary['max']) {
! $ary['max'] = count($stories);
}
$template->set_block("storiesbackend", "each_story", "stories");
! for ($i = 0 ; $i < $ary['max']; $i++) {
! switch( $ary['d']) {
case "0":
***************
*** 162,169 ****
break;
case "s":
! $description = $site_name;
break;
case "l":
! $description = $site_name . " - ";
$description .= htmlspecialchars(strip_tags($stories[$i]["intro_text"]));
// $description .= format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub");
--- 149,156 ----
break;
case "s":
! $description = $_PSL['site_name'] ;
break;
case "l":
! $description = $_PSL['site_name'] . " - ";
$description .= htmlspecialchars(strip_tags($stories[$i]["intro_text"]));
// $description .= format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub");
***************
*** 181,186 ****
'TITLE' => htmlspecialchars($stories[$i]["title"]),
'INTRO_TEXT' => $description,
! 'TARGET' => $target,
! 'COUNT' => $max,
'IDX' => $i,
'DATEF' => $stories[$i]["datef"]
--- 168,173 ----
'TITLE' => htmlspecialchars($stories[$i]["title"]),
'INTRO_TEXT' => $description,
! 'TARGET' => $ary['target'],
! 'COUNT' => $ary['max'],
'IDX' => $i,
'DATEF' => $stories[$i]["datef"]
|