Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 77651 | Differences between
and this patch

Collapse All | Expand All

(-)gui/include/vhcs-lib.php (-2 / +2 lines)
Lines 19-26 Link Here
19
19
20
session_start();
20
session_start();
21
21
22
error_reporting(0); 
22
//error_reporting(0); 
23
//error_reporting(E_ALL); // setting for development edition - see all error messages
23
error_reporting(E_ALL); // setting for development edition - see all error messages
24
24
25
$include_path = realpath(dirname(__FILE__));
25
$include_path = realpath(dirname(__FILE__));
26
26
(-)gui/include/reseller-functions.php (-1 / +1 lines)
Lines 475-481 Link Here
475
		$sql_db_current = records_count('sqld_id', 'sql_database', 'domain_id', $user_id);
475
		$sql_db_current = records_count('sqld_id', 'sql_database', 'domain_id', $user_id);
476
		$sql_db_max = $data['domain_sqld_limit'];
476
		$sql_db_max = $data['domain_sqld_limit'];
477
477
478
		$sql_user_current = get_domain_running_sqlu_acc_cnt(&$sql, $user_id);
478
		$sql_user_current = get_domain_running_sqlu_acc_cnt($sql, $user_id);
479
479
480
		$sql_user_max = $data['domain_sqlu_limit'];
480
		$sql_user_max = $data['domain_sqlu_limit'];
481
481
(-)gui/admin/reseller_statistics.php (-2 / +2 lines)
Lines 354-360 Link Here
354
354
355
gen_admin_menu($tpl);
355
gen_admin_menu($tpl);
356
356
357
generate_page ( &$tpl );
357
generate_page ($tpl);
358
358
359
$tpl -> assign(
359
$tpl -> assign(
360
                array(
360
                array(
Lines 384-387 Link Here
384
if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug();
384
if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug();
385
385
386
unset_messages();
386
unset_messages();
387
?>
387
?>
(-)gui/admin/circular.php (-3 / +3 lines)
Lines 202-208 Link Here
202
202
203
        if (check_user_data($tpl)) {
203
        if (check_user_data($tpl)) {
204
204
205
            send_reseller_message( &$sql);
205
            send_reseller_message($sql);
206
			
206
			
207
			unset($_POST['uaction']);
207
			unset($_POST['uaction']);
208
			
208
			
Lines 296-302 Link Here
296
        )
296
        )
297
    );
297
    );
298
298
299
send_circular(&$tpl, &$sql);
299
send_circular($tpl, $sql);
300
300
301
gen_page_data ($tpl, $sql);
301
gen_page_data ($tpl, $sql);
302
302
Lines 309-312 Link Here
309
if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug();
309
if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug();
310
310
311
unset_messages();
311
unset_messages();
312
?>
312
?>
(-)gui/admin/edit_reseller.php (-1 / +1 lines)
Lines 829-835 Link Here
829
    $max_traff_amnt, $current_traff_amnt,
829
    $max_traff_amnt, $current_traff_amnt,
830
    $max_disk_amnt, $current_disk_amnt,
830
    $max_disk_amnt, $current_disk_amnt,
831
    $customer_id, $rip_lst
831
    $customer_id, $rip_lst
832
) = get_reseller_prop(&$sql);
832
) = get_reseller_prop($sql);
833
833
834
$reseller_ips = get_servers_IPs($tpl, $sql, $rip_lst);
834
$reseller_ips = get_servers_IPs($tpl, $sql, $rip_lst);
835
835
(-)gui/tools/webmail/addressbook.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 167-170 Link Here
167
167
168
$smarty->display("$selected_theme/$templatename");
168
$smarty->display("$selected_theme/$templatename");
169
169
170
?>
170
?>
(-)gui/tools/webmail/apply_filters.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
2
3
if($folder == $sess["sysmap"]["inbox"] && $allow_filters) {
3
if($folder == $sess["sysmap"]["inbox"] && $allow_filters) {
4
4
Lines 85-88 Link Here
85
	}
85
	}
86
	reset($headers);
86
	reset($headers);
87
}
87
}
88
?>
88
?>
(-)gui/tools/webmail/badlogin.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 35-38 Link Here
35
$smarty->display("$selected_theme/bad-login.htm");
35
$smarty->display("$selected_theme/bad-login.htm");
36
36
37
37
38
?>
38
?>
(-)gui/tools/webmail/block_address.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 78-81 Link Here
78
78
79
	$smarty->display("$selected_theme/block-address.htm");
79
	$smarty->display("$selected_theme/block-address.htm");
80
}
80
}
81
?>
81
?>
(-)gui/tools/webmail/catch.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 85-88 Link Here
85
	}
