$proceed = false; } //_________check admin email________ if ($proceed && !$process->CheckFormatEmail('admin_email')) { $notifications = 1; $notice = "Error! - Invalid admin email address"; $proceed = false; } //_________check system email________ if ($proceed && !$process->CheckFormatEmail('notifications_from_email')) { $notifications = 1; $notice = "Error! - Invalid system email address"; $proceed = false; } //_________check admin email________ if ($proceed && !$process->CheckFieldMatch('admin_password, admin_password_confirm')) { $notifications = 1; $notice = "Error! - Passwords do not match"; $proceed = false; } //_________everything is fine - finish________ if ($proceed) { $site_name = mysql_real_escape_string($_POST['site_name']); $site_base_url = mysql_real_escape_string($_POST['site_base_url']); //remove starting / if (substr($site_base_url, 0, 1) == '/') { $site_base_url = substr($site_base_url, 1); } $date_format = mysql_real_escape_string($_POST['date_format']); $path_to_ffmpeg = mysql_real_escape_string($_POST['path_to_ffmpeg']); $path_to_flvtool2 = mysql_real_escape_string($_POST['path_to_flvtool2']);