lwb5-in-2025/game/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();
}
}
?>