Ejemplo n.º 1
0
<?php

require_once "config.php";
require_once "Rain/tpl.php";
$link = base64_decode($_REQUEST["video"]);
$tpl = new Rain\Tpl();
$tpl->configure(array('production' => PRODUCTION));
$tpl->assign("title", $link);
$tpl->draw("play");
unset($tpl);
Ejemplo n.º 2
0
Archivo: index.php Proyecto: kvox/TVSS
$hascache = 0;
if ($hascache) {
    print $hascache;
} else {
    @ob_start();
    if (!Session::has('theme')) {
        $theme = $app['settings']->getSetting("theme");
        if (!count($theme)) {
            $theme = 'svarog';
        } else {
            $theme = $theme->theme;
        }
    } else {
        $theme = Session::get('theme');
    }
    Rain\Tpl::configure(['base_url' => $baseurl . '/', 'tpl_dir' => $basepath . '/templates/' . $theme . '/', 'cache_dir' => $basepath . '/cachefiles/' . $theme . '/', 'cache_path' => 'cachefiles/' . $theme . '/', 'remove_comments' => false, 'debug' => false, 'path_replace' => false, 'auto_escape' => false]);
    $app['tpl_compress'] = $container->create('Rain\\Tpl\\Plugin\\Compress');
    Rain\Tpl::registerPlugin($app['tpl_compress']);
    $app['tpl'] = $container->create('Rain\\Tpl');
    $app['global']['templatepath'] = $baseurl . '/templates/' . $theme;
    $app['global']['cachekey_plain'] = $cachekey_plain;
    if (Session::has('fb_justregistered')) {
        $app['global']['facebook_promo'] = 1;
        Session::forget('fb_justregistered');
    }
    $pages = $app['page']->getPagesMenu($language);
    $global_settings = $app['settings']->getMultiSettings(array("tv_guide", "captchas", "listing_style", "adfly", "analytics", "seo_links", "facebook", "smart_bar", "smartbar_size", "smartbar_rows", "maxtvperpage", "maxmoviesperpage", "countdown_free", "countdown_user"), true);
    /* SEO links */
    if (!isset($global_settings['seo_links']) || !in_array($global_settings['seo_links'], array(0, 1))) {
        $global_settings['seo_links'] = 1;
    }
Ejemplo n.º 3
0
<?php

// bootstrap configuration
// initialize the template folder
Rain\Tpl::configure('tpl_dir', Config::get('app.template-path'));
Rain\Tpl::configure('tpl_ext', 'tpl');
Rain\Tpl::configure('cache_dir', Config::get('app.template-cache-path'));
Ejemplo n.º 4
0
 private function configure()
 {
     Rain\Tpl::configure(array('debug' => true, 'tpl_dir' => __DIR__ . '/_files/', 'cache_dir' => __DIR__ . '/../../cache/'));
 }