[pLog-svn] r2067 - plog/branches/plog-1.0.1

francesc at devel.plogworld.net francesc at devel.plogworld.net
Tue May 24 10:29:51 GMT 2005


Author: francesc
Date: 2005-05-24 10:29:50 +0000 (Tue, 24 May 2005)
New Revision: 2067

Modified:
   plog/branches/plog-1.0.1/admin.php
   plog/branches/plog-1.0.1/index.php
Log:
Quick'n'dirty fix to Smarty memory problems, it still has to be fixed properly but at least is better than nothing.

Modified: plog/branches/plog-1.0.1/admin.php
===================================================================
--- plog/branches/plog-1.0.1/admin.php	2005-05-23 20:32:24 UTC (rev 2066)
+++ plog/branches/plog-1.0.1/admin.php	2005-05-24 10:29:50 UTC (rev 2067)
@@ -1,10 +1,12 @@
 <?php
+    ini_set('memory_limit', "24M");
+
     if (!defined( "PLOG_CLASS_PATH" )) {
         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
     }
 
     include_once( PLOG_CLASS_PATH."class/controller/admincontroller.class.php" );
-	include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
+    include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
     include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
@@ -21,8 +23,8 @@
         die();
     }
 
-	// initialize the session
-	SessionManager::init();
+    // initialize the session
+    SessionManager::init();
 
     $controller = new AdminController();
 

Modified: plog/branches/plog-1.0.1/index.php
===================================================================
--- plog/branches/plog-1.0.1/index.php	2005-05-23 20:32:24 UTC (rev 2066)
+++ plog/branches/plog-1.0.1/index.php	2005-05-24 10:29:50 UTC (rev 2067)
@@ -2,12 +2,14 @@
 
 //xdebug_start_profiling();
 
+    ini_set('memory_limit', "24M");
+
     if (!defined( "PLOG_CLASS_PATH" )) {
         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
     }
 
     include_once( PLOG_CLASS_PATH."class/controller/blogcontroller.class.php" );
-	include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
+    include_once( PLOG_CLASS_PATH."class/net/http/session/sessionmanager.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/userinfo.class.php" );
     include_once( PLOG_CLASS_PATH."class/dao/bloginfo.class.php" );
     include_once( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
@@ -25,10 +27,10 @@
                Please remove it first to continue.");
         die();
     }
-	
-	// initialize the session
-	SessionManager::init();
 
+    // initialize the session
+    SessionManager::init();
+
     $controller = new BlogController();
 
     // load the plugins, this needs to be done *before* we call the




More information about the pLog-svn mailing list