function bind() { //page vars $form_action = $_SERVER['PHP_SELF']; $this->onloadscript = "setFocus('txtEmail');"; //smarty $smarty = new Smarty(); $smarty->force_compile = true; $smarty->compile_dir = SMARTY_COMPILE_DIRECTORY; $smarty->assign("stats", stats::get_stats()); $smarty->assign("menu_item", "signup"); $smarty->assign("postcode", $this->postcode); $smarty->assign("email", $this->email); $smarty->assign("alert_area_size", $this->alert_area_size); $smarty->assign("page_title", "Email alerts of planning applications near you"); $smarty->assign("warnings", $this->warnings); $smarty->assign("email_warn", $this->email_warn); $smarty->assign("postcode_warn", $this->postcode_warn); $smarty->assign("onloadscript", $this->onloadscript); $smarty->assign("small_zone_size", SMALL_ZONE_SIZE); $smarty->assign("medium_zone_size", MEDIUM_ZONE_SIZE); $smarty->assign("large_zone_size", LARGE_ZONE_SIZE); //Render $smarty->display('index.tpl'); }
function bind() { $smarty = new Smarty(); $smarty->force_compile = true; $smarty->compile_dir = SMARTY_COMPILE_DIRECTORY; $smarty->assign("stats", stats::get_stats()); $smarty->assign("page_title", "Donate to the Planning Alerts server fund"); $smarty->assign("menu_item", "signup"); $smarty->display('donate.tpl'); }
function bind() { $form_action = $_SERVER['PHP_SELF']; $smarty = new Smarty(); $smarty->force_compile = true; $smarty->compile_dir = SMARTY_COMPILE_DIRECTORY; $smarty->assign("stats", stats::get_stats()); $smarty->assign("page_title", "API"); $smarty->assign("menu_item", "api"); $smarty->display('apihowto.tpl'); }
function bind() { //page vars $form_action = $_SERVER['PHP_SELF']; //smarty $smarty = new Smarty(); $smarty->force_compile = true; $smarty->compile_dir = SMARTY_COMPILE_DIRECTORY; $smarty->assign("stats", stats::get_stats()); $smarty->assign("page_title", "Get involved"); $smarty->assign("menu_item", "getinvolved"); //Render $smarty->display('getinvolved.tpl'); }
function bind() { //page vars $form_action = $_SERVER['PHP_SELF']; //smarty $smarty = new Smarty(); $smarty->force_compile = true; $smarty->compile_dir = SMARTY_COMPILE_DIRECTORY; $smarty->assign("stats", stats::get_stats()); $smarty->assign("page_title", "About"); $smarty->assign("menu_item", "about"); $smarty->assign("authorities", $this->authorities); //Render $smarty->display('about.tpl'); }
function bind() { $form_action = $_SERVER['PHP_SELF']; //smarty $smarty = new Smarty(); $smarty->force_compile = true; $smarty->compile_dir = SMARTY_COMPILE_DIRECTORY; $smarty->assign("stats", stats::get_stats()); $smarty->assign("menu_item", "signup"); $smarty->assign("page_title", "Unsubscribed"); $smarty->assign("postcode", $this->postcode); $smarty->assign("alert_area_size", $this->alert_area_size); //Render $smarty->display('unsubscribed.tpl'); }
Jarifa is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Jarifa is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Jarifa. If not, see <http://www.gnu.org/licenses/>. */ require_once "inc/stats.inc"; $st = new stats(); $projects = $st->get_projects(); foreach ($projects as $project) { $authenticator = $st->get_authenticator($project->url); if (!empty($authenticator)) { $xml = $st->get_stats($project->url, $authenticator); $st->insert_user_stats($xml, $project->name); foreach ($xml->host as $host) { $st->insert_host_stats($host, $xml->host_cpid, $project->name); } } } $st->draw_credit_per_day_user($projects); $st->draw_gflops_per_day_user($projects); $st->draw_credit_per_day_supplier($projects); $st->draw_gflops_per_day_supplier($projects); $st->draw_ncpus_per_host();