setTitle() public static method

Set the new title of the page
public static setTitle ( string $title = "" )
$title string
Example #1
0
    $result = dbquery("UPDATE " . DB_USERS . " SET user_lastvisit=UNIX_TIMESTAMP(NOW()), user_ip='" . USER_IP . "', user_ip_type='" . USER_IP_TYPE . "' WHERE user_id='" . $userdata['user_id'] . "'");
}
$bootstrap_theme_css_src = '';
// Load bootstrap
if ($settings['bootstrap']) {
    define('BOOTSTRAPPED', TRUE);
    $bootstrap_theme_css_src = INCLUDES . "bootstrap/bootstrap.css";
    add_to_footer("<script type='text/javascript' src='" . INCLUDES . "bootstrap/bootstrap.min.js'></script>");
    add_to_footer("<script type='text/javascript' src='" . INCLUDES . "bootstrap/holder.js'></script>");
}
require_once THEMES . "templates/panels.php";
ob_start();
require_once ADMIN . "admin.php";
$admin = new \PHPFusion\Admin();
@(list($title) = dbarraynum(dbquery("SELECT admin_title FROM " . DB_ADMIN . " WHERE admin_link='" . FUSION_SELF . "'")));
\PHPFusion\OutputHandler::setTitle($GLOBALS['locale']['global_123'] . $GLOBALS['locale']['global_201'] . ($title ? $title . $GLOBALS['locale']['global_201'] : ""));
// Use infusion_db file to modify admin properties
$infusion_folder = makefilelist(INFUSIONS, ".|..|", "", "folders");
if (!empty($infusion_folder)) {
    foreach ($infusion_folder as $folder) {
        if (file_exists(INFUSIONS . $folder . "/infusion_db.php")) {
            require_once INFUSIONS . $folder . "/infusion_db.php";
        }
    }
}
// If the user is not logged in as admin then don't parse the administration page
// otherwise it could result in bypass of the admin password and one could do
// changes to the system settings without even being logged into Admin Panel.
// After relogin the user can simply click back in browser and their input will
// still be there so nothing is lost
if (!check_admin_pass('')) {
/**
 * Set the new title of the page
 *
 * @param string $title
 */
function set_title($title = "")
{
    OutputHandler::setTitle($title);
}