register: include functions.php before checking for action parameter to set proper error_reporting (fixes )

This commit is contained in:
Andrew Dolgov 2012-04-12 14:03:34 +04:00
parent e2d1c16ed1
commit f9c0fc6eb7
1 changed files with 2 additions and 2 deletions

View File

@ -9,14 +9,14 @@
require_once 'lib/phpmailer/class.phpmailer.php'; require_once 'lib/phpmailer/class.phpmailer.php';
$action = $_REQUEST["action"];
require_once "functions.php"; require_once "functions.php";
require_once "sessions.php"; require_once "sessions.php";
require_once "sanity_check.php"; require_once "sanity_check.php";
require_once "config.php"; require_once "config.php";
require_once "db.php"; require_once "db.php";
$action = $_REQUEST["action"];
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
if (!init_connection($link)) return; if (!init_connection($link)) return;