mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-16 03:30:49 +01:00
9933a9c3fa
checked for register globals bugs moved all unneccesary global vars to class vars added basedir test with feedback to alert for wrong configuration added fakedir test with feedback to alert for wrong configuration improved homedir creation withg feedback improved standard messages
48 lines
757 B
PHP
Executable File
48 lines
757 B
PHP
Executable File
<?php
|
|
|
|
class sofilemanager
|
|
{
|
|
var $db;
|
|
|
|
function sofilemanager()
|
|
{
|
|
$this->db = $GLOBALS['phpgw']->db;
|
|
}
|
|
|
|
/* Any initializations that need to be done */
|
|
function db_init ()
|
|
{
|
|
$this->db->Auto_Free = 0;
|
|
}
|
|
|
|
/* General SQL query */
|
|
function db_query ($query)
|
|
{
|
|
|
|
return $this->db->query ($query);
|
|
}
|
|
|
|
/* Fetch next array for $query_id */
|
|
function db_fetch_array ($query_id)
|
|
{
|
|
|
|
// $phpgw->db->Query_ID = $query_id;
|
|
$this->db->next_record ();
|
|
return $this->db->Record;
|
|
}
|
|
|
|
/*
|
|
General wrapper for all other db calls
|
|
Calls in here are simply returned, so not all will work
|
|
*/
|
|
function db_call ($function, $query_id)
|
|
{
|
|
|
|
// $phpgw->db->Query_ID = $query_id;
|
|
return $this->db->$function ();
|
|
}
|
|
|
|
|
|
}
|
|
?>
|