Changeset 125 in svn


Ignore:
Timestamp:
2006-09-03T02:20:24Z (9 years ago)
Author:
Xuefer
Message:

sync admin scripts with coverager

Location:
trunk/admin
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/common-en.lang.php

    r123 r125  
    11<?php
    22
    3 // empty
     3$GLOBALS['show_todo_strings'] = false;
    44
    55?>
  • trunk/admin/common.php

    r123 r125  
    3333            $file = get_language_file_ex($name, $l, $s);
    3434            if (isset($file)) {
     35                $lang = $l;
    3536                break;
    3637            }
    3738            if (strpos($l, '-') !== false) {
    38                 $l = strtok($l, '-');
    39                 $file = get_language_file_ex($name, $l, $s);
     39                $ll = strtok($l, '-');
     40                $file = get_language_file_ex($name, $ll, $s);
    4041                if (isset($file)) {
     42                    $lang = $l;
    4143                    break;
    4244                }
     
    6769
    6870include(get_language_file("common"));
     71if (!isset($lang)) {
     72    $lang = 'en-us';
     73}
    6974
    7075?>
  • trunk/admin/config.php.example

    r123 r125  
    1717{
    1818    $o = str_replace($_SERVER['DOCUMENT_ROOT'],  "{DOCROOT}/", $o);
     19    $xcachedir = realpath(dirname(__FILE__) . "/../");
     20    $o = str_replace($xcachedir . "/", "{XCache}/", $o);
    1921    $o = str_replace("/home/", "{H}/", $o);
    2022    return $o;
  • trunk/admin/help.php

    r123 r125  
    55<html xmlns="http://www.w3.org/1999/xhtml">
    66<head>
    7     <meta http-equiv="Content-Language" content="en-us" />
    87<?php
    98echo <<<HEAD
    109    <meta http-equiv="Content-Type" content="text/html; charset=$charset" />
    11       <meta http-equiv="Content-Language" content="$lang" />
     10    <meta http-equiv="Content-Language" content="$lang" />
    1211    <script type="text/javascript" src="tablesort.js" charset="$charset"></script>
    1312HEAD;
  • trunk/admin/xcache.css

    r123 r125  
    44table.cycles .col2 { background-color: #e0e0e0; }
    55table.cycles th, table.cycles td { border-top: 1px solid white; border-left: 1px solid white; }
    6 table.cycles th { background-color: #707090; color: white; font-weight: bold; height: 20px; line-height: 16px; font-family: serif; }
     6table.cycles th { background-color: #707090; color: white; font-weight: bold; height: 20px; line-height: 20px; font-family: serif; }
    77th a { color: white; font-weight: bold; display: block; width: 100%; height: 100%; }
    88.button { }
  • trunk/admin/xcache.tpl.php

    r123 r125  
    22<html xmlns="http://www.w3.org/1999/xhtml">
    33<head>
    4     <meta http-equiv="Content-Language" content="en-us" />
    54<?php
    65echo <<<HEAD
    76    <meta http-equiv="Content-Type" content="text/html; charset=$charset" />
     7    <meta http-equiv="Content-Language" content="$lang" />
    88    <script type="text/javascript" src="tablesort.js" charset="$charset"></script>
    99HEAD;
Note: See TracChangeset for help on using the changeset viewer.