- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget.program.php
More file actions
Latest commit
31 lines (25 loc) · 544 Bytes
/
Copy pathget.program.php
File metadata and controls
31 lines (25 loc) · 544 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
<?
require_once"Program.php";
require_once"inc_functions.php";
require_once"krumo/class.krumo.php";
global$programs;
if (isset($_GET['url']))
{
$_POST['url'] = $_GET['url'];
$debug = 1;
}
else
$debug = 0;
if (isset($_POST['url']))
{
$url = $_POST['url'];
$dis_program = newProgram($url);
if (!$dis_program->extract_code())
die("false;extractFail");
if (!$dis_program->import())
die("false;importFail");
echo"true;".$dis_program->getJson();
array_push($programs, $dis_program);
}
else
echo"false;noData";