2013-06-29 04:46:10 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
2013-06-29 17:05:54 +00:00
|
|
|
function libuserlist(){
|
2013-07-18 10:43:33 +00:00
|
|
|
if(Ticket_User::isAdmin($_SESSION['ticket_user'])){
|
2013-06-29 17:05:54 +00:00
|
|
|
|
2013-08-05 02:37:20 +00:00
|
|
|
$pagination = new Pagination("SELECT * FROM ams_querycache","lib",1,"Querycache");
|
|
|
|
print "<font color='red'>1 elements / page </font><br/>";
|
|
|
|
print "<font color='green'>7 links max</font>";
|
|
|
|
print "<br/><br/>";
|
|
|
|
print "last page=";
|
|
|
|
print_r($pagination->getLast());
|
|
|
|
print "<br/>----------------------------------------------<br/>";
|
|
|
|
print "elements:";
|
|
|
|
print_r($pagination->getElements());
|
|
|
|
print "<br/>----------------------------------------------<br/>";
|
|
|
|
print "links:";
|
|
|
|
print_r($pagination->getLinks(7));
|
|
|
|
exit;
|
2013-06-29 17:05:54 +00:00
|
|
|
|
2013-07-03 16:49:23 +00:00
|
|
|
//check if shard is online
|
|
|
|
try{
|
2013-07-10 10:36:14 +00:00
|
|
|
$dbs = new DBLayer("shard");
|
2013-07-03 16:49:23 +00:00
|
|
|
$pageResult['shard'] = "online";
|
|
|
|
}catch(PDOException $e) {
|
|
|
|
$pageResult['shard'] = "offline";
|
2013-06-29 17:05:54 +00:00
|
|
|
}
|
2013-07-03 16:49:23 +00:00
|
|
|
return $pageResult;
|
|
|
|
}else{
|
|
|
|
//ERROR: No access!
|
|
|
|
$_SESSION['error_code'] = "403";
|
|
|
|
header("Location: index.php?page=error");
|
|
|
|
exit;
|
2013-06-29 17:05:54 +00:00
|
|
|
}
|
|
|
|
}
|