$smarty = new Smarty(); $smarty->template_dir = 'C:\\Users\\Sven\\Projekte\\Lakitu\\templates'; $smarty->config_dir = ' C:\\Users\\Sven\\Projekte\\smarty\\config'; $smarty->cache_dir = 'C:\\Users\\Sven\\Projekte\\smarty\\cache'; $smarty->compile_dir = 'C:\\Users\\Sven\\Projekte\\smarty\\templates_c'; //page_header::add_css_src('/styles/bootstrap3.3.4.css'); //page_header::add_css_src('/styles/admin.css'); //page_footer::add_js_src('/js/admin/bootstrap3.3.4.js'); //page_footer::add_js_src('/run_adm/dev/lakitu/js/lakitu.js'); $is_mobile = false; if (strpos($_SERVER['HTTP_USER_AGENT'], 'Android') !== false) { $is_mobile = true; } // Resets all elo points if (isset($_GET['reset_elo'])) { kicker::reset_elo_points(); } // Calculates new elo-points if (isset($_GET['calc_elo_new'])) { kicker::calculate_elostats(true); } //if (isset($_GET['calc_elo_today'])) { // kicker::calculate_elostats(date('Y-m-d')); //} if (isset($_POST['add_availability_lunch'])) { kicker::add_availability($_POST['add_availability_lunch'], kicker::AFTER_LUNCH); } elseif (isset($_POST['add_availability_work'])) { kicker::add_availability($_POST['add_availability_work'], kicker::AFTER_WORK); } elseif (isset($_POST['remove_availability'])) { kicker::remove_availability($_POST['remove_availability']); }