aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-09-17 17:17:04 -0500
committerJesús <heckyel@hyperbola.info>2019-09-17 17:17:04 -0500
commitd7543416d4bdab06f15cc43738d661211f0cebc2 (patch)
treef9978c74792f0e0a866db1977fae01fee3f1729a
parent4dc8853ef7a00d4b2aec24dead413414bd6d17a7 (diff)
downloadytlibre-d7543416d4bdab06f15cc43738d661211f0cebc2.tar.lz
ytlibre-d7543416d4bdab06f15cc43738d661211f0cebc2.tar.xz
ytlibre-d7543416d4bdab06f15cc43738d661211f0cebc2.zip
improve syntax
-rw-r--r--index.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/index.php b/index.php
index a87f2c7..db372f3 100644
--- a/index.php
+++ b/index.php
@@ -1,21 +1,21 @@
<?php
require_once('smarty/Smarty.class.php');
-$titulo="YTLibre";
-$template= new Smarty();
-
-/* ---- ---- Variables ---- ---- */
-$template->assign("titulo", $titulo);
-
-/* ---- ---- CSS ---- ---- */
-
-$template->assign('styles', array('frond' => 'templates/css/frond.min.css',
- 'normalize' => 'templates/css/normalize.css')
-);
+$titulo="YTLibre";
/* ---- ---- ---- Generated ---- ---- ---- ---- */
-if (empty($_GET['link'])){
+if ( empty($_GET['link']) )
+{
+ $template= new Smarty();
+ /* ---- ---- Variables ---- ---- */
+ $template->assign("titulo", $titulo);
+ /* ---- ---- CSS ---- ---- */
+ $template->assign('styles', array('frond' => 'templates/css/frond.min.css',
+ 'normalize' => 'templates/css/normalize.css')
+ );
$template->display('templates/index.tpl');
-} else {
+}
+else
+{
/* ---- ---- video-generated ---- ---- */
require_once "tools/processor.php";
$video_decode = new Smarty();