/openshift/adei

To get this branch, use:
bzr branch http://darksoft.org/webbzr/openshift/adei

« back to all changes in this revision

Viewing changes to admin/index.php

  • Committer: Suren A. Chilingaryan
  • Date: 2008-06-17 23:19:26 UTC
  • Revision ID: csa@dside.dyndns.org-20080617231926-w9mpfxw6lv0r0450
Administrative interface and better handling of missing group channels

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
require("../adei.php");
 
3
 
 
4
header("Content-Type: text/html; charset=UTF-8");
 
5
header("Cache-Control: no-cache, must-revalidate");
 
6
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
 
7
 
 
8
/*
 
9
$_GET = array(
 
10
    "page"=> "cacheinfo.php",
 
11
    "table_info" => true,
 
12
    "item_info" => true,
 
13
);
 
14
*/
 
15
 
 
16
?>
 
17
<html>
 
18
<head>
 
19
 <style type="text/css">
 
20
    .header {
 
21
    }
 
22
    .header a {
 
23
        padding: 5px;
 
24
        margin-bottom: 2px;
 
25
        color: #000055;
 
26
        background: #F0F0F0;
 
27
        font-weight: bold;
 
28
        border: 1px solid #C0C0C0;
 
29
        text-decoration: none;
 
30
    }
 
31
    .header a:hover {
 
32
        border: 1px #007000 solid; 
 
33
        background: #FDD;
 
34
    }
 
35
    
 
36
    .error {
 
37
        color: red;
 
38
        font-weight: bold;
 
39
    }
 
40
    
 
41
    .group {
 
42
        background: grey;
 
43
    }
 
44
    
 
45
    .list {
 
46
        background: #FF855B;
 
47
    }
 
48
    
 
49
 </style>
 
50
</head>
 
51
<body>
 
52
 <div class="header">
 
53
    <a href="index.php?page=cacheinfo.php&table_info">Cache Info</a>
 
54
    <a href="index.php?page=cacheinfo.php&table_info&item_info">Extended Cache Info</a>
 
55
    <a href="index.php?page=logview.php">Log Viewer</a>
 
56
 </div>
 
57
<?php
 
58
 
 
59
    $page = $_GET['page'];
 
60
    if (($page)&&(preg_match("/^[\w\d_.]+\.php$/", $page))&&(is_file("admin/$page"))) {
 
61
        require("admin/$page");
 
62
    }
 
63
?></body></html>
 
 
b'\\ No newline at end of file'