-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
57 lines (49 loc) · 1.39 KB
/
index.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
require 'vendor/autoload.php';
$file = $_GET['file'];
$proj = $_GET['proj'];
if($proj == ""){
$proj = "classcalls";
}
$area = in_array($_GET['area'],array("file","class","goto","createnew"))?$_GET['area']:"";
$ajax = in_array($_GET['ajax'],array("code","problems","file","class","projects"))?$_GET['ajax']:"";
$unrct = new general\unreachablecodetool();
if($ajax) {
switch($ajax) {
case 'code':
echo $unrct->ajaxgetcode($file);
break;
case 'file':
echo $unrct->ajaxgetfilecalls($file,$proj);
break;
case 'projects':
echo $unrct->ajaxgetprojects($file);
break;
case 'problems':
echo $unrct->ajaxgetcodeproblems($file, $proj);
break;
case 'class':
echo $unrct->ajaxgetprojectproblems($file, $proj);
break;
}
exit;
}
if($area) {
switch($area) {
case 'goto':
header("location:index.php?area=file&proj=".$_POST['project']);
exit;
break;
case 'createnew':
$unrct->createnew();
break;
case 'file':
new file\filevisualizer();
break;
case 'class':
new clazz\classvisualizer();
break;
}
} else {
new overview\overviewvisualizer();
}