11$writeok = [
'uploads/',
'mainfile.php'];
13echo
'<h2>wizard/install_modcheck.inc</h2>';
17foreach ($writeok as $wok) {
18 if (!is_dir(
'../'.$wok)) {
19 if (file_exists(
'../'.$wok)) {
20 @chmod(
'../'.$wok, 0666);
21 if (! is_writeable(
'../'.$wok)) {
22 $wizard->addArray(
'checks', _NGIMG.sprintf(_INSTALL_L83, $wok));
25 $wizard->addArray(
'checks', _OKIMG.sprintf(_INSTALL_L84, $wok));
29 @chmod(
'../'.$wok, 0777);
30 if (! is_writeable(
'../'.$wok)) {
31 $wizard->addArray(
'checks', _NGIMG.sprintf(_INSTALL_L85, $wok));
34 $wizard->addArray(
'checks', _OKIMG.sprintf(_INSTALL_L86, $wok));
40 $wizard->assign(
'message', _INSTALL_L87);
41 $wizard->assign(
'message',
'<div class="confirmOk">install_modcheck.inc</div>' );
43 $wizard->assign(
'message', _INSTALL_L46);
44 $wizard->setReload(
true);
47$wizard->render(
'install_modcheck.tpl.php');