Skip to content
Snippets Groups Projects
Commit 75e04209 authored by Tim Repke's avatar Tim Repke
Browse files

date and encoding settings moved to config - that makes it global

parent 8e4f5db9
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,6 @@
session_start();
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');
mb_http_input('UTF-8');
mb_language('uni');
mb_regex_encoding('UTF-8');
ob_start('mb_output_handler');
date_default_timezone_set("Europe/Berlin");
require_once("commons_admin.php");
require_once("pages.php");
require_once("../config.inc.php");
......
......@@ -19,6 +19,7 @@ $mitfahrer['gesaa'] = $admin_db->count("bachelor", ["fahrt_id" => $config_cur
$antag = $admin_db->query("SELECT date_format(von, '%j') as von FROM fahrten WHERE fahrt_id=$config_current_fahrt_id")->fetchAll()[0]['von'];
$abtag = $admin_db->query("SELECT date_format(bis, '%j') as von FROM fahrten WHERE fahrt_id=$config_current_fahrt_id")->fetchAll()[0]['bis'];
$tmp = $admin_db->query("SELECT date_format(antag, '%j') as antag, SELECT date_format(abtag, '%j') as abtag FROM bachelor WHERE fahrt_id=$config_current_fahrt_id")->fetchAll()[0]['bis'];
$mitfahrer['erste'] = $admin_db->count("bachelor", ["AND"=>
["backstepped" => NULL,
"fahrt_id" => $config_current_fahrt_id,
......
......@@ -2,6 +2,14 @@
// https://repke.eu:8443
// passwort manu:kuzerPenis666!
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');
mb_http_input('UTF-8');
mb_language('uni');
mb_regex_encoding('UTF-8');
ob_start('mb_output_handler');
date_default_timezone_set("Europe/Berlin");
$config_verbose_level = 3; // 0 = nothing, 1 = important, 2 = somewhat important, 3 = detailed verbose, 4 = with sql
$config_admin_verbose_level = 3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment