if (isset($file)) { $lang = $l; break; } } } } } return isset($file) ? $file : "{$name}-en.lang.php"; } function _T($str) { if (isset($GLOBALS['strings'][$str])) { return $GLOBALS['strings'][$str]; } if (!empty($GLOBALS['show_todo_strings'])) { return '<span style="color:red">' . htmlspecialchars($str) . '</span>'; } return $str; } error_reporting(E_ALL); ini_set('display_errors', 'On'); define('REQUEST_TIME', time()); $charset = "UTF-8"; if (file_exists("./config.php")) { include "./config.php"; } include get_language_file("common"); if (!isset($lang)) { $lang = 'en-us'; }
<?php require_once "../common/common.php"; include get_language_file("./lang"); $module = "coverager";
<link rel="stylesheet" type="text/css" href="xcache.css" /> <title><?php echo _T('XCache Administration Help'); ?> </title> <script> function toggle(o) { o.style.display = o.style.display != 'block' ? 'block' : 'none'; } </script> </head> <body> <h1><?php echo _T('XCache Administration Help'); ?> </h1> <div id1="help"> <?php include get_language_file("help"); ?> </div> <?php echo _T('See also'); ?> : <a href="http://xcache.lighttpd.net/wiki/PhpIni">setting php.ini for XCache</a> in the <a href="http://xcache.lighttpd.net/">XCache wiki</a> </body> </html>
if (preg_match("/{$extension_preg}\$/iu", $file_name) > 0 && !in_array("{$path}/{$file_name}", $GLOBALS['exclude_files_array'])) { $file_list_array[] = "{$path}/{$file_name}"; } } } } } return sizeof($file_list_array) > 0; } function trim_quotes($string) { return trim($string, "'"); } set_time_limit(0); header('Content-Type: text/plain'); $lang = get_language_file("en.inc.php"); if (get_file_list($file_list_array, 'forum', '.php')) { echo "Please wait, checking files...\n\n"; foreach ($file_list_array as $file_path_name) { if (!($file_contents = @file_get_contents($file_path_name))) { continue; } preg_match_all('/\\$lang\\[([^\\]]+)\\]/', $file_contents, $matches_array); $matches_array = array_map('trim_quotes', $matches_array[1]); foreach ($matches_array as $match) { $file_contents = preg_replace(sprintf('/{\\$lang\\[\'%s\'\\]}/', preg_quote($match, '/')), sprintf('", gettext("%s"), "', $lang[$match]), $file_contents); $file_contents = preg_replace(sprintf('/\\$lang\\[\'%s\'\\]/', preg_quote($match, '/')), sprintf('gettext("%s")', $lang[$match]), $file_contents); } file_put_contents($file_path_name, $file_contents); } }
$_REQUEST = stripaddslashes_array($_REQUEST, $mqs); unset($mqs); } ini_set('magic_quotes_runtime', '0'); $config = array(); if (file_exists("./config.default.php")) { include "./config.default.php"; } include "../config.default.php"; if (file_exists("../config.php")) { include "../config.php"; } if (file_exists("./config.php")) { include "./config.php"; } $strings = array(); include get_language_file("../common/lang"); $modules = array(); if (file_exists("../cacher/index.php")) { $modules["cacher"] = _T("Cacher"); } if (file_exists("../coverager/index.php")) { $modules["coverager"] = _T("Coverager"); } if (file_exists("../diagnosis/index.php")) { $modules["diagnosis"] = _T("Diagnosis"); } header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); header("Content-Type: text/html; " . $GLOBALS['config']['charset']); header("Content-Language: " . $GLOBALS['config']['lang']);