mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Set the title
This commit is contained in:
@@ -71,7 +71,7 @@ require_once "resources/require.php";
|
||||
|
||||
//prepare the template to display the output
|
||||
$custom_head = '';
|
||||
$document_title = (($document["title"] != '') ? $document["title"]." - " : null)."FusionPBX";
|
||||
$document_title = (($document["title"] != '') ? $document["title"]." - " : null).$_SESSION["software_name"];
|
||||
$output = str_replace ("<!--{title}-->", $document_title, $template); //<!--{title}--> defined in each individual page
|
||||
$output = str_replace ("<!--{head}-->", $custom_head, $output); //<!--{head}--> defined in each individual page
|
||||
if (strlen($v_menu) > 0) {
|
||||
|
||||
@@ -260,6 +260,18 @@ if ($db_type == "pgsql") {
|
||||
unset($result, $prep_statement);
|
||||
}
|
||||
|
||||
//get the software name
|
||||
if (strlen($_SESSION["domain_uuid"]) == 0) {
|
||||
$sql = "select * from v_software ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
||||
$_SESSION["software_name"] = $row['software_name'];
|
||||
}
|
||||
unset($prep_statement, $result);
|
||||
}
|
||||
|
||||
//set the setting arrays
|
||||
if (!isset($_SESSION['domain']['menu'])){
|
||||
require "resources/classes/domains.php";
|
||||
|
||||
Reference in New Issue
Block a user