[Phpslash-commit] CVS: phpslash-ft/public_html backend.php3,1.22,1.23 config.php3,1.130,1.131
Brought to you by:
joestewart,
nhruby
From: nathan h. <nh...@us...> - 2002-03-19 16:13:18
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv18310/public_html Modified Files: backend.php3 config.php3 Log Message: RSS-1.0 backend work Index: backend.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** backend.php3 14 Mar 2002 18:04:41 -0000 1.22 --- backend.php3 19 Mar 2002 16:13:12 -0000 1.23 *************** *** 36,39 **** --- 36,41 ---- opml - OPML (http://radio.userland.com) wml - WML - for WAP phones + + // TODO: nh asks: Do we really need this? * d = description - this is the intro text. [d] - include description - default *************** *** 46,51 **** */ $pagetitle="Backend"; # The name to be displayed in the header ! $xsiteobject = "Backend"; #This Defines The META Tag Object Type require("config.php3"); --- 48,55 ---- */ + // TODO: Remove these $pagetitle="Backend"; # The name to be displayed in the header ! $xsiteobject = "Backend"; # This Defines The META Tag Object Type ! require("config.php3"); *************** *** 65,68 **** --- 69,73 ---- } + // TODO: Make this check max to make sure it's an integer if(empty($ary['max'])) { $ary['max']= 15; *************** *** 92,95 **** --- 97,102 ---- case "rss1": $viewtpl = "backendRSS1.tpl"; + // RSS-1.0 needs a extra listing. + $link_ary = array(); break; case "opml": *************** *** 175,180 **** --- 182,206 ---- )); + + // Grab a copy of the link stuff we need + if ($ary['view'] = 'rss1') { + $link_ary[] = array('idx' => $i, 'storyid' => $stories[$i]["story_id"]); + } + $template->parse("stories", "each_story", true); } + + // RSS-1.0 requires a item listing in the <channel> tag + if ($ary['view'] = 'rss1') { + $template->set_block("storiesbackend", "each_item", "items"); + for ($i = 0; $i < count($link_ary); $i++) { + $template->set_var(array( + 'STORY_ID' => $link_ary[$i]['storyid'], + 'IDX' => $link_ary[$i]['idx'] + )); + $template->parse("items", "each_item", true); + } + } + $template->parse('OUT',"storiesbackend"); $template->p('OUT'); Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.130 retrieving revision 1.131 diff -C2 -d -r1.130 -r1.131 *** config.php3 15 Mar 2002 19:16:28 -0000 1.130 --- config.php3 19 Mar 2002 16:13:12 -0000 1.131 *************** *** 15,19 **** like this, but you need to be sure to close it like so: */ ! $psl_version = "0.6.5-pre1"; /**** START DEBUGING - Comment or delete this for production! ****/ --- 15,19 ---- like this, but you need to be sure to close it like so: */ ! $_PSL['version'] = '0.6.5-pre1'; /**** START DEBUGING - Comment or delete this for production! ****/ *************** *** 28,32 **** // 1.1 Uncomment this only if you can't use a local php.ini or .htaccess ! //require('/home/nathan/webDevel/php-lib-stable/php/prepend.php3'); // 1.11) Global Variables. (Don't add trailing slashes) --- 28,32 ---- // 1.1 Uncomment this only if you can't use a local php.ini or .htaccess ! require('/home/nathan/webDevel/php-lib-stable/php/prepend.php3'); // 1.11) Global Variables. (Don't add trailing slashes) *************** *** 48,52 **** // $basedir -> Complete filesystem path to the pages ! $_PSL['basedir'] = ''; // $templatedir -> Path to the templates directory --- 48,52 ---- // $basedir -> Complete filesystem path to the pages ! $_PSL['basedir'] = '/home/nathan/webDevel/phpslash-ft/public_html'; // $templatedir -> Path to the templates directory *************** *** 54,61 **** // $classdir -> Path to the class directory ! $_PSL['classdir'] = ''; // $rooturl -> The base URL for the phpslash site ! $_PSL['rooturl'] = 'http://fatboy.mystic/ft'; // $adminurl -> The base URL for the admin pages --- 54,61 ---- // $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://dingo/devel/phpslash-ft/public_html'; // $adminurl -> The base URL for the admin pages *************** *** 82,88 **** $_PSL['DB_Host'] = "localhost"; ! $_PSL['DB_Database'] = ""; ! $_PSL['DB_User'] = ""; ! $_PSL['DB_Password'] = ""; $_PSL['module']['Glossary'] = true; --- 82,88 ---- $_PSL['DB_Host'] = "localhost"; ! $_PSL['DB_Database'] = "psl"; ! $_PSL['DB_User'] = "psl"; ! $_PSL['DB_Password'] = "foo"; $_PSL['module']['Glossary'] = true; |