85
	}
86
	$smarty->display("$selected_theme/catch-address.htm");
86
	$smarty->display("$selected_theme/catch-address.htm");
87
}
87
}
88
?>
88
?>
(-)gui/tools/webmail/database/_sessions/index.php (-2 / +2 lines)
Lines 1-3 Link Here
1
<?
1
<?php
2
2
3
?>
3
?>
(-)gui/tools/webmail/database/index.php (-2 / +2 lines)
Lines 1-3 Link Here
1
<?
1
<?php
2
Header("Location: ../");
2
Header("Location: ../");
3
?>
3
?>
(-)gui/tools/webmail/download.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 46-49 Link Here
46
Header("Content-Disposition: $disposition; filename=\"".$attach["name"]."\"\r\n");
46
Header("Content-Disposition: $disposition; filename=\"".$attach["name"]."\"\r\n");
47
47
48
echo($stream);
48
echo($stream);
49
?>
49
?>
(-)gui/tools/webmail/folder_list.php (-18 / +18 lines)
Lines 1-36 Link Here
1
<?
1
<?php
2
$folders = $sess["folders"];
2
$folders = $sess['folders'];
3
$scounter = 0;
3
$scounter = 0;
4
$pcounter = 0;
4
$pcounter = 0;
5
foreach($folders as $entry) {
5
foreach($folders as $entry) {
6
	$entry = $entry["name"];
6
	$entry = $entry['name'];
7
	$boxname = $entry;
7
	$boxname = $entry;
8
	if(in_array($entry, $sess["sysfolders"])) {
8
	if(in_array($entry, $sess['sysfolders'])) {
9
		switch(strtolower($entry)) {
9
		switch(strtolower($entry)) {
10
		case strtolower($sess["sysmap"]["inbox"]):
10
		case strtolower($sess['sysmap']['inbox']):
11
			$boxname = $inbox_extended;
11
			$boxname = $inbox_extended;
12
			break;
12
			break;
13
		case strtolower($sess["sysmap"]["sent"]):
13
		case strtolower($sess['sysmap']['sent']):
14
			$boxname = $sent_extended;
14
			$boxname = $sent_extended;
15
			break;
15
			break;
16
		case strtolower($sess["sysmap"]["trash"]):
16
		case strtolower($sess['sysmap']['trash']):
17
			$boxname = $trash_extended;
17
			$boxname = $trash_extended;
18
			break;
18
			break;
19
		}
19
		}
20
		$system[$scounter]["systemname"]    = $entry;
20
		$system[$scounter]['systemname']    = $entry;
21
		$system[$scounter]["name"]      	= $boxname;
21
		$system[$scounter]['name']      	= $boxname;
22
		$system[$scounter]["link"] 			= "process.php?folder=".$entry."&sid=$sid&tid=$tid&lid=$lid";
22
		$system[$scounter]['link'] 			= "process.php?folder=".$entry."&sid=$sid&tid=$tid&lid=$lid";
23
		$scounter++;
23
		$scounter++;
24
	} else {
24
	} else {
25
		$personal[$pcounter]["systemname"]  = $entry;
25
		$personal[$pcounter]['systemname']  = $entry;
26
		$personal[$pcounter]["name"]    	= $boxname;
26
		$personal[$pcounter]['name']    	= $boxname;
27
		$personal[$pcounter]["link"] 		= "process.php?folder=$entry&sid=$sid&tid=$tid&lid=$lid";
27
		$personal[$pcounter]['link'] 		= "process.php?folder=$entry&sid=$sid&tid=$tid&lid=$lid";
28
		$pcounter++;
28
		$pcounter++;
29
	}
29
	}
30
}
30
}
31
array_qsort2 ($system,"name");
31
array_qsort2 ($system,'name');
32
array_qsort2 ($personal,"name");
32
array_qsort2 ($personal,'name');
33
33
34
$smarty->assign("umSystemFolders",$system);
34
$smarty->assign('umSystemFolders',$system);
35
$smarty->assign("umPersonalFolders",$personal);
35
$smarty->assign('umPersonalFolders',$personal);
36
?>
36
?>
(-)gui/tools/webmail/folders.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
(-)gui/tools/webmail/get_message_list.php (-8 / +8 lines)
Lines 1-15 Link Here
1
<?
1
<?php
2
	$sess["last-update"] = time();
2
	$sess['last-update'] = time();
