X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-add_rallye.php;h=0b46d156de42cd30e6d0594d8c2876676dd4e7db;hp=2d08ad826b490bb98c551f29feba7ca0007a3a79;hb=0a7e0faba4feaf17432cbdcaf17eb7d2f3812a1e;hpb=e1653405d28923c78b2e292125306ccf61138f24 diff --git a/inc/modules/admin/what-add_rallye.php b/inc/modules/admin/what-add_rallye.php index 2d08ad826b..0b46d156de 100644 --- a/inc/modules/admin/what-add_rallye.php +++ b/inc/modules/admin/what-add_rallye.php @@ -56,7 +56,7 @@ if (isset($_POST['ok'])) $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_rallye_data (admin_id, title, descr, template, start_time, end_time, auto_add_new_user, is_active, send_notify) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", array( - GET_ADMIN_ID($_COOKIE['admin_login']), + GET_ADMIN_ID(get_session('admin_login')), $_POST['title'], $_POST['descr'], $_POST['template'], @@ -76,7 +76,7 @@ VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", if (!empty($id)) { // Reload to prices... - LOAD_URL(URL."/modules.php?module=admin&what=config_rallye_prices&rallye=".$id); + LOAD_URL("modules.php?module=admin&what=config_rallye_prices&rallye=".$id); } else { @@ -121,7 +121,7 @@ define('_END_MONTH', ADD_SELECTION("month", $M , "end")); define('_END_YEAR' , ADD_SELECTION("year" , $Y , "end")); // Transfer (maybe found) templates into constant for the template -define ('_TEMPLATES', RALLYE_TEMPLATE_SELECTION()); +define('_TEMPLATES', RALLYE_TEMPLATE_SELECTION()); // Load template LOAD_TEMPLATE("admin_add_rallye");