XOOPS  2.6.0
index.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
23 include __DIR__ . '/header.php';
24 
26 $xoops->header();
27 
28 $admin_page = new \Xoops\Module\Admin();
29 $admin_page->displayNavigation('index.php');
30 
31 // folder path
32 $folder_path = \XoopsBaseConfig::get('root-path') . '/modules/maintenance/dump';
33 
34 // files
35 $files = glob(\XoopsBaseConfig::get('root-path') . '/modules/maintenance/dump/*.*');
36 $count = 0;
37 foreach ($files as $filename_path) {
38  if (basename(strtolower($filename_path)) != 'index.html') {
39  ++$count;
40  }
41 }
42 $admin_page->addConfigBoxLine($folder_path, 'folder');
43 $admin_page->addConfigBoxLine(array($folder_path, '777'), 'chmod');
45 $admin_page->addInfoBoxLine(sprintf(_AM_MAINTENANCE_NBFILES, $count));
46 $admin_page->displayIndex();
47 $xoops->footer();
const _MI_MAINTENANCE_DUMP
Definition: modinfo.php:29
$folder_path
Definition: index.php:54
static getInstance()
Definition: Xoops.php:160
$files
Definition: index.php:35
static get($name)
$admin_page
Definition: index.php:56
const _AM_MAINTENANCE_NBFILES
Definition: admin.php:28
$count
Definition: index.php:36
if(file_exists($mainfile)) elseif(file_exists(__DIR__. '/install/index.php')) $xoops
Definition: index.php:36