Changeset 107


Ignore:
Timestamp:
2006-08-27T12:48:14+02:00 (8 years ago)
Author:
moo
Message:

show XCache version

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/xcache.css

    r60 r107  
    1616.switcher a.active { font-weight: bold; font-size: 130%; color: black; } 
    1717#help { display: block; float: right; } 
     18.footnote { text-align: right; font-size: 12px; } 
  • trunk/admin/xcache.php

    r84 r107  
    189189$type_var = XC_TYPE_VAR; 
    190190$types = array($type_none => 'Statistics', $type_php =>'List PHP', $type_var =>'List Var Data'); 
     191$xcache_version = XCACHE_VERSION; 
     192$xcache_modules = XCACHE_MODULES; 
    191193 
    192194include("xcache.tpl.php"); 
  • trunk/admin/xcache.tpl.php

    r84 r107  
    1111 
    1212    <link rel="stylesheet" type="text/css" href="xcache.css" /> 
    13     <title>XCache Administration</title> 
     13    <title>XCache <?php echo $xcache_version; ?> Administration</title> 
    1414</head> 
    1515 
    1616<body> 
    17 <h1>XCache Administration</h1> 
     17<h1>XCache <?php echo $xcache_version; ?> Administration</h1> 
    1818<a href="help.php" target="_blank" id="help">Help &raquo;</a> 
    1919<span class="switcher"><?php echo switcher("type", $types); ?></span> 
     
    237237} 
    238238?> 
     239<div class="footnote"> 
     240<?php echo <<<EOS 
     241Powered By: {$xcache_version}, {$xcache_modules} 
     242EOS; 
     243?> 
     244</div> 
     245 
    239246</body> 
    240247</html> 
  • trunk/xcache.c

    r105 r107  
    948948    zend_register_long_constant(ZEND_STRS("XC_TYPE_PHP"), XC_TYPE_PHP, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
    949949    zend_register_long_constant(ZEND_STRS("XC_TYPE_VAR"), XC_TYPE_VAR, CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
     950    zend_register_stringl_constant(ZEND_STRS("XCACHE_VERSION"), ZEND_STRS(XCACHE_VERSION), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
     951    zend_register_stringl_constant(ZEND_STRS("XCACHE_MODULES"), ZEND_STRS(XCACHE_MODULES), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC); 
    950952    return 0; 
    951953} 
Note: See TracChangeset for help on using the changeset viewer.