sync admin scripts with coverager
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@125 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
parent
e96f9d50d0
commit
255ddf1cc8
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
|
||||
// empty
|
||||
$GLOBALS['show_todo_strings'] = false;
|
||||
|
||||
?>
|
||||
|
|
|
@ -32,12 +32,14 @@ function get_language_file($name)
|
|||
$l = strtok($l, ';');
|
||||
$file = get_language_file_ex($name, $l, $s);
|
||||
if (isset($file)) {
|
||||
$lang = $l;
|
||||
break;
|
||||
}
|
||||
if (strpos($l, '-') !== false) {
|
||||
$l = strtok($l, '-');
|
||||
$file = get_language_file_ex($name, $l, $s);
|
||||
$ll = strtok($l, '-');
|
||||
$file = get_language_file_ex($name, $ll, $s);
|
||||
if (isset($file)) {
|
||||
$lang = $l;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -66,5 +68,8 @@ if (file_exists("./config.php")) {
|
|||
}
|
||||
|
||||
include(get_language_file("common"));
|
||||
if (!isset($lang)) {
|
||||
$lang = 'en-us';
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -16,6 +16,8 @@ $show_todo_strings = false;
|
|||
function ob_filter_path_nicer($o)
|
||||
{
|
||||
$o = str_replace($_SERVER['DOCUMENT_ROOT'], "{DOCROOT}/", $o);
|
||||
$xcachedir = realpath(dirname(__FILE__) . "/../");
|
||||
$o = str_replace($xcachedir . "/", "{XCache}/", $o);
|
||||
$o = str_replace("/home/", "{H}/", $o);
|
||||
return $o;
|
||||
}
|
||||
|
|
|
@ -4,11 +4,10 @@ include("./common.php");
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Language" content="en-us" />
|
||||
<?php
|
||||
echo <<<HEAD
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=$charset" />
|
||||
<meta http-equiv="Content-Language" content="$lang" />
|
||||
<meta http-equiv="Content-Language" content="$lang" />
|
||||
<script type="text/javascript" src="tablesort.js" charset="$charset"></script>
|
||||
HEAD;
|
||||
?>
|
||||
|
|
|
@ -3,7 +3,7 @@ table.cycles { border: 1px solid black; background: white; margin-top: 5px; marg
|
|||
table.cycles .col1 { background-color: #f5f5f5; }
|
||||
table.cycles .col2 { background-color: #e0e0e0; }
|
||||
table.cycles th, table.cycles td { border-top: 1px solid white; border-left: 1px solid white; }
|
||||
table.cycles th { background-color: #707090; color: white; font-weight: bold; height: 20px; line-height: 16px; font-family: serif; }
|
||||
table.cycles th { background-color: #707090; color: white; font-weight: bold; height: 20px; line-height: 20px; font-family: serif; }
|
||||
th a { color: white; font-weight: bold; display: block; width: 100%; height: 100%; }
|
||||
.button { }
|
||||
span.sortarrow { color: white; text-decoration: none; }
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Language" content="en-us" />
|
||||
<?php
|
||||
echo <<<HEAD
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=$charset" />
|
||||
<meta http-equiv="Content-Language" content="$lang" />
|
||||
<script type="text/javascript" src="tablesort.js" charset="$charset"></script>
|
||||
HEAD;
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue