diff options
author | Jesús <heckyel@hyperbola.info> | 2019-09-17 17:17:04 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-09-17 17:17:04 -0500 |
commit | d7543416d4bdab06f15cc43738d661211f0cebc2 (patch) | |
tree | f9978c74792f0e0a866db1977fae01fee3f1729a | |
parent | 4dc8853ef7a00d4b2aec24dead413414bd6d17a7 (diff) | |
download | ytlibre-d7543416d4bdab06f15cc43738d661211f0cebc2.tar.lz ytlibre-d7543416d4bdab06f15cc43738d661211f0cebc2.tar.xz ytlibre-d7543416d4bdab06f15cc43738d661211f0cebc2.zip |
improve syntax
-rw-r--r-- | index.php | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -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(); |