fixing /usr/share/fusionpbx to be /usr/share/examples/fusionpbx

This commit is contained in:
Richard Neese 2014-10-23 18:03:33 +00:00
parent a866c04b22
commit 49840b33da
7 changed files with 19 additions and 19 deletions

View File

@ -78,8 +78,8 @@
if (is_dir($_SESSION['switch']['dialplan']['dir'])) {
//write the dialplan/default.xml if it does not exist
//set the path
if (file_exists('/usr/share/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/fusionpbx/resources/templates/conf";
if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/examples/fusionpbx/resources/templates/conf";
}
else {
$path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/templates/conf';

View File

@ -182,8 +182,8 @@ include "root.php";
$switch_dialplan_dir = $this->switch_dialplan_dir;
if (is_dir($switch_dialplan_dir)) {
//copy resources/templates/conf to the freeswitch conf dir
if (file_exists('/usr/share/fusionpbx/resources/templates/conf')){
$src_dir = "/usr/share/fusionpbx/resources/templates/conf";
if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf')){
$src_dir = "/usr/share/examples/fusionpbx/resources/templates/conf";
}
else {
$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf";

View File

@ -33,7 +33,7 @@
if (file_exists('/etc/fusionpbx')) {
//linux
$custom = '/etc/fusionpbx/resources/templates/conf/sip_profiles';
$source = '/usr/share/fusionpbx/resources/templates/conf/sip_profiles';
$source = '/usr/share/examples/fusionpbx/resources/templates/conf/sip_profiles';
}
if (file_exists('/usr/local/etc/fusionpbx')) {
//bsd

View File

@ -122,7 +122,7 @@ echo "<br><br><br>";
echo "<form name='frm' method='post' action=''>\n";
if (permission_exists("upgrade_svn") && !is_dir("/usr/share/fusionpbx")) {
if (permission_exists("upgrade_svn") && !is_dir("/usr/share/examples/fusionpbx")) {
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<tr>\n";
echo " <td width='30%' class='vncell'>\n";

View File

@ -162,7 +162,7 @@ include "root.php";
//function copy_sounds() {
// if (file_exists($this->switch_sounds_dir)) {
// if (file_exists('/usr/share/examples/fusionpbx/resources/install/sounds/en/us/callie/custom/')){
// $src_dir = '/usr/share/fusionpbx/resources/install/sounds/en/us/callie/custom/';
// $src_dir = '/usr/share/examples/fusionpbx/resources/install/sounds/en/us/callie/custom/';
// changes the output dir for testing
// $dst_dir = $this->switch_sounds_dir.'/en/us/fusionpbx/custom/';
// }

View File

@ -541,8 +541,8 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
$schema->exec();
//get the contents of the sql file
if (file_exists('/usr/share/fusionpbx/resources/install/sql/sqlite.sql')){
$filename = "/usr/share/fusionpbx/resources/install/sql/sqlite.sql";
if (file_exists('/usr/share/examples/fusionpbx/resources/install/sql/sqlite.sql')){
$filename = "/usr/share/examples/fusionpbx/resources/install/sql/sqlite.sql";
}
else {
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/sqlite.sql';
@ -631,8 +631,8 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
$schema->exec();
//get the contents of the sql file
if (file_exists('/usr/share/fusionpbx/resources/install/sql/pgsql.sql')){
$filename = "/usr/share/fusionpbx/resources/install/sql/pgsql.sql";
if (file_exists('/usr/share/examples/fusionpbx/resources/install/sql/pgsql.sql')){
$filename = "/usr/share/examples/fusionpbx/resources/install/sql/pgsql.sql";
}
else {
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/pgsql.sql';
@ -803,8 +803,8 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
//add the defaults data into the database
//get the contents of the sql file
if (file_exists('/usr/share/fusionpbx/resources/install/sql/mysql.sql')){
$filename = "/usr/share/fusionpbx/resources/install/sql/mysql.sql";
if (file_exists('/usr/share/examples/fusionpbx/resources/install/sql/mysql.sql')){
$filename = "/usr/share/examples/fusionpbx/resources/install/sql/mysql.sql";
}
else {
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/mysql.sql';

View File

@ -2965,8 +2965,8 @@ if (!function_exists('save_call_center_xml')) {
}
//set the path
if (file_exists('/usr/share/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/fusionpbx/resources/templates/conf";
if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/examples/fusionpbx/resources/templates/conf";
}
else {
$path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf";
@ -3006,8 +3006,8 @@ if (!function_exists('switch_conf_xml')) {
global $db, $domain_uuid;
//get the contents of the template
if (file_exists('/usr/share/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/fusionpbx/resources/templates/conf";
if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/examples/fusionpbx/resources/templates/conf";
}
else {
$path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf";
@ -3053,8 +3053,8 @@ if (!function_exists('xml_cdr_conf_xml')) {
global $db, $domain_uuid;
//get the contents of the template
if (file_exists('/usr/share/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/fusionpbx/resources/templates/conf";
if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf')) {
$path = "/usr/share/examples/fusionpbx/resources/templates/conf";
}
else {
$path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf";