-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
27 lines (24 loc) · 686 Bytes
/
Copy pathinit.php
File metadata and controls
27 lines (24 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/*
Author:Praveen Innocent.
*/
// Start the session. Important.
if (!isset($_SESSION)) session_start();
define( 'ABSPATH', dirname(__FILE__) . '/' );
require_once( ABSPATH . "core/ConfigOverride.php" );
require_once( ABSPATH . "core/Config.php" );
require_once( ABSPATH . "core/loader.php" );
if(get_magic_quotes_gpc()){
// If magic quotes is enabled, strip the extra slashes
array_walk_recursive($_GET,create_function('&$v,$k','$v = stripslashes($v);'));
array_walk_recursive($_POST,create_function('&$v,$k','$v = stripslashes($v);'));
}
try {
DB::init($dbOptions);
}
catch(Exception $e){
die(json_encode(array('error' => $e->getMessage())));
}
$msg = "";
ob_start();
?>