/** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ */ require_once '../inc/header.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'design.inc.php'; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; if (false != bx_get('get_phpinfo')) { echo phpInfo(); exit; } bx_import('BxDolAdminTools'); $logged['admin'] = member_auth(1, true, true); $oAdmTools = new BxDolAdminTools(); $sResult = $oAdmTools->GenCommonCode(); switch (bx_get('action')) { case 'audit_send_test_email': header('Content-type: text/html; charset=utf-8'); echo $oAdmTools->sendTestEmail(); exit; case 'perm_table': $sResult .= $oAdmTools->GenPermTable(true); break; case 'main_page': $sResult .= $oAdmTools->GenTabbedPage(true); break; default: $sResult .= $oAdmTools->GenTabbedPage(true); break; }
function genPreInstallPermissionTable($sErrorMessage = '') { global $aTemporalityWritableFolders; $sCurPage = $_SERVER['PHP_SELF']; $sErrorMessage .= ini_get('safe_mode') == 1 || ini_get('safe_mode') == 'On' ? "Please turn off <b>safe_mode</b> in your php.ini file configuration" : ''; $sError = printInstallError($sErrorMessage); require_once '../inc/classes/BxDolAdminTools.php'; $oAdmTools = new BxDolAdminTools(); $oAdmTools->aInstallDirs = array_merge($aTemporalityWritableFolders, $oAdmTools->aInstallDirs); $sPermTable = $oAdmTools->GenCommonCode(); $sPermTable .= $oAdmTools->GenPermTable(); return <<<EOF <div class="bx-install-header-caption bx-def-font-h1 bx-def-margin-bottom"> Permissions </div> <div class="bx-install-header-text bx-def-font-large bx-def-font-grayed bx-def-margin-bottom"> Change permissions of files and directories as specified in the chart below. Helpful info about permissions is <a href="http://www.boonex.com/trac/dolphin/wiki/DetailedInstall#InstallScript-Step1-Permissions" target="_blank">available here</a>. </div> {$sError} {$sPermTable} <form id="bx-install-form-preInstall-check" action="{$sCurPage}" method="post"> <input type="hidden" name="action" value="preInstall" /> </form> <form id="bx-install-form-preInstall-next" action="{$sCurPage}" method="post"> <input type="hidden" name="action" value="step1" /> </form> <div class="bx-install-buttons bx-def-margin-top"> <button class="bx-btn" onclick="\$('#bx-install-form-preInstall-check').submit()">Reload</button> <button class="bx-btn bx-btn-primary" onclick="\$('#bx-install-form-preInstall-next').submit()">Next</button> </div> EOF; }
function PageCodeEngines() { bx_import('BxDolAdminTools'); $oAdmTools = new BxDolAdminTools(); $s = $oAdmTools->GenCommonCode(); $s .= $oAdmTools->GenCacheEnginesTable(); return DesignBoxAdmin(_t('_adm_txt_cache'), $s, $GLOBALS['aTopItems'], '', 11); }