3
	if($quota_limit) {
3
	if($quota_limit) {
4
4
5
		for($n=0;$n<count($boxes);$n++) {
5
		for($n=0;$n<count($boxes);$n++) {
6
			$entry = $boxes[$n]["name"];
6
			$entry = $boxes[$n]['name'];
7
			if(!array_key_exists(base64_encode($entry), $sess["headers"])) {
7
			if(!array_key_exists(base64_encode($entry), $sess['headers'])) {
8
				$sess["headers"][base64_encode($entry)] = $UM->mail_list_msgs($entry);
8
				$sess['headers'][base64_encode($entry)] = $UM->mail_list_msgs($entry);
9
			}
9
			}
10
		}
10
		}
11
	} else {
11
	} else {
12
		$sess["headers"][$folder_key] = $UM->mail_list_msgs($folder);
12
		$sess['headers'][$folder_key] = $UM->mail_list_msgs($folder);
13
	}
13
	}
14
	$headers = $sess["headers"][$folder_key];
14
	$headers = $sess['headers'][$folder_key];
15
?>
15
?>
(-)gui/tools/webmail/headers.php (-7 / +7 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 8-18 Link Here
8
Fell free to contact, send donations or anything to me :-)
8
Fell free to contact, send donations or anything to me :-)
9
S�o Paulo - Brasil
9
S�o Paulo - Brasil
10
*************************************************************************/
10
*************************************************************************/
11
require("./inc/inc.php");
11
require_once './inc/inc.php';
12
if(!isset($folder) || !isset($ix)) die("Expected parameters");
12
if(!isset($folder) || !isset($ix)) die('Expected parameters');
13
$mail_info = $sess["headers"][base64_encode($folder)][$ix];
13
$mail_info = $sess['headers'][base64_encode($folder)][$ix];
14
$smarty->assign("umPageTitle",$mail_info["subject"]);
14
$smarty->assign('umPageTitle',$mail_info['subject']);
15
$smarty->assign("umHeaders",preg_replace("/\t/","&nbsp;&nbsp;&nbsp;&nbsp;",nl2br(htmlspecialchars($mail_info["header"]))));
15
$smarty->assign('umHeaders',preg_replace("/\t/","&nbsp;&nbsp;&nbsp;&nbsp;",nl2br(htmlspecialchars($mail_info['header']))));
16
$smarty->display("$selected_theme/headers-window.htm");
16
$smarty->display($selected_theme.'/headers-window.htm');
17
17
18
?>
18
?>
(-)gui/tools/webmail/inc/class.uebimiau.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 939-942 Link Here
939
	}
939
	}
