1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-13 11:04:38 +01:00
php-e107/e107_plugins/release/admin_config.php

59 lines
1.4 KiB
PHP
Raw Normal View History

2009-09-29 00:03:01 +00:00
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2009 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* e107 Release Plugin
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/release/admin_config.php,v $
2009-11-01 19:05:26 +00:00
* $Revision: 1.13 $
* $Date: 2009-11-01 19:05:26 $
2009-10-28 17:05:35 +00:00
* $Author: secretr $
2009-09-29 00:03:01 +00:00
*
*/
require_once("../../class2.php");
if (!getperms("P")) { header("location:".e_BASE."index.php"); exit; }
2009-10-28 17:05:35 +00:00
2009-10-31 17:57:15 +00:00
/*
* After initialization we'll be able to call dispatcher via e107::getAdminUI()
* so this is the first we should do on admin page.
* Global instance variable is not needed.
* NOTE: class is auto-loaded - see class2.php __autoload()
*/
/* $dispatcher = */new plugin_release_admin();
2009-10-30 17:59:32 +00:00
2009-10-31 17:57:15 +00:00
/*
* Uncomment the below only if you disable the auto observing above
* Example: $dispatcher = new plugin_release_admin(null, null, false);
*/
//$dispatcher->runObservers(true);
2009-10-28 17:05:35 +00:00
2009-09-29 00:03:01 +00:00
require_once(e_ADMIN."auth.php");
2009-10-28 17:05:35 +00:00
/*
2009-10-31 17:57:15 +00:00
* Send page content
*/
e107::getAdminUI()->runPage();
2009-09-29 00:03:01 +00:00
2009-10-31 17:57:15 +00:00
require_once(e_ADMIN."footer.php");
2009-10-31 17:57:15 +00:00
/* OBSOLETE - see admin_shortcodes::sc_admin_menu()
2009-11-01 19:05:26 +00:00
function admin_config_adminmenu()
2009-09-29 00:03:01 +00:00
{
2009-10-28 17:05:35 +00:00
//global $rp;
//$rp->show_options();
e107::getRegistry('admin/release_dispatcher')->renderMenu();
2009-09-29 00:03:01 +00:00
}
2009-10-31 17:57:15 +00:00
*/
2009-09-29 00:03:01 +00:00
2009-10-31 17:57:15 +00:00
/* OBSOLETE - done within header.php
function headerjs() // needed for the checkboxes - how can we remove the need to duplicate this code?
{
2009-10-31 17:57:15 +00:00
return e107::getAdminUI()->getHeader();
}
2009-10-31 17:57:15 +00:00
*/
2009-09-29 00:03:01 +00:00
?>