Update of /cvsroot/phpslash/phpslash-ft/public_html
In directory usw-pr-cvs1:/tmp/cvs-serv13222/public_html
Modified Files:
config.php3 index.php3
Log Message:
made class files and such use quoted strings in arrays
Index: config.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v
retrieving revision 1.121
retrieving revision 1.122
diff -C2 -d -r1.121 -r1.122
*** config.php3 2002/01/05 20:45:45 1.121
--- config.php3 2002/02/03 02:49:40 1.122
***************
*** 31,115 ****
***************************************************/
! $_PSL[phpself] = $PHP_SELF;
// $basedir -> Complete filesystem path to the pages
! $_PSL[basedir] = '/home/nathan/webDevel/phpslash-ft/public_html';
// $templatedir -> Path to the templates directory
! $_PSL[templatedir] = $_PSL[basedir] . '/templates';
// $classdir -> Path to the class directory
! $_PSL[classdir] = '/home/nathan/webDevel/phpslash-ft/class';
// $rooturl -> The base URL for the phpslash site
! $_PSL[rooturl] = 'http://fatboy.mystic/ft';
// $adminurl -> The base URL for the admin pages
! $_PSL[adminurl] = $_PSL[rooturl] . '/admin';
// $imageurl -> The base URL for images that pertain to phpslash
! $_PSL[imageurl] = $_PSL[rooturl] . '/images';
// topicimageurl -> the url for all the topic images.
! $_PSL[topicimageurl] = $_PSL[imageurl] . "/topics";
// topicimagedir -> the full directory path to the topic images.
! $_PSL[topicimagedir] = $_PSL[basedir] . "/images" . "/topics";
// 1.11.2) Debug options
! $_PSL[debug] = false; // true for on, false for off
! $_PSL[debug_type] = 'now'; // 'now' for output to browser
// 'log' for output to the admin log
// 1.11.3) Informational Logging -> true for on, false for off
! $_PSL[use_infolog] = true; // Use to turn on / off logging
// 1.11.4) Other Variables...
! $_PSL[DB_Host] = "localhost";
! $_PSL[DB_Database] = "phpslash";
! $_PSL[DB_User] = "phpslash";
! $_PSL[DB_Password] = "bar";
! $_PSL[module][Glossary] = true;
! $_PSL[module][MailingList] = true;
! $_PSL[module][Block] = true;
! $_PSL[module][Comment] = true;
! $_PSL[module][TopicBar] = true;
! $_PSL[module][NavBar] = true;
! $_PSL[module][Poll] = true;
! $_PSL[module][Section] = true;
! $_PSL[module][Story] = true;
! $_PSL[module][Submission] = true;
! $_PSL[module][Infolog] = true;
! $_PSL[module][Author] = true;
! $_PSL[module][Variable] = false;
! $_PSL[show_admin_on_navbar] = true; // turns the Admin link on in the navbar
! $_PSL[default_pending] = false; // decides if new comments are marked pending
// basically allows you to moderate the posts.
! $_PSL[poll_max_answers] = 8; // When creating a poll, you have a question
// and up to $max_poll_answers answers.
! $_PSL[home_section_id] = 3; // There is a "main" section. When people
// load up your site for the first time this
// section is displayed. Put the section_id
// of that field here.
! $_PSL[censorfile] = $_PSL[basedir] . "/censor.php3"; //comment to disable comment censor
! // $_PSL[censorfile] = "/var/www/phorum-3.2.1/include/censor.php"; //use phorum's censor file
! $_PSL[localedir] = $_PSL[classdir] . "/locale"; // directory holding language files
! $_PSL[language] = "en"; // default language ( ISO format)
! $_PSL[article_updatehits] = true; // Keeps track of hits on a story,
// the drawback is an extra DB query.
! $_PSL[site_name] = "PHPSlash";
! $_PSL[site_owner] = "in...@ph...";
! $_PSL[site_slogan] = "Slash for you, Slash for me";
! $_PSL[site_title] = "PHPSlash: The Web Stops Here";
! $_PSL[mailinglist_subject] = "PHPSlash Times";
// metatags that may need to be overwritten later ( article description).
--- 31,117 ----
***************************************************/
! // $PHP_SELF doesn't pop up in $GLOBALS with register_globals turned off
! //$_PSL['phpself'] = $PHP_SELF;
! $_PSL['phpself'] = $HTTP_SERVER_VARS['PHP_SELF'];
// $basedir -> Complete filesystem path to the pages
! $_PSL['basedir'] = '/home/nathan/webDevel/phpslash-ft/public_html';
// $templatedir -> Path to the templates directory
! $_PSL['templatedir'] = $_PSL['basedir'] . '/templates';
// $classdir -> Path to the class directory
! $_PSL['classdir'] = '/home/nathan/webDevel/phpslash-ft/class';
// $rooturl -> The base URL for the phpslash site
! $_PSL['rooturl'] = 'http://fatboy.mystic/ft';
// $adminurl -> The base URL for the admin pages
! $_PSL['adminurl'] = $_PSL['rooturl'] . '/admin';
// $imageurl -> The base URL for images that pertain to phpslash
! $_PSL['imageurl'] = $_PSL['rooturl'] . '/images';
// topicimageurl -> the url for all the topic images.
! $_PSL['topicimageurl'] = $_PSL['imageurl'] . "/topics";
// topicimagedir -> the full directory path to the topic images.
! $_PSL['topicimagedir'] = $_PSL['basedir'] . "/images" . "/topics";
// 1.11.2) Debug options
! $_PSL['debug'] = false; // true for on, false for off
! $_PSL['debug_type'] = 'now'; // 'now' for output to browser
// 'log' for output to the admin log
// 1.11.3) Informational Logging -> true for on, false for off
! $_PSL['use_infolog'] = true; // Use to turn on / off logging
// 1.11.4) Other Variables...
! $_PSL['DB_Host'] = "localhost";
! $_PSL['DB_Database'] = "pslft";
! $_PSL['DB_User'] = "pslft";
! $_PSL['DB_Password'] = "bar";
! $_PSL['module']['Glossary'] = true;
! $_PSL['module']['MailingList'] = true;
! $_PSL['module']['Block'] = true;
! $_PSL['module']['Comment'] = true;
! $_PSL['module']['TopicBar'] = true;
! $_PSL['module']['NavBar'] = true;
! $_PSL['module']['Poll'] = true;
! $_PSL['module']['Section'] = true;
! $_PSL['module']['Story'] = true;
! $_PSL['module']['Submission'] = true;
! $_PSL['module']['Infolog'] = true;
! $_PSL['module']['Author'] = true;
! $_PSL['module']['Variable'] = false;
! $_PSL['show_admin_on_navbar'] = true; // turns the Admin link on in the navbar
! $_PSL['default_pending'] = false; // decides if new comments are marked pending
// basically allows you to moderate the posts.
! $_PSL['poll_max_answers'] = 8; // When creating a poll, you have a question
// and up to $max_poll_answers answers.
! $_PSL['home_section_id'] = 3; // There is a "main" section. When people
// load up your site for the first time this
// section is displayed. Put the section_id
// of that field here.
! $_PSL['censorfile'] = $_PSL['basedir'] . "/censor.php3"; //comment to disable comment censor
! // $_PSL['censorfile'] = "/var/www/phorum-3.2.1/include/censor.php"; //use phorum's censor file
! $_PSL['localedir'] = $_PSL['classdir'] . "/locale"; // directory holding language files
! $_PSL['language'] = "en"; // default language ( ISO format)
! $_PSL['article_updatehits'] = true; // Keeps track of hits on a story,
// the drawback is an extra DB query.
! $_PSL['site_name'] = "PHPSlash";
! $_PSL['site_owner'] = "in...@ph...";
! $_PSL['site_slogan'] = "Slash for you, Slash for me";
! $_PSL['site_title'] = "PHPSlash: The Web Stops Here";
! $_PSL['mailinglist_subject'] = "PHPSlash Times";
// metatags that may need to be overwritten later ( article description).
***************
*** 118,122 ****
$metatags['description'] = "phpSlash is a port of the slash-0.2 code from Perl to PHP. Since it was first started, phpslash has become a different beast of its own. It currently boasts full HTML templates, an OO design, the ability to operate in a hosted environment, and a bunch of other goodies.";
! $_PSL[metatags] = $metatags;
/*
--- 120,124 ----
$metatags['description'] = "phpSlash is a port of the slash-0.2 code from Perl to PHP. Since it was first started, phpslash has become a different beast of its own. It currently boasts full HTML templates, an OO design, the ability to operate in a hosted environment, and a bunch of other goodies.";
! $_PSL['metatags'] = $metatags;
/*
***************
*** 135,157 ****
*/
! $_PSL[comment_defaultmode] = "nested";
! $_PSL[search_maxresults] = 20; /* the number of results to return when searching */
! $_PSL[allow_comment_search] = TRUE; /* Do we allow search od the comments as well? */
/* if set to true then when you click "edit as story", the submission
will automatically be deleted wheather or not you finished saving
the story */
! $_PSL[submission_autodelete] = false;
/* the name of the default section when you pull up the site */
! $_PSL[site_homesection] = "Home";
/* when you turn these on you'll probably get a full table scan! */
! $_PSL[article_nextprevlinks] = true;
/* the minimum number of options available for a block. */
! $_PSL[block_optioncount] = 4;
// 1.2) Other PHPLIB things not already included. Comment out if this
--- 137,159 ----
*/
! $_PSL['comment_defaultmode'] = "nested";
! $_PSL['search_maxresults'] = 20; /* the number of results to return when searching */
! $_PSL['allow_comment_search'] = TRUE; /* Do we allow search od the comments as well? */
/* if set to true then when you click "edit as story", the submission
will automatically be deleted wheather or not you finished saving
the story */
! $_PSL['submission_autodelete'] = false;
/* the name of the default section when you pull up the site */
! $_PSL['site_homesection'] = "Home";
/* when you turn these on you'll probably get a full table scan! */
! $_PSL['article_nextprevlinks'] = true;
/* the minimum number of options available for a block. */
! $_PSL['block_optioncount'] = 4;
// 1.2) Other PHPLIB things not already included. Comment out if this
***************
*** 162,170 ****
// 1.3) PHPSlash functions library
! require($_PSL[classdir] . '/functions.inc');
/* now that the functions are in, we can define the arg_separator */
! $_PSL[amp] = arg_separator("1");
// 1.99) Add any other require()'s or include()'s you need here and they
--- 164,172 ----
// 1.3) PHPSlash functions library
! require($_PSL['classdir'] . '/functions.inc');
/* now that the functions are in, we can define the arg_separator */
! $_PSL['amp'] = arg_separator("1");
// 1.99) Add any other require()'s or include()'s you need here and they
***************
*** 172,180 ****
$lang = false; // comment to enable setting lang in url
! $_PSL[languagefile] = $_PSL[localedir] . "/" . $_PSL[language] . ".php3";
! $_PSL[languagefile] = setLang($lang); // comment to disable auto lang detection
! $_PSL[templatedir] = setLangTpl($lang); // comment to disable auto tpl lang detection
! $_PSL[defaultskin] = "default";
! $_PSL[templatedir] = setSkinTpl($HTTP_GET_VARS[skin], "cookie"); // comment to disable setting theme in url
// NavBar Menu Definitions
--- 174,182 ----
$lang = false; // comment to enable setting lang in url
! $_PSL['languagefile'] = $_PSL['localedir'] . "/" . $_PSL['language'] . ".php3";
! $_PSL['languagefile'] = setLang($lang); // comment to disable auto lang detection
! $_PSL['templatedir'] = setLangTpl($lang); // comment to disable auto tpl lang detection
! $_PSL['defaultskin'] = "default";
! $_PSL['templatedir'] = setSkinTpl($HTTP_GET_VARS['skin'], "cookie"); // comment to disable setting theme in url
// NavBar Menu Definitions
***************
*** 195,312 ****
$menuitem[] = array(
! name => "Home",
! link => $_PSL['rooturl'] . "/",
! perm => "nobody",
! module => ""
);
$menuitem[] = array(
! name => "Add Story",
! link => $_PSL['rooturl'] . "/submission.php3",
! perm => "nobody",
! module => "Submission"
);
$menuitem[] = array(
! name => "Glossary",
! link => $_PSL['rooturl'] . "/glossary.php3",
! perm => "nobody",
! module => "Glossary"
);
$menuitem[] = array(
! name => "Archives",
! link => $_PSL['rooturl'] . "/search.php3",
! perm => "nobody",
! module => ""
);
$menuitem[] = array(
! name => "Polls",
! link => $_PSL['rooturl'] . "/poll.php3",
! perm => "nobody",
! module => "Poll"
);
$menuitem[] = array(
! name => "Mailing List",
! link => $_PSL['rooturl'] . "/mailinglist.php3",
! perm => "nobody",
! module => "MailingList"
);
$menuitem[] = array(
! name => "About",
! link => $_PSL['rooturl'] . "/about.php3",
! perm => "nobody",
! module => ""
);
$menuitem[] = array(
! name => "User",
! link => $_PSL['rooturl'] . "/login.php3",
! perm => "user",
! module => ""
);
$menuitem[] = array(
! name => "Topic",
! link => $_PSL['adminurl'] . "/topicAdmin.php3",
! perm => "topic",
! module => ""
);
$menuitem[] = array(
! name => "Story",
! link => $_PSL['adminurl'] . "/storyAdmin.php3",
! perm => "story",
! module => "Story"
);
$menuitem[] = array(
! name => "Submission",
! link => $_PSL['adminurl'] . "/submissionAdmin.php3",
! perm => "submission",
! module => "Submission"
);
$menuitem[] = array(
! name => "Section",
! link => $_PSL['adminurl'] . "/sectionAdmin.php3",
! perm => "section",
! module => "Section"
);
$menuitem[] = array(
! name => "Block",
! link => $_PSL['adminurl'] . "/blockAdmin.php3",
! perm => "block",
! module => "Block"
);
$menuitem[] = array(
! name => "Poll",
! link => $_PSL['adminurl'] . "/pollAdmin.php3",
! perm => "poll",
! module => "Poll"
);
$menuitem[] = array(
! name => "Mailing List",
! link => $_PSL['adminurl'] . "/mailinglistAdmin.php3",
! perm => "mailinglist",
! module => "MailingList"
);
$menuitem[] = array(
! name => "Author",
! link => $_PSL['adminurl'] . "/authorAdmin.php3",
! perm => "author",
! module => "Author"
);
$menuitem[] = array(
! name => "Glossary",
! link => $_PSL['adminurl'] . "/glossaryAdmin.php3",
! perm => "glossary",
! module => "Glossary"
);
$menuitem[] = array(
! name => "Variable",
! link => $_PSL['adminurl'] . "/variableAdmin.php3",
! perm => "variable",
! module => "Variable"
);
$menuitem[] = array(
! name => "Logging",
! link => $_PSL['adminurl'] . "/infologAdmin.php3",
! perm => "logging",
! module => "Infolog"
);
--- 197,314 ----
$menuitem[] = array(
! 'name' => "Home",
! 'link' => $_PSL['rooturl'] . "/",
! 'perm' => "nobody",
! 'module' => ""
);
$menuitem[] = array(
! 'name' => "Add Story",
! 'link' => $_PSL['rooturl'] . "/submission.php3",
! 'perm' => "nobody",
! 'module' => "Submission"
);
$menuitem[] = array(
! 'name' => "Glossary",
! 'link' => $_PSL['rooturl'] . "/glossary.php3",
! 'perm' => "nobody",
! 'module' => "Glossary"
);
$menuitem[] = array(
! 'name' => "Archives",
! 'link' => $_PSL['rooturl'] . "/search.php3",
! 'perm' => "nobody",
! 'module' => ""
);
$menuitem[] = array(
! 'name' => "Polls",
! 'link' => $_PSL['rooturl'] . "/poll.php3",
! 'perm' => "nobody",
! 'module' => "Poll"
);
$menuitem[] = array(
! 'name' => "Mailing List",
! 'link' => $_PSL['rooturl'] . "/mailinglist.php3",
! 'perm' => "nobody",
! 'module' => "MailingList"
);
$menuitem[] = array(
! 'name' => "About",
! 'link' => $_PSL['rooturl'] . "/about.php3",
! 'perm' => "nobody",
! 'module' => ""
);
$menuitem[] = array(
! 'name' => "User",
! 'link' => $_PSL['rooturl'] . "/login.php3",
! 'perm' => "user",
! 'module' => ""
);
$menuitem[] = array(
! 'name' => "Topic",
! 'link' => $_PSL['adminurl'] . "/topicAdmin.php3",
! 'perm' => "topic",
! 'module' => ""
);
$menuitem[] = array(
! 'name' => "Story",
! 'link' => $_PSL['adminurl'] . "/storyAdmin.php3",
! 'perm' => "story",
! 'module' => "Story"
);
$menuitem[] = array(
! 'name' => "Submission",
! 'link' => $_PSL['adminurl'] . "/submissionAdmin.php3",
! 'perm' => "submission",
! 'module' => "Submission"
);
$menuitem[] = array(
! 'name' => "Section",
! 'link' => $_PSL['adminurl'] . "/sectionAdmin.php3",
! 'perm' => "section",
! 'module' => "Section"
);
$menuitem[] = array(
! 'name' => "Block",
! 'link' => $_PSL['adminurl'] . "/blockAdmin.php3",
! 'perm' => "block",
! 'module' => "Block"
);
$menuitem[] = array(
! 'name' => "Poll",
! 'link' => $_PSL['adminurl'] . "/pollAdmin.php3",
! 'perm' => "poll",
! 'module' => "Poll"
);
$menuitem[] = array(
! 'name' => "Mailing List",
! 'link' => $_PSL['adminurl'] . "/mailinglistAdmin.php3",
! 'perm' => "mailinglist",
! 'module' => "MailingList"
);
$menuitem[] = array(
! 'name' => "Author",
! 'link' => $_PSL['adminurl'] . "/authorAdmin.php3",
! 'perm' => "author",
! 'module' => "Author"
);
$menuitem[] = array(
! 'name' => "Glossary",
! 'link' => $_PSL['adminurl'] . "/glossaryAdmin.php3",
! 'perm' => "glossary",
! 'module' => "Glossary"
);
$menuitem[] = array(
! 'name' => "Variable",
! 'link' => $_PSL['adminurl'] . "/variableAdmin.php3",
! 'perm' => "variable",
! 'module' => "Variable"
);
$menuitem[] = array(
! 'name' => "Logging",
! 'link' => $_PSL['adminurl'] . "/infologAdmin.php3",
! 'perm' => "logging",
! 'module' => "Infolog"
);
***************
*** 324,328 ****
// 2.2) PHPLIB Perm Class extension
! $_PSL[perm_array] = array(
"nobody" => 2,
"user" => 4,
--- 326,330 ----
// 2.2) PHPLIB Perm Class extension
! $_PSL['perm_array'] = array(
"nobody" => 2,
"user" => 4,
***************
*** 343,352 ****
// 2.3) PHPSlash<->phplib interface classes
! require($_PSL[classdir] . "/slashDB.class");
! require($_PSL[classdir] . "/slash_sql.class");
! require($_PSL[classdir] . "/slashSess.class");
! // require($_PSL[classdir] . "/slashAuth.class");
! require($_PSL[classdir] . "/slashAuthCR.class");
! require($_PSL[classdir] . "/slashPerm.class");
// 2.2) PHPLIB Session Support
--- 345,354 ----
// 2.3) PHPSlash<->phplib interface classes
! require($_PSL['classdir'] . "/slashDB.class");
! require($_PSL['classdir'] . "/slash_sql.class");
! require($_PSL['classdir'] . "/slashSess.class");
! // require($_PSL['classdir'] . "/slashAuth.class");
! require($_PSL['classdir'] . "/slashAuthCR.class");
! require($_PSL['classdir'] . "/slashPerm.class");
// 2.2) PHPLIB Session Support
***************
*** 355,389 ****
// SECTION 3 - PHPSLASH CLASS CONFIGURATION ------------------------------
//////////////////////////////////////////////////////////////////////////
! # require($_PSL[classdir] . "/Variable.class");
! if ($_PSL[module][Comment]) {
! require($_PSL[classdir] . "/Comment.class");
}
! if ($_PSL[module][Poll]) {
! require($_PSL[classdir] . "/Poll.class");
}
! if ($_PSL[module][Story]) {
! require($_PSL[classdir] . "/Story_base.class");
! require($_PSL[classdir] . "/Story.class");
}
! require($_PSL[classdir] . "/Topic.class");
! require($_PSL[classdir] . "/Section.class");
! if ($_PSL[module][Submission]) {
! require($_PSL[classdir] . "/Submission.class");
}
! if ($_PSL[module][TopicBar]) {
! require($_PSL[classdir] . "/TopicBar.class");
}
! if ($_PSL[module][NavBar]) {
! require($_PSL[classdir] . "/NavBar.class");
}
! if ($_PSL[module][Block]) {
! require($_PSL[classdir] . "/Block_i.class");
}
! require($_PSL[classdir] . "/Author.class");
! if ($_PSL[module][Glossary]) {
! require($_PSL[classdir] . "/Glossary.class");
}
! if ($_PSL[module][MailingList]) {
! require($_PSL[classdir] . "/MailingList.class");
}
--- 357,405 ----
// SECTION 3 - PHPSLASH CLASS CONFIGURATION ------------------------------
//////////////////////////////////////////////////////////////////////////
! // TODO: nh: Re-write this in a for loop
!
! # require($_PSL['classdir'] . "/Variable.class");
!
! if ($_PSL['module']['Comment']) {
! require($_PSL['classdir'] . "/Comment.class");
}
!
! if ($_PSL['module']['Poll']) {
! require($_PSL['classdir'] . "/Poll.class");
}
!
! if ($_PSL['module']['Story']) {
! require($_PSL['classdir'] . "/Story_base.class");
! require($_PSL['classdir'] . "/Story.class");
}
!
! require($_PSL['classdir'] . "/Topic.class");
!
! require($_PSL['classdir'] . "/Section.class");
!
! if ($_PSL['module']['Submission']) {
! require($_PSL['classdir'] . "/Submission.class");
}
!
! if ($_PSL['module']['TopicBar']) {
! require($_PSL['classdir'] . "/TopicBar.class");
}
!
! if ($_PSL['module']['NavBar']) {
! require($_PSL['classdir'] . "/NavBar.class");
}
!
! if ($_PSL['module']['Block']) {
! require($_PSL['classdir'] . "/Block_i.class");
}
!
! require($_PSL['classdir'] . "/Author.class");
!
! if ($_PSL['module']['Glossary']) {
! require($_PSL['classdir'] . "/Glossary.class");
}
!
! if ($_PSL['module']['MailingList']) {
! require($_PSL['classdir'] . "/MailingList.class");
}
***************
*** 399,403 ****
* 1 means accept the tag only: <foo>
*/
! $_PSL[approvedtags] = array(
"p"=>2,
"b"=>1,
--- 415,419 ----
* 1 means accept the tag only: <foo>
*/
! $_PSL['approvedtags'] = array(
"p"=>2,
"b"=>1,
***************
*** 419,442 ****
always set expirerelated >= expirestory
*/
! $_PSL[expirestory] = 0;
! $_PSL[expirerelated] = 14400;
/* ============= Things to deprecate ============= */
! if ($sitename=="") $sitename = $_PSL[site_name];
! if ($siteowner=="") $siteowner = $_PSL[site_owner];
! $basedir = $_PSL[basedir];
! $templatedir = $_PSL[templatedir];
! $classdir = $_PSL[classdir];
! $rootdir = $_PSL[rooturl];
! $admindir = $_PSL[adminurl];
! $imagedir = $_PSL[imageurl];
! $debug = $_PSL[debug];
! $debug_type = $_PSL[debug_type];
! $infolog_enable = $_PSL[use_infolog];
! $default_pending = $_PSL[default_pending];
! $show_admin_on_navbar = $_PSL[show_admin_on_navbar];
! $max_poll_answers = $_PSL[poll_max_answers];
?>
--- 435,458 ----
always set expirerelated >= expirestory
*/
! $_PSL['expirestory'] = 0;
! $_PSL['expirerelated'] = 14400;
/* ============= Things to deprecate ============= */
! if ($sitename=="") $sitename = $_PSL['site_name'];
! if ($siteowner=="") $siteowner = $_PSL['site_owner'];
! $basedir = $_PSL['basedir'];
! $templatedir = $_PSL['templatedir'];
! $classdir = $_PSL['classdir'];
! $rootdir = $_PSL['rooturl'];
! $admindir = $_PSL['adminurl'];
! $imagedir = $_PSL['imageurl'];
! $debug = $_PSL['debug'];
! $debug_type = $_PSL['debug_type'];
! $infolog_enable = $_PSL['use_infolog'];
! $default_pending = $_PSL['default_pending'];
! $show_admin_on_navbar = $_PSL['show_admin_on_navbar'];
! $max_poll_answers = $_PSL['poll_max_answers'];
?>
Index: index.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/index.php3,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** index.php3 2002/01/15 21:50:38 1.52
--- index.php3 2002/02/03 02:49:40 1.53
***************
*** 25,33 ****
/* defaults for main "index" page */
if ((!$section) AND (!$section_id)){
! $section = $_PSL[site_homesection];
if(!$section) {
$section = "Home";
}
! $ary[section] = $section;
} else {
$pagetitle .= " - $section";
--- 25,33 ----
/* defaults for main "index" page */
if ((!$section) AND (!$section_id)){
! $section = $_PSL['site_homesection'];
if(!$section) {
$section = "Home";
}
! $ary['section'] = $section;
} else {
$pagetitle .= " - $section";
***************
*** 62,83 ****
}
! $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();
--- 62,83 ----
}
! $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();
|