WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
if ((int)$oApp->getUserId() !== 1) {
if ((int)$oApp->getUserId() !== 1) { // back to overview $backlink = $oReg->AcpUrl .'admintools/tool.php'; $sErrorMsg = sprintf("%s",$oTrans->MESSAGE_FRONTEND_SORRY_NO_VIEWING_PERMISSIONS); $oApp->print_error( $sErrorMsg, $backlink); } $sCommand = ($sCommand ?? 'tool'); $sCommand = ((isset($aRequestVars['cmd']) && $aRequestVars['cmd'] == 'backup') ? 'backup' : $sCommand); $sCommand = ((isset($aRequestVars['cmd']) && $aRequestVars['cmd'] == 'deletefile') ? 'deletefile' : $sCommand); $sCommand = ((isset($aRequestVars['cmd']) && $aRequestVars['cmd'] == 'savesetting') ? 'savesetting' : $sCommand); $sCommand = ((isset($aRequestVars['cmd']) && $aRequestVars['cmd'] == 'ModifySettings') ? 'ModifySettings' : $sCommand); // set the name of the addon //$sAddonName = basename(__DIR__); $sDispatcherFile = $sModulesPath.'SimpleCommandDispatcher.inc.php'; if (is_readable($sDispatcherFile)){include($sDispatcherFile);}// end of file
if (((int) $oApp->getUserId() === 1) || ((int) $oApp->getUserId() === 2)) { $sCommand = ($sCommand ?? 'tool'); $sCommand = ((isset($aRequestVars['cmd']) && $aRequestVars['cmd'] == 'backup') ? 'backup' : $sCommand); $sCommand = ((isset($aRequestVars['cmd']) && $aRequestVars['cmd'] == 'deletefile') ? 'deletefile' : $sCommand); $sCommand = ((isset($aRequestVars['cmd']) && $aRequestVars['cmd'] == 'savesetting') ? 'savesetting' : $sCommand); $sCommand = ((isset($aRequestVars['cmd']) && $aRequestVars['cmd'] == 'ModifySettings') ? 'ModifySettings' : $sCommand); // set the name of the addon $sDispatcherFile = $sModulesPath . 'SimpleCommandDispatcher.inc.php'; if (is_readable($sDispatcherFile)) { include($sDispatcherFile); }} else { // back to overview $backlink = $oReg->AcpUrl . 'admintools/tool.php'; $sErrorMsg = sprintf("%s", $oTrans->MESSAGE_FRONTEND_SORRY_NO_VIEWING_PERMISSIONS); $oApp->print_error($sErrorMsg, $backlink);}
if (((int) $oApp->getUserId() === 1) || ((int) $oApp->getUserId() === 2) || ((int) $oApp->getUserId() === 3) || ((int) $oApp->getUserId() === 4)) {
Bitte ins Original-Modul so einbauen, damit wäre vielen geholfen.