Browse Source
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@371 c26eb9a1-5813-0410-bd6c-c2e55f420ca73.0

10 changed files with 104 additions and 36 deletions
@ -0,0 +1,25 @@
|
||||
<?php |
||||
|
||||
include("./common.php"); |
||||
|
||||
if (!isset($_GET['name'])) { |
||||
die("missing name"); |
||||
} |
||||
|
||||
$name = $_GET['name']; |
||||
// trigger auth |
||||
$vcnt = xcache_count(XC_TYPE_VAR); |
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') { |
||||
xcache_set($name, $_POST['value']); |
||||
header("Location: xcache.php?type=" . XC_TYPE_VAR); |
||||
exit; |
||||
} |
||||
$value = xcache_get($name); |
||||
|
||||
$xcache_version = XCACHE_VERSION; |
||||
$xcache_modules = XCACHE_MODULES; |
||||
|
||||
include("edit.tpl.php"); |
||||
|
||||
?> |
@ -0,0 +1,13 @@
|
||||
<?php include("header.tpl.php"); ?> |
||||
<?php |
||||
$h_name = htmlspecialchars($name); |
||||
$h_value = htmlspecialchars($value); |
||||
?> |
||||
<form method="post" action=""> |
||||
<fieldset> |
||||
<legend><?php echo sprintf(_T("Editing Variable %s"), $h_name); ?></legend>
|
||||
<textarea name="value" style="width: 100%; height: 200px; overflow-y: auto"><?php echo $h_value; ?></textarea><br>
|
||||
<input type="submit"> |
||||
</fieldset> |
||||
</form> |
||||
<?php include("footer.tpl.php"); ?> |
@ -0,0 +1,9 @@
|
||||
<div class="footnote"> |
||||
<?php echo <<<EOS |
||||
Powered By: XCache {$xcache_version}, {$xcache_modules} |
||||
EOS; |
||||
?> |
||||
</div> |
||||
|
||||
</body> |
||||
</html> |
@ -0,0 +1,17 @@
|
||||
<!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> |
||||
<?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; |
||||
?> |
||||
|
||||
<link rel="stylesheet" type="text/css" href="xcache.css" /> |
||||
<title><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></title>
|
||||
</head> |
||||
|
||||
<body> |
||||
<h1><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></h1>
|
Loading…
Reference in new issue