File: configure.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 (56 lines) | stat: -rw-r--r-- 2,699 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
48
49
50
51
52
53
54
55
56
<?php // $Id: configure.php,v 1.18 2005/02/10 05:11:14 moodler 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');
    $strconfiguration  = get_string('configuration');

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

    print_heading($strconfiguration);

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

    $table->data[] = array("<strong><a href=\"config.php\">". get_string('configvariables', 'admin') .'</a></strong>',
                           get_string('adminhelpconfigvariables'));
    $table->data[] = array("<strong><a href=\"site.php\">". get_string('sitesettings') .'</a></strong>',
                           get_string('adminhelpsitesettings'));
    $table->data[] = array("<strong><a href=\"../theme/index.php\">". get_string('themes') .'</a></strong>',
                           get_string('adminhelpthemes'));
    $table->data[] = array("<strong><a href=\"lang.php\">". get_string('language') .'</a></strong>',
                           get_string('adminhelplanguage'));
    $table->data[] = array("<strong><a href=\"modules.php\">".get_string('managemodules'). ' </a></strong>',
                           get_string('adminhelpmanagemodules'));
    $table->data[] = array("<strong><a href=\"blocks.php\">". get_string('manageblocks') .'</a></strong>',
                           get_string('adminhelpmanageblocks'));
    $table->data[] = array("<strong><a href=\"filters.php\">". get_string('managefilters') .'</a></strong>',
                           get_string('adminhelpmanagefilters'));
    if (!isset($CFG->disablescheduledbackups)) {
        $table->data[] = array("<strong><a href=\"backup.php\">".get_string("backup")."</a></strong>",
                               get_string('adminhelpbackup'));
    }

    $table->data[]= array("<strong><a href=\"editor.php\">". get_string('editorsettings') ."</a></strong>",
                    get_string('adminhelpeditorsettings'));
    $table->data[]= array("<strong><a href=\"calendar.php\">". get_string('calendarsettings', 'admin') ."</a></strong>",
                    get_string('helpcalendarsettings', 'admin'));
    $table->data[]= array("<strong><a href=\"maintenance.php\">". get_string('sitemaintenancemode', 'admin') ."</a></strong>",
                    get_string('helpsitemaintenance', 'admin'));
    print_table($table);
    
    print_footer($site);

?>