File: misc.php

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (47 lines) | stat: -rw-r--r-- 1,789 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?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);

?>