tbrehm
2012-01-27 b0711a41c9cd3628507c424aba889d94b0c2cef2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
require_once('../../lib/config.inc.php');
require_once('../../lib/app.inc.php');
 
//* Check permissions for module
$app->auth->check_module_permissions('mailuser');
 
$app->uses('tpl');
 
$app->tpl->newTemplate('form.tpl.htm');
$app->tpl->setInclude('content_tpl', 'templates/index.htm');
$msg = '';
$error = '';
 
//* load language file
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_index.lng';
include($lng_file);
$app->tpl->setVar($wb);
 
$sql = "SELECT * FROM mail_user WHERE mailuser_id = ".$_SESSION['s']['user']['mailuser_id'];
$rec = $app->db->queryOneRecord($sql);
 
if($rec['quota'] == 0) {
    $rec['quota'] = $wb['unlimited_txt'];
} else {
    $rec['quota'] = ($rec['quota'] / 1024 / 1024).' '.$wb['mb_txt'];
}
 
if($rec['cc'] == '') $rec['cc'] = $wb['none_txt'];
 
$app->tpl->setVar($rec);
 
$app->tpl->setVar('msg',$msg);
$app->tpl->setVar('error',$error);
 
 
 
 
$app->tpl_defaults();
$app->tpl->pparse();
 
 
?>