Beispiel #1
0
         ob_clean();
         showError($e->getMessage());
     } catch (RTDatabaseError $e) {
         ob_clean();
         showError('Database error: ' . $e->getMessage());
     } catch (RTPermissionDenied $e) {
         ob_clean();
         showError('Operation not permitted');
     }
     redirectUser($location);
     // any other error requires no special handling and will be caught outside
     break;
 case 'popup' == $_REQUEST['module']:
     require_once 'inc/popup.php';
     require_once 'inc/init.php';
     renderPopupHTML();
     break;
 case 'upgrade' == $_REQUEST['module']:
     require_once 'inc/config.php';
     // for CODE_VERSION
     require_once 'inc/dictionary.php';
     require_once 'inc/functions.php';
     // for ip translation functions
     require_once 'inc/upgrade.php';
     renderUpgraderHTML();
     break;
 case 'installer' == $_REQUEST['module']:
     require_once 'inc/dictionary.php';
     require_once 'inc/config.php';
     require_once 'inc/install.php';
     renderInstallerHTML();
Beispiel #2
0
     require_once 'inc/popup.php';
     require_once 'inc/init.php';
     prepareNavigation();
     fixContext();
     assertPermission();
     $helper = assertStringArg('helper');
     header('Content-Type: text/html; charset=UTF-8');
     // call the main handler - page or tab handler.
     if (isset($popuphandler[$helper]) and is_callable($popuphandler[$helper])) {
         call_user_func($popuphandler[$helper], $helper);
     } else {
         throw new RackTablesError("Missing handler function for node '{$handler}'", RackTablesError::INTERNAL);
     }
     $contents = ob_get_contents();
     ob_clean();
     renderPopupHTML($contents);
     break;
 case 'upgrade':
     require_once 'inc/config.php';
     // for CODE_VERSION
     require_once 'inc/database.php';
     require_once 'inc/dictionary.php';
     require_once 'inc/functions.php';
     // for ip translation functions
     require_once 'inc/upgrade.php';
     renderUpgraderHTML();
     break;
 case 'installer':
     require_once 'inc/dictionary.php';
     require_once 'inc/config.php';
     require_once 'inc/install.php';