[Phpfastnews-commits] CVS: phpfastnews/lib prepend_news.php-dist,NONE,1.1
Status: Beta
Brought to you by:
hdwebdev
From: Ken W. <hdw...@us...> - 2001-08-11 04:24:30
|
Update of /cvsroot/phpfastnews/phpfastnews/lib In directory usw-pr-cvs1:/tmp/cvs-serv23873 Added Files: prepend_news.php-dist Log Message: new name for prepend_news.inc-dist --- NEW FILE: prepend_news.php-dist --- <?php /* Copyright (c) 2001 by Ken Williams (php...@hd...) */ /* http://phpfastnews.sourceforge.net/ & http://www.phpfastnews.com */ /* */ /* You can redistribute and/or modify the following code under the */ /* terms of the GNU General Public License as published by the */ /* the Free Software Foundation. */ /* */ /* LAST MODIFIED August 04, 2001 - 18:27:44 Eastern Standard Time */ /* All code by Ken Williams (HDwebdev) unless otherwise noted */ /* This is an alpha test release -- not intended for live site use */ // CHANGE THIS PATH TO THE DIRECTORY WHERE PHPFASTNEWS IS INSTALLED TO $NEWS_BASE = 'C:/webdir/www/phpfastnews/'; $numrecords = '10'; function getmicrotime(){ list($usec, $sec) = explode(" ",microtime()); return ((float)$usec + (float)$sec); } $startpage = getmicrotime(); $anonname = "Anonymous"; $theme = 'onecolumn2'; unset($blox); $blox = array( "HEAD" => 'yes', "LEFT" => 'yes', "RIGHT" => '', "FOOTER" => 'yes' ); if ($auth["username"] && ($handle == $anonname)) { $query = "select handle from ps_auth_user,news_users where (username = '$auth[username]') and (user_id = user_id2)"; $db->next_record($db->query($query)); $handle = $db->f('handle'); } if (!$auth["username"]) { $handle = $anonname; } $sess->register("handle"); function inky ($name) { global $NEWS_BASE,$module,$theme; include ($NEWS_BASE . "/" . $name); } inky("lib/news.inc"); function ndate($date) { $date = date("M/d/Y-H:i:s", $date); return $date; } $ndate = "ndate"; inky('lib/phplib/template.inc'); $r = new render; $ps_perm = new_object("ps_perm"); $blocks = new blocks("$pg"); inky('lib/sideblocks.inc'); $sideblocks = new sideblocks; ?> |