Browse Source

show XCache version

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@107 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.1
Xuefer 15 years ago
parent
commit
9e78cefd66
  1. 1
      admin/xcache.css
  2. 2
      admin/xcache.php
  3. 11
      admin/xcache.tpl.php
  4. 2
      xcache.c

1
admin/xcache.css

@ -15,3 +15,4 @@ form {margin: 0; padding: 0}
.switcher * { color: blue; }
.switcher a.active { font-weight: bold; font-size: 130%; color: black; }
#help { display: block; float: right; }
.footnote { text-align: right; font-size: 12px; }

2
admin/xcache.php

@ -188,6 +188,8 @@ default:
$type_php = XC_TYPE_PHP;
$type_var = XC_TYPE_VAR;
$types = array($type_none => 'Statistics', $type_php =>'List PHP', $type_var =>'List Var Data');
$xcache_version = XCACHE_VERSION;
$xcache_modules = XCACHE_MODULES;
include("xcache.tpl.php");

11
admin/xcache.tpl.php

@ -10,11 +10,11 @@ HEAD;
?>
<link rel="stylesheet" type="text/css" href="xcache.css" />
<title>XCache Administration</title>
<title>XCache <?php echo $xcache_version; ?> Administration</title>
</head>
<body>
<h1>XCache Administration</h1>
<h1>XCache <?php echo $xcache_version; ?> Administration</h1>
<a href="help.php" target="_blank" id="help">Help &raquo;</a>
<span class="switcher"><?php echo switcher("type", $types); ?></span>
<?php
@ -236,5 +236,12 @@ ENTRY;
}
}
?>
<div class="footnote">
<?php echo <<<EOS
Powered By: {$xcache_version}, {$xcache_modules}
EOS;
?>
</div>
</body>
</html>

2
xcache.c

@ -947,6 +947,8 @@ static int xc_init_constant(int module_number TSRMLS_DC) /* {{{ */
zend_register_long_constant(ZEND_STRS("XC_SIZEOF_TEMP_VARIABLE"), sizeof(temp_variable), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);
zend_register_long_constant(ZEND_STRS("XC_TYPE_PHP"), XC_TYPE_PHP, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);
zend_register_long_constant(ZEND_STRS("XC_TYPE_VAR"), XC_TYPE_VAR, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);
zend_register_stringl_constant(ZEND_STRS("XCACHE_VERSION"), ZEND_STRS(XCACHE_VERSION), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);
zend_register_stringl_constant(ZEND_STRS("XCACHE_MODULES"), ZEND_STRS(XCACHE_MODULES), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC);
return 0;
}
/* }}} */

Loading…
Cancel
Save