-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompile.php
More file actions
53 lines (44 loc) · 697 Bytes
/
Copy pathcompile.php
File metadata and controls
53 lines (44 loc) · 697 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
$languageID=$_POST["language"];
error_reporting(0);
if($_FILES["file"]["name"]!="")
{
include "compilers/make.php";
}
else
{
switch($languageID)
{
case "text/x-csrc":
{
include("compilers/c.php");
break;
}
case "text/x-c++src":
{
include("compilers/cpp.php");
break;
}
case "text/x-java":
{
include("compilers/java.php");
break;
}
case "python":
{
include("compilers/python32.php");
break;
}
case "text/x-csharp":
{
include("compilers/c#.php");
break;
}
case "text/x-vb":
{
include("compilers/vb.php");
break;
}
}
}
?>