Lint
This commit is contained in:
parent
299634b023
commit
e35314b492
2 changed files with 137 additions and 126 deletions
27
index.php
27
index.php
|
@ -15,14 +15,18 @@
|
||||||
use Alltube\VideoDownload;
|
use Alltube\VideoDownload;
|
||||||
require_once 'common.php';
|
require_once 'common.php';
|
||||||
|
|
||||||
$app = new \Slim\Slim(array(
|
$app = new \Slim\Slim(
|
||||||
|
array(
|
||||||
'view' => new \Slim\Views\Smarty()
|
'view' => new \Slim\Views\Smarty()
|
||||||
));
|
)
|
||||||
|
);
|
||||||
$view = $app->view();
|
$view = $app->view();
|
||||||
$view->parserExtensions = array(
|
$view->parserExtensions = array(
|
||||||
dirname(__FILE__).'/vendor/slim/views/SmartyPlugins',
|
dirname(__FILE__).'/vendor/slim/views/SmartyPlugins',
|
||||||
);
|
);
|
||||||
$app->get('/', function () {
|
$app->get(
|
||||||
|
'/',
|
||||||
|
function () {
|
||||||
global $app;
|
global $app;
|
||||||
$app->render(
|
$app->render(
|
||||||
'head.tpl',
|
'head.tpl',
|
||||||
|
@ -40,8 +44,11 @@ $app->get('/', function () {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$app->render('footer.tpl');
|
$app->render('footer.tpl');
|
||||||
});
|
}
|
||||||
$app->get('/extractors', function () {
|
);
|
||||||
|
$app->get(
|
||||||
|
'/extractors',
|
||||||
|
function () {
|
||||||
global $app;
|
global $app;
|
||||||
$app->render(
|
$app->render(
|
||||||
'head.tpl',
|
'head.tpl',
|
||||||
|
@ -58,8 +65,11 @@ $app->get('/extractors', function () {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$app->render('footer.tpl');
|
$app->render('footer.tpl');
|
||||||
})->name('extractors');
|
}
|
||||||
$app->get('/video', function () {
|
)->name('extractors');
|
||||||
|
$app->get(
|
||||||
|
'/video',
|
||||||
|
function () {
|
||||||
global $app;
|
global $app;
|
||||||
if (isset($_GET["url"])) {
|
if (isset($_GET["url"])) {
|
||||||
if (isset($_GET['audio'])) {
|
if (isset($_GET['audio'])) {
|
||||||
|
@ -148,5 +158,6 @@ $app->get('/video', function () {
|
||||||
);
|
);
|
||||||
$app->render('footer.tpl');
|
$app->render('footer.tpl');
|
||||||
}
|
}
|
||||||
})->name('video');
|
}
|
||||||
|
)->name('video');
|
||||||
$app->run();
|
$app->run();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue