Skip to content

Commit

Permalink
Re-add index.php and render.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
cokernel committed Sep 12, 2017
1 parent 5ffbd86 commit 3592288
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
21 changes: 21 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
use Ohms\ViewerController;

require_once 'app/init.php';

session_start();

if (!isset($_GET['translate'])) {
$_GET['translate'] = '0';
}

if (isset($_REQUEST['cachefile'])) {
$kw = (isset($_REQUEST['kw'])) ? $_REQUEST['kw'] : null;
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : null;
$vController = new ViewerController($_REQUEST['cachefile']);
$vController->route($action, $kw, $_REQUEST['cachefile']);
} else {
header('HTTP/1.0 404 Not Found');
//echo 'Error no action to take.';
exit();
}
21 changes: 21 additions & 0 deletions render.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
use Ohms\ViewerController;

require_once 'app/init.php';

session_start();

if (!isset($_GET['translate'])) {
$_GET['translate'] = '0';
}

if (isset($_REQUEST['cachefile'])) {
$kw = (isset($_REQUEST['kw'])) ? $_REQUEST['kw'] : null;
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : null;
$vController = new ViewerController($_REQUEST['cachefile']);
$vController->route($action, $kw, $_REQUEST['cachefile']);
} else {
header('HTTP/1.0 404 Not Found');
//echo 'Error no action to take.';
exit();
}

0 comments on commit 3592288

Please sign in to comment.