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

17 lines
372 B
PHP

<?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();
}
}
?>