/* You may not change or alter any portion of this comment or credits of supporting developers from this source code or any supporting source code which is considered copyrighted (c) material of the original comment or credit authors. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ /** * Publisher * * @copyright The XOOPS Project (http://www.xoops.org) * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/) * @package Publisher * @since 1.0 * @author Mage, Mamba * @version $Id: index.php 10374 2012-12-12 23:39:48Z trabis $ */ include_once __DIR__ . '/admin_header.php'; include_once dirname(__DIR__) . '/class/utilities.php'; xoops_cp_header(); $indexAdmin = new ModuleAdmin(); foreach (array_keys($GLOBALS['uploadFolders']) as $i) { PublisherUtilities::createFolder($uploadFolders[$i]); $indexAdmin->addConfigBoxLine($uploadFolders[$i], 'folder'); // $indexAdmin->addConfigBoxLine(array($folder[$i], '777'), 'chmod'); } echo $indexAdmin->addNavigation('index.php'); echo $indexAdmin->renderIndex(); include_once __DIR__ . '/admin_footer.php';
//$indexAdmin->addConfigBoxLine(OLEDRION_PICTURES_PATH, 'folder'); //$indexAdmin->addConfigBoxLine(array(OLEDRION_PICTURES_PATH, '777'), 'chmod'); //$indexAdmin->addConfigBoxLine(OLEDRION_CSV_PATH, 'folder'); //$indexAdmin->addConfigBoxLine(array(OLEDRION_CSV_PATH, '777'), 'chmod'); //$indexAdmin->addConfigBoxLine(OLEDRION_CACHE_PATH, 'folder'); //$indexAdmin->addConfigBoxLine(array(OLEDRION_CACHE_PATH, '777'), 'chmod'); $categories = $h_oledrion_cat->getCategoriesCount(); if ($categories == 0) { $link = OLEDRION_ADMIN_URL . 'index.php?op=maintain&action=import'; $link = sprintf('<a href="%s">%s</a>', $link, _AM_OLEDRION_IMPORT_DATA_TITLE); $text = sprintf(_AM_OLEDRION_IMPORT_DATA_TEXT, $link); $indexAdmin->addInfoBox(_AM_OLEDRION_IMPORT_DATA); $indexAdmin->addInfoBoxLine(_AM_OLEDRION_IMPORT_DATA, $text); } //------ check directories --------------- $indexAdmin->addConfigBoxLine(''); $redirectFile = $_SERVER['PHP_SELF']; $languageConstants = array(_AM_OLEDRION_AVAILABLE, _AM_OLEDRION_NOTAVAILABLE, _AM_OLEDRION_CREATETHEDIR, _AM_OLEDRION_NOTWRITABLE, _AM_OLEDRION_SETMPERM, _AM_OLEDRION_DIRCREATED, _AM_OLEDRION_DIRNOTCREATED, _AM_OLEDRION_PERMSET, _AM_OLEDRION_PERMNOTSET); //$path = $xoopsModuleConfig['uploaddir'] . '/'; $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_UPLOAD_PATH, 0777, $languageConstants, $redirectFile)); //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['screenshots'] . '/'; $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_ATTACHED_FILES_PATH, 0777, $languageConstants, $redirectFile)); //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['catimage'] . '/'; $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_PICTURES_PATH, 0777, $languageConstants, $redirectFile)); //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['mainimagedir'] . '/'; $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_CSV_PATH, 0777, $languageConstants, $redirectFile)); //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['catimage'] . '/'; $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_CACHE_PATH, 0777, $languageConstants, $redirectFile)); //$path = XOOPS_ROOT_PATH . '/' . $xoopsModuleConfig['mainimagedir'] . '/'; $indexAdmin->addConfigBoxLine(DirectoryChecker::getDirectoryStatus(OLEDRION_TEXT_PATH, 0777, $languageConstants, $redirectFile)); //echo $indexAdmin->addNavigation('index.php');