--- gui/include/vhcs-lib.php 2006-01-03 20:57:42.000000000 +0100 +++ gui/include/vhcs-lib.php 2007-01-06 11:44:07.102198063 +0100 @@ -19,8 +19,8 @@ session_start(); -error_reporting(0); -//error_reporting(E_ALL); // setting for development edition - see all error messages +//error_reporting(0); +error_reporting(E_ALL); // setting for development edition - see all error messages $include_path = realpath(dirname(__FILE__)); --- gui/include/reseller-functions.php 2005-12-31 12:09:05.000000000 +0100 +++ gui/include/reseller-functions.php 2007-01-06 13:26:38.438773100 +0100 @@ -475,7 +475,7 @@ $sql_db_current = records_count('sqld_id', 'sql_database', 'domain_id', $user_id); $sql_db_max = $data['domain_sqld_limit']; - $sql_user_current = get_domain_running_sqlu_acc_cnt(&$sql, $user_id); + $sql_user_current = get_domain_running_sqlu_acc_cnt($sql, $user_id); $sql_user_max = $data['domain_sqlu_limit']; --- gui/admin/reseller_statistics.php 2005-12-31 12:10:51.000000000 +0100 +++ gui/admin/reseller_statistics.php 2007-01-06 14:25:00.021584688 +0100 @@ -354,7 +354,7 @@ gen_admin_menu($tpl); -generate_page ( &$tpl ); +generate_page ($tpl); $tpl -> assign( array( @@ -384,4 +384,4 @@ if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug(); unset_messages(); -?> \ No newline at end of file +?> --- gui/admin/circular.php 2005-12-31 12:10:50.000000000 +0100 +++ gui/admin/circular.php 2007-01-06 14:36:56.419293726 +0100 @@ -202,7 +202,7 @@ if (check_user_data($tpl)) { - send_reseller_message( &$sql); + send_reseller_message($sql); unset($_POST['uaction']); @@ -296,7 +296,7 @@ ) ); -send_circular(&$tpl, &$sql); +send_circular($tpl, $sql); gen_page_data ($tpl, $sql); @@ -309,4 +309,4 @@ if (isset($cfg['DUMP_GUI_DEBUG'])) dump_gui_debug(); unset_messages(); -?> \ No newline at end of file +?> --- gui/admin/edit_reseller.php 2005-12-31 12:10:49.000000000 +0100 +++ gui/admin/edit_reseller.php 2007-01-06 14:56:55.442375237 +0100 @@ -829,7 +829,7 @@ $max_traff_amnt, $current_traff_amnt, $max_disk_amnt, $current_disk_amnt, $customer_id, $rip_lst -) = get_reseller_prop(&$sql); +) = get_reseller_prop($sql); $reseller_ips = get_servers_IPs($tpl, $sql, $rip_lst); --- gui/tools/webmail/addressbook.php 2005-12-31 12:01:57.000000000 +0100 +++ gui/tools/webmail/addressbook.php 2007-01-08 16:00:11.589157840 +0100 @@ -1,4 +1,4 @@ -display("$selected_theme/$templatename"); -?> \ No newline at end of file +?> --- gui/tools/webmail/apply_filters.php 2005-12-31 12:01:59.000000000 +0100 +++ gui/tools/webmail/apply_filters.php 2007-01-08 16:01:53.460616711 +0100 @@ -1,4 +1,4 @@ - \ No newline at end of file +?> --- gui/tools/webmail/badlogin.php 2005-12-31 12:02:00.000000000 +0100 +++ gui/tools/webmail/badlogin.php 2007-01-08 16:04:34.038119606 +0100 @@ -1,4 +1,4 @@ -display("$selected_theme/bad-login.htm"); -?> \ No newline at end of file +?> --- gui/tools/webmail/block_address.php 2005-12-31 12:01:58.000000000 +0100 +++ gui/tools/webmail/block_address.php 2007-01-08 16:07:10.033321560 +0100 @@ -1,4 +1,4 @@ -display("$selected_theme/block-address.htm"); } -?> \ No newline at end of file +?> --- gui/tools/webmail/catch.php 2005-12-31 12:02:00.000000000 +0100 +++ gui/tools/webmail/catch.php 2007-01-08 16:08:01.390486702 +0100 @@ -1,4 +1,4 @@ -display("$selected_theme/catch-address.htm"); } -?> \ No newline at end of file +?> --- gui/tools/webmail/database/_sessions/index.php 2005-12-31 12:01:19.000000000 +0100 +++ gui/tools/webmail/database/_sessions/index.php 2007-01-08 16:09:01.629296894 +0100 @@ -1,3 +1,3 @@ - \ No newline at end of file +?> --- gui/tools/webmail/database/index.php 2005-12-31 12:01:19.000000000 +0100 +++ gui/tools/webmail/database/index.php 2007-01-08 16:10:14.703149020 +0100 @@ -1,3 +1,3 @@ - \ No newline at end of file +?> --- gui/tools/webmail/download.php 2005-12-31 12:01:58.000000000 +0100 +++ gui/tools/webmail/download.php 2007-01-08 16:11:07.488096345 +0100 @@ -1,4 +1,4 @@ - \ No newline at end of file +?> --- gui/tools/webmail/folder_list.php 2005-12-31 12:01:58.000000000 +0100 +++ gui/tools/webmail/folder_list.php 2007-01-08 16:15:46.789487167 +0100 @@ -1,36 +1,36 @@ -assign("umSystemFolders",$system); -$smarty->assign("umPersonalFolders",$personal); -?> \ No newline at end of file +$smarty->assign('umSystemFolders',$system); +$smarty->assign('umPersonalFolders',$personal); +?> --- gui/tools/webmail/folders.php 2005-12-31 12:01:57.000000000 +0100 +++ gui/tools/webmail/folders.php 2007-01-08 16:16:44.000759228 +0100 @@ -1,4 +1,4 @@ -mail_list_msgs($entry); + $entry = $boxes[$n]['name']; + if(!array_key_exists(base64_encode($entry), $sess['headers'])) { + $sess['headers'][base64_encode($entry)] = $UM->mail_list_msgs($entry); } } } else { - $sess["headers"][$folder_key] = $UM->mail_list_msgs($folder); + $sess['headers'][$folder_key] = $UM->mail_list_msgs($folder); } - $headers = $sess["headers"][$folder_key]; -?> \ No newline at end of file + $headers = $sess['headers'][$folder_key]; +?> --- gui/tools/webmail/headers.php 2005-12-31 12:01:59.000000000 +0100 +++ gui/tools/webmail/headers.php 2007-01-08 16:20:56.710206818 +0100 @@ -1,4 +1,4 @@ -assign("umPageTitle",$mail_info["subject"]); -$smarty->assign("umHeaders",preg_replace("/\t/","    ",nl2br(htmlspecialchars($mail_info["header"])))); -$smarty->display("$selected_theme/headers-window.htm"); +require_once './inc/inc.php'; +if(!isset($folder) || !isset($ix)) die('Expected parameters'); +$mail_info = $sess['headers'][base64_encode($folder)][$ix]; +$smarty->assign('umPageTitle',$mail_info['subject']); +$smarty->assign('umHeaders',preg_replace("/\t/","    ",nl2br(htmlspecialchars($mail_info['header'])))); +$smarty->display($selected_theme.'/headers-window.htm'); ?> --- gui/tools/webmail/inc/class.uebimiau.php 2005-12-31 12:01:55.000000000 +0100 +++ gui/tools/webmail/inc/class.uebimiau.php 2007-01-08 16:22:55.674058136 +0100 @@ -1,4 +1,4 @@ - \ No newline at end of file +?> --- gui/tools/webmail/inc/class.uebimiau_mail.php 2005-12-31 12:01:55.000000000 +0100 +++ gui/tools/webmail/inc/class.uebimiau_mail.php 2007-01-08 16:23:52.621370467 +0100 @@ -1,4 +1,4 @@ - \ No newline at end of file +?> --- gui/tools/webmail/inc/config.languages.php 2005-12-31 12:01:55.000000000 +0100 +++ gui/tools/webmail/inc/config.languages.php 2007-01-08 16:24:57.354495023 +0100 @@ -1,4 +1,4 @@ - \ No newline at end of file +?> --- gui/tools/webmail/inc/lib.php 2005-12-31 12:01:55.000000000 +0100 +++ gui/tools/webmail/inc/lib.php 2007-01-08 16:29:45.199582450 +0100 @@ -1,4 +1,4 @@ - \ No newline at end of file +?> --- gui/tools/webmail/logout.php 2005-12-31 12:01:58.000000000 +0100 +++ gui/tools/webmail/logout.php 2007-01-08 16:30:57.582539976 +0100 @@ -1,4 +1,4 @@ - \ No newline at end of file +?> --- gui/tools/webmail/messages.php 2005-12-31 12:01:58.000000000 +0100 +++ gui/tools/webmail/messages.php 2007-01-08 16:32:01.600773593 +0100 @@ -1,4 +1,4 @@ -display("$selected_theme/preferences.htm"); -?> \ No newline at end of file +?> --- gui/tools/webmail/printmsg.php 2005-12-31 12:01:59.000000000 +0100 +++ gui/tools/webmail/printmsg.php 2007-01-08 16:35:52.840496523 +0100 @@ -1,4 +1,4 @@ -display("$selected_theme/print-message.htm"); -?> \ No newline at end of file +?> --- gui/tools/webmail/process.php 2005-12-31 12:01:59.000000000 +0100 +++ gui/tools/webmail/process.php 2007-01-08 16:36:41.039143518 +0100 @@ -1,4 +1,4 @@ -assign("umContacts",$listbox); $smarty->display("$selected_theme/quick_address.htm"); -?> \ No newline at end of file +?> --- gui/tools/webmail/readmsg.php 2005-12-31 12:01:58.000000000 +0100 +++ gui/tools/webmail/readmsg.php 2007-01-08 16:38:55.674604034 +0100 @@ -1,4 +1,4 @@ - - @@ -10,4 +10,4 @@ - \ No newline at end of file + --- gui/tools/webmail/search.php 2005-12-31 12:01:57.000000000 +0100 +++ gui/tools/webmail/search.php 2007-01-08 16:41:14.099486450 +0100 @@ -1,4 +1,4 @@ - --- gui/tools/webmail/upload.php 2005-12-31 12:02:00.000000000 +0100 +++ gui/tools/webmail/upload.php 2007-01-08 16:43:57.294590014 +0100 @@ -1,4 +1,4 @@ -assign($var, $wlcmessage); return; } -?> \ No newline at end of file +?> --- gui/tools/webmail/inc/inc.php 2005-12-31 12:01:55.000000000 +0100 +++ gui/tools/webmail/inc/inc.php 2007-01-08 16:52:22.576506090 +0100 @@ -1,4 +1,4 @@ - --- gui/tools/filemanager/login.php 2005-12-31 12:02:34.000000000 +0100 +++ gui/tools/filemanager/login.php 2007-01-08 17:04:20.456988921 +0100 @@ -43,8 +43,13 @@ $tp = fopen( "themes/" . $default_theme . ".thm", 'r' ); $theme = load_theme( $tp ); fclose ($tp); - } - $style = build_style_sheet( $theme ); + } + +// FIX: suppress PHP warning about not existing variable $theme + if (isset($theme)) { + $style = build_style_sheet( $theme ); + } +// FIX if (!isset($ERROR) ) $ERROR = 0; ?>