本文整理匯總了PHP中Viewer::setSubtitle方法的典型用法代碼示例。如果您正苦於以下問題:PHP Viewer::setSubtitle方法的具體用法?PHP Viewer::setSubtitle怎麽用?PHP Viewer::setSubtitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Viewer
的用法示例。
在下文中一共展示了Viewer::setSubtitle方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
<?php
//goto install?
if (!file_exists('config.php')) {
header('location:install/index.php');
exit;
}
define('QBB', true);
//load config
require 'config.php';
//load language
require 'lang/lang_' . $language . '.php';
setlocale(LC_TIME, $lang['locale']);
//load classes
require 'includes/class.Database.php';
require 'includes/class.Viewer.php';
require 'includes/class.Session.php';
//instantiate classes
$db = new Database($dsn, $db_user, $db_pass);
$view = new Viewer($db, $lang, $style);
$sess = new Session();
//title,subtitle
$view->setTitle($title);
$view->setSubtitle($subtitle);
//if user is logged in but was banned
if ($sess->logged) {
$user = $db->getUser($sess->userid);
if ($user->usertype == 'banned' || $user->usertype == 'deleted') {
$sess->Logout();
}
}