diff --git a/core/install/install.php b/core/install/install.php index 6d70c4f0ad..cb095eef6b 100644 --- a/core/install/install.php +++ b/core/install/install.php @@ -209,31 +209,31 @@ if(!($event_host == '' || $event_host == 'localhost' || $event_host == '::1' || $event_host == '127.0.0.1' )){ echo "

Warning you have choosen a value other than localhost for event_host, this is unsoported at present

\n"; } - include "resources/page_parts/install_event_socket.php"; - if($detect_ok){ + //if($detect_ok){ echo "
\n"; + include "resources/page_parts/install_event_socket.php"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; - echo "
\n"; - echo " \n"; - echo " \n"; - echo "
\n"; + //echo "
\n"; + //echo " \n"; + //echo " \n"; + //echo "
\n"; echo "
\n"; - } else { - echo "
\n"; - echo "
\n"; - echo " \n"; - echo "
\n"; - echo "
\n"; - } + //} else { + // echo "
\n"; + // echo "
\n"; + // echo " \n"; + // echo "
\n"; + // echo "
\n"; + //} } elseif($install_step == 'config_detail'){ - if(!$domain_name){ //get the domain + if(!$domain_name){ $domain_array = explode(":", $_SERVER["HTTP_HOST"]); $domain_name = $domain_array[0]; } @@ -253,8 +253,8 @@ try { $detect_switch->detect(); } catch(Exception $e){ - echo "

Failed to detect configuration detect_switch reported: " . $e->getMessage() . "

\n"; - $detect_ok = false; + //echo "

Failed to detect configuration detect_switch reported: " . $e->getMessage() . "

\n"; + //$detect_ok = false; } if($detect_ok){ $install_ok = true; @@ -277,7 +277,7 @@ try { require_once "resources/classes/global_settings.php"; $global_settings = new global_settings($detect_switch, $domain_name); - if(is_null($global_settings)){ throw new Exception("Error global_settings came back with null"); } + if(is_null($global_settings)){ throw new Exception("Error global_settings came back with null"); } require_once "resources/classes/install_fusionpbx.php"; $system = new install_fusionpbx($global_settings); $system->admin_username = $admin_username; @@ -313,7 +313,7 @@ echo "\n"; header("Location: ".PROJECT_PATH."/logout.php"); $_SESSION['message'] = 'Install complete'; - }else { + } else { echo "
\n"; echo "
\n"; echo " \n"; @@ -328,9 +328,9 @@ } //initialize some defaults so we can be 'logged in' - //$_SESSION['username'] = 'install_enabled'; - //$_SESSION['permissions'][]['permission_name'] = 'superadmin'; - //$_SESSION['menu'] = ''; + $_SESSION['username'] = 'install_enabled'; + $_SESSION['permissions'][]['permission_name'] = 'superadmin'; + $_SESSION['menu'] = ''; //add the content to the template and then send output $body = ob_get_contents(); //get the output from the buffer diff --git a/core/install/resources/classes/install_fusionpbx.php b/core/install/resources/classes/install_fusionpbx.php index 4325ff9fae..1b768ce7a5 100644 --- a/core/install/resources/classes/install_fusionpbx.php +++ b/core/install/resources/classes/install_fusionpbx.php @@ -994,7 +994,7 @@ include "root.php"; //set the defaults $menu_name = 'default'; $menu_language = 'en-us'; - $menu_description = 'Default Menu Set'; + $menu_description = 'Default Menu'; $this->write_progress("\tChecking if menu exists"); $sql = "select count(*) from v_menus "; diff --git a/core/install/resources/page_parts/install_config_database.php b/core/install/resources/page_parts/install_config_database.php index 099ed01771..ca1efd91e8 100644 --- a/core/install/resources/page_parts/install_config_database.php +++ b/core/install/resources/page_parts/install_config_database.php @@ -44,7 +44,10 @@ echo "\n"; echo "".$text['header-config_database']."\n"; - echo " \n"; + echo "\n"; + echo " \n"; + echo " \n"; + echo "\n"; echo "\n"; if ($db_type == "sqlite") { @@ -274,8 +277,8 @@ echo ""; echo "
\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; echo "\n"; ?> \ No newline at end of file diff --git a/core/install/resources/page_parts/install_config_detail.php b/core/install/resources/page_parts/install_config_detail.php index e25889ac5c..044d912fb0 100644 --- a/core/install/resources/page_parts/install_config_detail.php +++ b/core/install/resources/page_parts/install_config_detail.php @@ -38,7 +38,10 @@ echo "\n"; echo "".$text['header-config_detail']."\n"; - echo " \n"; + echo "\n"; + echo " \n"; + echo " \n"; + echo "\n"; echo "\n"; echo "\n"; @@ -140,8 +143,8 @@ echo ""; echo "
\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; echo "\n"; ?> \ No newline at end of file diff --git a/core/install/resources/page_parts/install_event_socket.php b/core/install/resources/page_parts/install_event_socket.php index b1d9a91900..861e9d0683 100644 --- a/core/install/resources/page_parts/install_event_socket.php +++ b/core/install/resources/page_parts/install_event_socket.php @@ -31,10 +31,9 @@ try { $switch_detect->detect(); } catch(Exception $e){ - echo "

Failed to detect configuration detect_switch reported: " . $e->getMessage() ."

\n"; - $detect_ok = false; + //echo "

Failed to detect configuration detect_switch reported: " . $e->getMessage() ."

\n"; + //$detect_ok = false; } - echo "
\n"; echo "\n"; echo "\n"; echo "\n"; @@ -42,7 +41,9 @@ echo "\n"; echo "\n"; echo "\n"; echo "\n"; @@ -51,7 +52,7 @@ echo " ".$text['label-event_host']."\n"; echo "\n"; echo "\n"; @@ -62,7 +63,7 @@ echo " ".$text['label-event_port']."\n"; echo "\n"; echo "\n"; @@ -73,7 +74,7 @@ echo " ".$text['label-event_password']."\n"; echo "\n"; echo "\n"; @@ -86,7 +87,6 @@ echo " "; echo "
".$text['header-event_socket']."

"; - echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; - echo " event_host."\" onchange='JavaScript:disable_next()'/>\n"; + echo " event_host."\" />\n"; echo "
\n"; echo $text['description-event_host']."\n"; echo "
\n"; - echo " event_port."\" onchange='JavaScript:disable_next()'/>\n"; + echo " event_port."\"/>\n"; echo "
\n"; echo $text['description-event_port']."\n"; echo "
\n"; - echo " event_password."\" onchange='JavaScript:disable_next()'/>\n"; + echo " event_password."\"/>\n"; echo "
\n"; echo $text['description-event_password']."\n"; echo "
"; - echo "
"; if($detect_ok){ echo "\n"; @@ -120,8 +120,7 @@ echo "\n"; echo "\n"; $id=0; - foreach ($switch_detect->get_vdirs() as $folder) - { + foreach ($switch_detect->get_vdirs() as $folder) { if($id % 2 == 0){ echo "\n"; } echo "\n"; } $id++; } - echo "

".$text['title-assumed_configuration']."
\n"; echo $folder."\n"; @@ -132,13 +131,7 @@ if($id % 2 == 1){ echo "
"; } - -?> \ No newline at end of file +?> \ No newline at end of file diff --git a/core/install/resources/page_parts/install_select_language.php b/core/install/resources/page_parts/install_select_language.php index df5d83b6f7..ba36b2761c 100644 --- a/core/install/resources/page_parts/install_select_language.php +++ b/core/install/resources/page_parts/install_select_language.php @@ -17,16 +17,16 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2015-2016 the Initial Developer. All Rights Reserved. Contributor(s): Matthew Vale */ - echo "\n"; + echo "
\n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; @@ -36,18 +36,22 @@ echo " ".$text['label-select_language']."\n"; echo " \n"; echo "
".$text['header-select_language']."

".$text['header-select_language']."

"; echo " \n"; echo " \n"; - echo " "; + echo "
"; foreach($_SESSION['app']['languages'] as $lang_code){ echo " "; - echo " "; + echo " "; + echo " "; echo " "; } echo "
\n"; + echo " \n"; echo " "; - + echo " \n"; echo " $lang_code ".$text["language-$lang_code"]; echo " \n"; + echo "  \n"; + echo "
"; diff --git a/resources/menu.php b/resources/menu.php deleted file mode 100644 index 051e3cbf37..0000000000 --- a/resources/menu.php +++ /dev/null @@ -1,81 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2008-2012 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ -require_once "root.php"; -require_once "resources/require.php"; - -//define the variable - $v_menu = ''; - -//force the menu to generate on every page load - //$_SESSION["menu"] = ''; - -//build the menu if the session menu has no length - if (!isset($_SESSION["menu"])) { - $_SESSION["menu"] = ''; - } - if (strlen($_SESSION["menu"]) == 0) { - $menuwidth = '110'; - //echo " \n"; - //echo " "; - - $v_menu = ""; - $v_menu .= " \n"; - //$v_menu .= " \n"; - $v_menu .= "\n"; - - $v_menu .= "\n"; - $v_menu .= "
\n"; - $v_menu .= "\n"; - - require_once "resources/classes/menu.php"; - $menu = new menu; - $menu->db = $db; - $menu->menu_uuid = $_SESSION['domain']['menu']['uuid']; - $v_menu .= $menu->build_html(); - unset($menu); - - $v_menu .= "
\n"; - $_SESSION["menu"] = $v_menu; - } - else { - //echo "from session"; - } - -//testing - //echo $_SESSION["menu"]; - -?> \ No newline at end of file