XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
install_modcheck.inc.php
1<?php
10
11$writeok = ['uploads/', 'mainfile.php'];
12$error = false;
13echo '<h2>wizard/install_modcheck.inc</h2>';
14
15clearstatcache();
16
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));
23 $error = true;
24 } else {
25 $wizard->addArray('checks', _OKIMG.sprintf(_INSTALL_L84, $wok));
26 }
27 }
28 } else {
29 @chmod('../'.$wok, 0777);
30 if (! is_writeable('../'.$wok)) {
31 $wizard->addArray('checks', _NGIMG.sprintf(_INSTALL_L85, $wok));
32 $error = true;
33 } else {
34 $wizard->addArray('checks', _OKIMG.sprintf(_INSTALL_L86, $wok));
35 }
36 }
37}
38
39if (! $error) {
40 $wizard->assign('message', _INSTALL_L87);
41 $wizard->assign( 'message', '<div class="confirmOk">install_modcheck.inc</div>' );
42} else {
43 $wizard->assign('message', _INSTALL_L46);
44 $wizard->setReload(true);
45}
46
47$wizard->render('install_modcheck.tpl.php');