Exemple #1
0
function do_admin_body()
{
    runTweak('do-admin-body');
    if ($_GET['action'] == 'addpage') {
        addpage();
    } elseif ($_GET['action'] == 'delete') {
        doDelete();
    } elseif ($_GET['action'] == 'edit') {
        performEdit();
    } elseif ($_GET['action'] == 'showpages') {
        showpageslist();
    } elseif ($_GET['action'] == 'editarea') {
        doAreaEdit();
    } elseif ($_GET['action'] == 'showareas') {
        nanoadmin_showareas();
    } elseif ($_GET['action'] == 'settings') {
        nanoadmin_showsettings();
    } elseif ($_GET['action'] == 'tweakers') {
        showTweakers();
    } elseif (isset($_GET[tweak])) {
        showTweaksInterface();
    } elseif (!isset($_GET['action'])) {
        $introPage = NANO_ADMIND_DESIGN_BASE . "intro.php";
        runTweak('intro-page', array(&$introPage));
        require_once $introPage;
    }
}
Exemple #2
0
			</ul>

  </div>
  <div id="main">
    

	<div id="body">
<?php 
if ($_GET[action] == 'addpage') {
    addpage();
} elseif ($_GET[action] == 'delete') {
    doDelete();
} elseif ($_GET[action] == 'edit') {
    performEdit();
} elseif ($_GET[action] == 'showpages') {
    showpageslist();
} elseif ($_GET[action] == 'editarea') {
    doAreaEdit();
} elseif ($_GET[action] == 'showareas') {
    showareas();
} elseif ($_GET[action] == 'tweakers') {
    showTweakers();
} elseif (isset($_GET[tweak])) {
    showTweaksInterface();
} elseif (!isset($_GET[action])) {
    $introPage = "intro.php";
    runTweak('intro-page', array(&$introPage));
    require_once $introPage;
}
runTweak('admin-body');
?>