phpslash-commit Mailing List for phpSlash (Page 70)
Brought to you by:
joestewart,
nhruby
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(11) |
Nov
(59) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(52) |
Feb
(77) |
Mar
(118) |
Apr
(76) |
May
(106) |
Jun
(145) |
Jul
(9) |
Aug
(15) |
Sep
(78) |
Oct
(83) |
Nov
(105) |
Dec
(51) |
2003 |
Jan
(105) |
Feb
(100) |
Mar
(111) |
Apr
(149) |
May
(95) |
Jun
(56) |
Jul
(8) |
Aug
(2) |
Sep
|
Oct
(22) |
Nov
(117) |
Dec
(6) |
2004 |
Jan
(1) |
Feb
|
Mar
(3) |
Apr
(25) |
May
|
Jun
(11) |
Jul
(26) |
Aug
(85) |
Sep
(119) |
Oct
(312) |
Nov
(271) |
Dec
(5) |
2005 |
Jan
(6) |
Feb
|
Mar
|
Apr
(12) |
May
(7) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Joe S. <joe...@us...> - 2002-11-24 23:12:58
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory sc8-pr-cvs1:/tmp/cvs-serv15696/phpslash-ft/public_html Modified Files: search.php3 config-dist.php3 config.php3 Log Message: jpcache related Index: search.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/search.php3,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** search.php3 21 Nov 2002 18:59:07 -0000 1.51 --- search.php3 24 Nov 2002 23:12:55 -0000 1.52 *************** *** 10,14 **** $xsiteobject = pslgetText("Search Page"); #Defines The META TAG Page Type ! page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); $maxsearchresults = $_PSL['search_maxresults']; --- 10,14 ---- $xsiteobject = pslgetText("Search Page"); #Defines The META TAG Page Type ! // page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); $maxsearchresults = $_PSL['search_maxresults']; *************** *** 405,410 **** while ($db->next_record ()) { $templ->set_var (array ( ! 'STORY_URL' => $_PSL['rooturl'] . "/article.php3?story_id=" . $db->f('story_id'), 'STORY_TITLE' => $db->f('title'), 'AUTHOR_URL' => str_html($db->f('url')), --- 405,416 ---- while ($db->next_record ()) { + + $story_url = $_PSL['rooturl'] . "/article.php3?story_id=" . $db->f('story_id'); + if(!empty($_SERVER['QUERY_STRING'])) { + $story_url .= $_PSL['amp'] . $_SERVER['QUERY_STRING']; + } + $templ->set_var (array ( ! 'STORY_URL' => $story_url, 'STORY_TITLE' => $db->f('title'), 'AUTHOR_URL' => str_html($db->f('url')), *************** *** 477,483 **** )); ! // TODO register_globals? ! if( !empty($QUERY_STRING)) { ! $QUERY_STRING = "?".$QUERY_STRING; } --- 483,488 ---- )); ! if( !empty($_SERVER['QUERY_STRING'])) { ! $QUERY_STRING = "?".$_SERVER['QUERY_STRING']; } Index: config-dist.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config-dist.php3,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** config-dist.php3 22 Nov 2002 18:01:16 -0000 1.12 --- config-dist.php3 24 Nov 2002 23:12:55 -0000 1.13 *************** *** 15,18 **** --- 15,50 ---- like this, but you need to be sure to close it like so: */ + /* After phpSlash is configured, the jpcache-config.php file and the + varkey below can be configured to further optimize the cache system. + This is not needed to enable the cache initially. + */ + // require "/path/to/jpcache.php"; + if(array_key_exists('JPCACHE_VERSION', $GLOBALS)) { + if ( (empty($HTTP_COOKIE_VARS['slashSess'])) AND + (empty($HTTP_COOKIE_VARS['user_info'])) AND + (empty($HTTP_COOKIE_VARS['skin'])) ) { + + $varkey = "-uid-nobody-lang-en-skin-basic"; + if( !empty($HTTP_COOKIE_VARS['TZ'])) { + $varkey .= "-TZ-". $HTTP_COOKIE_VARS['TZ']; + } else { + $varkey .= "-TZ-America-Chicago"; + } + foreach( $HTTP_GET_VARS as $key => $value) { + $varkey .= "-". $key ."-". $value; + } + if ((empty($HTTP_GET_VARS['section'])) AND + (empty($HTTP_GET_VARS['section_id']))){ + $varkey .= "-section_id-3"; + } + $key = str_replace("/","-", $HTTP_SERVER_VARS['PHP_SELF'].$varkey); + if($GLOBALS['JPCACHE_IGNORE_DOMAIN'] == 0) { + $key = str_replace(".","-", $HTTP_SERVER_VARS['HTTP_HOST'] .$key); + } + jpcache_start('',$key); + } + } + */ + $_PSL = array(); Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.159 retrieving revision 1.160 diff -C2 -d -r1.159 -r1.160 *** config.php3 22 Nov 2002 18:01:14 -0000 1.159 --- config.php3 24 Nov 2002 23:12:55 -0000 1.160 *************** *** 14,17 **** --- 14,49 ---- /* This is a comment as well, it can span multiple lines like this, but you need to be sure to close it like so: */ + + /* After phpSlash is configured, the jpcache-config.php file and the + varkey below can be configured to further optimize the cache system. + This is not needed to enable the cache initially. + */ + // require "/path/to/jpcache.php"; + if(array_key_exists('JPCACHE_VERSION', $GLOBALS)) { + if ( (empty($HTTP_COOKIE_VARS['slashSess'])) AND + (empty($HTTP_COOKIE_VARS['user_info'])) AND + (empty($HTTP_COOKIE_VARS['skin'])) ) { + + $varkey = "-uid-nobody-lang-en-skin-basic"; + if( !empty($HTTP_COOKIE_VARS['TZ'])) { + $varkey .= "-TZ-". $HTTP_COOKIE_VARS['TZ']; + } else { + $varkey .= "-TZ-America-Chicago"; + } + foreach( $HTTP_GET_VARS as $key => $value) { + $varkey .= "-". $key ."-". $value; + } + if ((empty($HTTP_GET_VARS['section'])) AND + (empty($HTTP_GET_VARS['section_id']))){ + $varkey .= "-section_id-3"; + } + $key = str_replace("/","-", $HTTP_SERVER_VARS['PHP_SELF'].$varkey); + if($GLOBALS['JPCACHE_IGNORE_DOMAIN'] == 0) { + $key = str_replace(".","-", $HTTP_SERVER_VARS['HTTP_HOST'] .$key); + } + jpcache_start('',$key); + } + } + */ $_PSL['version'] = '0.6.5'; *************** *** 71,124 **** $_PSL['topicimagedir'] = $_PSL['basedir'] . "/images" . "/topics"; ! // jpcachedir -> the full directory path to the jpcache scripts. ! if(empty($_PSL['jpcachedir'])) { ! $_PSL['jpcachedir'] = $_PSL['classdir'] . "/jpcache"; ! } ! // jpcache configuration ! // $JPCACHE_TYPE = "file"; ! // $JPCACHE_TYPE = "mysql"; ! //$JPCACHE_TYPE = "dbm"; ! $JPCACHE_TYPE = "phplib"; ! // General jpcache configuration options. ! ! $JPCACHE_TIME = 900; // Default number of seconds to cache a page ! $JPCACHE_DEBUG = 0; // Turn debugging on/off ! $JPCACHE_IGNORE_DOMAIN= 1; // Ignore domain name in request(single site) ! $JPCACHE_ON = 1; // Turn caching on/off ! $JPCACHE_USE_GZIP = 0; // Whether or not to use GZIP ! $JPCACHE_POST = 1; // Should POST's be cached ! $JPCACHE_GC = 1; // Probability % of garbage collection ! $JPCACHE_GZIP_LEVEL = 9; // GZIPcompressionlevel to use (1=low,9=high) ! $JPCACHE_DELAY_START = 1; // Immediate or manual call to jpcache_start() ! $JPCACHE_HASHSCRIPTKEY = 0; // Hash SCRIPT-KEY or not ! // File based caching setting. ! $JPCACHE_DIR = "/tmp/jpcache"; // Directory where jpcache must store ! // generated files. Please use a dedicated ! // directory, and make it writable ! $JPCACHE_FILEPREFIX = "jpc-";// Prefix used in the filename. This enables ! // us to (more accuratly) recognize jpcache- ! // files. - // DB based caching settings. - $JPCACHE_DB_HOST = $_PSL['DB_Host']; // Database Server - $JPCACHE_DB_DATABASE = $_PSL['DB_Database']; // Database-name to use - $JPCACHE_DB_USERNAME = $_PSL['DB_User']; // Username - $JPCACHE_DB_PASSWORD = $_PSL['DB_Password']; // Password - $JPCACHE_DB_TABLE = "CACHEDATA"; // Table that holds the data - $JPCACHE_OPTIMIZE = 0; // If 'OPTIMIZE TABLE' after garbage - // collection is executed. Please check - // first if this works on your mySQL! ! // Standard jpcache functions ! require $_PSL['jpcachedir']. "/jpcache-main.php"; ! ! // Type specific implementations ! require $_PSL['jpcachedir'] ."/type/$JPCACHE_TYPE.php"; // end of jpcache configuration --- 103,185 ---- $_PSL['topicimagedir'] = $_PSL['basedir'] . "/images" . "/topics"; ! if(empty($GLOBALS['JPCACHE_VERSION'])) { ! // jpcachedir -> the full directory path to the jpcache scripts. ! if(empty($_PSL['jpcachedir'])) { ! $_PSL['jpcachedir'] = $_PSL['classdir'] . "/jpcache"; ! } ! // $JPCACHE_TYPE = "file"; ! // $JPCACHE_TYPE = "mysql"; ! // $JPCACHE_TYPE = "dbm"; ! $JPCACHE_TYPE = "phplib"; + /** + * General configuration options. + */ + $JPCACHE_TIME = 900; // Default number of seconds to cache a page + $JPCACHE_DEBUG = 0; // Turn debugging on/off + $JPCACHE_IGNORE_DOMAIN= 1; // Ignore domain name in request(single site) + $JPCACHE_ON = 1; // Turn caching on/off + $JPCACHE_USE_GZIP = 0; // Whether or not to use GZIP + $JPCACHE_POST = 1; // Should POST's be cached + $JPCACHE_GC = 1; // Probability % of garbage collection + $JPCACHE_GZIP_LEVEL = 9; // GZIPcompressionlevel to use (1=low,9=high) + $JPCACHE_DELAY_START = 1; // Immediate or manual call to jpcache_start() + $JPCACHE_HASHSCRIPTKEY = 0; // Hash SCRIPT-KEY or not ! /** ! * File based caching setting. ! */ ! $JPCACHE_DIR = "/tmp/jpcache"; // Directory where jpcache must store ! // generated files. Please use a dedicated ! // directory, and make it writable ! $JPCACHE_FILEPREFIX = "jpc-";// Prefix used in the filename. This enables ! // us to (more accuratly) recognize jpcache- ! // files. ! /** ! * DB based caching settings. ! */ ! $JPCACHE_DB_HOST = $_PSL['DB_Host']; // Database Server ! $JPCACHE_DB_DATABASE = $_PSL['DB_Database']; // Database-name to use ! $JPCACHE_DB_USERNAME = $_PSL['DB_User']; // Username ! $JPCACHE_DB_PASSWORD = ""; // Password ! $JPCACHE_DB_TABLE = "CACHEDATA"; // Table that holds the data ! $JPCACHE_OPTIMIZE = 0; // If 'OPTIMIZE TABLE' after garbage ! // collection is executed. Please check ! // first if this works on your mySQL! ! // Standard functions ! require $_PSL['jpcachedir']. "/jpcache-main.php"; ! ! // Type specific implementations ! require $_PSL['jpcachedir'] ."/type/$JPCACHE_TYPE.php"; ! if ( (empty($HTTP_COOKIE_VARS['slashSess'])) AND ! (empty($HTTP_COOKIE_VARS['user_info'])) AND ! (empty($HTTP_COOKIE_VARS['skin'])) ) { ! ! $varkey = "-uid-nobody-lang-". $_PSL['language']."-skin-". $_PSL['defaultskin']; ! if( !empty($HTTP_COOKIE_VARS['TZ'])) { ! $varkey .= "-TZ-". $HTTP_COOKIE_VARS['TZ']; ! } else { ! $varkey .= "-TZ-". $_PSL['timezone']['name']; ! } ! foreach( $HTTP_GET_VARS as $key => $value) { ! $varkey .= "-". $key ."-". $value; ! } ! if ((empty($HTTP_GET_VARS['section'])) AND ! (empty($HTTP_GET_VARS['section_id']))){ ! $varkey .= "-section_id-". $_PSL['home_section_id']; ! } ! $key = str_replace("/","-", $_PSL['phpself'].$varkey); ! if($GLOBALS['JPCACHE_IGNORE_DOMAIN'] == 0) { ! $key = str_replace(".","-", $HTTP_SERVER_VARS['HTTP_HOST'] .$key); ! } ! jpcache_start('',$key); ! } ! } // end of jpcache configuration *************** *** 322,340 **** } - if ( (empty($HTTP_COOKIE_VARS['slashSess'])) AND - (empty($HTTP_COOKIE_VARS['user_info'])) AND - (empty($HTTP_COOKIE_VARS['skin'])) ) { - - $varkey = "-uid-nobody-lang-". $_PSL['language']."-skin-". $_PSL['defaultskin']; - if( !empty($HTTP_COOKIE_VARS['TZ'])) { - $varkey .= "-TZ-". $HTTP_COOKIE_VARS['TZ']; - } - foreach( $ary as $key => $value) { - $varkey .= "-". $key ."-". $value; - } - $key = str_replace("/","-", $_PSL['phpself'].$varkey); - jpcache_start('',$key); - } - /* now that the functions are in, we can define the arg_separator */ --- 383,386 ---- *************** *** 728,732 **** 'perm' => 'slashPerm')); ! if ( !empty($HTTP_COOKIE_VARS)) { $varkey = "-uid-".$auth->auth['uid']."-lang-". $_PSL['language']."-skin-". $_PSL['skin']; if( !empty($HTTP_COOKIE_VARS['TZ'])) { --- 774,779 ---- 'perm' => 'slashPerm')); ! if (( array_key_exists('slashSess', $HTTP_COOKIE_VARS)) AND ! (array_key_exists('JPCACHE_TYPE', $GLOBALS)) ) { $varkey = "-uid-".$auth->auth['uid']."-lang-". $_PSL['language']."-skin-". $_PSL['skin']; if( !empty($HTTP_COOKIE_VARS['TZ'])) { *************** *** 737,743 **** } $key = str_replace("/","-", $_PSL['phpself'].$varkey); jpcache_start('',$key); } - /* ============= Things to deprecate ============= */ --- 784,792 ---- } $key = str_replace("/","-", $_PSL['phpself'].$varkey); + if($GLOBALS['JPCACHE_IGNORE_DOMAIN'] == 0) { + $key = str_replace(".","-", $HTTP_SERVER_VARS['HTTP_HOST'] .$key); + } jpcache_start('',$key); } /* ============= Things to deprecate ============= */ |
From: Joe S. <joe...@us...> - 2002-11-24 23:12:58
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory sc8-pr-cvs1:/tmp/cvs-serv15696/phpslash-ft/class Modified Files: Story.class Log Message: jpcache related Index: Story.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Story.class,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** Story.class 22 Nov 2002 15:38:08 -0000 1.45 --- Story.class 24 Nov 2002 23:12:55 -0000 1.46 *************** *** 183,186 **** --- 183,189 ---- } } + if($stories < $ary["max"]) { + $stories = 0; + } $ary["start"] = $ary["start"] + $ary["max"]; } |
From: Joe S. <joe...@us...> - 2002-11-24 23:12:58
|
Update of /cvsroot/phpslash/phpslash-ft In directory sc8-pr-cvs1:/tmp/cvs-serv15696/phpslash-ft Modified Files: CHANGES Log Message: jpcache related Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.621 retrieving revision 1.622 diff -C2 -d -r1.621 -r1.622 *** CHANGES 23 Nov 2002 14:02:01 -0000 1.621 --- CHANGES 24 Nov 2002 23:12:55 -0000 1.622 *************** *** 13,16 **** --- 13,21 ---- 9 - Removal of something (kill -9 :) + 2002-November-24 5:00PM CST Joe Stewart <joe...@us...> + [E] - config-dist.php3, config.php3 - more jpcache configuration. + [B] - Story.class - getNextPrev could get caught in a loop. + search.php3 - append query string to url link. + 2002-November-23 8:00AM CST Joe Stewart <joe...@us...> [B] - functions.inc - set_TZ only sets the cookie if it is a different |
From: Joe S. <joe...@us...> - 2002-11-23 14:02:07
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory sc8-pr-cvs1:/tmp/cvs-serv14316/phpslash-ft/class Modified Files: functions.inc Log Message: set_TZ sets cookie on change only Index: functions.inc =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v retrieving revision 1.115 retrieving revision 1.116 diff -C2 -d -r1.115 -r1.116 *** functions.inc 21 Nov 2002 18:59:06 -0000 1.115 --- functions.inc 23 Nov 2002 14:02:05 -0000 1.116 *************** *** 1193,1230 **** */ function set_TZ($new_tzname='',$method='') { ! global $_PSL, $HTTP_GET_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS; ! $fn = "set_TZ"; $default_TZ = ''; $host = ''; ! // debug("$fn: start",$new_tzname); ! // default: value in _PSL array. if (!empty($_PSL['timezone']['name'])) { ! $default_TZ = $_PSL['timezone']['name']; } ! if (!$default_TZ && !empty($_PSL['timezone']['native']) && !empty($_PSL['timezone']['default'])) { ! $default_TZ = $_PSL['timezone']['default']; } ! // start with cookie value if it's set ! $cookie_TZ = $HTTP_COOKIE_VARS['TZ']; ! if (!empty($cookie_TZ)) ! $tzname = $cookie_TZ; ! // override if an argument is passed. ! if ($new_tzname) ! $tzname = $new_tzname; ! // check it. tz_select returns a success value. ! if (empty($tzname) || !tz_select($tzname)) { /* Try the default. Yes, I *do* want a single equals there. If ! * $default_TZ is true, this will succeed. */ if ($tzname = $default_TZ) { ! if (!tz_select($tzname)) ! { ! // complain if the default is set, because it's bad. ! error("specified default time zone is invalid: $default_TZ"); return false; ! } ! } ! else { // given timezone is bad and no default, so just exit quietly return false; --- 1193,1229 ---- */ function set_TZ($new_tzname='',$method='') { ! global $_PSL, $HTTP_GET_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS; ! $fn = "set_TZ"; $default_TZ = ''; $host = ''; ! // debug("$fn: start",$new_tzname); ! // default: value in _PSL array. if (!empty($_PSL['timezone']['name'])) { ! $default_TZ = $_PSL['timezone']['name']; } ! if (!$default_TZ && !empty($_PSL['timezone']['native']) && !empty($_PSL['timezone']['default'])) { ! $default_TZ = $_PSL['timezone']['default']; } ! // start with cookie value if it's set ! $cookie_TZ = $HTTP_COOKIE_VARS['TZ']; ! if (!empty($cookie_TZ)) { ! $tzname = $cookie_TZ; ! } ! // override if an argument is passed. ! if ($new_tzname) ! $tzname = $new_tzname; ! // check it. tz_select returns a success value. ! if (empty($tzname) || !tz_select($tzname)) { /* Try the default. Yes, I *do* want a single equals there. If ! * $default_TZ is true, this will succeed. */ if ($tzname = $default_TZ) { ! if (!tz_select($tzname)) { ! // complain if the default is set, because it's bad. ! echo getError("specified default time zone is invalid: $default_TZ"); return false; ! } ! } else { // given timezone is bad and no default, so just exit quietly return false; *************** *** 1232,1242 **** } //$host = str_replace('www.','',$HTTP_SERVER_VARS['SERVER_NAME']); ! if ('cookie'==$method) { // save the cookie setcookie('TZ',$tzname,time() + 15552000,'/',$host); - /* - * in setSkinTpl a redirect is called. Is that really - * necessary? - */ } elseif (!empty($cookie_TZ) && $tzname != $cookie_TZ) { --- 1231,1237 ---- } //$host = str_replace('www.','',$HTTP_SERVER_VARS['SERVER_NAME']); ! if (('cookie'==$method) && ($tzname != $cookie_TZ)){ // save the cookie setcookie('TZ',$tzname,time() + 15552000,'/',$host); } elseif (!empty($cookie_TZ) && $tzname != $cookie_TZ) { |
From: Joe S. <joe...@us...> - 2002-11-23 14:02:07
|
Update of /cvsroot/phpslash/phpslash-ft In directory sc8-pr-cvs1:/tmp/cvs-serv14316/phpslash-ft Modified Files: CHANGES Log Message: set_TZ sets cookie on change only Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.620 retrieving revision 1.621 diff -C2 -d -r1.620 -r1.621 *** CHANGES 23 Nov 2002 13:22:20 -0000 1.620 --- CHANGES 23 Nov 2002 14:02:01 -0000 1.621 *************** *** 13,17 **** 9 - Removal of something (kill -9 :) ! 2002-November-22 9:30PM CST Joe Stewart <joe...@us...> [B] - Block_render_submission.class - order by date_created. login.php3, admin/config.php3 - disable cache for admin pages. --- 13,21 ---- 9 - Removal of something (kill -9 :) ! 2002-November-23 8:00AM CST Joe Stewart <joe...@us...> ! [B] - functions.inc - set_TZ only sets the cookie if it is a different ! timezone. ! ! 2002-November-23 8:00AM CST Joe Stewart <joe...@us...> [B] - Block_render_submission.class - order by date_created. login.php3, admin/config.php3 - disable cache for admin pages. |
From: Joe S. <joe...@us...> - 2002-11-23 13:22:23
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory sc8-pr-cvs1:/tmp/cvs-serv14124/phpslash-ft/public_html Modified Files: login.php3 Log Message: no cache for admin pages Index: login.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/login.php3,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** login.php3 22 Nov 2002 19:41:39 -0000 1.29 --- login.php3 23 Nov 2002 13:22:20 -0000 1.30 *************** *** 2,5 **** --- 2,8 ---- // $Id$ + // don't cache this page + $cachetimeout=-1; + require("config.php3"); |
From: Joe S. <joe...@us...> - 2002-11-23 13:22:23
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory sc8-pr-cvs1:/tmp/cvs-serv14124/phpslash-ft/public_html/admin Modified Files: config.php3 Log Message: no cache for admin pages Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/config.php3,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config.php3 22 Nov 2002 19:41:39 -0000 1.2 --- config.php3 23 Nov 2002 13:22:20 -0000 1.3 *************** *** 1,4 **** <?php ! // This file can also be a symlink to the required file. require("../config.php3"); if( $ary['section_id'] == $_PSL['home_section_id']) { --- 1,7 ---- <?php ! ! // don't cache admin pages ! $cachetimeout=-1; ! require("../config.php3"); if( $ary['section_id'] == $_PSL['home_section_id']) { |
From: Joe S. <joe...@us...> - 2002-11-23 13:22:23
|
Update of /cvsroot/phpslash/phpslash-ft In directory sc8-pr-cvs1:/tmp/cvs-serv14124/phpslash-ft Modified Files: CHANGES Log Message: no cache for admin pages Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.619 retrieving revision 1.620 diff -C2 -d -r1.619 -r1.620 *** CHANGES 22 Nov 2002 19:41:39 -0000 1.619 --- CHANGES 23 Nov 2002 13:22:20 -0000 1.620 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-November-22 9:30PM CST Joe Stewart <joe...@us...> + [B] - Block_render_submission.class - order by date_created. + login.php3, admin/config.php3 - disable cache for admin pages. + 2002-November-22 1:30PM CST Joe Stewart <joe...@us...> [B] - login.php3, admin/config.php3 - quick fix for blocks on admin pages. |
From: Joe S. <joe...@us...> - 2002-11-23 13:22:23
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory sc8-pr-cvs1:/tmp/cvs-serv14124/phpslash-ft/class Modified Files: Block_render_submission.class Log Message: no cache for admin pages Index: Block_render_submission.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Block_render_submission.class,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Block_render_submission.class 21 Nov 2002 18:59:05 -0000 1.4 --- Block_render_submission.class 23 Nov 2002 13:22:20 -0000 1.5 *************** *** 53,57 **** email FROM psl_submission ! ORDER BY time"; $this->db->query($q); --- 53,57 ---- email FROM psl_submission ! ORDER BY date_created"; $this->db->query($q); |
From: Joe S. <joe...@us...> - 2002-11-22 19:41:43
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory sc8-pr-cvs1:/tmp/cvs-serv23595/phpslash-ft/public_html Modified Files: login.php3 Log Message: admin blocks quick fix Index: login.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/login.php3,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** login.php3 13 Nov 2002 19:56:19 -0000 1.28 --- login.php3 22 Nov 2002 19:41:39 -0000 1.29 *************** *** 62,65 **** --- 62,66 ---- // $ary['section'] = "Admin"; // Some may prefer these blocks. $ary['section'] = "User"; + $ary['section_id'] = ""; $breadcrumb = breadcrumb( $ary); |
From: Joe S. <joe...@us...> - 2002-11-22 19:41:43
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory sc8-pr-cvs1:/tmp/cvs-serv23595/phpslash-ft/public_html/admin Modified Files: config.php3 Log Message: admin blocks quick fix Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/config.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** config.php3 1 Feb 2002 04:23:52 -0000 1.1 --- config.php3 22 Nov 2002 19:41:39 -0000 1.2 *************** *** 2,4 **** --- 2,7 ---- // This file can also be a symlink to the required file. require("../config.php3"); + if( $ary['section_id'] == $_PSL['home_section_id']) { + $ary['section_id'] = ''; + } ?> |
From: Joe S. <joe...@us...> - 2002-11-22 19:41:43
|
Update of /cvsroot/phpslash/phpslash-ft In directory sc8-pr-cvs1:/tmp/cvs-serv23595/phpslash-ft Modified Files: CHANGES Log Message: admin blocks quick fix Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.618 retrieving revision 1.619 diff -C2 -d -r1.618 -r1.619 *** CHANGES 22 Nov 2002 19:01:30 -0000 1.618 --- CHANGES 22 Nov 2002 19:41:39 -0000 1.619 *************** *** 13,21 **** 9 - Removal of something (kill -9 :) ! 2002-November-22 12:30AM CST Joe Stewart <joe...@us...> [E] - comment.php3, storyAdmin.php3, commentAdmin.php3 - expire cache on update. ! 2002-November-22 12:30AM CST Joe Stewart <joe...@us...> [E] - index.php3, about.php3, article.php3 - page_open, etc. moved to config. --- 13,24 ---- 9 - Removal of something (kill -9 :) ! 2002-November-22 1:30PM CST Joe Stewart <joe...@us...> ! [B] - login.php3, admin/config.php3 - quick fix for blocks on admin pages. ! ! 2002-November-22 12:30PM CST Joe Stewart <joe...@us...> [E] - comment.php3, storyAdmin.php3, commentAdmin.php3 - expire cache on update. ! 2002-November-22 12:30PM CST Joe Stewart <joe...@us...> [E] - index.php3, about.php3, article.php3 - page_open, etc. moved to config. |
From: Joe S. <joe...@us...> - 2002-11-22 19:01:36
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory sc8-pr-cvs1:/tmp/cvs-serv9467/phpslash-ft/public_html/admin Modified Files: commentAdmin.php3 storyAdmin.php3 Log Message: experimental expire cache on update Index: commentAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/commentAdmin.php3,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** commentAdmin.php3 11 Nov 2002 22:22:36 -0000 1.13 --- commentAdmin.php3 22 Nov 2002 19:01:32 -0000 1.14 *************** *** 43,46 **** --- 43,50 ---- if ($cmt->delete($HTTP_GET_VARS['comment_id'], $HTTP_GET_VARS['story_id'])) { $content .= "The comment was deleted<br>\n"; + + // expire cache for this story_id + jpcache_gc('string', "-story_id-" . $HTTP_GET_VARS['story_id'], "100"); + } else { $content .= getError($cmt->getMessage()); *************** *** 54,58 **** case pslgetText("Bulk Delete"): $bulkdel_ary = $HTTP_POST_VARS['bulkdel_ary']; ! if (count($bulkdel_ary) == 0) { $content .= "You didn't select any items to delete!"; } else { --- 58,62 ---- case pslgetText("Bulk Delete"): $bulkdel_ary = $HTTP_POST_VARS['bulkdel_ary']; ! if (count($bulkdel_ary) == 0) { $content .= "You didn't select any items to delete!"; } else { *************** *** 60,63 **** --- 64,70 ---- if ($cmt->delete($bulkdel_ary[$i], $HTTP_POST_VARS['story_id'])) { $content .= "Comment #" . $bulkdel_ary[$i] . " has been deleted\n"; + // expire cache for this story_id + jpcache_gc('string', "-story_id-" . $HTTP_POST_VARS['story_id'], "100"); + } else { $content .= "There was an ERROR <em>deleting</em> comment #" . $bulkdel_ary[$i] . "\n"; *************** *** 87,90 **** --- 94,101 ---- if ($cmt->reparentUp($HTTP_GET_VARS['comment_id'], $HTTP_GET_VARS['story_id'])) { $content .= getMessage("The comment was moved up one level."); + + // expire cache for this story_id + jpcache_gc('string', "-story_id-" . $HTTP_GET_VARS['story_id'], "100"); + } else { $content .= getError($cmt->getMessage()); *************** *** 95,98 **** --- 106,113 ---- if ($cmt->reparentTop($HTTP_GET_VARS['comment_id'], $HTTP_GET_VARS['story_id'])) { $content .= getMessage("The comment was moved to the top."); + + // expire cache for this story_id + jpcache_gc('string', "-story_id-" . $HTTP_GET_VARS['story_id'], "100"); + } else { $content .= getError($cmt->getMessage()); *************** *** 103,111 **** $content .= getTitlebar("100%","Edit Comment"); $returned = $cmt->commentEdit($HTTP_GET_VARS); ! if($returned) { $content .= $returned; ! } else { $content .= getError($cmt->getMessage()); ! } break; --- 118,126 ---- $content .= getTitlebar("100%","Edit Comment"); $returned = $cmt->commentEdit($HTTP_GET_VARS); ! if($returned) { $content .= $returned; ! } else { $content .= getError($cmt->getMessage()); ! } break; *************** *** 113,126 **** if($cmt->update($HTTP_POST_VARS)) { $content .= getMessage($cmt->getMessage()); ! } else { $content .= getError($cmt->getMessage()); ! } $returned = $cmt->commentEdit(); ! if($returned) { $content .= $returned; ! } else { $content .= getError($cmt->getMessage()); ! } ! break; default: --- 128,145 ---- if($cmt->update($HTTP_POST_VARS)) { $content .= getMessage($cmt->getMessage()); ! ! // expire cache for this story_id ! jpcache_gc('string', "-story_id-" . $HTTP_POST_VARS['story_id'], "100"); ! ! } else { $content .= getError($cmt->getMessage()); ! } $returned = $cmt->commentEdit(); ! if($returned) { $content .= $returned; ! } else { $content .= getError($cmt->getMessage()); ! } ! break; default: Index: storyAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/storyAdmin.php3,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** storyAdmin.php3 11 Nov 2002 22:38:43 -0000 1.15 --- storyAdmin.php3 22 Nov 2002 19:01:33 -0000 1.16 *************** *** 55,58 **** --- 55,61 ---- $content .= $story->newStory($HTTP_POST_VARS, "array"); } + + // expire cache for this story_id + jpcache_gc('string', "-story_id-" . $HTTP_POST_VARS['story_id'], "100"); } if ($perm->have_perm("storyList")) { |
From: Joe S. <joe...@us...> - 2002-11-22 19:01:36
|
Update of /cvsroot/phpslash/phpslash-ft In directory sc8-pr-cvs1:/tmp/cvs-serv9467/phpslash-ft Modified Files: CHANGES Log Message: experimental expire cache on update Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.617 retrieving revision 1.618 diff -C2 -d -r1.617 -r1.618 *** CHANGES 22 Nov 2002 18:43:46 -0000 1.617 --- CHANGES 22 Nov 2002 19:01:30 -0000 1.618 *************** *** 14,17 **** --- 14,21 ---- 2002-November-22 12:30AM CST Joe Stewart <joe...@us...> + [E] - comment.php3, storyAdmin.php3, commentAdmin.php3 - expire cache on + update. + + 2002-November-22 12:30AM CST Joe Stewart <joe...@us...> [E] - index.php3, about.php3, article.php3 - page_open, etc. moved to config. |
From: Joe S. <joe...@us...> - 2002-11-22 19:01:36
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory sc8-pr-cvs1:/tmp/cvs-serv9467/phpslash-ft/public_html Modified Files: comment.php3 Log Message: experimental expire cache on update Index: comment.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/comment.php3,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** comment.php3 14 Nov 2002 18:56:42 -0000 1.21 --- comment.php3 22 Nov 2002 19:01:32 -0000 1.22 *************** *** 58,61 **** --- 58,65 ---- $id = $cmt->update($ary); if ($id) { + + // expire cache for this story_id + jpcache_gc('string', "-story_id-" . $ary['story_id'], "100"); + $content .= getMessage($cmt->getMessage()); $comment_ary = $cmt->getCommentArray($id); |
From: Joe S. <joe...@us...> - 2002-11-22 18:43:50
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory sc8-pr-cvs1:/tmp/cvs-serv2600/phpslash-ft/public_html Modified Files: index.php3 article.php3 about.php3 Log Message: experimental page_open in config Index: index.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/index.php3,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -d -r1.61 -r1.62 *** index.php3 11 Nov 2002 21:22:58 -0000 1.61 --- index.php3 22 Nov 2002 18:43:47 -0000 1.62 *************** *** 7,14 **** $xsiteobject = pslgetText('Home Page'); // This Defines The META Tag Object Type - page_open(array('sess' => 'slashSess', - 'auth' => 'slashAuth', - 'perm' => 'slashPerm')); - if(!empty($HTTP_GET_VARS['login'])) { $auth->login_if($HTTP_GET_VARS['login']); --- 7,10 ---- *************** *** 23,41 **** // Start of Page - $ary = array(); - if(!empty($HTTP_GET_VARS)) { - $ary = clean($HTTP_GET_VARS); - } - - if ((empty($ary['section'])) AND (empty($ary['section_id']))){ - $section = $_PSL['site_homesection']; - if(!$section) { - $section = "Home"; - } - $ary['section'] = $section; - } else { - $pagetitle .= $ary['section']; - } - $breadcrumb = breadcrumb($ary); --- 19,22 ---- Index: article.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/article.php3,v retrieving revision 1.70 retrieving revision 1.71 diff -C2 -d -r1.70 -r1.71 *** article.php3 11 Nov 2002 21:22:58 -0000 1.70 --- article.php3 22 Nov 2002 18:43:47 -0000 1.71 *************** *** 8,13 **** $xsiteobject = pslgetText("Articles"); // Defines The META TAG Page Type - page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); - /************************************* START OF PAGE --- 8,11 ---- *************** *** 20,41 **** $sess->register("return_link"); - $ary = array(); - if(!empty($HTTP_GET_VARS)) { - $ary = clean($HTTP_GET_VARS); - } - // correction for register_globals OFF $story_id = $ary['story_id']; $submit = $ary['submit']; - - if ((empty($ary['section'])) AND (empty($ary['section_id']))){ - $section = $_PSL['site_homesection']; - if(!$section) { - $section = "Home"; - } - $ary['section'] = $section; - } else { - $pagetitle .= $ary['section']; - } $story_html = $story->getStory($story_id, "full", $ary); --- 18,24 ---- Index: about.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/about.php3,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** about.php3 11 Nov 2002 21:22:58 -0000 1.18 --- about.php3 22 Nov 2002 18:43:47 -0000 1.19 *************** *** 7,12 **** $xsiteobject = pslgetText("About Page"); // This Defines The META Tag Object Type - page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); - if(!empty($HTTP_GET_VARS['login'])) { $auth->login_if($HTTP_GET_VARS['login']); --- 7,10 ---- *************** *** 18,34 **** // Start of Page - - $ary = array(); - if(!empty($HTTP_GET_VARS)) { - $ary = clean($HTTP_GET_VARS); - } - - if ((empty($ary['section'])) AND (empty($ary['section_id']))){ - $section = $_PSL['site_homesection']; - if(!$section) { - $section = "Home"; - } - $ary['section'] = $section; - } $_PSL['metatags']['object'] = $xsiteobject; --- 16,19 ---- |
From: Joe S. <joe...@us...> - 2002-11-22 18:43:50
|
Update of /cvsroot/phpslash/phpslash-ft In directory sc8-pr-cvs1:/tmp/cvs-serv2600/phpslash-ft Modified Files: CHANGES Log Message: experimental page_open in config Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.616 retrieving revision 1.617 diff -C2 -d -r1.616 -r1.617 *** CHANGES 22 Nov 2002 18:01:12 -0000 1.616 --- CHANGES 22 Nov 2002 18:43:46 -0000 1.617 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-November-22 12:30AM CST Joe Stewart <joe...@us...> + [E] - index.php3, about.php3, article.php3 - page_open, etc. moved to + config. + 2002-November-22 11:30AM CST Joe Stewart <joe...@us...> [E] - config.php3, config-dist.php3 - experimental output cache on. |
From: Joe S. <joe...@us...> - 2002-11-22 18:01:47
|
Update of /cvsroot/phpslash/phpslash-ft In directory sc8-pr-cvs1:/tmp/cvs-serv6250/phpslash-ft Modified Files: CHANGES Log Message: experimental output cache on Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.615 retrieving revision 1.616 diff -C2 -d -r1.615 -r1.616 *** CHANGES 22 Nov 2002 17:54:28 -0000 1.615 --- CHANGES 22 Nov 2002 18:01:12 -0000 1.616 *************** *** 14,17 **** --- 14,20 ---- 2002-November-22 11:30AM CST Joe Stewart <joe...@us...> + [E] - config.php3, config-dist.php3 - experimental output cache on. + + 2002-November-22 11:30AM CST Joe Stewart <joe...@us...> [F] - config.php3, config-dist.php3 - jpcache configuration. |
From: Joe S. <joe...@us...> - 2002-11-22 18:01:19
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory sc8-pr-cvs1:/tmp/cvs-serv6250/phpslash-ft/public_html Modified Files: config.php3 config-dist.php3 Log Message: experimental output cache on Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.158 retrieving revision 1.159 diff -C2 -d -r1.158 -r1.159 *** config.php3 22 Nov 2002 17:54:29 -0000 1.158 --- config.php3 22 Nov 2002 18:01:14 -0000 1.159 *************** *** 309,312 **** --- 309,340 ---- require($_PSL['classdir'] . '/functions.inc'); + $ary = array(); + if(!empty($HTTP_GET_VARS)) { + $ary = clean($HTTP_GET_VARS); + } + + if ((empty($ary['section'])) AND (empty($ary['section_id']))){ + $section_id = $_PSL['home_section_id']; + if(!$section_id) { + $section_id = "3"; + } + $ary['section_id'] = $section_id; + } + + if ( (empty($HTTP_COOKIE_VARS['slashSess'])) AND + (empty($HTTP_COOKIE_VARS['user_info'])) AND + (empty($HTTP_COOKIE_VARS['skin'])) ) { + + $varkey = "-uid-nobody-lang-". $_PSL['language']."-skin-". $_PSL['defaultskin']; + if( !empty($HTTP_COOKIE_VARS['TZ'])) { + $varkey .= "-TZ-". $HTTP_COOKIE_VARS['TZ']; + } + foreach( $ary as $key => $value) { + $varkey .= "-". $key ."-". $value; + } + $key = str_replace("/","-", $_PSL['phpself'].$varkey); + jpcache_start('',$key); + } + /* now that the functions are in, we can define the arg_separator */ *************** *** 694,697 **** --- 722,743 ---- $_PSL['expirestory'] = 0; $_PSL['expirerelated'] = 14400; + + + page_open(array('sess' => 'slashSess', + 'auth' => 'slashAuth', + 'perm' => 'slashPerm')); + + if ( !empty($HTTP_COOKIE_VARS)) { + $varkey = "-uid-".$auth->auth['uid']."-lang-". $_PSL['language']."-skin-". $_PSL['skin']; + if( !empty($HTTP_COOKIE_VARS['TZ'])) { + $varkey .= "-TZ-". $HTTP_COOKIE_VARS['TZ']; + } + foreach( $ary as $key => $value) { + $varkey .= "-". $key ."-". $value; + } + $key = str_replace("/","-", $_PSL['phpself'].$varkey); + jpcache_start('',$key); + } + /* ============= Things to deprecate ============= */ Index: config-dist.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config-dist.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** config-dist.php3 22 Nov 2002 17:54:30 -0000 1.11 --- config-dist.php3 22 Nov 2002 18:01:16 -0000 1.12 *************** *** 149,152 **** --- 149,180 ---- require($_PSL['classdir'] . '/functions.inc'); + $ary = array(); + if(!empty($HTTP_GET_VARS)) { + $ary = clean($HTTP_GET_VARS); + } + + if ((empty($ary['section'])) AND (empty($ary['section_id']))){ + $section_id = $_PSL['home_section_id']; + if(!$section_id) { + $section_id = "3"; + } + $ary['section_id'] = $section_id; + } + + if ( (empty($HTTP_COOKIE_VARS['slashSess'])) AND + (empty($HTTP_COOKIE_VARS['user_info'])) AND + (empty($HTTP_COOKIE_VARS['skin'])) ) { + + $varkey = "-uid-nobody-lang-". $_PSL['language']."-skin-". $_PSL['defaultskin']; + if( !empty($HTTP_COOKIE_VARS['TZ'])) { + $varkey .= "-TZ-". $HTTP_COOKIE_VARS['TZ']; + } + foreach( $ary as $key => $value) { + $varkey .= "-". $key ."-". $value; + } + $key = str_replace("/","-", $_PSL['phpself'].$varkey); + jpcache_start('',$key); + } + /* now that the functions are in, we can define the arg_separator */ *************** *** 475,478 **** --- 503,522 ---- define("ALLSECTIONS", "section_id0"); + + page_open(array('sess' => 'slashSess', + 'auth' => 'slashAuth', + 'perm' => 'slashPerm')); + + if ( !empty($HTTP_COOKIE_VARS)) { + $varkey = "-uid-".$auth->auth['uid']."-lang-". $_PSL['language']."-skin-". $_PSL['skin']; + if( !empty($HTTP_COOKIE_VARS['TZ'])) { + $varkey .= "-TZ-". $HTTP_COOKIE_VARS['TZ']; + } + foreach( $ary as $key => $value) { + $varkey .= "-". $key ."-". $value; + } + $key = str_replace("/","-", $_PSL['phpself'].$varkey); + jpcache_start('',$key); + } /* ============= Things to deprecate ============= */ |
From: Joe S. <joe...@us...> - 2002-11-22 17:54:35
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory sc8-pr-cvs1:/tmp/cvs-serv3401/phpslash-ft/public_html Modified Files: config.php3 config-dist.php3 Log Message: jpcache configuration Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.157 retrieving revision 1.158 diff -C2 -d -r1.157 -r1.158 *** config.php3 14 Nov 2002 22:17:21 -0000 1.157 --- config.php3 22 Nov 2002 17:54:29 -0000 1.158 *************** *** 71,74 **** --- 71,127 ---- $_PSL['topicimagedir'] = $_PSL['basedir'] . "/images" . "/topics"; + // jpcachedir -> the full directory path to the jpcache scripts. + if(empty($_PSL['jpcachedir'])) { + $_PSL['jpcachedir'] = $_PSL['classdir'] . "/jpcache"; + } + + // jpcache configuration + + // $JPCACHE_TYPE = "file"; + // $JPCACHE_TYPE = "mysql"; + //$JPCACHE_TYPE = "dbm"; + $JPCACHE_TYPE = "phplib"; + + + // General jpcache configuration options. + + $JPCACHE_TIME = 900; // Default number of seconds to cache a page + $JPCACHE_DEBUG = 0; // Turn debugging on/off + $JPCACHE_IGNORE_DOMAIN= 1; // Ignore domain name in request(single site) + $JPCACHE_ON = 1; // Turn caching on/off + $JPCACHE_USE_GZIP = 0; // Whether or not to use GZIP + $JPCACHE_POST = 1; // Should POST's be cached + $JPCACHE_GC = 1; // Probability % of garbage collection + $JPCACHE_GZIP_LEVEL = 9; // GZIPcompressionlevel to use (1=low,9=high) + $JPCACHE_DELAY_START = 1; // Immediate or manual call to jpcache_start() + $JPCACHE_HASHSCRIPTKEY = 0; // Hash SCRIPT-KEY or not + + // File based caching setting. + + $JPCACHE_DIR = "/tmp/jpcache"; // Directory where jpcache must store + // generated files. Please use a dedicated + // directory, and make it writable + $JPCACHE_FILEPREFIX = "jpc-";// Prefix used in the filename. This enables + // us to (more accuratly) recognize jpcache- + // files. + + // DB based caching settings. + $JPCACHE_DB_HOST = $_PSL['DB_Host']; // Database Server + $JPCACHE_DB_DATABASE = $_PSL['DB_Database']; // Database-name to use + $JPCACHE_DB_USERNAME = $_PSL['DB_User']; // Username + $JPCACHE_DB_PASSWORD = $_PSL['DB_Password']; // Password + $JPCACHE_DB_TABLE = "CACHEDATA"; // Table that holds the data + $JPCACHE_OPTIMIZE = 0; // If 'OPTIMIZE TABLE' after garbage + // collection is executed. Please check + // first if this works on your mySQL! + + // Standard jpcache functions + require $_PSL['jpcachedir']. "/jpcache-main.php"; + + // Type specific implementations + require $_PSL['jpcachedir'] ."/type/$JPCACHE_TYPE.php"; + + // end of jpcache configuration + // 1.11.2) Debug options $_PSL['debug'] = false; // true for on, false for off Index: config-dist.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config-dist.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** config-dist.php3 14 Nov 2002 22:17:22 -0000 1.10 --- config-dist.php3 22 Nov 2002 17:54:30 -0000 1.11 *************** *** 76,79 **** --- 76,132 ---- } + // jpcachedir -> the full directory path to the jpcache scripts. + if(empty($_PSL['jpcachedir'])) { + $_PSL['jpcachedir'] = $_PSL['classdir'] . "/jpcache"; + } + + // jpcache configuration + + // $JPCACHE_TYPE = "file"; + // $JPCACHE_TYPE = "mysql"; + //$JPCACHE_TYPE = "dbm"; + $JPCACHE_TYPE = "phplib"; + + + // General jpcache configuration options. + + $JPCACHE_TIME = 900; // Default number of seconds to cache a page + $JPCACHE_DEBUG = 0; // Turn debugging on/off + $JPCACHE_IGNORE_DOMAIN= 1; // Ignore domain name in request(single site) + $JPCACHE_ON = 1; // Turn caching on/off + $JPCACHE_USE_GZIP = 0; // Whether or not to use GZIP + $JPCACHE_POST = 1; // Should POST's be cached + $JPCACHE_GC = 1; // Probability % of garbage collection + $JPCACHE_GZIP_LEVEL = 9; // GZIPcompressionlevel to use (1=low,9=high) + $JPCACHE_DELAY_START = 1; // Immediate or manual call to jpcache_start() + $JPCACHE_HASHSCRIPTKEY = 0; // Hash SCRIPT-KEY or not + + // File based caching setting. + + $JPCACHE_DIR = "/tmp/jpcache"; // Directory where jpcache must store + // generated files. Please use a dedicated + // directory, and make it writable + $JPCACHE_FILEPREFIX = "jpc-";// Prefix used in the filename. This enables + // us to (more accuratly) recognize jpcache- + // files. + + // DB based caching settings. + $JPCACHE_DB_HOST = $_PSL['DB_Host']; // Database Server + $JPCACHE_DB_DATABASE = $_PSL['DB_Database']; // Database-name to use + $JPCACHE_DB_USERNAME = $_PSL['DB_User']; // Username + $JPCACHE_DB_PASSWORD = $_PSL['DB_Password']; // Password + $JPCACHE_DB_TABLE = "CACHEDATA"; // Table that holds the data + $JPCACHE_OPTIMIZE = 0; // If 'OPTIMIZE TABLE' after garbage + // collection is executed. Please check + // first if this works on your mySQL! + + // Standard jpcache functions + require $_PSL['jpcachedir']. "/jpcache-main.php"; + + // Type specific implementations + require $_PSL['jpcachedir'] ."/type/$JPCACHE_TYPE.php"; + + // end of jpcache configuration + // 1.11.4) Other Variables... |
From: Joe S. <joe...@us...> - 2002-11-22 17:54:32
|
Update of /cvsroot/phpslash/phpslash-ft In directory sc8-pr-cvs1:/tmp/cvs-serv3401/phpslash-ft Modified Files: CHANGES Log Message: jpcache configuration Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.614 retrieving revision 1.615 diff -C2 -d -r1.614 -r1.615 *** CHANGES 22 Nov 2002 17:42:55 -0000 1.614 --- CHANGES 22 Nov 2002 17:54:28 -0000 1.615 *************** *** 14,17 **** --- 14,20 ---- 2002-November-22 11:30AM CST Joe Stewart <joe...@us...> + [F] - config.php3, config-dist.php3 - jpcache configuration. + + 2002-November-22 11:30AM CST Joe Stewart <joe...@us...> [S] - slash-all.sql, 65_to_7.sql - add jpcache CACHEDATA table to database. |
From: Joe S. <joe...@us...> - 2002-11-22 17:42:58
|
Update of /cvsroot/phpslash/phpslash-ft/tables/0.7 In directory sc8-pr-cvs1:/tmp/cvs-serv31236/phpslash-ft/tables/0.7 Modified Files: 65_to_7.sql slash-all.sql Log Message: jpcache CACHEDATA table in db Index: 65_to_7.sql =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/tables/0.7/65_to_7.sql,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** 65_to_7.sql 22 Nov 2002 14:24:44 -0000 1.11 --- 65_to_7.sql 22 Nov 2002 17:42:55 -0000 1.12 *************** *** 559,560 **** --- 559,575 ---- ALTER TABLE `psl_submission` DROP `time`; + + # -------------------------------------------------------- + # + # Table structure for table 'CACHEDATA' + # + + CREATE TABLE CACHEDATA ( + CACHEKEY varchar(255) NOT NULL, + CACHEEXPIRATION int(11) NOT NULL, + GZDATA blob, + DATASIZE int(11), + DATACRC int(11), + PRIMARY KEY (CACHEKEY) + ) TYPE=MyISAM; + Index: slash-all.sql =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/tables/0.7/slash-all.sql,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** slash-all.sql 21 Nov 2002 18:46:35 -0000 1.20 --- slash-all.sql 22 Nov 2002 17:42:55 -0000 1.21 *************** *** 1055,1056 **** --- 1055,1070 ---- INSERT INTO psl_variable (variable_id, variable_name, value, description, variable_group) VALUES (63,'mailinglist_subject','Slash list','The Subject for the mailing list newsletters',''); + + # -------------------------------------------------------- + # + # Table structure for table 'CACHEDATA' + # + + CREATE TABLE CACHEDATA ( + CACHEKEY varchar(255) NOT NULL, + CACHEEXPIRATION int(11) NOT NULL, + GZDATA blob, + DATASIZE int(11), + DATACRC int(11), + PRIMARY KEY (CACHEKEY) + ) TYPE=MyISAM; |
From: Joe S. <joe...@us...> - 2002-11-22 17:42:58
|
Update of /cvsroot/phpslash/phpslash-ft In directory sc8-pr-cvs1:/tmp/cvs-serv31236/phpslash-ft Modified Files: CHANGES Log Message: jpcache CACHEDATA table in db Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.613 retrieving revision 1.614 diff -C2 -d -r1.613 -r1.614 *** CHANGES 22 Nov 2002 17:22:07 -0000 1.613 --- CHANGES 22 Nov 2002 17:42:55 -0000 1.614 *************** *** 13,18 **** 9 - Removal of something (kill -9 :) ! 2002-November-22 10:30AM CST Joe Stewart <joe...@us...> ! [F] 2002-November-22 11:30AM CST Joe Stewart <joe...@us...> --- 13,18 ---- 9 - Removal of something (kill -9 :) ! 2002-November-22 11:30AM CST Joe Stewart <joe...@us...> ! [S] - slash-all.sql, 65_to_7.sql - add jpcache CACHEDATA table to database. 2002-November-22 11:30AM CST Joe Stewart <joe...@us...> |
From: Joe S. <joe...@us...> - 2002-11-22 17:30:02
|
Update of /cvsroot/phpslash/phpslash-ft/class/jpcache In directory sc8-pr-cvs1:/tmp/cvs-serv26905/phpslash-ft/class/jpcache Modified Files: jpcache.php Log Message: control options for jpcache Index: jpcache.php =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/jpcache/jpcache.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** jpcache.php 22 Nov 2002 17:28:58 -0000 1.3 --- jpcache.php 22 Nov 2002 17:30:00 -0000 1.4 *************** *** 37,41 **** // Set the includedir to the jpcache-directory ! $includedir = "/path/to/jpcache"; // Configuration file --- 37,41 ---- // Set the includedir to the jpcache-directory ! $includedir = "/path/to/jpcache-files"; // Configuration file |
From: Joe S. <joe...@us...> - 2002-11-22 17:29:01
|
Update of /cvsroot/phpslash/phpslash-ft/class/jpcache In directory sc8-pr-cvs1:/tmp/cvs-serv26515/phpslash-ft/class/jpcache Modified Files: jpcache.php Log Message: control options for jpcache Index: jpcache.php =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/jpcache/jpcache.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** jpcache.php 22 Nov 2002 17:22:08 -0000 1.2 --- jpcache.php 22 Nov 2002 17:28:58 -0000 1.3 *************** *** 37,41 **** // Set the includedir to the jpcache-directory ! $includedir = "/var/www/jpcache"; // Configuration file --- 37,41 ---- // Set the includedir to the jpcache-directory ! $includedir = "/path/to/jpcache"; // Configuration file |