Skip to content

Commit 55da905

Browse files
author
bpssoft
committed
- Add comments to system.inc.php (PEAR) and cleanup wrong tabs
- Add some functionallity to MySQL class
1 parent 3eeed9b commit 55da905

File tree

3 files changed

+1089
-968
lines changed

3 files changed

+1089
-968
lines changed

TODO.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,3 @@ General tasks
7373

7474
- Add, extend or modify comments in PEAR syntax so that they can be read with phpdocumentor.
7575

76-
- Add a function to prevent brute force password attacks to the login script. E.g. by
77-
logging all login attempts and allowing only 5 logins every 15 minutes.
78-
Task assigned to: BPSsoft

interface/lib/classes/db_mysql.inc.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,21 @@ public function update($tablename, $form, $bedingung, $debug = 0)
217217

218218
public function closeConn()
219219
{
220+
if($this->linkId)
221+
{
222+
mysql_close($this->linkId);
223+
return true;
224+
} else { return false; }
220225
}
221226

222-
public function freeResult()
227+
public function freeResult($query)
223228
{
229+
if(mysql_free_result($query))
230+
{
231+
return true;
232+
} else {
233+
return false;
234+
}
224235
}
225236

226237
public function delete()

0 commit comments

Comments
 (0)