[Openupload-svn-update] SF.net SVN: openupload:[131] trunk/lib
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-11-07 19:09:05
|
Revision: 131
http://openupload.svn.sourceforge.net/openupload/?rev=131&view=rev
Author: tsdogs
Date: 2008-11-07 19:08:56 +0000 (Fri, 07 Nov 2008)
Log Message:
-----------
Add database connection close
Modified Paths:
--------------
trunk/lib/classes.inc.php
trunk/lib/general.inc.php
trunk/lib/main.inc.php
Modified: trunk/lib/classes.inc.php
===================================================================
--- trunk/lib/classes.inc.php 2008-11-07 19:07:57 UTC (rev 130)
+++ trunk/lib/classes.inc.php 2008-11-07 19:08:56 UTC (rev 131)
@@ -43,6 +43,10 @@
}
+ function free() {
+
+ }
+
function newId($tbl,$field = 'id',$keys = array ()) {
app()->error('Please reimplement: '.$this->name.' newId');
return 0;
Modified: trunk/lib/general.inc.php
===================================================================
--- trunk/lib/general.inc.php 2008-11-07 19:07:57 UTC (rev 130)
+++ trunk/lib/general.inc.php 2008-11-07 19:08:56 UTC (rev 131)
@@ -45,6 +45,7 @@
} else {
header('location: '.$url);
}
+ app()->db->close();
exit(0);
}
Modified: trunk/lib/main.inc.php
===================================================================
--- trunk/lib/main.inc.php 2008-11-07 19:07:57 UTC (rev 130)
+++ trunk/lib/main.inc.php 2008-11-07 19:08:56 UTC (rev 131)
@@ -373,6 +373,7 @@
$this->page['title']= tr('IP Banned');
$this->tpl->assign('page',app()->page);
$this->display($this->mainPage);
+ $this->db->free();
exit;
}
/* depending on the acl some actions need authentication others don't */
@@ -398,6 +399,7 @@
$this->page['content']=tr('THERE HAS BEEN A PERMISSION ERROR. PLEASE TRY ONE OF THE ALLOWED OPTIONS!');
$this->tpl->assign('page',$this->page);
$this->display($this->mainPage);
+ $this->db->free();
exit(0);
} else {
/* save the requested url */
@@ -435,6 +437,7 @@
$this->page['content']=$this->fetch('modules/'.$m->name.'/'.$fun);
$this->tpl->assign('page',$this->page);
$this->display($this->mainPage);
+ $this->db->free();
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|