Source for file admin.php
Documentation is available at admin.php
* Zikula Application Framework
* @copyright (c) 2001, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: admin.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @note This file can be removed if not using any non pnAPI compliant modules
include 'includes/pnAPI.php';
// Session has expired, display warning
header('HTTP/1.0 403 Access Denied');
// call for admin.php without module parameter
// call for an unavailable module - either not available or not authorized
header('HTTP/1.0 403 Access Denied');
// get the module information
if ($modinfo['type'] == 2 || $modinfo['type'] == 3) {
// Redirect to new style admin panel
// Module claims to be old-style, but no admin.php present - quit here
header('HTTP/1.0 404 Not Found');
* old style module administration
// load the legacy includes
// set a constant so we can check the correct entry point later
define('LOADED_AS_MODULE', '1');
// ensure that the module table information is available
$function = $module . '_admin_';
$function_op = $function . $op;
$function_main = $function . 'main';
$function_main($_REQUEST);
// neither function_admin_op nor function_admin_main are available
header('HTTP/1.0 404 Not Found');
|