mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fix path to cache + some debug info
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
* Cache Administration Area
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_admin/cache.php,v $
|
||||
* $Revision: 1.10 $
|
||||
* $Date: 2009-08-28 16:10:54 $
|
||||
* $Author: marj_nl_fr $
|
||||
* $Revision: 1.11 $
|
||||
* $Date: 2009-11-07 02:28:54 $
|
||||
* $Author: e107coders $
|
||||
*
|
||||
*/
|
||||
require_once("../class2.php");
|
||||
@@ -84,8 +84,8 @@ if (isset($_POST['empty_cache']))
|
||||
|
||||
|
||||
|
||||
$syscache_files = glob($e107->file_path.$FILES_DIRECTORY."cache/S_*.*");
|
||||
$cache_files = glob($e107->file_path.$FILES_DIRECTORY."cache/C_*.*");
|
||||
$syscache_files = glob($e107->file_path.$CACHE_DIRECTORY."S_*.*");
|
||||
$cache_files = glob($e107->file_path.$CACHE_DIRECTORY."C_*.*");
|
||||
|
||||
$syscache_files_num = count($syscache_files);
|
||||
$cache_files_num = count($cache_files);
|
||||
|
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_files/utilities/resetcore.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2009-07-19 11:44:28 $
|
||||
| $Author: marj_nl_fr $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2009-11-07 02:28:59 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
@@ -319,7 +319,8 @@ function e_verify() {
|
||||
}
|
||||
|
||||
function clear_cache() {
|
||||
$dir = "../cache/";
|
||||
// $dir = "../cache/";
|
||||
$dir = e_CACHE;
|
||||
$pattern = "*.cache.php";
|
||||
$deleted = false;
|
||||
$pattern = str_replace(array("\*", "\?"), array(".*", "."), preg_quote($pattern));
|
||||
|
@@ -3,7 +3,7 @@
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| <20>Steve Dunstan 2001-2002
|
||||
| <20>Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
@@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/avatar_handler.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2008-12-10 16:37:17 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2009-11-07 02:28:54 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
if (!defined('e107_INIT'))
|
||||
@@ -26,7 +26,7 @@ function avatar($avatar)
|
||||
global $tp;
|
||||
if (stristr($avatar, '-upload-') !== false)
|
||||
{
|
||||
return e_FILE.'public/avatars/'.str_replace('-upload-', '', $avatar);
|
||||
return e_UPLOAD.'avatars/'.str_replace('-upload-', '', $avatar);
|
||||
}
|
||||
elseif (stristr($avatar, 'Binary') !== false)
|
||||
{
|
||||
|
@@ -9,9 +9,9 @@
|
||||
* e107 Main
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/online_class.php,v $
|
||||
* $Revision: 1.5 $
|
||||
* $Date: 2009-09-21 21:43:44 $
|
||||
* $Author: e107steved $
|
||||
* $Revision: 1.6 $
|
||||
* $Date: 2009-11-07 02:28:54 $
|
||||
* $Author: e107coders $
|
||||
*/
|
||||
|
||||
class e_online
|
||||
@@ -35,6 +35,7 @@ class e_online
|
||||
}
|
||||
}
|
||||
$online_warncount = $online_bancount * 0.9; // Set warning threshold at 90% of ban threshold
|
||||
//TODO Add support for all queries.
|
||||
$page = (strpos(e_SELF, "forum_") !== FALSE) ? e_SELF.".".e_QUERY : e_SELF;
|
||||
$page = (strpos(e_SELF, "comment") !== FALSE) ? e_SELF.".".e_QUERY : $page;
|
||||
$page = (strpos(e_SELF, "content") !== FALSE) ? e_SELF.".".e_QUERY : $page;
|
||||
|
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/plugin_class.php,v $
|
||||
| $Revision: 1.112 $
|
||||
| $Date: 2009-11-05 09:15:12 $
|
||||
| $Revision: 1.113 $
|
||||
| $Date: 2009-11-07 02:28:54 $
|
||||
| $Author: e107coders $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -416,6 +416,10 @@ class e107plugin
|
||||
|
||||
function manage_extended_field($action, $field_name, $field_type, $field_default='', $field_source='')
|
||||
{
|
||||
$mes = e107::getMessage();
|
||||
|
||||
$mes->add("Extended Field: ".$action.": ".$field_name." : ".$field_type, E_MESSAGE_DEBUG);
|
||||
|
||||
if(!isset($this->module['ue']))
|
||||
{
|
||||
include_once(e_HANDLER.'user_extended_class.php');
|
||||
@@ -440,6 +444,9 @@ class e107plugin
|
||||
global $e107;
|
||||
$tp = e107::getParser();
|
||||
$sql = e107::getDb();
|
||||
$mes = e107::getMessage();
|
||||
|
||||
$mes->add("Userclass: ".$action.": ".$class_name." : ".$class_description, E_MESSAGE_DEBUG);
|
||||
|
||||
if (!$e107->user_class->isAdmin)
|
||||
{
|
||||
|
@@ -9,8 +9,8 @@
|
||||
* Simple XML Parser
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/xml_class.php,v $
|
||||
* $Revision: 1.33 $
|
||||
* $Date: 2009-10-24 08:10:46 $
|
||||
* $Revision: 1.34 $
|
||||
* $Date: 2009-11-07 02:28:54 $
|
||||
* $Author: e107coders $
|
||||
*/
|
||||
|
||||
@@ -843,6 +843,7 @@ class xmlClass
|
||||
if($debug)
|
||||
{
|
||||
// $message = print_r($xmlArray);
|
||||
// echo "<pre>".print_r($xmlArray,TRUE)."</pre>";
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -860,7 +861,7 @@ class xmlClass
|
||||
}
|
||||
else
|
||||
{
|
||||
e107::getConfig($type)->addPref($pArray);
|
||||
e107::getConfig($type)->addPref($pArray); // FIXME addPref() doesn't behave the same way as setPref() with arrays.
|
||||
}
|
||||
|
||||
if($debug == FALSE)
|
||||
|
Reference in New Issue
Block a user