blob: e12128781f9ae27424f4c619e8573063215736b5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
require_once('event.inc.php');
if (!empty($_SERVER['HTTP_CLIENT_IP']))
$ip=$_SERVER['HTTP_CLIENT_IP'];
else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
else
$ip=$_SERVER['REMOTE_ADDR'];
if(!event::validate_ip())
{
exit;
}
$fname = $_POST['fname'];
$name = $_POST['name'];
$arg = json_decode($_POST['arg']);
if(event::exec_func($fname, $name, $arg) === false)
{
echo "false";
}
else
{
echo "true";
}
?>
|