XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
admin.php
1<?php
10/*------------------------------------------------------------------------*
11 | This file was entirely rewritten by the XOOPS Cube Legacy project for |
12 | keeping compatibility with XOOPS 2.0.x |
13 *------------------------------------------------------------------------*/
14
15include 'mainfile.php';
16
18{
19 public static function DefaultCheck()
20 {
21 if (!defined('LEGACY_INSTALLERCHECKER_ACTIVE')) {
22 define('LEGACY_INSTALLERCHECKER_ACTIVE', true); $var = [];
23 }
24 $alert = [];
25 $alert[]= '<div class="alert-notify">';
26 if (is_dir(XOOPS_ROOT_PATH . '/install/')) {
27 $alert[]= '<div class="error">'. XCube_Utils::formatString( _WARNINSTALL2, XOOPS_ROOT_PATH . '/install'). '<button type="button" class="button alert-close" data-dismiss="alert" aria-hidden="true">&times;</button></div>';
28 }
29 if (is_writable(XOOPS_ROOT_PATH . '/mainfile.php')) {
30 $alert[]= '<div class="error">'. XCube_Utils::formatString(_WARNINWRITEABLE, XOOPS_ROOT_PATH . '/mainfile.php'). '<button type="button" class="button alert-close" data-dismiss="alert" aria-hidden="true">&times;</button></div>';
31 }
32 $alert[]= '</div>';
33
34 foreach ($alert as $notify) {
35 echo "$notify ";
36 }
37
38 }
39}
40
41// RENDER
42require_once XOOPS_ROOT_PATH . '/header.php';
43$root =& XCube_Root::getSingleton();
44$root->mDelegateManager->add('Legacypage.Admin.SystemCheck', 'DefaultSystemCheckFunction::DefaultCheck');
45XCube_DelegateUtils::call('Legacypage.Admin.SystemCheck');
46require_once XOOPS_ROOT_PATH . '/footer.php';
static formatString()
[Static] Formats string with special care for international.