philippe_mingo 23 vuotta sitten
vanhempi
commit
50a67b3903
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      src/validate.php

+ 2 - 3
src/validate.php

@@ -9,9 +9,9 @@
 * $Id$
 * $Id$
 */
 */
 
 
-global $username, $attachment_dir;
-
+require_once('../config/config.php');
 require_once('../functions/prefs.php');
 require_once('../functions/prefs.php');
+global $username, $attachment_dir;
 
 
 session_save_path( getHashedDir($username, $attachment_dir) );
 session_save_path( getHashedDir($username, $attachment_dir) );
 session_start();
 session_start();
@@ -66,7 +66,6 @@ if (isset($send)
 * Include them down here instead of at the top so that all config
 * Include them down here instead of at the top so that all config
 * variables overwrite any passed in variables (for security).
 * variables overwrite any passed in variables (for security).
 */
 */
-require_once('../config/config.php');
 require_once('../src/load_prefs.php');
 require_once('../src/load_prefs.php');
 require_once('../functions/page_header.php');
 require_once('../functions/page_header.php');
 require_once('../functions/prefs.php');
 require_once('../functions/prefs.php');