940
}
940
}
941
require("./inc/class.uebimiau_mail.php");
941
require("./inc/class.uebimiau_mail.php");
942
?>
942
?>
(-)gui/tools/webmail/inc/class.uebimiau_mail.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
class UebiMiau extends UebiMiau_core {
2
class UebiMiau extends UebiMiau_core {
3
3
4
	var $_current_folder 	= "";
4
	var $_current_folder 	= "";
Lines 960-963 Link Here
960
960
961
961
962
}
962
}
963
?>
963
?>
(-)gui/tools/webmail/inc/config.languages.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
$allow_user_change_theme			= yes;
2
$allow_user_change_theme			= yes;
3
$default_theme						= 'modern_blue';
3
$default_theme						= 'modern_blue';
4
$allow_user_change_language			= yes; 
4
$allow_user_change_language			= yes; 
(-)gui/tools/webmail/inc/config.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
(-)gui/tools/webmail/inc/config.security.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
########################################################################
2
########################################################################
3
# Enable visualization of HTML messages
3
# Enable visualization of HTML messages
4
# *This option afect only incoming messages, the  HTML editor
4
# *This option afect only incoming messages, the  HTML editor
(-)gui/tools/webmail/inc/lib.export.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
2
3
/************************************************************************
3
/************************************************************************
4
UebiMiau is a GPL'ed software developed by 
4
UebiMiau is a GPL'ed software developed by 
Lines 89-92 Link Here
89
89
90
90
91
91
92
?>
92
?>
(-)gui/tools/webmail/inc/lib.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 333-336 Link Here
333
333
334
334
335
335
336
?>
336
?>
(-)gui/tools/webmail/logout.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
2
3
/************************************************************************
3
/************************************************************************
4
UebiMiau is a GPL'ed software developed by 
4
UebiMiau is a GPL'ed software developed by 
Lines 69-72 Link Here
69
}	
69
}	
70
70
71
redirect("./index.php");
71
redirect("./index.php");
72
?> 
72
?> 
(-)gui/tools/webmail/messages.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
(-)gui/tools/webmail/newmsg.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
2
3
/************************************************************************
3
/************************************************************************
4
UebiMiau is a GPL'ed software developed by 
4
UebiMiau is a GPL'ed software developed by 
(-)gui/tools/webmail/preferences.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 122-125 Link Here
122
122
123
$smarty->display("$selected_theme/preferences.htm");
123
$smarty->display("$selected_theme/preferences.htm");
124
124
125
?>
125
?>
(-)gui/tools/webmail/printmsg.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 103-106 Link Here
103
103
104
$smarty->display("$selected_theme/print-message.htm");
104
$smarty->display("$selected_theme/print-message.htm");
105
105
106
?>
106
?>
(-)gui/tools/webmail/process.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
(-)gui/tools/webmail/quick_address.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 29-32 Link Here
29
$smarty->assign("umContacts",$listbox);
29
$smarty->assign("umContacts",$listbox);
30
$smarty->display("$selected_theme/quick_address.htm");
30
$smarty->display("$selected_theme/quick_address.htm");
31
31
32
?>
32
?>
(-)gui/tools/webmail/readmsg.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
(-)gui/tools/webmail/redir.php (-2 / +2 lines)
Lines 1-5 Link Here
1
<html>
1
<html>
2
<?
2
<?php
3
extract($_SERVER);
3
extract($_SERVER);
4
?>
4
?>
5
<head>
5
<head>
Lines 10-13 Link Here
10
<a href="<?=$QUERY_STRING?>"><?=$QUERY_STRING?></a>
10
<a href="<?=$QUERY_STRING?>"><?=$QUERY_STRING?></a>
11
</blockquote>
11
</blockquote>
12
12
13
</html>
13
</html>
(-)gui/tools/webmail/search.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
(-)gui/tools/webmail/show_body.php (-4 / +4 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 9-17 Link Here
9
S�o Paulo - Brasil
9
S�o Paulo - Brasil
10
*************************************************************************/
10
*************************************************************************/
11
11
12
require("./inc/inc.php");
12
require_once './inc/inc.php';
13
if(!isset($folder) || !isset($ix)) die("Expected parameters");
13
if(!isset($folder) || !isset($ix)) die('Expected parameters');
14
echo($nocache);
14
echo($nocache);
15
$body = $sess["currentbody"];
15
$body = $sess['currentbod'];
16
echo($body);
16
echo($body);
17
?>
17
?>
(-)gui/tools/webmail/upload.php (-1 / +1 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
(-)gui/tools/webmail/smarty/plugins/function.um_welcome_message.php (-2 / +2 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/*======================================================================*\
2
/*======================================================================*\
3
    Function: smarty_func_um_welcome_message
3
    Function: smarty_func_um_welcome_message
4
    Purpose:  translate system boxes into different languages
4
    Purpose:  translate system boxes into different languages
Lines 57-60 Link Here
57
    $smarty_obj->assign($var, $wlcmessage);
57
    $smarty_obj->assign($var, $wlcmessage);
58
    return;
58
    return;
59
}
59
}
60
?>
60
?>
(-)gui/tools/webmail/inc/inc.php (-4 / +4 lines)
Lines 1-4 Link Here
1
<?
1
<?php
2
/************************************************************************
2
/************************************************************************
3
UebiMiau is a GPL'ed software developed by 
3
UebiMiau is a GPL'ed software developed by 
4
4
Lines 150-158 Link Here
150
Don't remove the fallowing lines, or you will be problems with browser's cache 
150
Don't remove the fallowing lines, or you will be problems with browser's cache 
151
*/
151
*/
152
152
153
Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT\r\n".
153
Header('Expires: Wed, 11 Nov 1998 11:11:11 GMT');
154
"Cache-Control: no-cache\r\n".
154
Header('Cache-Control: no-cache');
155
"Cache-Control: must-revalidate");
155
Header('Cache-Control: must-revalidate', false);
156
156
157
$nocache = "
157
$nocache = "
158
<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">
158
<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">
(-)gui/tools/filemanager/login.php (-2 / +7 lines)
Lines 43-50 Link Here
43
    $tp = fopen( "themes/" . $default_theme . ".thm", 'r' );
43
    $tp = fopen( "themes/" . $default_theme . ".thm", 'r' );
44
    $theme = load_theme( $tp );
44
    $theme = load_theme( $tp );
45
    fclose ($tp);  
45
    fclose ($tp);  
46
  }  
46
  }
47
  $style = build_style_sheet( $theme );
47
48
// FIX: suppress PHP warning about not existing variable $theme
49
  if (isset($theme)) {
50
  	$style = build_style_sheet( $theme );
51
  }
52
// FIX
48
  
53
  
49
  if (!isset($ERROR) ) $ERROR = 0;
54
  if (!isset($ERROR) ) $ERROR = 0;
50
?>
55
?>

Return to bug 77651