patched up php3 compatibility (again)

This commit is contained in:
seek3r 2001-07-06 06:46:10 +00:00
parent 982e6fe653
commit 2d97b29cfa
4 changed files with 6 additions and 5 deletions

View File

@ -154,7 +154,7 @@
'account_lastname' => $this->db->f('account_lastname'), 'account_lastname' => $this->db->f('account_lastname'),
'account_status' => $this->db->f('account_status'), 'account_status' => $this->db->f('account_status'),
'account_expires' => $this->db->f('account_expires'), 'account_expires' => $this->db->f('account_expires'),
'account_file_space' => $this->db->f('account_file_space'), 'account_file_space' => $this->db->f('account_file_space')
); );
} }
return $accounts; return $accounts;
@ -250,7 +250,7 @@
'account_lastname' => '', 'account_lastname' => '',
'account_status' => $account_status, 'account_status' => $account_status,
'account_expires' => mktime(2,0,0,date('n',$expiredate), intval(date('d',$expiredate)), date('Y',$expiredate)), 'account_expires' => mktime(2,0,0,date('n',$expiredate), intval(date('d',$expiredate)), date('Y',$expiredate)),
'account_file_space' => $phpgw_info['server']['vfs_default_account_size_number'] . "-" . $phpgw_info['server']['vfs_default_account_size_type'], 'account_file_space' => $phpgw_info['server']['vfs_default_account_size_number'] . "-" . $phpgw_info['server']['vfs_default_account_size_type']
); );
$this->create($acct_info); $this->create($acct_info);
$accountid = $this->name2id($accountname); $accountid = $this->name2id($accountname);

View File

@ -473,7 +473,7 @@
function show_hits($total_records = '',$start) function show_hits($total_records = '',$start)
{ {
global $phpgw_info, $start; global $phpgw_info;
$limit = $this->maxmatchs; $limit = $this->maxmatchs;

View File

@ -155,7 +155,8 @@
global $debugme; global $debugme;
if (isset($debugme) && $debugme == 'on') { echo 'debug: '.$text.'<br>'; } if (isset($debugme) && $debugme == 'on') { echo 'debug: '.$text.'<br>'; }
} }
print_debug('core functions are done');
// print_debug('core functions are done');
/****************************************************************************\ /****************************************************************************\
* Quick verification of sane environment * * Quick verification of sane environment *
\****************************************************************************/ \****************************************************************************/

View File

@ -64,7 +64,7 @@
'account_status' => array('type' => 'char', 'precision' => 1, 'nullable' => false, 'default' => 'A'), 'account_status' => array('type' => 'char', 'precision' => 1, 'nullable' => false, 'default' => 'A'),
'account_expires' => array('type' => 'int', 'precision' => 4), 'account_expires' => array('type' => 'int', 'precision' => 4),
'account_type' => array('type' => 'char', 'precision' => 1, 'nullable' => true), 'account_type' => array('type' => 'char', 'precision' => 1, 'nullable' => true),
'account_file_space' => array('type' => 'varchar', 'precision' => 25), 'account_file_space' => array('type' => 'varchar', 'precision' => 25)
), ),
'pk' => array('account_id'), 'pk' => array('account_id'),
'fk' => array(), 'fk' => array(),