From: jervfors Date: Thu, 30 Sep 2004 07:25:30 +0000 (+0000) Subject: Unifying STABLE and DEVEL where possible X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=bb7173fa78e0dc070a57ceaef0bc454aec61bb60 Unifying STABLE and DEVEL where possible git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8096 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/load_prefs.php b/include/load_prefs.php index 1f91c82e..12be9826 100644 --- a/include/load_prefs.php +++ b/include/load_prefs.php @@ -174,7 +174,7 @@ $reply_focus = getPref($data_dir, $username, 'reply_focus', ''); $left_refresh = getPref($data_dir, $username, 'left_refresh', SMPREF_NONE ); $left_refresh = strtolower($left_refresh); -/** Load up the Signature file **/ +/* Load up the Signature file */ $signature_abs = $signature = getSig($data_dir, $username, 'g'); /* Message Highlighting Rules */ @@ -297,4 +297,4 @@ $delete_prev_next_display = getPref($data_dir, $username, 'delete_prev_next_disp do_hook('loading_prefs'); -?> +?> \ No newline at end of file diff --git a/include/options/display.php b/include/options/display.php index b1e197cd..0ce7ad3d 100644 --- a/include/options/display.php +++ b/include/options/display.php @@ -80,9 +80,9 @@ function load_optpage_data_display() { ); $css_values = array( 'none' => _("Default" ) ); - - if (is_readable(SM_PATH . 'themes/css') && is_dir(SM_PATH . 'themes/css')) { - $handle=opendir(SM_PATH . 'themes/css'); + $css_dir = SM_PATH . 'themes/css'; + if (is_readable($css_dir) && is_dir($css_dir)) { + $handle=opendir($css_dir); while ($file = readdir($handle) ) { if ( substr( $file, -4 ) == '.css' ) { $css_values[$file] = substr( $file, 0, strlen( $file ) - 4 ); @@ -468,6 +468,7 @@ function save_option_header($option) { */ function save_option_theme($option) { global $theme; + /* Do checking to make sure $new_theme is in the array. */ $theme_in_array = false; for ($i = 0; $i < count($theme); ++$i) { @@ -530,4 +531,4 @@ function save_option_reply_prefix($option) { } -?> +?> \ No newline at end of file diff --git a/include/options/folder.php b/include/options/folder.php index 8ca1f09c..54cdf5ee 100644 --- a/include/options/folder.php +++ b/include/options/folder.php @@ -295,4 +295,4 @@ function save_option_draft_folder($option) { save_option($option); } -?> +?> \ No newline at end of file diff --git a/include/options/personal.php b/include/options/personal.php index 952269ae..7d149852 100644 --- a/include/options/personal.php +++ b/include/options/personal.php @@ -134,13 +134,13 @@ function load_optpage_data_personal() { if ( $tzChangeAllowed ) { $TZ_ARRAY[SMPREF_NONE] = _("Same as server"); $tzfile = SM_PATH . 'locale/timezones.cfg'; - if ((!is_readable($tzfile)) or (!$fd = fopen($tzfile,'r'))) { - $message = _("Error opening timezone config, contact administrator."); - } - if (isset($message)) { - plain_error_message($message, $color); - exit; - } + if ((!is_readable($tzfile)) or (!$fd = fopen($tzfile,'r'))) { + $message = _("Error opening timezone config, contact administrator."); + } + if (isset($message)) { + plain_error_message($message, $color); + exit; + } while (!feof ($fd)) { $zone = fgets($fd, 1024); if( $zone ) { diff --git a/include/validate.php b/include/validate.php index 339c8ed6..aeed3e12 100644 --- a/include/validate.php +++ b/include/validate.php @@ -104,4 +104,5 @@ if ( $timeZone != SMPREF_NONE && ($timeZone != "") && $tzChangeAllowed ) { putenv("TZ=".$timeZone); } -?> + +?> \ No newline at end of file