diff options
-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(); |