Changeset 1004 in subversion for trunk/roundcubemail/check.php
- Timestamp:
- Feb 3, 2008 9:23:17 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/check.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/check.php
r982 r1004 73 73 @include $path . 'config/db.inc.php'; 74 74 75 $db_working = false; 75 76 if (isset($rcmail_config)) { 76 77 echo 'DB settings: '; … … 80 81 echo 'OK'; 81 82 $db->disconnect(); 83 $db_working = true; 82 84 } else { 83 85 echo 'NOT OK'; … … 88 90 } 89 91 92 echo '<h3>TimeZone</h3>'; 93 echo 'Status: '; 94 if ($db_working === true) { 95 require_once 'include/rcube_mdb2.inc'; 96 $DB = new $dbclass($rcmail_config['db_dsnw'], '', false); 97 $DB->db_connect('w'); 98 99 $tz_db = $DB->unixtimestamp(); 100 $tz_local = time(); 101 if ($tz_db != $tz_local) { 102 echo 'NOT OK'; 103 } else { 104 echo 'OK'; 105 } 106 } else { 107 echo 'Could not test (fix DB first).'; 108 } 109 echo '<br />'; 110 90 111 echo '<h3>Checking .ini settings</h3>'; 91 112 … … 93 114 $file_uploads = ini_get('file_uploads'); 94 115 95 echo "session.auto_start: "; 116 echo '<h4>session.auto_start</h4>'; 117 echo 'status: '; 96 118 if ($auto_start == 1) { 97 119 echo 'NOT OK'; … … 101 123 echo '<br />'; 102 124 103 echo "file_uploads: "; 125 echo '<h4>file_uploads</h4>'; 126 echo 'status: '; 104 127 if ($file_uploads == 1) { 105 128 echo 'OK'; … … 107 130 echo 'NOT OK'; 108 131 } 132 133 /* 134 * Probably not needed because we have a custom handler 135 echo '<h4>session.save_path</h4>'; 136 echo 'status: '; 137 $save_path = ini_get('session.save_path'); 138 if (empty($save_path)) { 139 echo 'NOT OK'; 140 } else { 141 echo "OK: $save_path"; 142 if (!file_exists($save_path)) { 143 echo ', but it does not exist'; 144 } else { 145 if (!is_readable($save_path) || !is_writable($save_path)) { 146 echo ', but permissions to read and/or write are missing'; 147 } 148 } 149 } 109 150 echo '<br />'; 151 */ 110 152 ?>
Note: See TracChangeset
for help on using the changeset viewer.
