-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget.php
More file actions
44 lines (39 loc) · 1.08 KB
/
get.php
File metadata and controls
44 lines (39 loc) · 1.08 KB
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
40
41
42
43
44
<?php
if ( ( ( !isset($_GET['uid']) && !isset($_GET['secret']) ) || ( !isset($_POST['uid']) && !isset($_POST['secret']) ) ) && !isset($_COOKIE["hisdata"]))
{
echo trim(iconv('UTF-8', 'ASCII//IGNORE', "ERROR: GET parameters 'uid' and 'secret' must be defined"));
exit;
}
if (!isset($_GET['job']))
{
echo trim(iconv('UTF-8', 'ASCII//IGNORE', "ERROR: GET parameter 'job' must be defined"));
exit;
}
if (!isset($_GET['return']))
{
echo trim(iconv('UTF-8', 'ASCII//IGNORE', "ERROR: GET parameter 'return' must be defined"));
exit;
}
include("version.php");
include("demos.php");
include("controller.guard.php");
$find_job = new job_id_user();
$find_job->get_from_hashrange($u->id_user,$_GET['job']);
if ($find_job->id!="undefined")
{
if ($_GET['return']=="status")
{
echo trim(iconv('UTF-8', 'ASCII//IGNORE', $find_job->id_status));
}
if ($_GET['return']=="output")
{
$find_job->build(array("obj_rqdata","obj_response","obj_ad","obj_hf","obj_user"));
// 302
header("Location: ".$find_job->obj_output->val);
}
}
else
{
echo trim(iconv('UTF-8', 'ASCII//IGNORE', "undefined"));
}
?>