Skip to content

Commit

Permalink
Update record_path.php
Browse files Browse the repository at this point in the history
  • Loading branch information
markjcrane authored Nov 5, 2017
1 parent a1ff427 commit c6ed05c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion upgrade/record_path.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@
$execute_sql = true;
$document_root = '/var/www/fusionpbx';

//check the permission
//web server or command line
if(defined('STDIN')) {
set_include_path($document_root);
$_SERVER["DOCUMENT_ROOT"] = $document_root;
$project_path = $_SERVER["DOCUMENT_ROOT"];
define('PROJECT_PATH', $project_path);
$_SERVER["PROJECT_ROOT"] = realpath($_SERVER["DOCUMENT_ROOT"] . PROJECT_PATH);
set_include_path(get_include_path() . PATH_SEPARATOR . $_SERVER["PROJECT_ROOT"]);
require_once "resources/require.php";
$display_type = 'text'; //html, text
}
Expand Down

0 comments on commit c6ed05c

Please sign in to comment.