public static function registerSmarty()
 {
     // Smarty autoloader
     require_once self::$libsPath . 'smarty/Autoloader.php';
     Smarty_Autoloader::register();
 }
Exemple #2
0
<?php

require_once SMARTY_DIR . 'Autoloader.php';
Smarty_Autoloader::register();
require_once NN_LIB . 'utility' . DS . 'SmartyUtils.php';
use newznab\db\Settings;
class BasePage
{
    /**
     * @var \newznab\db\Settings
     */
    public $settings = null;
    /**
     * Public access to Captcha object for error checking.
     *
     * @var \Captcha
     */
    public $captcha;
    /**
     * @var Users
     */
    public $users = null;
    /**
     * Is the current session HTTPS?
     * @var bool
     */
    public $https = false;
    public $title = '';
    public $content = '';
    public $head = '';
    public $body = '';
function GetSmarty()
{
    require_once "{$rootpath}/thirdparty/smarty/libs/Autoloader.php";
    Smarty_Autoloader::register();
    $smarty = new Smarty();
    return $smarty;
}