Update footer.php

This commit is contained in:
FusionPBX 2016-12-13 08:47:22 -07:00 committed by GitHub
parent 991aef3312
commit 314aad67e5
1 changed files with 12 additions and 3 deletions

View File

@ -23,9 +23,18 @@
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
*/ */
//includes
include "root.php"; include "root.php";
require_once "resources/require.php"; require_once "resources/require.php";
//set variables if not set
if (!isset($_SESSION["template_content"])) { $_SESSION["template_content"] = null; }
if (!isset($document)) { $document = null; }
if (!isset($v_menu)) { $v_menu = null; }
if (!isset($_SESSION["menu"])) { $_SESSION["menu"] = null; }
if (!isset($_SESSION["username"])) { $_SESSION["username"] = null; }
//get the output from the buffer //get the output from the buffer
$body = $content_from_db.ob_get_contents(); $body = $content_from_db.ob_get_contents();
ob_end_clean(); //clean the buffer ob_end_clean(); //clean the buffer