Update the install.php.
This commit is contained in:
@@ -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 ";
|
||||
|
||||
@@ -44,7 +44,10 @@
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$text['header-config_database']."</b></td>\n";
|
||||
echo "<td width='70%' align='right'> </td>\n";
|
||||
echo "<td width='70%' align='right'>\n";
|
||||
echo " <input type='button' name='back' class='btn' onclick=\"history.go(-1);\" value='".$text['button-back']."'/>\n";
|
||||
echo " <input type='submit' name='execute' class='".$text['button-execute']."'>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($db_type == "sqlite") {
|
||||
@@ -274,8 +277,8 @@
|
||||
|
||||
echo "</table>";
|
||||
echo " <div style='text-align:right'>\n";
|
||||
echo " <button type='button' onclick=\"history.go(-1);\">".$text['button-back']."</button>\n";
|
||||
echo " <button type='submit'>".$text['button-execute']."</button>\n";
|
||||
echo " <input type='button' name='back' class='btn' onclick=\"history.go(-1);\" value='".$text['button-back']."'/>\n";
|
||||
echo " <input type='submit' name='execute' class='".$text['button-execute']."'>\n";
|
||||
echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
?>
|
||||
@@ -38,7 +38,10 @@
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$text['header-config_detail']."</b></td>\n";
|
||||
echo "<td width='70%' align='right'> </td>\n";
|
||||
echo "<td width='70%' align='right'>\n";
|
||||
echo " <input type='button' name='back' class='btn' onclick=\"history.go(-1);\" value='".$text['button-back']."'/>\n";
|
||||
echo " <input type='submit' class='btn' name='execute' class='".$text['button-next']."'>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
@@ -140,8 +143,8 @@
|
||||
|
||||
echo "</table>";
|
||||
echo " <div style='text-align:right'>\n";
|
||||
echo " <button type='button' onclick=\"history.go(-1);\">".$text['button-back']."</button>\n";
|
||||
echo " <button type='submit' id='next'>".$text['button-next']."</button>\n";
|
||||
echo " <input type='button' name='back' class='btn' onclick=\"history.go(-1);\" value='".$text['button-back']."'/>\n";
|
||||
echo " <input type='submit' class='btn' name='execute' class='".$text['button-next']."'>\n";
|
||||
echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
?>
|
||||
@@ -31,10 +31,9 @@
|
||||
try {
|
||||
$switch_detect->detect();
|
||||
} catch(Exception $e){
|
||||
echo "<p><b>Failed to detect configuration</b> detect_switch reported: " . $e->getMessage() ."</p>\n";
|
||||
$detect_ok = false;
|
||||
//echo "<p><b>Failed to detect configuration</b> detect_switch reported: " . $e->getMessage() ."</p>\n";
|
||||
//$detect_ok = false;
|
||||
}
|
||||
echo "<form method='post' name='detect_switch' action=''>\n";
|
||||
echo "<input type='hidden' name='install_language' value='".$_SESSION['domain']['language']['code']."'/>\n";
|
||||
echo "<input type='hidden' name='install_step' value='detect_config'/>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
@@ -42,7 +41,9 @@
|
||||
echo "<tr>\n";
|
||||
echo "<td width='30%' align='left' nowrap><b>".$text['header-event_socket']."</b><br><br></td>\n";
|
||||
echo "<td width='70%' align='right'>";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-detect']."'/>\n";
|
||||
echo " <input type='button' name='detect' class='btn' onclick=\"location.reload();\" value='".$text['button-detect']."'/>\n";
|
||||
echo " <input type='button' name='back' class='btn' onclick=\"history.go(-1);\" value='".$text['button-back']."'/>\n";
|
||||
echo " <input type='submit' name='next' class='btn' value='".$text['button-next']."'/>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
@@ -51,7 +52,7 @@
|
||||
echo " ".$text['label-event_host']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='event_host' maxlength='255' value=\"".$switch_detect->event_host."\" onchange='JavaScript:disable_next()'/>\n";
|
||||
echo " <input class='formfld' type='text' name='event_host' maxlength='255' value=\"".$switch_detect->event_host."\" />\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-event_host']."\n";
|
||||
echo "</td>\n";
|
||||
@@ -62,7 +63,7 @@
|
||||
echo " ".$text['label-event_port']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='event_port' maxlength='255' value=\"".$switch_detect->event_port."\" onchange='JavaScript:disable_next()'/>\n";
|
||||
echo " <input class='formfld' type='text' name='event_port' maxlength='255' value=\"".$switch_detect->event_port."\"/>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-event_port']."\n";
|
||||
echo "</td>\n";
|
||||
@@ -73,7 +74,7 @@
|
||||
echo " ".$text['label-event_password']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='password' name='event_password' maxlength='255' value=\"".$switch_detect->event_password."\" onchange='JavaScript:disable_next()'/>\n";
|
||||
echo " <input class='formfld' type='password' name='event_password' maxlength='255' value=\"".$switch_detect->event_password."\"/>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-event_password']."\n";
|
||||
echo "</td>\n";
|
||||
@@ -86,7 +87,6 @@
|
||||
echo " </tr>";
|
||||
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
if($detect_ok){
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
@@ -120,8 +120,7 @@
|
||||
echo "<td colspan='4' align='left' nowrap><br/><b>".$text['title-assumed_configuration']."</b></td>\n";
|
||||
echo "</tr>\n";
|
||||
$id=0;
|
||||
foreach ($switch_detect->get_vdirs() as $folder)
|
||||
{
|
||||
foreach ($switch_detect->get_vdirs() as $folder) {
|
||||
if($id % 2 == 0){ echo "<tr>\n"; }
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap' width='15%'>\n";
|
||||
echo $folder."\n";
|
||||
@@ -132,13 +131,7 @@
|
||||
if($id % 2 == 1){ echo "</tr>\n"; }
|
||||
$id++;
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
|
||||
?><script type='text/javascript'>
|
||||
function disable_next() {
|
||||
document.getElementById("next").style.display = 'none';
|
||||
}
|
||||
</script>
|
||||
?>
|
||||
@@ -17,16 +17,16 @@
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
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 <github@mafoo.org>
|
||||
*/
|
||||
|
||||
echo "<table width='80%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td width='30%' align='left' nowrap><b>".$text['header-select_language']."</b><br><br></td>\n";
|
||||
echo " <td width='30%' align='left' nowrap='nowrap'><b>".$text['header-select_language']."</b><br><br></td>\n";
|
||||
echo " <td width='70%' align='right'>";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-next']."'/>\n";
|
||||
echo " </td>\n";
|
||||
@@ -36,18 +36,22 @@
|
||||
echo " ".$text['label-select_language']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left'>\n";
|
||||
echo " <table>";
|
||||
echo " <table cellpadding='0' cellspacing='0'>";
|
||||
foreach($_SESSION['app']['languages'] as $lang_code){
|
||||
echo " <tr>";
|
||||
echo " <td>\n";
|
||||
echo " <td width='15' class='vtable' valign='top' nowrap='nowrap'>\n";
|
||||
echo " <input type='radio' name='install_language' value='$lang_code' id='lang_$lang_code' ";
|
||||
if($lang_code == $_SESSION['domain']['language']['code']) {
|
||||
echo " checked='checked'";
|
||||
}
|
||||
echo "/>";
|
||||
|
||||
echo " </td>";
|
||||
echo " <td class='vtable' align='left' valign='top' nowrap='nowrap'>\n";
|
||||
echo " <img src='<!--{project_path}-->/core/install/resources/images/flags/$lang_code.png' alt='$lang_code'/> ".$text["language-$lang_code"];
|
||||
echo " </td>";
|
||||
echo " <td width='100%' class='vtable' valign='top'>\n";
|
||||
echo " \n";
|
||||
echo " </td>";
|
||||
echo " </tr>";
|
||||
}
|
||||
echo " </table>";
|
||||
|
||||
Reference in New Issue
Block a user