Changeset 371
- Timestamp:
- 05/05/2007 10:30:14 AM (19 months ago)
- Location:
- trunk
- Files:
-
- 4 added
- 6 modified
-
NEWS (modified) (1 diff)
-
admin/common-zh-simplified-utf-8.lang.php (modified) (1 diff)
-
admin/common-zh-traditional-utf-8.lang.php (modified) (1 diff)
-
admin/edit.php (added)
-
admin/edit.tpl.php (added)
-
admin/footer.tpl.php (added)
-
admin/header.tpl.php (added)
-
admin/xcache.css (modified) (1 diff)
-
admin/xcache.php (modified) (1 diff)
-
admin/xcache.tpl.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEWS
r329 r371 2 2 == NEWS == 3 3 == ChangeLog == 4 * #86: remove/edit variable in admin page 4 5 * fixed #56: xcache_set segfaults when xcache.var_size=0 5 6 -
trunk/admin/common-zh-simplified-utf-8.lang.php
r360 r371 97 97 'Module Info' 98 98 => '模块信息', 99 ' '100 => ' ',101 ' '102 => ' ',99 'Remove Selected' 100 => '删除所选', 101 'Editing Variable %s' 102 => '正在编辑变量 %s', 103 103 '' 104 104 => '', -
trunk/admin/common-zh-traditional-utf-8.lang.php
r360 r371 97 97 'Module Info' 98 98 => '組元訊息', 99 ' '100 => ' ',101 ' '102 => ' ',99 'Remove Selected' 100 => '移除所选', 101 'Editing Variable %s' 102 => '正在编辑变量 %s', 103 103 '' 104 104 => '', -
trunk/admin/xcache.css
r352 r371 23 23 .percent div { font-size: 1px; line-height: 1px; width: 100%;} 24 24 .percent .pavail { background: blue; } 25 .switcher, h1 { text-align: center; display: block; }25 .switcher, h1, h2 { text-align: center; display: block; } 26 26 .switcher * { color: blue; } 27 27 .switcher a.active { font-weight: bold; font-size: 130%; color: black; } -
trunk/admin/xcache.php
r250 r371 100 100 $pcnt = xcache_count(XC_TYPE_PHP); 101 101 $vcnt = xcache_count(XC_TYPE_VAR); 102 103 if ($_SERVER['REQUEST_METHOD'] == 'POST') { 104 $remove = @ $_POST['remove']; 105 if ($remove && is_array($remove)) { 106 foreach ($remove as $name) { 107 xcache_unset($name); 108 } 109 } 110 } 102 111 103 112 $moduleinfo = null; -
trunk/admin/xcache.tpl.php
r363 r371 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <?php 5 echo <<<HEAD 6 <meta http-equiv="Content-Type" content="text/html; charset=$charset" /> 7 <meta http-equiv="Content-Language" content="$lang" /> 8 <script type="text/javascript" src="tablesort.js" charset="$charset"></script> 9 HEAD; 10 ?> 11 12 <link rel="stylesheet" type="text/css" href="xcache.css" /> 13 <title><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></title> 14 </head> 15 16 <body> 17 <h1><?php echo sprintf(_T("XCache %s Administration"), $xcache_version); ?></h1> 1 <?php include("header.tpl.php"); ?> 18 2 <a href="help.php" target="_blank" id="help"><?php echo _T("Help") ?> »</a> 19 3 <span class="switcher"><?php echo switcher("type", $types); ?></span> … … 143 127 ?> 144 128 129 <form action="" method="post"> 145 130 <table cellspacing="0" cellpadding="4" class="cycles entrys" width="100%"> 146 131 <col /> 147 132 <col /> 133 <col /> 148 134 <col align="right" /> 149 135 <col align="right" /> … … 167 153 ?> 168 154 155 <?php if (!$isphp) { ?> 156 <th width="20">R</th> 157 <?php } ?> 169 158 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('Cache'); ?></a></th> 170 159 <th><a href="javascript:" onclick="resort(this); return false"><?php echo _T('entry'); ?></a></th> … … 210 199 } 211 200 201 if (!$isphp) { 202 echo <<<ENTRY 203 <td><input type="checkbox" name="remove[]" value="{$name}"/></td> 204 ENTRY; 205 $uname = urlencode($entry['name']); 206 $namelink = "<a href=\"edit.php?name=$uname\">$name</a>"; 207 } 208 else { 209 $namelink = $name; 210 } 211 212 212 echo <<<ENTRY 213 213 <td>{$entry['cache_name']} {$i}</td> 214 <td>{$name }</td>214 <td>{$namelink}</td> 215 215 <td int="{$entry['hits']}">{$entry['hits']}</td> 216 216 <td int="{$entry['refcount']}">{$entry['refcount']}</td> … … 248 248 249 249 </table> 250 <input type="submit" value="<?php echo _T("Remove Selected"); ?>"> 251 </form> 250 252 <?php 251 253 } … … 262 264 } 263 265 ?> 264 <div class="footnote"> 265 <?php echo <<<EOS 266 Powered By: XCache {$xcache_version}, {$xcache_modules} 267 EOS; 268 ?> 269 </div> 270 271 </body> 272 </html> 266 <?php include("footer.tpl.php"); ?>

