-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajax.php
More file actions
39 lines (23 loc) · 658 Bytes
/
Copy pathajax.php
File metadata and controls
39 lines (23 loc) · 658 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
28
29
30
31
32
33
34
35
36
37
38
39
<?php
header('Access-Control-Allow-Origin: *');
include('configuration.php');
require_once ($config['path_wp-config']);
define('ROOT', dirname(__FILE__));
//check debug mode
if ($config['debug_mode'] === true)
{
error_reporting(E_ALL);
ini_set('display_errors', 'off');
ini_set('log_errors', 'on');
ini_set('error_log', 'error.log');
}
include('libraries/alice/alice.php');
if ( !is_user_logged_in() ) {
die();
login();
}
if (getVar('com')<>'debug'){
error_log('AJAX called -> component [' . getVar('com') . '] and task [' . getVar('task') .']' );
}
include('includes/component_selector.php');
?>