Browse Source

[svn r17670] FS#2970 - Adding a check for writable sessions folder in the installation script. Needed for the advanced file manager.

Ivan Tcholakov 16 years ago
parent
commit
0fd3aa5940
1 changed files with 6 additions and 0 deletions
  1. 6 0
      main/install/install_functions.inc.php

+ 6 - 0
main/install/install_functions.inc.php

@@ -543,6 +543,12 @@ function display_requirements($installType, $badUpdatePath, $updatePath='', $upd
             <tr>
                 <td class="requirements-item">dokeos/searchdb/</td>
                 <td class="requirements-value">'.check_writable('../searchdb/').'</td>
+            </tr>
+            <tr>
+                <td class="requirements-item">'.session_save_path().'</td>
+                <td class="requirements-value">'.(is_writable(session_save_path()) 
+					? '<strong><font color="green">'.get_lang('Writable').'</font></strong>'
+					: '<strong><font color="red">'.get_lang('NotWritable').'</font></strong>').'</td>
             </tr>
 			';
 	echo '</table>';