pull/1/head
parent
9601fc6e7e
commit
034c09c8a2
1 changed files with 14 additions and 1 deletions
@ -1,4 +1,17 @@ |
|||||||
<?php |
<?php |
||||||
$file = __DIR__ . '/cases/' . $_GET['file']; |
$file = __DIR__ . '/cases/' . $_GET['file']; |
||||||
|
|
||||||
echo shell_exec('php conv.php ' . $file . ' web'); |
$op = empty($_GET['op']) ? 'conv' : $_GET['op']; |
||||||
|
|
||||||
|
switch ($op) { |
||||||
|
case 'conv': |
||||||
|
echo shell_exec('php conv.php ' . $file . ' web'); |
||||||
|
break; |
||||||
|
case 'dump': |
||||||
|
echo shell_exec('python dump.py ' . $file); |
||||||
|
break; |
||||||
|
default: |
||||||
|
break; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue