Set the title
This commit is contained in:
parent
866b2bb4b7
commit
608595f412
|
|
@ -71,7 +71,7 @@ require_once "resources/require.php";
|
||||||
|
|
||||||
//prepare the template to display the output
|
//prepare the template to display the output
|
||||||
$custom_head = '';
|
$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 ("<!--{title}-->", $document_title, $template); //<!--{title}--> defined in each individual page
|
||||||
$output = str_replace ("<!--{head}-->", $custom_head, $output); //<!--{head}--> defined in each individual page
|
$output = str_replace ("<!--{head}-->", $custom_head, $output); //<!--{head}--> defined in each individual page
|
||||||
if (strlen($v_menu) > 0) {
|
if (strlen($v_menu) > 0) {
|
||||||
|
|
|
||||||
|
|
@ -260,6 +260,18 @@ if ($db_type == "pgsql") {
|
||||||
unset($result, $prep_statement);
|
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
|
//set the setting arrays
|
||||||
if (!isset($_SESSION['domain']['menu'])){
|
if (!isset($_SESSION['domain']['menu'])){
|
||||||
require "resources/classes/domains.php";
|
require "resources/classes/domains.php";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue