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

bug fixed: lang system wasn't working properly causing in not sending proper...

bug fixed: lang system wasn't working properly causing in not sending proper mails, NOTE: change in config! added basepath variable
parent bc2c225f
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
* Date: 8/8/14
* Time: 4:19 PM
*/
error_reporting(E_ALL | E_STRICT);
error_reporting(E_ALL);
ini_set("display_errors",1);
session_start();
......@@ -15,6 +15,7 @@ require_once("../frameworks/commons.php");
require_once("pages.php");
require_once("../config.inc.php");
require_once("../frameworks/medoo.php");
require '../lang.php';
$template = file_get_contents("../view/admin_template.html");
$title = "FSFahrt - Admin Panel";
......
......@@ -13,6 +13,10 @@ date_default_timezone_set("Europe/Berlin");
$config_verbose_level = 0; // 0 = nothing, 1 = important, 2 = somewhat important, 3 = detailed verbose, 4 = with sql
$config_admin_verbose_level = 0;
// Adjust variables here ========================================================================================================
$config_baseurl = "http://fsfahrt.repke.eu/anmeldung/registration-system/";
$config_basepath = "/var/www/vhosts/fsfahrt.repke.eu/httpdocs/anmeldung/registration-system";
$config_db = array(
"name" => "fsfahrt",
"user" => "fsfahrt",
......@@ -21,6 +25,10 @@ $config_db = array(
"type" => "mysql"
);
// ========= DONT TOUCH ANYTHING DOWN HERE!!!
$config_studitypen_o = array(
"ERSTI" => "Ersti", // 0
//"Wechsli", // 1 - woanders/was anderes studiert, jetzt hier
......@@ -70,11 +78,10 @@ $config_superadmins = array(
"tim", "manu"
);
*/
$config_userfile = __DIR__."/passwd/users.txt"; // relative to configfile
$config_current_fahrt_file = __DIR__."/config_current_fahrt_id";
$config_userfile = $config_basepath."/passwd/users.txt"; // relative to configfile
$config_current_fahrt_file = $config_basepath."/config_current_fahrt_id";
$config_mailtag = "[FS-Fahrt] - ";
$config_baseurl = "http://fsfahrt.repke.eu/anmeldung/registration-system/";
$config_current_fahrt_id = getCFID();
......
......@@ -116,10 +116,17 @@ function comm_send_mail($db_handle, $addr, $cont, $from = NULL){
'Reply-To: ' . $from. "\r\n" .
'X-Mailer: PHP/' . phpversion();
comm_verbose(3, "sending mail... from: ".$from."<br/>to:".$addr."<br />subject: ".$subj."<br/>content:".$mess);
return mail($addr, $config_mailtag.$subj, $mess, $headers);
}
function comm_get_lang($lang, $replace){
require_once(__DIR__."/../lang.php");
global $config_basepath;
//require_once($config_basepath."/lang.php");
//echo $config_basepath."/lang.php";
global $$lang;
comm_verbose(3,"found lang variable: <br />".$$lang);
return str_replace(array_keys($replace), array_values($replace), $$lang);
}
......@@ -17,7 +17,6 @@ $index_db = new medoo(array(
'password' => $config_db["pass"]
));
require 'view/default_index.php';
......
......@@ -6,7 +6,7 @@
* Time: 5:02 PM
*/
$lang_regmail = "
static $lang_regmail = "
Deine Anmeldung zur Fachschaftsfahrt\\\\
Hallo!
Vielen Dank für die Anmeldung bei der Fachschaftsfahrt. Den Status der Anmeldung kannst Du jederzeit auf folgender Seite überprüfen:
......@@ -18,7 +18,7 @@ Viele Grüße,
{{organisator}}!
";
$lang_waitmail = "
static $lang_waitmail = "
Warteliste zur Fachschaftsfahrt\\\\
Hallo!
Vielen Dank für die Vormerkung für die Fachschaftsfahrt. Den Status der Meldung kannst Du jederzeit auf folgender Seite überprüfen:
......@@ -32,7 +32,7 @@ Viele Grüße,
{{organisator}}!
";
$lang_waittoregmail = "
static $lang_waittoregmail = "
Deine Anmeldung zur Fachschaftsfahrt\\\\
Hallo!
......
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