Update of /cvsroot/phpslash/phpslash-ft/public_html
In directory usw-pr-cvs1:/tmp/cvs-serv22147/phpslash-ft/public_html
Modified Files:
search.php3
Log Message:
removed unuses search templates
Index: search.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/search.php3,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** search.php3 17 Mar 2002 01:00:08 -0000 1.45
--- search.php3 18 Mar 2002 16:11:22 -0000 1.46
***************
*** 139,144 ****
--- 139,162 ----
$db->debug = false;
+ $block = new Block_i;
+
/*************PAGE START*******************/
+ /* parse cmd line variables into array */
+ while ( list($key, $val) = each($HTTP_GET_VARS )) {
+ $ary[$key] = $val;
+ }
+
+ /* defaults for main "index" page */
+ if ((!$section) AND (!$section_id)){
+ $section = $_PSL['site_homesection'];
+ if(!$section) {
+ $section = "Home";
+ }
+ $ary['section'] = $section;
+ }
+
+ $breadcrumb = breadcrumb( $ary);
+
$_PSL['metatags']['object'] = $xsiteobject;
***************
*** 426,432 ****
$templ->set_var('match_block','');
}
! $templ->pparse ("OUT", "searchpage");
slashfoot();
page_close();
?>
--- 444,490 ----
$templ->set_var('match_block','');
}
!
! $allstories = $templ->parse ("OUT", "searchpage");
! $leftblocks = $block->getBlocks($ary, "left");
! $centerblocks = $block->getBlocks($ary, "center");
! $rightblocks = $block->getBlocks($ary, "right");
!
! if (empty($leftblocks)) {
! if (empty($rightblocks)) {
! // $centerblocks = $block->getBlocks($ary);
! // $tplfile = "index1col.tpl";
! // default to 2 column for transparent upgrade
! $rightblocks = $block->getBlocks($ary);
! $tplfile = "index2colright.tpl";
! } else {
! $tplfile = "index2colright.tpl";
! }
! } elseif (empty($rightblocks)) {
! $tplfile = "index2colleft.tpl";
! } else {
! $tplfile = "index3col.tpl";
! }
!
! $template = new Template($_PSL['templatedir']);
! $template->debug = 0;
! $template->set_file(array(
! 'index' => $tplfile //"index3col.tpl"
! ));
!
! $template->set_var(array(
! 'ROOTDIR' => $_PSL['rooturl'],
! 'IMAGEDIR' => $_PSL['imageurl'],
! 'BREADCRUMB' => $breadcrumb,
! 'STORY_COLUMN' => $allstories,
! 'LEFT_BLOCK_COLUMN' => $leftblocks,
! 'CENTER_BLOCK_COLUMN' => $centerblocks,
! 'RIGHT_BLOCK_COLUMN' => $rightblocks
! ));
!
! $template->parse('OUT',"index");
! $template->p('OUT');
slashfoot();
page_close();
+
?>
|