$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'],
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
{
define('_START_HOUR' , ADD_SELECTION("hour" , date("G", time()), "start"));
define('_START_DAY' , ADD_SELECTION("day" , date("d", time()), "start"));
define('_START_MONTH', ADD_SELECTION("month", date("m", time()), "start"));
-define('_START_YEAR' , ADD_SELECTION("year" , date("Y", time()), "start"));
+define('_START_YEAR' , ADD_SELECTION("year" , date('Y', time()), "start"));
// Calcualte ending date
$D = date("d", time() + (ONE_DAY * 7));
$M = date("m", time() + (ONE_DAY * 7));
-$Y = date("Y", time() + (ONE_DAY * 7));
+$Y = date('Y', time() + (ONE_DAY * 7));
// Ending day
define('_END_SEC' , ADD_SELECTION("sec" , "0" , "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");