This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/scripts/site/main/handlers/contrib.inc

18 lines
372 B
PHP
Raw Normal View History

2016-01-10 11:01:49 +01:00
<?php
class page_handler {
var $needsAuth = true;
var $ajax = array();
private function getCredits() {
return dbFetchHash($this->game->getDBAccess()->query("SELECT resources_used, credits_obtained FROM credits WHERE account = {$_SESSION['userid']}"));
}
public function handle($input) {
$this->output = "contrib";
$this->data = $this->getCredits();
}
}
?>