13include_once
'../mainfile.php';
15echo
'<h2>custom/install_modcheck_trusttext.inc.dist</h2>';
17$writeok = [
'cache/',
'templates_c/',
'uploads/',
'uploads/xupdate/',
'modules/protector/configs/' ];
20foreach ( $writeok as $wok ) {
21 if ( ! is_dir( XOOPS_TRUST_PATH .
'/' . $wok ) ) {
22 if ( file_exists( XOOPS_TRUST_PATH .
'/' . $wok ) ) {
23 @chmod( XOOPS_TRUST_PATH .
'/' . $wok, 0666 );
24 if ( ! is_writable( XOOPS_TRUST_PATH .
'/' . $wok ) ) {
25 $wizard->addArray(
'checks', _NGIMG . sprintf( _INSTALL_L83, $wok ) );
28 $wizard->addArray(
'checks', _OKIMG . sprintf( _INSTALL_L84, $wok ) );
32 @chmod( XOOPS_TRUST_PATH .
'/' . $wok, 0777 );
33 if ( ! is_writable( XOOPS_TRUST_PATH .
'/' . $wok ) ) {
34 $wizard->addArray(
'checks', _NGIMG . sprintf( _INSTALL_L85, XOOPS_TRUST_PATH .
'/' . $wok ) );
37 $wizard->addArray(
'checks', _OKIMG . sprintf( _INSTALL_L86, XOOPS_TRUST_PATH .
'/' . $wok ) );
43 $wizard->assign(
'message',
'<div class="confirmOk">'. _INSTALL_L87 .
'</div>' );
44 $wizard->assign(
'message',
'<div class="confirmOk">install modcheck trustext inc dist</div>' );
46 $wizard->assign(
'message',
'<div class="confirmError">'. _INSTALL_L46 .
'</div>' );
47 $wizard->setReload(
true );
49$wizard->render(
'install_modcheck.tpl.php' );