<?php // $Id: misc.php,v 1.1.2.3 2006/07/04 09:39:21 skodak Exp $

    require_once('../config.php');

    require_login();

    if (!isadmin()) {
        error("Only admins can access this page");
    }

    if (!$site = get_site()) {
        redirect("index.php");
    }

    $stradministration = get_string("administration");
    $strmisc           = get_string("miscellaneous");

    print_header("$site->shortname: $stradministration: $strmisc", "$site->fullname", 
                 "<a href=\"index.php\">$stradministration</a> -> $strmisc");

    print_heading($strmisc);

    $table->align = array ("right", "left");

    $table->data[] = array('<b><a href="../files/index.php?id='.$site->id.'">'.get_string('sitefiles').'</a></b>',
                           get_string("adminhelpsitefiles"));
    $table->data[] = array('<b><a href="stickyblocks.php">'.get_string('stickyblocks','admin')."</a></b>",
                           get_string('adminhelpstickyblocks'));
    $table->data[] = array('<b><a href="report.php">'.get_string('reports')."</a></b>",
                           get_string('adminhelpreports'));
// to be enabled later
/*    $table->data[] = array('<b><a href="health.php">'.get_string('healthcenter')."</a></b>",
                           get_string('adminhelphealthcenter'));*/
    $table->data[] = array('<b><a href="environment.php">'.get_string('environment', 'admin')."</a></b>",
                           get_string('adminhelpenvironment'));
    if (file_exists("$CFG->dirroot/$CFG->admin/$CFG->dbtype")) {
        $table->data[] = array('<b><a href="'.$CFG->dbtype.'/frame.php">'.get_string('managedatabase')."</a></b>",
                           get_string('adminhelpmanagedatabase'));
    }

    print_table($table);

    print_footer($site);

?>


