-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathvalidate.php
36 lines (32 loc) · 1.12 KB
/
validate.php
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
<?php
/****************************************************************************************
* LiveZilla ticket.php
*
* Copyright 2018 LiveZilla GmbH
* All rights reserved.
* LiveZilla is a registered trademark.
*
* Improper changes to this file may cause critical errors.
***************************************************************************************/
define("IN_LIVEZILLA",true);
header('Content-Type: text/html; charset=utf-8');
if(!defined("LIVEZILLA_PATH"))
define("LIVEZILLA_PATH","./");
require(LIVEZILLA_PATH . "_definitions/definitions.inc.php");
require(LIVEZILLA_PATH . "_lib/functions.global.inc.php");
require(LIVEZILLA_PATH . "_definitions/definitions.dynamic.inc.php");
require(LIVEZILLA_PATH . "_definitions/definitions.protocol.inc.php");
if(is_numeric($_GET["inputid"]))
{
if(Is::WildcardMatch(strtolower(Encoding::Base64UrlDecode($_GET["data"])),strtolower($_GET["value"])))
{
echo "lz_validate_input_result(true,".intval($_GET["inputid"]).");";
exit();
}
else
{
echo "lz_validate_input_result(false,".intval($_GET["inputid"]).");";
exit();
}
}
?>