Change the path for includes/require.php to the resources directory.

This commit is contained in:
Mark Crane
2013-07-06 06:03:27 +00:00
parent 5308383441
commit ffffea0710
298 changed files with 308 additions and 308 deletions
+5 -5
View File
@@ -24,7 +24,7 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
include "root.php";
require_once "includes/require.php";
require_once "resources/require.php";
//get the output from the buffer
$body = $content_from_db.ob_get_contents();
@@ -67,19 +67,19 @@ require_once "includes/require.php";
ob_end_clean(); //clean the buffer
//get the menu
require_once "includes/menu.php";
require_once "resources/menu.php";
//prepare the template to display the output
$custom_head = '';
$output = str_replace ("<!--{title}-->", $page["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) {
$output = str_replace ("<!--{menu}-->", $v_menu, $output); //defined in /includes/menu.php
$output = str_replace ("<!--{menu}-->", $v_menu, $output); //defined in /resources/menu.php
}
else {
$output = str_replace ("<!--{menu}-->", $_SESSION["menu"], $output); //defined in /includes/menu.php
$output = str_replace ("<!--{menu}-->", $_SESSION["menu"], $output); //defined in /resources/menu.php
}
$output = str_replace ("<!--{project_path}-->", PROJECT_PATH, $output); //defined in /includes/menu.php
$output = str_replace ("<!--{project_path}-->", PROJECT_PATH, $output); //defined in /resources/menu.php
$pos = strrpos($output, "<!--{body}-->");
if ($pos === false) {
+1 -1
View File
@@ -24,7 +24,7 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
include "root.php";
require_once "includes/require.php";
require_once "resources/require.php";
//if reloadxml then run the command
if (isset($_SESSION["reload_xml"])) {
+1 -1
View File
@@ -24,7 +24,7 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
include "root.php";
require "includes/require.php";
require "resources/require.php";
//get the contents of xml_cdr.conf.xml
$conf_xml_string = file_get_contents($_SESSION['switch']['conf']['dir'].'/autoload_configs/voicemail.conf.xml');
+1 -1
View File
@@ -24,7 +24,7 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
include "root.php";
//require_once "includes/require.php";
//require_once "resources/require.php";
//require_once "includes/classes/database.php";
//$db = new database;
//$db->db = $db;
+1 -1
View File
@@ -24,7 +24,7 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
require_once "root.php";
require_once "includes/require.php";
require_once "resources/require.php";
//preferences
$v_label_show = false;
+1 -1
View File
@@ -24,7 +24,7 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
require_once "root.php";
require_once "includes/require.php";
require_once "resources/require.php";
//define the variable
$v_menu = '';