Štatistiky
Napsal: 09 zář 2012, 21:09
od Dralons
93.91.250.120:37881
Ahojte mám taký problém a to že som si dal na server štatistiky a všetko funguje ale keď dám WebPortal na web tak my tam vypíšte toto:
index.php:
Používam tieto štatistiky http://dev.bukkit.org/server-mods/statisticianv2/
Ahojte mám taký problém a to že som si dal na server štatistiky a všetko funguje ale keď dám WebPortal na web tak my tam vypíšte toto:
Spoiler: zobrazit
Kód: Vybrat vše
Fatal error: require_once() [function.require]: Failed opening required '/data/c/r/craftportal.eu/sub/test/stats/statistician/_serverObj.php' (include_path='.:/usr/php5/lib/php') in /data/c/r/craftportal.eu/sub/test/stats/index.php on line 6
index.php:
Spoiler: zobrazit
Kód: Vybrat vše
<?php
define('__INC__', dirname(__FILE__) . '/');
require_once (__INC__ . 'statistician/config.php');
require_once (__INC__ . 'statistician/locale/' . LOCALE . '.php');
require_once (__INC__ . 'statistician/_serverObj.php');
require_once (__INC__ . 'statistician/_playerObj.php');
require_once (__INC__ . 'statistician/query_utils.php');
require_once (__INC__ . 'statistician/paginator.php');
require_once (__INC__ . 'statistician/version.php');
require_once (__INC__ . 'statistician/statistician.php');
$start = microtime(true);
$sObj = new STATISTICIAN();
$serverObj = $sObj->getServer();
?>
<!DOCTYPE HTML>
<head>
<title><?php echo (SERVER_NAME); ?> :: Statistician</title>
<link href="statistician.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery-1.5.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
$(window).load(function(){
/* Keep the template looking great :) */
$('#content').height($('#content').height() - 200);
});
</script>
</head>
<body>
<div id="topLeadBar">
<div id="titleMain"></div>
<div id="creeper"></div>
<div id="search">
<form action="./" method="get">
<input type="hidden" name="view" value="playerList">
<input type="text" name="search" value="">
<input type="submit" value="Search">
</form>
</div>
</div>
<div id="content">
<div id="listTitle"><a href="./?view=main"><?php echo (SERVER_NAME); ?></a></div>
<?php
if (!isset($_GET['view'])) {
$_GET['view'] = 'main';
}
switch ($_GET['view']) {
case 'player':
include('player_view.php');
break;
case 'playerBlock':
include ('player_blocks.php');
break;
case 'playerItems':
include ('player_items.php');
break;
case 'playerList':
include('player_list.php');
break;
case 'playerKills':
include('player_kills.php');
break;
case 'globalBlocks':
include('global_blocks.php');
break;
case 'globalItems':
include('global_items.php');
break;
case 'globalKills':
include ('global_kills.php');
break;
case 'main':
default:
include ('server_page.php');
break;
}
?>
</div>
<br />
<div id="copyright">Statistician by ChaseHQ :: <?php echo(STRING_MISC_RUNNING_DATABASE_VERSION); ?> <?php echo($sObj->getDatabaseVersion()); ?>
<br />
<?php echo (STRING_MISC_TRANSLATED_TO_BY); ?> <?php if (TRANSLATOR_CONTACT != '') { ?> <a href="<?php echo (TRANSLATOR_CONTACT); ?>"> <?php } echo(TRANSLATOR_NAME); ?><?php if (TRANSLATOR_CONTACT != '') { ?> </a> <?php } ?>
<br />
<?php echo(STRING_MISC_PORTAL_VERSION); ?> <?php echo VERSION; ?>
<br />
<?php
$end = microtime(true);
$runtime = $end - $start;
echo round($runtime, 2)." sec.";
?>
</div>
</body>
Používam tieto štatistiky http://dev.bukkit.org/server-mods/statisticianv2/