mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
\r\n --> \n
Cause all the .php files containing lines ending with \r\n to instead end with \n.
DYI with:
find fusionpbx -type f -name '*.php' -exec dos2unix '{}' \;
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,433 +1,433 @@
|
||||
<?php
|
||||
|
||||
$text['title-default_settings']['en-us'] = "Default Settings";
|
||||
$text['title-default_settings']['es-cl'] = "Condiciones Predeterminadas";
|
||||
$text['title-default_settings']['pt-pt'] = "Predefinições";
|
||||
$text['title-default_settings']['fr-fr'] = "Configurations par Défaut";
|
||||
$text['title-default_settings']['nl-nl'] = "";
|
||||
$text['title-default_settings']['pt-br'] = "Configurações";
|
||||
$text['title-default_settings']['pl'] = "Ustawienia domyślne";
|
||||
$text['title-default_settings']['sv-se'] = "Standard Inställningar";
|
||||
$text['title-default_settings']['uk'] = "Налаштування за замовчуванням";
|
||||
$text['title-default_settings']['de-at'] = "Standardeinstellungen";
|
||||
|
||||
$text['title-default_setting-edit']['en-us'] = "Default Setting";
|
||||
$text['title-default_setting-edit']['es-cl'] = "Configuraciones Predeterminadas";
|
||||
$text['title-default_setting-edit']['pt-pt'] = "Predefinições";
|
||||
$text['title-default_setting-edit']['fr-fr'] = "Configurations par Défaut";
|
||||
$text['title-default_setting-edit']['nl-nl'] = "";
|
||||
$text['title-default_setting-edit']['pt-br'] = "Configurações";
|
||||
$text['title-default_setting-edit']['pl'] = "Ustawienie domyślne";
|
||||
$text['title-default_setting-edit']['sv-se'] = "Standard Inställning";
|
||||
$text['title-default_setting-edit']['uk'] = "Налаштування за замовчуванням";
|
||||
$text['title-default_setting-edit']['de-at'] = "Standardeinstellungen";
|
||||
|
||||
$text['title-default_setting-add']['en-us'] = "Default Setting Add";
|
||||
$text['title-default_setting-add']['es-cl'] = "Agregar Configuración Predeterminada";
|
||||
$text['title-default_setting-add']['pt-pt'] = "Adicionar Predefinição";
|
||||
$text['title-default_setting-add']['fr-fr'] = "Ajouter une configuration per défaut";
|
||||
$text['title-default_setting-add']['nl-nl'] = "";
|
||||
$text['title-default_setting-add']['pt-br'] = "Adicionar Configurações";
|
||||
$text['title-default_setting-add']['pl'] = "Dodaj ustawienie domyślne";
|
||||
$text['title-default_setting-add']['sv-se'] = "Lägg Till Standard Inställning";
|
||||
$text['title-default_setting-add']['uk'] = "";
|
||||
$text['title-default_setting-add']['de-at'] = "Standardeinstellungen";
|
||||
|
||||
$text['option-voicemail_file_listen']['en-us'] = "Listen Link (Login Required)";
|
||||
$text['option-voicemail_file_listen']['es-cl'] = "Escuchar Link (Se requiere entrar)";
|
||||
$text['option-voicemail_file_listen']['pt-pt'] = "Ouça Link (login requerido)";
|
||||
$text['option-voicemail_file_listen']['fr-fr'] = "Écouter Link (Connexion requise)";
|
||||
$text['option-voicemail_file_listen']['nl-nl'] = "";
|
||||
$text['option-voicemail_file_listen']['pt-br'] = "Arquivo Voicemail";
|
||||
$text['option-voicemail_file_listen']['pl'] = "Link do odsłuchu (po zalogowaniu)";
|
||||
$text['option-voicemail_file_listen']['sv-se'] = "Lyssna-länk (Måste Logga In)";
|
||||
$text['option-voicemail_file_listen']['uk'] = "Посилання на прослуховування (Входити обов’язково)";
|
||||
$text['option-voicemail_file_listen']['de-at'] = "Link zur Nachricht (Login erforderlich)";
|
||||
|
||||
$text['option-voicemail_file_link']['en-us'] = "Download Link (No Login Required)";
|
||||
$text['option-voicemail_file_link']['es-cl'] = "Enlace de descarga (No se requiere conexión)";
|
||||
$text['option-voicemail_file_link']['pt-pt'] = "Link para download (Não é necessário login)";
|
||||
$text['option-voicemail_file_link']['fr-fr'] = "Lien de téléchargement (Connexion non requise)";
|
||||
$text['option-voicemail_file_link']['nl-nl'] = "";
|
||||
$text['option-voicemail_file_link']['pt-br'] = "Link para download (Não é necessário login)";
|
||||
$text['option-voicemail_file_link']['pl'] = "Link do pobrania (logowanie nie jest wymagane)";
|
||||
$text['option-voicemail_file_link']['sv-se'] = "Nedladdnings-länk (Ingen Inloggning Krävs)";
|
||||
$text['option-voicemail_file_link']['uk'] = "Посилання на завантаження (Входити не обов’язково)";
|
||||
$text['option-voicemail_file_link']['de-at'] = "Link zur Nachricht (kein Login erforderlich)";
|
||||
|
||||
$text['option-voicemail_file_attach']['en-us'] = "Audio File Attachment";
|
||||
$text['option-voicemail_file_attach']['es-cl'] = "Archivo Adjunto Audio";
|
||||
$text['option-voicemail_file_attach']['pt-pt'] = "Anexo de arquivo de áudio";
|
||||
$text['option-voicemail_file_attach']['fr-fr'] = "Audio File Attachment";
|
||||
$text['option-voicemail_file_attach']['nl-nl'] = "";
|
||||
$text['option-voicemail_file_attach']['pt-br'] = "Anexo de arquivo de áudio";
|
||||
$text['option-voicemail_file_attach']['pl'] = "Załącznik plik audio";
|
||||
$text['option-voicemail_file_attach']['sv-se'] = "Ljudfil Bifogad";
|
||||
$text['option-voicemail_file_attach']['uk'] = "Приєднати аудіофайл";
|
||||
$text['option-voicemail_file_attach']['de-at'] = "Audiodatei als Anhang";
|
||||
|
||||
$text['message-toggled']['en-us'] = "Toggle Completed";
|
||||
$text['message-toggled']['es-cl'] = "Alternar Completado";
|
||||
$text['message-toggled']['pt-pt'] = "Alternar Concluído";
|
||||
$text['message-toggled']['fr-fr'] = "Basculer Terminé";
|
||||
$text['message-toggled']['pt-br'] = "Alternar Concluído";
|
||||
$text['message-toggled']['pl'] = "Przegubowe Zakończony";
|
||||
$text['message-toggled']['he'] = "הושלם Toggle";
|
||||
$text['message-toggled']['uk'] = "переключити Завершений";
|
||||
$text['message-toggled']['sv-se'] = "Växla Avslutade";
|
||||
$text['message-toggled']['de-at'] = "Toggle Completed";
|
||||
$text['message-toggled']['ro'] = "Completat toggle";
|
||||
$text['message-toggled']['fa'] = "";
|
||||
$text['message-toggled']['ar-eg'] = "الانتهاء من تبديل";
|
||||
|
||||
$text['message-settings_reloaded']['en-us'] = "Settings Reloaded";
|
||||
$text['message-settings_reloaded']['es-cl'] = "Ajustes Reloaded";
|
||||
$text['message-settings_reloaded']['pt-pt'] = "Configurações Reloaded";
|
||||
$text['message-settings_reloaded']['fr-fr'] = "Paramètres Reloaded";
|
||||
$text['message-settings_reloaded']['nl-nl'] = "";
|
||||
$text['message-settings_reloaded']['pt-br'] = "Configurações Reloaded";
|
||||
$text['message-settings_reloaded']['pl'] = "Ustawienia Reloaded";
|
||||
$text['message-settings_reloaded']['sv-se'] = "Inställningar Reloaded";
|
||||
$text['message-settings_reloaded']['uk'] = "налаштування Reloaded";
|
||||
$text['message-settings_reloaded']['de-at'] = "Einstellungen neu geladen";
|
||||
|
||||
$text['message-delete_failed']['en-us'] = "No Settings Checked";
|
||||
$text['message-delete_failed']['es-cl'] = "No hay ajustes facturado";
|
||||
$text['message-delete_failed']['pt-pt'] = "Nenhuma configuração marcada";
|
||||
$text['message-delete_failed']['fr-fr'] = "Pas de paramètres enregistrés";
|
||||
$text['message-delete_failed']['nl-nl'] = "";
|
||||
$text['message-delete_failed']['pt-br'] = "Falha na exclusão";
|
||||
$text['message-delete_failed']['pl'] = "Próba usunięcia zakończyła się niepowodzeniem";
|
||||
$text['message-delete_failed']['sv-se'] = "Borttagning Misslyckades";
|
||||
$text['message-delete_failed']['uk'] = "Налаштування не вказано";
|
||||
$text['message-delete_failed']['de-at'] = "Löschen fehlgeschlagen";
|
||||
|
||||
$text['message-copy_failed']['en-us'] = "No Settings Checked or Invalid Domain";
|
||||
$text['message-copy_failed']['es-cl'] = "No hay ajustes facturado o de dominio no válido";
|
||||
$text['message-copy_failed']['pt-pt'] = "Nenhuma configuração marcada ou domínio inválido";
|
||||
$text['message-copy_failed']['fr-fr'] = "Pas de paramètres enregistrés ou domaine non valide";
|
||||
$text['message-copy_failed']['nl-nl'] = "";
|
||||
$text['message-copy_failed']['pt-br'] = "Nenhuma configuração selecionada ou dominio inválido";
|
||||
$text['message-copy_failed']['pl'] = "Nie zaznaczono ustawień lub domena jest niepoprawna";
|
||||
$text['message-copy_failed']['sv-se'] = "Ingen inställning markerad eller ogiltig domän.";
|
||||
$text['message-copy_failed']['uk'] = "";
|
||||
$text['message-copy_failed']['de-at'] = "Keine Einstellungen ausgewählt oder ungültige Domain";
|
||||
|
||||
$text['label-top']['en-us'] = "Top";
|
||||
$text['label-top']['es-cl'] = "encima";
|
||||
$text['label-top']['pt-pt'] = "Topo";
|
||||
$text['label-top']['fr-fr'] = "Meilleur";
|
||||
$text['label-top']['pt-br'] = "Topo";
|
||||
$text['label-top']['pl'] = "Top";
|
||||
$text['label-top']['he'] = "עליון";
|
||||
$text['label-top']['uk'] = "топ";
|
||||
$text['label-top']['sv-se'] = "Topp";
|
||||
$text['label-top']['de-at'] = "Oben";
|
||||
$text['label-top']['ro'] = "Top";
|
||||
$text['label-top']['fa'] = "";
|
||||
$text['label-top']['ar-eg'] = "أعلى";
|
||||
|
||||
$text['label-text']['en-us'] = "Text";
|
||||
$text['label-text']['es-cl'] = "Texto";
|
||||
$text['label-text']['pt-pt'] = "Texto";
|
||||
$text['label-text']['fr-fr'] = "Texte";
|
||||
$text['label-text']['pt-br'] = "Texto";
|
||||
$text['label-text']['pl'] = "Tekst";
|
||||
$text['label-text']['he'] = "טֶקסט";
|
||||
$text['label-text']['uk'] = "текст";
|
||||
$text['label-text']['sv-se'] = "Text";
|
||||
$text['label-text']['de-at'] = "Text";
|
||||
$text['label-text']['ro'] = "Text";
|
||||
$text['label-text']['fa'] = "";
|
||||
$text['label-text']['ar-eg'] = "نص";
|
||||
|
||||
$text['label-superfine']['en-us'] = "Superfine";
|
||||
$text['label-superfine']['es-cl'] = "Superfino";
|
||||
$text['label-superfine']['pt-pt'] = "Extrafino";
|
||||
$text['label-superfine']['fr-fr'] = "Superfin";
|
||||
$text['label-superfine']['nl-nl'] = "";
|
||||
$text['label-superfine']['pt-br'] = "Resumido";
|
||||
$text['label-superfine']['pl'] = "Najlepsza";
|
||||
$text['label-superfine']['sv-se'] = "Superfin";
|
||||
$text['label-superfine']['uk'] = "";
|
||||
$text['label-superfine']['de-at'] = "Superfein";
|
||||
|
||||
$text['label-static']['en-us'] = "Static";
|
||||
$text['label-static']['es-cl'] = "Estático";
|
||||
$text['label-static']['pt-pt'] = "Estático";
|
||||
$text['label-static']['fr-fr'] = "Statique";
|
||||
$text['label-static']['pt-br'] = "Estático";
|
||||
$text['label-static']['pl'] = "Statyczny";
|
||||
$text['label-static']['he'] = "סטָטִי";
|
||||
$text['label-static']['uk'] = "статичний";
|
||||
$text['label-static']['sv-se'] = "Statisk";
|
||||
$text['label-static']['de-at'] = "Statisch";
|
||||
$text['label-static']['ro'] = "Static";
|
||||
$text['label-static']['fa'] = "";
|
||||
$text['label-static']['ar-eg'] = "ساكن";
|
||||
|
||||
$text['label-right']['en-us'] = "Right";
|
||||
$text['label-right']['es-cl'] = "Derecha";
|
||||
$text['label-right']['pt-pt'] = "Certo";
|
||||
$text['label-right']['fr-fr'] = "Droite";
|
||||
$text['label-right']['pt-br'] = "Certo";
|
||||
$text['label-right']['pl'] = "Dobrze";
|
||||
$text['label-right']['he'] = "יָמִינָה";
|
||||
$text['label-right']['uk'] = "правий";
|
||||
$text['label-right']['sv-se'] = "Höger";
|
||||
$text['label-right']['de-at'] = "Recht";
|
||||
$text['label-right']['ro'] = "Dreapta";
|
||||
$text['label-right']['fa'] = "";
|
||||
$text['label-right']['ar-eg'] = "حق";
|
||||
|
||||
$text['label-normal']['en-us'] = "Normal";
|
||||
$text['label-normal']['es-cl'] = "Normal";
|
||||
$text['label-normal']['pt-pt'] = "Normal";
|
||||
$text['label-normal']['fr-fr'] = "Normal";
|
||||
$text['label-normal']['nl-nl'] = "";
|
||||
$text['label-normal']['pt-br'] = "Normal";
|
||||
$text['label-normal']['pl'] = "Normalny";
|
||||
$text['label-normal']['sv-se'] = "normal";
|
||||
$text['label-normal']['uk'] = "звичайно";
|
||||
$text['label-normal']['de-at'] = "normal";
|
||||
|
||||
$text['label-none']['en-us'] = "None";
|
||||
$text['label-none']['es-cl'] = "Ninguna";
|
||||
$text['label-none']['pt-pt'] = "Nenhum";
|
||||
$text['label-none']['fr-fr'] = "Aucun";
|
||||
$text['label-none']['pt-br'] = "Nenhum";
|
||||
$text['label-none']['pl'] = "Żaden";
|
||||
$text['label-none']['he'] = "אף לא אחד";
|
||||
$text['label-none']['uk'] = "жоден";
|
||||
$text['label-none']['sv-se'] = "Ingen";
|
||||
$text['label-none']['de-at'] = "Keiner";
|
||||
$text['label-none']['ro'] = "Nici unul";
|
||||
$text['label-none']['fa'] = "";
|
||||
$text['label-none']['ar-eg'] = "لا شيء";
|
||||
|
||||
$text['label-left']['en-us'] = "Left";
|
||||
$text['label-left']['es-cl'] = "Izquierda";
|
||||
$text['label-left']['pt-pt'] = "Esquerda";
|
||||
$text['label-left']['fr-fr'] = "À gauche";
|
||||
$text['label-left']['pt-br'] = "Esquerda";
|
||||
$text['label-left']['pl'] = "Lewo";
|
||||
$text['label-left']['he'] = "שְׁמֹאל";
|
||||
$text['label-left']['uk'] = "лівий";
|
||||
$text['label-left']['sv-se'] = "Vänster";
|
||||
$text['label-left']['de-at'] = "Links";
|
||||
$text['label-left']['ro'] = "Stânga";
|
||||
$text['label-left']['fa'] = "";
|
||||
$text['label-left']['ar-eg'] = "اليسار";
|
||||
|
||||
$text['label-inline']['en-us'] = "Inline";
|
||||
$text['label-inline']['es-cl'] = "En línea";
|
||||
$text['label-inline']['pt-pt'] = "Na linha";
|
||||
$text['label-inline']['fr-fr'] = "En ligne";
|
||||
$text['label-inline']['pt-br'] = "Na linha";
|
||||
$text['label-inline']['pl'] = "inline";
|
||||
$text['label-inline']['he'] = "בשורה";
|
||||
$text['label-inline']['uk'] = "В лінію";
|
||||
$text['label-inline']['sv-se'] = "I kö";
|
||||
$text['label-inline']['de-at'] = "In der Reihe";
|
||||
$text['label-inline']['ro'] = "In linie";
|
||||
$text['label-inline']['fa'] = "";
|
||||
$text['label-inline']['ar-eg'] = "في النسق";
|
||||
|
||||
$text['label-image']['en-us'] = "Image";
|
||||
$text['label-image']['es-cl'] = "Imagen";
|
||||
$text['label-image']['pt-pt'] = "Imagem";
|
||||
$text['label-image']['fr-fr'] = "image";
|
||||
$text['label-image']['pt-br'] = "Imagem";
|
||||
$text['label-image']['pl'] = "Obraz";
|
||||
$text['label-image']['he'] = "תמונה";
|
||||
$text['label-image']['uk'] = "зображення";
|
||||
$text['label-image']['sv-se'] = "Bild";
|
||||
$text['label-image']['de-at'] = "Image";
|
||||
$text['label-image']['ro'] = "Imagine";
|
||||
$text['label-image']['fa'] = "";
|
||||
$text['label-image']['ar-eg'] = "صورة";
|
||||
|
||||
$text['label-fixed']['en-us'] = "Fixed";
|
||||
$text['label-fixed']['es-cl'] = "Fijo";
|
||||
$text['label-fixed']['pt-pt'] = "Fixo";
|
||||
$text['label-fixed']['fr-fr'] = "Fixé";
|
||||
$text['label-fixed']['pt-br'] = "Fixo";
|
||||
$text['label-fixed']['pl'] = "Naprawiony";
|
||||
$text['label-fixed']['he'] = "קָבוּעַ";
|
||||
$text['label-fixed']['uk'] = "фіксований";
|
||||
$text['label-fixed']['sv-se'] = "Fast";
|
||||
$text['label-fixed']['de-at'] = "fest";
|
||||
$text['label-fixed']['ro'] = "Fix";
|
||||
$text['label-fixed']['fa'] = "";
|
||||
$text['label-fixed']['ar-eg'] = "ثابت";
|
||||
|
||||
$text['label-fine']['en-us'] = "Fine";
|
||||
$text['label-fine']['es-cl'] = "Fine";
|
||||
$text['label-fine']['pt-pt'] = "Belas";
|
||||
$text['label-fine']['fr-fr'] = "Fin";
|
||||
$text['label-fine']['nl-nl'] = "";
|
||||
$text['label-fine']['pt-br'] = "Agradável ";
|
||||
$text['label-fine']['pl'] = "Dobry";
|
||||
$text['label-fine']['sv-se'] = "Fin";
|
||||
$text['label-fine']['uk'] = "";
|
||||
$text['label-fine']['de-at'] = "Fein";
|
||||
|
||||
$text['label-center']['en-us'] = "Center";
|
||||
$text['label-center']['es-cl'] = "Centrar";
|
||||
$text['label-center']['pt-pt'] = "Centro";
|
||||
$text['label-center']['fr-fr'] = "centre";
|
||||
$text['label-center']['pt-br'] = "Centro";
|
||||
$text['label-center']['pl'] = "Centrum";
|
||||
$text['label-center']['he'] = "מֶרְכָּז";
|
||||
$text['label-center']['uk'] = "центр";
|
||||
$text['label-center']['sv-se'] = "Centrum";
|
||||
$text['label-center']['de-at'] = "Center";
|
||||
$text['label-center']['ro'] = "Centru";
|
||||
$text['label-center']['fa'] = "";
|
||||
$text['label-center']['ar-eg'] = "مركز";
|
||||
|
||||
$text['label-bottom']['en-us'] = "Bottom";
|
||||
$text['label-bottom']['es-cl'] = "Fondo";
|
||||
$text['label-bottom']['pt-pt'] = "Inferior";
|
||||
$text['label-bottom']['fr-fr'] = "Bas";
|
||||
$text['label-bottom']['pt-br'] = "Inferior";
|
||||
$text['label-bottom']['pl'] = "Dolny";
|
||||
$text['label-bottom']['he'] = "תַחתִית";
|
||||
$text['label-bottom']['uk'] = "дно";
|
||||
$text['label-bottom']['sv-se'] = "Botten";
|
||||
$text['label-bottom']['de-at'] = "Boden";
|
||||
$text['label-bottom']['ro'] = "Fund";
|
||||
$text['label-bottom']['fa'] = "";
|
||||
$text['label-bottom']['ar-eg'] = "أسفل";
|
||||
|
||||
$text['label-24-hour']['en-us'] = "24-Hour";
|
||||
$text['label-24-hour']['es-cl'] = "24 horas";
|
||||
$text['label-24-hour']['pt-pt'] = "24 horas";
|
||||
$text['label-24-hour']['fr-fr'] = "24 heures";
|
||||
$text['label-24-hour']['pt-br'] = "24 horas";
|
||||
$text['label-24-hour']['pl'] = "24-godzinny";
|
||||
$text['label-24-hour']['he'] = "24 שעות";
|
||||
$text['label-24-hour']['uk'] = "24-годинний";
|
||||
$text['label-24-hour']['sv-se'] = "24-timmars";
|
||||
$text['label-24-hour']['de-at'] = "24 Stunden";
|
||||
$text['label-24-hour']['ro'] = "24 de ore";
|
||||
$text['label-24-hour']['fa'] = "";
|
||||
$text['label-24-hour']['ar-eg'] = "24 ساعة";
|
||||
|
||||
$text['label-12-hour']['en-us'] = "12-Hour";
|
||||
$text['label-12-hour']['es-cl'] = "12 horas";
|
||||
$text['label-12-hour']['pt-pt'] = "12 horas";
|
||||
$text['label-12-hour']['fr-fr'] = "12 heures";
|
||||
$text['label-12-hour']['pt-br'] = "12 horas";
|
||||
$text['label-12-hour']['pl'] = "12-godzinny";
|
||||
$text['label-12-hour']['he'] = "12 שעות";
|
||||
$text['label-12-hour']['uk'] = "12-годинний";
|
||||
$text['label-12-hour']['sv-se'] = "12-timmars";
|
||||
$text['label-12-hour']['de-at'] = "12 Stunden";
|
||||
$text['label-12-hour']['ro'] = "12 de ore";
|
||||
$text['label-12-hour']['fa'] = "";
|
||||
$text['label-12-hour']['ar-eg'] = "12 ساعة";
|
||||
|
||||
$text['header-default_settings']['en-us'] = "Default Settings";
|
||||
$text['header-default_settings']['es-cl'] = "Condiciones Predeterminadas";
|
||||
$text['header-default_settings']['pt-pt'] = "Predefinições";
|
||||
$text['header-default_settings']['fr-fr'] = "Configurations par Défaut";
|
||||
$text['header-default_settings']['nl-nl'] = "";
|
||||
$text['header-default_settings']['pt-br'] = "Configurações";
|
||||
$text['header-default_settings']['pl'] = "Ustawienia domyślne";
|
||||
$text['header-default_settings']['sv-se'] = "Standard Inställningar";
|
||||
$text['header-default_settings']['uk'] = "";
|
||||
$text['header-default_settings']['de-at'] = "Standard Einstellungen";
|
||||
|
||||
$text['header-default_setting-edit']['en-us'] = "Default Setting";
|
||||
$text['header-default_setting-edit']['es-cl'] = "Configuraciones Predeterminadas";
|
||||
$text['header-default_setting-edit']['pt-pt'] = "Predefinições";
|
||||
$text['header-default_setting-edit']['fr-fr'] = "Configurations par Défaut";
|
||||
$text['header-default_setting-edit']['nl-nl'] = "";
|
||||
$text['header-default_setting-edit']['pt-br'] = "Configurações";
|
||||
$text['header-default_setting-edit']['pl'] = "Ustawienie domyślne";
|
||||
$text['header-default_setting-edit']['sv-se'] = "Standard Inställning";
|
||||
$text['header-default_setting-edit']['uk'] = "";
|
||||
$text['header-default_setting-edit']['de-at'] = "Standard Einstellungen";
|
||||
|
||||
$text['header-default_setting-add']['en-us'] = "Default Setting Add";
|
||||
$text['header-default_setting-add']['es-cl'] = "Agregar Configuración Predeterminada";
|
||||
$text['header-default_setting-add']['pt-pt'] = "Adicionar Predefinição ";
|
||||
$text['header-default_setting-add']['fr-fr'] = "Ajouter une configuration per défaut";
|
||||
$text['header-default_setting-add']['nl-nl'] = "";
|
||||
$text['header-default_setting-add']['pt-br'] = "Adicionar configurações";
|
||||
$text['header-default_setting-add']['pl'] = "Dodaj ustawienie domyślne";
|
||||
$text['header-default_setting-add']['sv-se'] = "Lägg Till Standard Inställning";
|
||||
$text['header-default_setting-add']['uk'] = "";
|
||||
$text['header-default_setting-add']['de-at'] = "Standard Einstellungen hinzufügen";
|
||||
|
||||
$text['description-order']['en-us'] = "Set the order (index) for this array element.";
|
||||
$text['description-order']['es-cl'] = "Establecer el orden (índice) para este elemento de la matriz.";
|
||||
$text['description-order']['pt-pt'] = "Defina a ordem (índice) para este elemento da matriz.";
|
||||
$text['description-order']['fr-fr'] = "Définir l'ordre (index) pour cet élément de tableau.";
|
||||
$text['description-order']['nl-nl'] = "";
|
||||
$text['description-order']['pt-br'] = "Defina a ordem (indice) para este elemento da matriz";
|
||||
$text['description-order']['pl'] = "Wybierz kolejność.";
|
||||
$text['description-order']['sv-se'] = "Ställ in ordningen (index) för detta element.";
|
||||
$text['description-order']['uk'] = "";
|
||||
$text['description-order']['de-at'] = "Wählen Sie die Reihenfolge (Index) für das Array Element.";
|
||||
|
||||
$text['description-enabled']['en-us'] = "Set the status of this default setting.";
|
||||
$text['description-enabled']['es-cl'] = "Ingrese el estado de esta configuración.";
|
||||
$text['description-enabled']['pt-pt'] = "Escolha o estado desta predefinição.";
|
||||
$text['description-enabled']['fr-fr'] = "Choisir l'état de ce paraètre";
|
||||
$text['description-enabled']['nl-nl'] = "";
|
||||
$text['description-enabled']['pt-br'] = "Escolha o estado desta definição";
|
||||
$text['description-enabled']['pl'] = "Ustaw status ustawienia domyślnego.";
|
||||
$text['description-enabled']['sv-se'] = "Välj status på denna standardinställning.";
|
||||
$text['description-enabled']['uk'] = "";
|
||||
$text['description-enabled']['de-at'] = "Setzen Sie den Status dieser Standardeinstellung.";
|
||||
|
||||
$text['description-default_settings']['en-us'] = "Settings used for all domains.";
|
||||
$text['description-default_settings']['es-cl'] = "Configuraciones usadas por todos los dominios";
|
||||
$text['description-default_settings']['pt-pt'] = "Definições comuns a todos os domínios.";
|
||||
$text['description-default_settings']['fr-fr'] = "Configurations communes à tous les domaines.";
|
||||
$text['description-default_settings']['nl-nl'] = "";
|
||||
$text['description-default_settings']['pt-br'] = "Configurações comuns a todos os dominios";
|
||||
$text['description-default_settings']['pl'] = "Ustawienia stosowane dla wszystkich domen.";
|
||||
$text['description-default_settings']['sv-se'] = "Inställning används för alla domäner.";
|
||||
$text['description-default_settings']['uk'] = "Налаштування використовується для всіх доменів";
|
||||
$text['description-default_settings']['de-at'] = "Einstellungen für alle Domains.";
|
||||
|
||||
$text['description-default_setting-edit']['en-us'] = "Settings used for all domains.";
|
||||
$text['description-default_setting-edit']['es-cl'] = "Configuraciones usadas para todos los dominios.";
|
||||
$text['description-default_setting-edit']['pt-pt'] = "Definições comuns a todos os domínios.";
|
||||
$text['description-default_setting-edit']['fr-fr'] = "Configurations communes à tous les domaines";
|
||||
$text['description-default_setting-edit']['nl-nl'] = "";
|
||||
$text['description-default_setting-edit']['pt-br'] = "Configurações comuns a todos os dominios";
|
||||
$text['description-default_setting-edit']['pl'] = "Ustawienia stosowane dla wszystkich domen.";
|
||||
$text['description-default_setting-edit']['sv-se'] = "Inställning används för alla domäner.";
|
||||
$text['description-default_setting-edit']['uk'] = "Налаштування використовується для всіх доменів";
|
||||
$text['description-default_setting-edit']['de-at'] = "Einstellungen für alle Domains.";
|
||||
|
||||
$text['description-default_setting-add']['en-us'] = "Settings used for all domains.";
|
||||
$text['description-default_setting-add']['es-cl'] = "Configuraciones usadas para todos los dominios.";
|
||||
$text['description-default_setting-add']['pt-pt'] = "Definições comuns a todos os domínios.";
|
||||
$text['description-default_setting-add']['fr-fr'] = "Configurations communes à tous les domaines";
|
||||
$text['description-default_setting-add']['nl-nl'] = "";
|
||||
$text['description-default_setting-add']['pt-br'] = "Configurações comuns a todos os dominio";
|
||||
$text['description-default_setting-add']['pl'] = "Ustawienia stosowane dla wszystkich domen.";
|
||||
$text['description-default_setting-add']['sv-se'] = "Inställning används för alla domäner.";
|
||||
$text['description-default_setting-add']['uk'] = "Налаштування використовується для всіх доменів";
|
||||
$text['description-default_setting-add']['de-at'] = "Einstellungen für alle Domains.";
|
||||
|
||||
$text['button-toggle']['en-us'] = "Toggle";
|
||||
$text['button-toggle']['es-cl'] = "Palanca";
|
||||
$text['button-toggle']['pt-pt'] = "Alternar";
|
||||
$text['button-toggle']['fr-fr'] = "Basculer";
|
||||
$text['button-toggle']['pt-br'] = "Alternar";
|
||||
$text['button-toggle']['pl'] = "Przełącznik";
|
||||
$text['button-toggle']['he'] = "לְמַתֵג";
|
||||
$text['button-toggle']['uk'] = "тумблер";
|
||||
$text['button-toggle']['sv-se'] = "toggle";
|
||||
$text['button-toggle']['de-at'] = "Umschalten";
|
||||
$text['button-toggle']['ro'] = "Comutare";
|
||||
$text['button-toggle']['fa'] = "";
|
||||
$text['button-toggle']['ar-eg'] = "تبديل";
|
||||
|
||||
<?php
|
||||
|
||||
$text['title-default_settings']['en-us'] = "Default Settings";
|
||||
$text['title-default_settings']['es-cl'] = "Condiciones Predeterminadas";
|
||||
$text['title-default_settings']['pt-pt'] = "Predefinições";
|
||||
$text['title-default_settings']['fr-fr'] = "Configurations par Défaut";
|
||||
$text['title-default_settings']['nl-nl'] = "";
|
||||
$text['title-default_settings']['pt-br'] = "Configurações";
|
||||
$text['title-default_settings']['pl'] = "Ustawienia domyślne";
|
||||
$text['title-default_settings']['sv-se'] = "Standard Inställningar";
|
||||
$text['title-default_settings']['uk'] = "Налаштування за замовчуванням";
|
||||
$text['title-default_settings']['de-at'] = "Standardeinstellungen";
|
||||
|
||||
$text['title-default_setting-edit']['en-us'] = "Default Setting";
|
||||
$text['title-default_setting-edit']['es-cl'] = "Configuraciones Predeterminadas";
|
||||
$text['title-default_setting-edit']['pt-pt'] = "Predefinições";
|
||||
$text['title-default_setting-edit']['fr-fr'] = "Configurations par Défaut";
|
||||
$text['title-default_setting-edit']['nl-nl'] = "";
|
||||
$text['title-default_setting-edit']['pt-br'] = "Configurações";
|
||||
$text['title-default_setting-edit']['pl'] = "Ustawienie domyślne";
|
||||
$text['title-default_setting-edit']['sv-se'] = "Standard Inställning";
|
||||
$text['title-default_setting-edit']['uk'] = "Налаштування за замовчуванням";
|
||||
$text['title-default_setting-edit']['de-at'] = "Standardeinstellungen";
|
||||
|
||||
$text['title-default_setting-add']['en-us'] = "Default Setting Add";
|
||||
$text['title-default_setting-add']['es-cl'] = "Agregar Configuración Predeterminada";
|
||||
$text['title-default_setting-add']['pt-pt'] = "Adicionar Predefinição";
|
||||
$text['title-default_setting-add']['fr-fr'] = "Ajouter une configuration per défaut";
|
||||
$text['title-default_setting-add']['nl-nl'] = "";
|
||||
$text['title-default_setting-add']['pt-br'] = "Adicionar Configurações";
|
||||
$text['title-default_setting-add']['pl'] = "Dodaj ustawienie domyślne";
|
||||
$text['title-default_setting-add']['sv-se'] = "Lägg Till Standard Inställning";
|
||||
$text['title-default_setting-add']['uk'] = "";
|
||||
$text['title-default_setting-add']['de-at'] = "Standardeinstellungen";
|
||||
|
||||
$text['option-voicemail_file_listen']['en-us'] = "Listen Link (Login Required)";
|
||||
$text['option-voicemail_file_listen']['es-cl'] = "Escuchar Link (Se requiere entrar)";
|
||||
$text['option-voicemail_file_listen']['pt-pt'] = "Ouça Link (login requerido)";
|
||||
$text['option-voicemail_file_listen']['fr-fr'] = "Écouter Link (Connexion requise)";
|
||||
$text['option-voicemail_file_listen']['nl-nl'] = "";
|
||||
$text['option-voicemail_file_listen']['pt-br'] = "Arquivo Voicemail";
|
||||
$text['option-voicemail_file_listen']['pl'] = "Link do odsłuchu (po zalogowaniu)";
|
||||
$text['option-voicemail_file_listen']['sv-se'] = "Lyssna-länk (Måste Logga In)";
|
||||
$text['option-voicemail_file_listen']['uk'] = "Посилання на прослуховування (Входити обов’язково)";
|
||||
$text['option-voicemail_file_listen']['de-at'] = "Link zur Nachricht (Login erforderlich)";
|
||||
|
||||
$text['option-voicemail_file_link']['en-us'] = "Download Link (No Login Required)";
|
||||
$text['option-voicemail_file_link']['es-cl'] = "Enlace de descarga (No se requiere conexión)";
|
||||
$text['option-voicemail_file_link']['pt-pt'] = "Link para download (Não é necessário login)";
|
||||
$text['option-voicemail_file_link']['fr-fr'] = "Lien de téléchargement (Connexion non requise)";
|
||||
$text['option-voicemail_file_link']['nl-nl'] = "";
|
||||
$text['option-voicemail_file_link']['pt-br'] = "Link para download (Não é necessário login)";
|
||||
$text['option-voicemail_file_link']['pl'] = "Link do pobrania (logowanie nie jest wymagane)";
|
||||
$text['option-voicemail_file_link']['sv-se'] = "Nedladdnings-länk (Ingen Inloggning Krävs)";
|
||||
$text['option-voicemail_file_link']['uk'] = "Посилання на завантаження (Входити не обов’язково)";
|
||||
$text['option-voicemail_file_link']['de-at'] = "Link zur Nachricht (kein Login erforderlich)";
|
||||
|
||||
$text['option-voicemail_file_attach']['en-us'] = "Audio File Attachment";
|
||||
$text['option-voicemail_file_attach']['es-cl'] = "Archivo Adjunto Audio";
|
||||
$text['option-voicemail_file_attach']['pt-pt'] = "Anexo de arquivo de áudio";
|
||||
$text['option-voicemail_file_attach']['fr-fr'] = "Audio File Attachment";
|
||||
$text['option-voicemail_file_attach']['nl-nl'] = "";
|
||||
$text['option-voicemail_file_attach']['pt-br'] = "Anexo de arquivo de áudio";
|
||||
$text['option-voicemail_file_attach']['pl'] = "Załącznik plik audio";
|
||||
$text['option-voicemail_file_attach']['sv-se'] = "Ljudfil Bifogad";
|
||||
$text['option-voicemail_file_attach']['uk'] = "Приєднати аудіофайл";
|
||||
$text['option-voicemail_file_attach']['de-at'] = "Audiodatei als Anhang";
|
||||
|
||||
$text['message-toggled']['en-us'] = "Toggle Completed";
|
||||
$text['message-toggled']['es-cl'] = "Alternar Completado";
|
||||
$text['message-toggled']['pt-pt'] = "Alternar Concluído";
|
||||
$text['message-toggled']['fr-fr'] = "Basculer Terminé";
|
||||
$text['message-toggled']['pt-br'] = "Alternar Concluído";
|
||||
$text['message-toggled']['pl'] = "Przegubowe Zakończony";
|
||||
$text['message-toggled']['he'] = "הושלם Toggle";
|
||||
$text['message-toggled']['uk'] = "переключити Завершений";
|
||||
$text['message-toggled']['sv-se'] = "Växla Avslutade";
|
||||
$text['message-toggled']['de-at'] = "Toggle Completed";
|
||||
$text['message-toggled']['ro'] = "Completat toggle";
|
||||
$text['message-toggled']['fa'] = "";
|
||||
$text['message-toggled']['ar-eg'] = "الانتهاء من تبديل";
|
||||
|
||||
$text['message-settings_reloaded']['en-us'] = "Settings Reloaded";
|
||||
$text['message-settings_reloaded']['es-cl'] = "Ajustes Reloaded";
|
||||
$text['message-settings_reloaded']['pt-pt'] = "Configurações Reloaded";
|
||||
$text['message-settings_reloaded']['fr-fr'] = "Paramètres Reloaded";
|
||||
$text['message-settings_reloaded']['nl-nl'] = "";
|
||||
$text['message-settings_reloaded']['pt-br'] = "Configurações Reloaded";
|
||||
$text['message-settings_reloaded']['pl'] = "Ustawienia Reloaded";
|
||||
$text['message-settings_reloaded']['sv-se'] = "Inställningar Reloaded";
|
||||
$text['message-settings_reloaded']['uk'] = "налаштування Reloaded";
|
||||
$text['message-settings_reloaded']['de-at'] = "Einstellungen neu geladen";
|
||||
|
||||
$text['message-delete_failed']['en-us'] = "No Settings Checked";
|
||||
$text['message-delete_failed']['es-cl'] = "No hay ajustes facturado";
|
||||
$text['message-delete_failed']['pt-pt'] = "Nenhuma configuração marcada";
|
||||
$text['message-delete_failed']['fr-fr'] = "Pas de paramètres enregistrés";
|
||||
$text['message-delete_failed']['nl-nl'] = "";
|
||||
$text['message-delete_failed']['pt-br'] = "Falha na exclusão";
|
||||
$text['message-delete_failed']['pl'] = "Próba usunięcia zakończyła się niepowodzeniem";
|
||||
$text['message-delete_failed']['sv-se'] = "Borttagning Misslyckades";
|
||||
$text['message-delete_failed']['uk'] = "Налаштування не вказано";
|
||||
$text['message-delete_failed']['de-at'] = "Löschen fehlgeschlagen";
|
||||
|
||||
$text['message-copy_failed']['en-us'] = "No Settings Checked or Invalid Domain";
|
||||
$text['message-copy_failed']['es-cl'] = "No hay ajustes facturado o de dominio no válido";
|
||||
$text['message-copy_failed']['pt-pt'] = "Nenhuma configuração marcada ou domínio inválido";
|
||||
$text['message-copy_failed']['fr-fr'] = "Pas de paramètres enregistrés ou domaine non valide";
|
||||
$text['message-copy_failed']['nl-nl'] = "";
|
||||
$text['message-copy_failed']['pt-br'] = "Nenhuma configuração selecionada ou dominio inválido";
|
||||
$text['message-copy_failed']['pl'] = "Nie zaznaczono ustawień lub domena jest niepoprawna";
|
||||
$text['message-copy_failed']['sv-se'] = "Ingen inställning markerad eller ogiltig domän.";
|
||||
$text['message-copy_failed']['uk'] = "";
|
||||
$text['message-copy_failed']['de-at'] = "Keine Einstellungen ausgewählt oder ungültige Domain";
|
||||
|
||||
$text['label-top']['en-us'] = "Top";
|
||||
$text['label-top']['es-cl'] = "encima";
|
||||
$text['label-top']['pt-pt'] = "Topo";
|
||||
$text['label-top']['fr-fr'] = "Meilleur";
|
||||
$text['label-top']['pt-br'] = "Topo";
|
||||
$text['label-top']['pl'] = "Top";
|
||||
$text['label-top']['he'] = "עליון";
|
||||
$text['label-top']['uk'] = "топ";
|
||||
$text['label-top']['sv-se'] = "Topp";
|
||||
$text['label-top']['de-at'] = "Oben";
|
||||
$text['label-top']['ro'] = "Top";
|
||||
$text['label-top']['fa'] = "";
|
||||
$text['label-top']['ar-eg'] = "أعلى";
|
||||
|
||||
$text['label-text']['en-us'] = "Text";
|
||||
$text['label-text']['es-cl'] = "Texto";
|
||||
$text['label-text']['pt-pt'] = "Texto";
|
||||
$text['label-text']['fr-fr'] = "Texte";
|
||||
$text['label-text']['pt-br'] = "Texto";
|
||||
$text['label-text']['pl'] = "Tekst";
|
||||
$text['label-text']['he'] = "טֶקסט";
|
||||
$text['label-text']['uk'] = "текст";
|
||||
$text['label-text']['sv-se'] = "Text";
|
||||
$text['label-text']['de-at'] = "Text";
|
||||
$text['label-text']['ro'] = "Text";
|
||||
$text['label-text']['fa'] = "";
|
||||
$text['label-text']['ar-eg'] = "نص";
|
||||
|
||||
$text['label-superfine']['en-us'] = "Superfine";
|
||||
$text['label-superfine']['es-cl'] = "Superfino";
|
||||
$text['label-superfine']['pt-pt'] = "Extrafino";
|
||||
$text['label-superfine']['fr-fr'] = "Superfin";
|
||||
$text['label-superfine']['nl-nl'] = "";
|
||||
$text['label-superfine']['pt-br'] = "Resumido";
|
||||
$text['label-superfine']['pl'] = "Najlepsza";
|
||||
$text['label-superfine']['sv-se'] = "Superfin";
|
||||
$text['label-superfine']['uk'] = "";
|
||||
$text['label-superfine']['de-at'] = "Superfein";
|
||||
|
||||
$text['label-static']['en-us'] = "Static";
|
||||
$text['label-static']['es-cl'] = "Estático";
|
||||
$text['label-static']['pt-pt'] = "Estático";
|
||||
$text['label-static']['fr-fr'] = "Statique";
|
||||
$text['label-static']['pt-br'] = "Estático";
|
||||
$text['label-static']['pl'] = "Statyczny";
|
||||
$text['label-static']['he'] = "סטָטִי";
|
||||
$text['label-static']['uk'] = "статичний";
|
||||
$text['label-static']['sv-se'] = "Statisk";
|
||||
$text['label-static']['de-at'] = "Statisch";
|
||||
$text['label-static']['ro'] = "Static";
|
||||
$text['label-static']['fa'] = "";
|
||||
$text['label-static']['ar-eg'] = "ساكن";
|
||||
|
||||
$text['label-right']['en-us'] = "Right";
|
||||
$text['label-right']['es-cl'] = "Derecha";
|
||||
$text['label-right']['pt-pt'] = "Certo";
|
||||
$text['label-right']['fr-fr'] = "Droite";
|
||||
$text['label-right']['pt-br'] = "Certo";
|
||||
$text['label-right']['pl'] = "Dobrze";
|
||||
$text['label-right']['he'] = "יָמִינָה";
|
||||
$text['label-right']['uk'] = "правий";
|
||||
$text['label-right']['sv-se'] = "Höger";
|
||||
$text['label-right']['de-at'] = "Recht";
|
||||
$text['label-right']['ro'] = "Dreapta";
|
||||
$text['label-right']['fa'] = "";
|
||||
$text['label-right']['ar-eg'] = "حق";
|
||||
|
||||
$text['label-normal']['en-us'] = "Normal";
|
||||
$text['label-normal']['es-cl'] = "Normal";
|
||||
$text['label-normal']['pt-pt'] = "Normal";
|
||||
$text['label-normal']['fr-fr'] = "Normal";
|
||||
$text['label-normal']['nl-nl'] = "";
|
||||
$text['label-normal']['pt-br'] = "Normal";
|
||||
$text['label-normal']['pl'] = "Normalny";
|
||||
$text['label-normal']['sv-se'] = "normal";
|
||||
$text['label-normal']['uk'] = "звичайно";
|
||||
$text['label-normal']['de-at'] = "normal";
|
||||
|
||||
$text['label-none']['en-us'] = "None";
|
||||
$text['label-none']['es-cl'] = "Ninguna";
|
||||
$text['label-none']['pt-pt'] = "Nenhum";
|
||||
$text['label-none']['fr-fr'] = "Aucun";
|
||||
$text['label-none']['pt-br'] = "Nenhum";
|
||||
$text['label-none']['pl'] = "Żaden";
|
||||
$text['label-none']['he'] = "אף לא אחד";
|
||||
$text['label-none']['uk'] = "жоден";
|
||||
$text['label-none']['sv-se'] = "Ingen";
|
||||
$text['label-none']['de-at'] = "Keiner";
|
||||
$text['label-none']['ro'] = "Nici unul";
|
||||
$text['label-none']['fa'] = "";
|
||||
$text['label-none']['ar-eg'] = "لا شيء";
|
||||
|
||||
$text['label-left']['en-us'] = "Left";
|
||||
$text['label-left']['es-cl'] = "Izquierda";
|
||||
$text['label-left']['pt-pt'] = "Esquerda";
|
||||
$text['label-left']['fr-fr'] = "À gauche";
|
||||
$text['label-left']['pt-br'] = "Esquerda";
|
||||
$text['label-left']['pl'] = "Lewo";
|
||||
$text['label-left']['he'] = "שְׁמֹאל";
|
||||
$text['label-left']['uk'] = "лівий";
|
||||
$text['label-left']['sv-se'] = "Vänster";
|
||||
$text['label-left']['de-at'] = "Links";
|
||||
$text['label-left']['ro'] = "Stânga";
|
||||
$text['label-left']['fa'] = "";
|
||||
$text['label-left']['ar-eg'] = "اليسار";
|
||||
|
||||
$text['label-inline']['en-us'] = "Inline";
|
||||
$text['label-inline']['es-cl'] = "En línea";
|
||||
$text['label-inline']['pt-pt'] = "Na linha";
|
||||
$text['label-inline']['fr-fr'] = "En ligne";
|
||||
$text['label-inline']['pt-br'] = "Na linha";
|
||||
$text['label-inline']['pl'] = "inline";
|
||||
$text['label-inline']['he'] = "בשורה";
|
||||
$text['label-inline']['uk'] = "В лінію";
|
||||
$text['label-inline']['sv-se'] = "I kö";
|
||||
$text['label-inline']['de-at'] = "In der Reihe";
|
||||
$text['label-inline']['ro'] = "In linie";
|
||||
$text['label-inline']['fa'] = "";
|
||||
$text['label-inline']['ar-eg'] = "في النسق";
|
||||
|
||||
$text['label-image']['en-us'] = "Image";
|
||||
$text['label-image']['es-cl'] = "Imagen";
|
||||
$text['label-image']['pt-pt'] = "Imagem";
|
||||
$text['label-image']['fr-fr'] = "image";
|
||||
$text['label-image']['pt-br'] = "Imagem";
|
||||
$text['label-image']['pl'] = "Obraz";
|
||||
$text['label-image']['he'] = "תמונה";
|
||||
$text['label-image']['uk'] = "зображення";
|
||||
$text['label-image']['sv-se'] = "Bild";
|
||||
$text['label-image']['de-at'] = "Image";
|
||||
$text['label-image']['ro'] = "Imagine";
|
||||
$text['label-image']['fa'] = "";
|
||||
$text['label-image']['ar-eg'] = "صورة";
|
||||
|
||||
$text['label-fixed']['en-us'] = "Fixed";
|
||||
$text['label-fixed']['es-cl'] = "Fijo";
|
||||
$text['label-fixed']['pt-pt'] = "Fixo";
|
||||
$text['label-fixed']['fr-fr'] = "Fixé";
|
||||
$text['label-fixed']['pt-br'] = "Fixo";
|
||||
$text['label-fixed']['pl'] = "Naprawiony";
|
||||
$text['label-fixed']['he'] = "קָבוּעַ";
|
||||
$text['label-fixed']['uk'] = "фіксований";
|
||||
$text['label-fixed']['sv-se'] = "Fast";
|
||||
$text['label-fixed']['de-at'] = "fest";
|
||||
$text['label-fixed']['ro'] = "Fix";
|
||||
$text['label-fixed']['fa'] = "";
|
||||
$text['label-fixed']['ar-eg'] = "ثابت";
|
||||
|
||||
$text['label-fine']['en-us'] = "Fine";
|
||||
$text['label-fine']['es-cl'] = "Fine";
|
||||
$text['label-fine']['pt-pt'] = "Belas";
|
||||
$text['label-fine']['fr-fr'] = "Fin";
|
||||
$text['label-fine']['nl-nl'] = "";
|
||||
$text['label-fine']['pt-br'] = "Agradável ";
|
||||
$text['label-fine']['pl'] = "Dobry";
|
||||
$text['label-fine']['sv-se'] = "Fin";
|
||||
$text['label-fine']['uk'] = "";
|
||||
$text['label-fine']['de-at'] = "Fein";
|
||||
|
||||
$text['label-center']['en-us'] = "Center";
|
||||
$text['label-center']['es-cl'] = "Centrar";
|
||||
$text['label-center']['pt-pt'] = "Centro";
|
||||
$text['label-center']['fr-fr'] = "centre";
|
||||
$text['label-center']['pt-br'] = "Centro";
|
||||
$text['label-center']['pl'] = "Centrum";
|
||||
$text['label-center']['he'] = "מֶרְכָּז";
|
||||
$text['label-center']['uk'] = "центр";
|
||||
$text['label-center']['sv-se'] = "Centrum";
|
||||
$text['label-center']['de-at'] = "Center";
|
||||
$text['label-center']['ro'] = "Centru";
|
||||
$text['label-center']['fa'] = "";
|
||||
$text['label-center']['ar-eg'] = "مركز";
|
||||
|
||||
$text['label-bottom']['en-us'] = "Bottom";
|
||||
$text['label-bottom']['es-cl'] = "Fondo";
|
||||
$text['label-bottom']['pt-pt'] = "Inferior";
|
||||
$text['label-bottom']['fr-fr'] = "Bas";
|
||||
$text['label-bottom']['pt-br'] = "Inferior";
|
||||
$text['label-bottom']['pl'] = "Dolny";
|
||||
$text['label-bottom']['he'] = "תַחתִית";
|
||||
$text['label-bottom']['uk'] = "дно";
|
||||
$text['label-bottom']['sv-se'] = "Botten";
|
||||
$text['label-bottom']['de-at'] = "Boden";
|
||||
$text['label-bottom']['ro'] = "Fund";
|
||||
$text['label-bottom']['fa'] = "";
|
||||
$text['label-bottom']['ar-eg'] = "أسفل";
|
||||
|
||||
$text['label-24-hour']['en-us'] = "24-Hour";
|
||||
$text['label-24-hour']['es-cl'] = "24 horas";
|
||||
$text['label-24-hour']['pt-pt'] = "24 horas";
|
||||
$text['label-24-hour']['fr-fr'] = "24 heures";
|
||||
$text['label-24-hour']['pt-br'] = "24 horas";
|
||||
$text['label-24-hour']['pl'] = "24-godzinny";
|
||||
$text['label-24-hour']['he'] = "24 שעות";
|
||||
$text['label-24-hour']['uk'] = "24-годинний";
|
||||
$text['label-24-hour']['sv-se'] = "24-timmars";
|
||||
$text['label-24-hour']['de-at'] = "24 Stunden";
|
||||
$text['label-24-hour']['ro'] = "24 de ore";
|
||||
$text['label-24-hour']['fa'] = "";
|
||||
$text['label-24-hour']['ar-eg'] = "24 ساعة";
|
||||
|
||||
$text['label-12-hour']['en-us'] = "12-Hour";
|
||||
$text['label-12-hour']['es-cl'] = "12 horas";
|
||||
$text['label-12-hour']['pt-pt'] = "12 horas";
|
||||
$text['label-12-hour']['fr-fr'] = "12 heures";
|
||||
$text['label-12-hour']['pt-br'] = "12 horas";
|
||||
$text['label-12-hour']['pl'] = "12-godzinny";
|
||||
$text['label-12-hour']['he'] = "12 שעות";
|
||||
$text['label-12-hour']['uk'] = "12-годинний";
|
||||
$text['label-12-hour']['sv-se'] = "12-timmars";
|
||||
$text['label-12-hour']['de-at'] = "12 Stunden";
|
||||
$text['label-12-hour']['ro'] = "12 de ore";
|
||||
$text['label-12-hour']['fa'] = "";
|
||||
$text['label-12-hour']['ar-eg'] = "12 ساعة";
|
||||
|
||||
$text['header-default_settings']['en-us'] = "Default Settings";
|
||||
$text['header-default_settings']['es-cl'] = "Condiciones Predeterminadas";
|
||||
$text['header-default_settings']['pt-pt'] = "Predefinições";
|
||||
$text['header-default_settings']['fr-fr'] = "Configurations par Défaut";
|
||||
$text['header-default_settings']['nl-nl'] = "";
|
||||
$text['header-default_settings']['pt-br'] = "Configurações";
|
||||
$text['header-default_settings']['pl'] = "Ustawienia domyślne";
|
||||
$text['header-default_settings']['sv-se'] = "Standard Inställningar";
|
||||
$text['header-default_settings']['uk'] = "";
|
||||
$text['header-default_settings']['de-at'] = "Standard Einstellungen";
|
||||
|
||||
$text['header-default_setting-edit']['en-us'] = "Default Setting";
|
||||
$text['header-default_setting-edit']['es-cl'] = "Configuraciones Predeterminadas";
|
||||
$text['header-default_setting-edit']['pt-pt'] = "Predefinições";
|
||||
$text['header-default_setting-edit']['fr-fr'] = "Configurations par Défaut";
|
||||
$text['header-default_setting-edit']['nl-nl'] = "";
|
||||
$text['header-default_setting-edit']['pt-br'] = "Configurações";
|
||||
$text['header-default_setting-edit']['pl'] = "Ustawienie domyślne";
|
||||
$text['header-default_setting-edit']['sv-se'] = "Standard Inställning";
|
||||
$text['header-default_setting-edit']['uk'] = "";
|
||||
$text['header-default_setting-edit']['de-at'] = "Standard Einstellungen";
|
||||
|
||||
$text['header-default_setting-add']['en-us'] = "Default Setting Add";
|
||||
$text['header-default_setting-add']['es-cl'] = "Agregar Configuración Predeterminada";
|
||||
$text['header-default_setting-add']['pt-pt'] = "Adicionar Predefinição ";
|
||||
$text['header-default_setting-add']['fr-fr'] = "Ajouter une configuration per défaut";
|
||||
$text['header-default_setting-add']['nl-nl'] = "";
|
||||
$text['header-default_setting-add']['pt-br'] = "Adicionar configurações";
|
||||
$text['header-default_setting-add']['pl'] = "Dodaj ustawienie domyślne";
|
||||
$text['header-default_setting-add']['sv-se'] = "Lägg Till Standard Inställning";
|
||||
$text['header-default_setting-add']['uk'] = "";
|
||||
$text['header-default_setting-add']['de-at'] = "Standard Einstellungen hinzufügen";
|
||||
|
||||
$text['description-order']['en-us'] = "Set the order (index) for this array element.";
|
||||
$text['description-order']['es-cl'] = "Establecer el orden (índice) para este elemento de la matriz.";
|
||||
$text['description-order']['pt-pt'] = "Defina a ordem (índice) para este elemento da matriz.";
|
||||
$text['description-order']['fr-fr'] = "Définir l'ordre (index) pour cet élément de tableau.";
|
||||
$text['description-order']['nl-nl'] = "";
|
||||
$text['description-order']['pt-br'] = "Defina a ordem (indice) para este elemento da matriz";
|
||||
$text['description-order']['pl'] = "Wybierz kolejność.";
|
||||
$text['description-order']['sv-se'] = "Ställ in ordningen (index) för detta element.";
|
||||
$text['description-order']['uk'] = "";
|
||||
$text['description-order']['de-at'] = "Wählen Sie die Reihenfolge (Index) für das Array Element.";
|
||||
|
||||
$text['description-enabled']['en-us'] = "Set the status of this default setting.";
|
||||
$text['description-enabled']['es-cl'] = "Ingrese el estado de esta configuración.";
|
||||
$text['description-enabled']['pt-pt'] = "Escolha o estado desta predefinição.";
|
||||
$text['description-enabled']['fr-fr'] = "Choisir l'état de ce paraètre";
|
||||
$text['description-enabled']['nl-nl'] = "";
|
||||
$text['description-enabled']['pt-br'] = "Escolha o estado desta definição";
|
||||
$text['description-enabled']['pl'] = "Ustaw status ustawienia domyślnego.";
|
||||
$text['description-enabled']['sv-se'] = "Välj status på denna standardinställning.";
|
||||
$text['description-enabled']['uk'] = "";
|
||||
$text['description-enabled']['de-at'] = "Setzen Sie den Status dieser Standardeinstellung.";
|
||||
|
||||
$text['description-default_settings']['en-us'] = "Settings used for all domains.";
|
||||
$text['description-default_settings']['es-cl'] = "Configuraciones usadas por todos los dominios";
|
||||
$text['description-default_settings']['pt-pt'] = "Definições comuns a todos os domínios.";
|
||||
$text['description-default_settings']['fr-fr'] = "Configurations communes à tous les domaines.";
|
||||
$text['description-default_settings']['nl-nl'] = "";
|
||||
$text['description-default_settings']['pt-br'] = "Configurações comuns a todos os dominios";
|
||||
$text['description-default_settings']['pl'] = "Ustawienia stosowane dla wszystkich domen.";
|
||||
$text['description-default_settings']['sv-se'] = "Inställning används för alla domäner.";
|
||||
$text['description-default_settings']['uk'] = "Налаштування використовується для всіх доменів";
|
||||
$text['description-default_settings']['de-at'] = "Einstellungen für alle Domains.";
|
||||
|
||||
$text['description-default_setting-edit']['en-us'] = "Settings used for all domains.";
|
||||
$text['description-default_setting-edit']['es-cl'] = "Configuraciones usadas para todos los dominios.";
|
||||
$text['description-default_setting-edit']['pt-pt'] = "Definições comuns a todos os domínios.";
|
||||
$text['description-default_setting-edit']['fr-fr'] = "Configurations communes à tous les domaines";
|
||||
$text['description-default_setting-edit']['nl-nl'] = "";
|
||||
$text['description-default_setting-edit']['pt-br'] = "Configurações comuns a todos os dominios";
|
||||
$text['description-default_setting-edit']['pl'] = "Ustawienia stosowane dla wszystkich domen.";
|
||||
$text['description-default_setting-edit']['sv-se'] = "Inställning används för alla domäner.";
|
||||
$text['description-default_setting-edit']['uk'] = "Налаштування використовується для всіх доменів";
|
||||
$text['description-default_setting-edit']['de-at'] = "Einstellungen für alle Domains.";
|
||||
|
||||
$text['description-default_setting-add']['en-us'] = "Settings used for all domains.";
|
||||
$text['description-default_setting-add']['es-cl'] = "Configuraciones usadas para todos los dominios.";
|
||||
$text['description-default_setting-add']['pt-pt'] = "Definições comuns a todos os domínios.";
|
||||
$text['description-default_setting-add']['fr-fr'] = "Configurations communes à tous les domaines";
|
||||
$text['description-default_setting-add']['nl-nl'] = "";
|
||||
$text['description-default_setting-add']['pt-br'] = "Configurações comuns a todos os dominio";
|
||||
$text['description-default_setting-add']['pl'] = "Ustawienia stosowane dla wszystkich domen.";
|
||||
$text['description-default_setting-add']['sv-se'] = "Inställning används för alla domäner.";
|
||||
$text['description-default_setting-add']['uk'] = "Налаштування використовується для всіх доменів";
|
||||
$text['description-default_setting-add']['de-at'] = "Einstellungen für alle Domains.";
|
||||
|
||||
$text['button-toggle']['en-us'] = "Toggle";
|
||||
$text['button-toggle']['es-cl'] = "Palanca";
|
||||
$text['button-toggle']['pt-pt'] = "Alternar";
|
||||
$text['button-toggle']['fr-fr'] = "Basculer";
|
||||
$text['button-toggle']['pt-br'] = "Alternar";
|
||||
$text['button-toggle']['pl'] = "Przełącznik";
|
||||
$text['button-toggle']['he'] = "לְמַתֵג";
|
||||
$text['button-toggle']['uk'] = "тумблер";
|
||||
$text['button-toggle']['sv-se'] = "toggle";
|
||||
$text['button-toggle']['de-at'] = "Umschalten";
|
||||
$text['button-toggle']['ro'] = "Comutare";
|
||||
$text['button-toggle']['fa'] = "";
|
||||
$text['button-toggle']['ar-eg'] = "تبديل";
|
||||
|
||||
?>
|
||||
@@ -1,72 +1,72 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2016
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('voicemail_message_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//get submitted variables
|
||||
$search = $_REQUEST['search'];
|
||||
$default_setting_uuids = $_REQUEST["id"];
|
||||
|
||||
//toggle the setting
|
||||
$toggled = 0;
|
||||
if (is_array($default_setting_uuids) && sizeof($default_setting_uuids) > 0) {
|
||||
foreach ($default_setting_uuids as $default_setting_uuid) {
|
||||
//get current status
|
||||
$sql = "select default_setting_enabled from v_default_settings where default_setting_uuid = '".check_str($default_setting_uuid)."'";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$row = $prep_statement->fetch(PDO::FETCH_NAMED);
|
||||
$new_status = ($row['default_setting_enabled'] == 'true') ? 'false' : "true";
|
||||
unset ($sql, $prep_statement, $row);
|
||||
//set new status
|
||||
$sql = "update v_default_settings set default_setting_enabled = '".$new_status."' where default_setting_uuid = '".check_str($default_setting_uuid)."'";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset ($sql, $prep_statement);
|
||||
|
||||
$toggled++;
|
||||
}
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
if ($toggled > 0) {
|
||||
$_SESSION["message"] = $text['message-toggled'].': '.$toggled;
|
||||
}
|
||||
header("Location: default_settings.php".(($search != '') ? '?search='.$search : null));
|
||||
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2016
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('voicemail_message_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//get submitted variables
|
||||
$search = $_REQUEST['search'];
|
||||
$default_setting_uuids = $_REQUEST["id"];
|
||||
|
||||
//toggle the setting
|
||||
$toggled = 0;
|
||||
if (is_array($default_setting_uuids) && sizeof($default_setting_uuids) > 0) {
|
||||
foreach ($default_setting_uuids as $default_setting_uuid) {
|
||||
//get current status
|
||||
$sql = "select default_setting_enabled from v_default_settings where default_setting_uuid = '".check_str($default_setting_uuid)."'";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$row = $prep_statement->fetch(PDO::FETCH_NAMED);
|
||||
$new_status = ($row['default_setting_enabled'] == 'true') ? 'false' : "true";
|
||||
unset ($sql, $prep_statement, $row);
|
||||
//set new status
|
||||
$sql = "update v_default_settings set default_setting_enabled = '".$new_status."' where default_setting_uuid = '".check_str($default_setting_uuid)."'";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset ($sql, $prep_statement);
|
||||
|
||||
$toggled++;
|
||||
}
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
if ($toggled > 0) {
|
||||
$_SESSION["message"] = $text['message-toggled'].': '.$toggled;
|
||||
}
|
||||
header("Location: default_settings.php".(($search != '') ? '?search='.$search : null));
|
||||
|
||||
?>
|
||||
@@ -1,51 +1,51 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2014
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('default_setting_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
$search = check_str($_REQUEST['search']);
|
||||
|
||||
require "resources/classes/domains.php";
|
||||
$domain = new domains();
|
||||
$domain->db = $db;
|
||||
$domain->set();
|
||||
|
||||
$_SESSION["message"] = $text['message-settings_reloaded'];
|
||||
header("Location: default_settings.php".(($search != '') ? "?search=".$search : null));
|
||||
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2014
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('default_setting_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
$search = check_str($_REQUEST['search']);
|
||||
|
||||
require "resources/classes/domains.php";
|
||||
$domain = new domains();
|
||||
$domain->db = $db;
|
||||
$domain->set();
|
||||
|
||||
$_SESSION["message"] = $text['message-settings_reloaded'];
|
||||
header("Location: default_settings.php".(($search != '') ? "?search=".$search : null));
|
||||
|
||||
?>
|
||||
@@ -1,35 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2010
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
//proccess this only one time
|
||||
if ($domains_processed == 1) {
|
||||
//set domains with enabled status of empty or null to true
|
||||
$sql = "update v_domains set domain_enabled = 'true' where domain_enabled = '' or domain_enabled is null";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
}
|
||||
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2010
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
//proccess this only one time
|
||||
if ($domains_processed == 1) {
|
||||
//set domains with enabled status of empty or null to true
|
||||
$sql = "update v_domains set domain_enabled = 'true' where domain_enabled = '' or domain_enabled is null";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,445 +1,445 @@
|
||||
<?php
|
||||
|
||||
$text['title-domains']['en-us'] = "Domains";
|
||||
$text['title-domains']['es-cl'] = "Dominios";
|
||||
$text['title-domains']['pt-pt'] = "Domínios";
|
||||
$text['title-domains']['fr-fr'] = "Domaines";
|
||||
$text['title-domains']['pt-br'] = "Dominios";
|
||||
$text['title-domains']['pl'] = "Domeny";
|
||||
$text['title-domains']['sv-se'] = "Domäner";
|
||||
$text['title-domains']['uk'] = "Домени";
|
||||
$text['title-domains']['de-at'] = "Domains";
|
||||
|
||||
$text['title-domain_setting-edit']['en-us'] = "Domain Setting";
|
||||
$text['title-domain_setting-edit']['es-cl'] = "Configuraciones de dominio.";
|
||||
$text['title-domain_setting-edit']['pt-pt'] = "Definições do Domínio";
|
||||
$text['title-domain_setting-edit']['fr-fr'] = "Paramètres du domaine";
|
||||
$text['title-domain_setting-edit']['pt-br'] = "Configurações do dominio";
|
||||
$text['title-domain_setting-edit']['pl'] = "Ustawienia domen";
|
||||
$text['title-domain_setting-edit']['sv-se'] = "Domän Inställning";
|
||||
$text['title-domain_setting-edit']['uk'] = "Налаштування доменів";
|
||||
$text['title-domain_setting-edit']['de-at'] = "Domain Einstellungen";
|
||||
|
||||
$text['title-domain_setting-add']['en-us'] = "Domain Setting Add";
|
||||
$text['title-domain_setting-add']['es-cl'] = "Agregar Configuración de Dominio";
|
||||
$text['title-domain_setting-add']['pt-pt'] = "Adicionar Definição ao Domínio";
|
||||
$text['title-domain_setting-add']['fr-fr'] = "Ajouter un paramètre au domaine";
|
||||
$text['title-domain_setting-add']['pt-br'] = "Adicionar configurações do dominio";
|
||||
$text['title-domain_setting-add']['pl'] = "Dodaj ustawienie domeny";
|
||||
$text['title-domain_setting-add']['sv-se'] = "Lägg Till Domän Inställning";
|
||||
$text['title-domain_setting-add']['uk'] = "Додавання домену";
|
||||
$text['title-domain_setting-add']['de-at'] = "Domain Einstellungen hinzufügen";
|
||||
|
||||
$text['title-domain-edit']['en-us'] = "Domain";
|
||||
$text['title-domain-edit']['es-cl'] = "Dominio";
|
||||
$text['title-domain-edit']['pt-pt'] = "Domínio";
|
||||
$text['title-domain-edit']['fr-fr'] = "Domaines";
|
||||
$text['title-domain-edit']['pt-br'] = "Dominio";
|
||||
$text['title-domain-edit']['pl'] = "Domena";
|
||||
$text['title-domain-edit']['sv-se'] = "Domän";
|
||||
$text['title-domain-edit']['uk'] = "Домен";
|
||||
$text['title-domain-edit']['de-at'] = "Domain";
|
||||
|
||||
$text['title-domain-add']['en-us'] = "Domain Add";
|
||||
$text['title-domain-add']['es-cl'] = "Agregar Dominio";
|
||||
$text['title-domain-add']['pt-pt'] = "Adicionar Domínio";
|
||||
$text['title-domain-add']['fr-fr'] = "Ajouter un Domaine";
|
||||
$text['title-domain-add']['pt-br'] = "Adicionar dominio";
|
||||
$text['title-domain-add']['pl'] = "Dodaj domenę";
|
||||
$text['title-domain-add']['sv-se'] = "Lägg Till Domän";
|
||||
$text['title-domain-add']['uk'] = "Новий домен";
|
||||
$text['title-domain-add']['de-at'] = "Domain hinzufügen";
|
||||
|
||||
$text['message-delete_failed']['en-us'] = "No Settings Checked";
|
||||
$text['message-delete_failed']['es-cl'] = "No hay ajustes facturado";
|
||||
$text['message-delete_failed']['pt-pt'] = "Nenhuma configuração marcada";
|
||||
$text['message-delete_failed']['fr-fr'] = "Pas de paramètres enregistrés";
|
||||
$text['message-delete_failed']['pt-br'] = "Falha na exclusão";
|
||||
$text['message-delete_failed']['pl'] = "Próba usunięcia zakończyła się niepowodzeniem";
|
||||
$text['message-delete_failed']['sv-se'] = "Ingen Inställning Markerad";
|
||||
$text['message-delete_failed']['uk'] = "Налаштування не вказано";
|
||||
$text['message-delete_failed']['de-at'] = "Keine Einstellungen ausgewählt";
|
||||
|
||||
$text['label-top']['en-us'] = "Top";
|
||||
$text['label-top']['es-cl'] = "encima";
|
||||
$text['label-top']['pt-pt'] = "Topo";
|
||||
$text['label-top']['fr-fr'] = "Meilleur";
|
||||
$text['label-top']['pt-br'] = "Topo";
|
||||
$text['label-top']['pl'] = "Top";
|
||||
$text['label-top']['he'] = "עליון";
|
||||
$text['label-top']['uk'] = "топ";
|
||||
$text['label-top']['sv-se'] = "Topp";
|
||||
$text['label-top']['de-at'] = "Oben";
|
||||
$text['label-top']['ro'] = "Top";
|
||||
$text['label-top']['fa'] = "";
|
||||
$text['label-top']['ar-eg'] = "أعلى";
|
||||
|
||||
$text['label-tools']['en-us'] = "Tools";
|
||||
$text['label-tools']['es-cl'] = "Herramientas";
|
||||
$text['label-tools']['pt-pt'] = "Ferramentas";
|
||||
$text['label-tools']['fr-fr'] = "Outils";
|
||||
$text['label-tools']['pt-br'] = "Ferramentas";
|
||||
$text['label-tools']['pl'] = "Narzędzia";
|
||||
$text['label-tools']['sv-se'] = "Verktyg";
|
||||
$text['label-tools']['uk'] = "Параметри";
|
||||
$text['label-tools']['de-at'] = "Werkzeug";
|
||||
|
||||
$text['label-text']['en-us'] = "Text";
|
||||
$text['label-text']['es-cl'] = "Texto";
|
||||
$text['label-text']['pt-pt'] = "Texto";
|
||||
$text['label-text']['fr-fr'] = "Texte";
|
||||
$text['label-text']['pt-br'] = "Texto";
|
||||
$text['label-text']['pl'] = "Tekst";
|
||||
$text['label-text']['he'] = "טֶקסט";
|
||||
$text['label-text']['uk'] = "текст";
|
||||
$text['label-text']['sv-se'] = "Text";
|
||||
$text['label-text']['de-at'] = "Text";
|
||||
$text['label-text']['ro'] = "Text";
|
||||
$text['label-text']['fa'] = "";
|
||||
$text['label-text']['ar-eg'] = "نص";
|
||||
|
||||
$text['label-static']['en-us'] = "Static";
|
||||
$text['label-static']['es-cl'] = "Estático";
|
||||
$text['label-static']['pt-pt'] = "Estático";
|
||||
$text['label-static']['fr-fr'] = "Statique";
|
||||
$text['label-static']['pt-br'] = "Estático";
|
||||
$text['label-static']['pl'] = "Statyczny";
|
||||
$text['label-static']['he'] = "סטָטִי";
|
||||
$text['label-static']['uk'] = "статичний";
|
||||
$text['label-static']['sv-se'] = "Statisk";
|
||||
$text['label-static']['de-at'] = "Statisch";
|
||||
$text['label-static']['ro'] = "Static";
|
||||
$text['label-static']['fa'] = "";
|
||||
$text['label-static']['ar-eg'] = "ساكن";
|
||||
|
||||
$text['label-right']['en-us'] = "Right";
|
||||
$text['label-right']['es-cl'] = "Derecha";
|
||||
$text['label-right']['pt-pt'] = "Certo";
|
||||
$text['label-right']['fr-fr'] = "Droite";
|
||||
$text['label-right']['pt-br'] = "Certo";
|
||||
$text['label-right']['pl'] = "Dobrze";
|
||||
$text['label-right']['he'] = "יָמִינָה";
|
||||
$text['label-right']['uk'] = "правий";
|
||||
$text['label-right']['sv-se'] = "Höger";
|
||||
$text['label-right']['de-at'] = "Recht";
|
||||
$text['label-right']['ro'] = "Dreapta";
|
||||
$text['label-right']['fa'] = "";
|
||||
$text['label-right']['ar-eg'] = "حق";
|
||||
|
||||
$text['label-parent_domain']['en-us'] = "Parent Domain";
|
||||
$text['label-parent_domain']['es-cl'] = "Dominio de los Padres";
|
||||
$text['label-parent_domain']['pt-pt'] = "Domínio Parent";
|
||||
$text['label-parent_domain']['fr-fr'] = "Domaine Parent";
|
||||
$text['label-parent_domain']['pt-br'] = "Dominio principal";
|
||||
$text['label-parent_domain']['pl'] = "Domena nadrzędna";
|
||||
$text['label-parent_domain']['sv-se'] = "Överordnad Domän";
|
||||
$text['label-parent_domain']['uk'] = "Батьківський домен";
|
||||
$text['label-parent_domain']['de-at'] = "Übergeordnete Domain";
|
||||
|
||||
$text['label-none']['en-us'] = "None";
|
||||
$text['label-none']['es-cl'] = "Ninguna";
|
||||
$text['label-none']['pt-pt'] = "Nenhum";
|
||||
$text['label-none']['fr-fr'] = "Aucun";
|
||||
$text['label-none']['pt-br'] = "Nenhum";
|
||||
$text['label-none']['pl'] = "Żaden";
|
||||
$text['label-none']['he'] = "אף לא אחד";
|
||||
$text['label-none']['uk'] = "жоден";
|
||||
$text['label-none']['sv-se'] = "Ingen";
|
||||
$text['label-none']['de-at'] = "Keiner";
|
||||
$text['label-none']['ro'] = "Nici unul";
|
||||
$text['label-none']['fa'] = "";
|
||||
$text['label-none']['ar-eg'] = "لا شيء";
|
||||
|
||||
$text['label-manage']['en-us'] = "Manage";
|
||||
$text['label-manage']['es-cl'] = "Gestionar";
|
||||
$text['label-manage']['pt-pt'] = "Gerir";
|
||||
$text['label-manage']['fr-fr'] = "Gérer";
|
||||
$text['label-manage']['pt-br'] = "Gerenciar";
|
||||
$text['label-manage']['pl'] = "Zarządzaj";
|
||||
$text['label-manage']['sv-se'] = "Hantera";
|
||||
$text['label-manage']['uk'] = "Керувати";
|
||||
$text['label-manage']['de-at'] = "Verwalten";
|
||||
|
||||
$text['label-left']['en-us'] = "Left";
|
||||
$text['label-left']['es-cl'] = "Izquierda";
|
||||
$text['label-left']['pt-pt'] = "Esquerda";
|
||||
$text['label-left']['fr-fr'] = "À gauche";
|
||||
$text['label-left']['pt-br'] = "Esquerda";
|
||||
$text['label-left']['pl'] = "Lewo";
|
||||
$text['label-left']['he'] = "שְׁמֹאל";
|
||||
$text['label-left']['uk'] = "лівий";
|
||||
$text['label-left']['sv-se'] = "Vänster";
|
||||
$text['label-left']['de-at'] = "Links";
|
||||
$text['label-left']['ro'] = "Stânga";
|
||||
$text['label-left']['fa'] = "";
|
||||
$text['label-left']['ar-eg'] = "اليسار";
|
||||
|
||||
$text['label-inline']['en-us'] = "Inline";
|
||||
$text['label-inline']['es-cl'] = "En línea";
|
||||
$text['label-inline']['pt-pt'] = "Na linha";
|
||||
$text['label-inline']['fr-fr'] = "En ligne";
|
||||
$text['label-inline']['pt-br'] = "Na linha";
|
||||
$text['label-inline']['pl'] = "inline";
|
||||
$text['label-inline']['he'] = "בשורה";
|
||||
$text['label-inline']['uk'] = "В лінію";
|
||||
$text['label-inline']['sv-se'] = "I kö";
|
||||
$text['label-inline']['de-at'] = "In der Reihe";
|
||||
$text['label-inline']['ro'] = "In linie";
|
||||
$text['label-inline']['fa'] = "";
|
||||
$text['label-inline']['ar-eg'] = "في النسق";
|
||||
|
||||
$text['label-image']['en-us'] = "Image";
|
||||
$text['label-image']['es-cl'] = "Imagen";
|
||||
$text['label-image']['pt-pt'] = "Imagem";
|
||||
$text['label-image']['fr-fr'] = "image";
|
||||
$text['label-image']['pt-br'] = "Imagem";
|
||||
$text['label-image']['pl'] = "Obraz";
|
||||
$text['label-image']['he'] = "תמונה";
|
||||
$text['label-image']['uk'] = "зображення";
|
||||
$text['label-image']['sv-se'] = "Bild";
|
||||
$text['label-image']['de-at'] = "Image";
|
||||
$text['label-image']['ro'] = "Imagine";
|
||||
$text['label-image']['fa'] = "";
|
||||
$text['label-image']['ar-eg'] = "صورة";
|
||||
|
||||
$text['label-fixed']['en-us'] = "Fixed";
|
||||
$text['label-fixed']['es-cl'] = "Fijo";
|
||||
$text['label-fixed']['pt-pt'] = "Fixo";
|
||||
$text['label-fixed']['fr-fr'] = "Fixé";
|
||||
$text['label-fixed']['pt-br'] = "Fixo";
|
||||
$text['label-fixed']['pl'] = "Naprawiony";
|
||||
$text['label-fixed']['he'] = "קָבוּעַ";
|
||||
$text['label-fixed']['uk'] = "фіксований";
|
||||
$text['label-fixed']['sv-se'] = "Fast";
|
||||
$text['label-fixed']['de-at'] = "fest";
|
||||
$text['label-fixed']['ro'] = "Fix";
|
||||
$text['label-fixed']['fa'] = "";
|
||||
$text['label-fixed']['ar-eg'] = "ثابت";
|
||||
|
||||
$text['label-domain']['en-us'] = "Domain";
|
||||
$text['label-domain']['es-cl'] = "Dominio";
|
||||
$text['label-domain']['pt-pt'] = "Domínio";
|
||||
$text['label-domain']['fr-fr'] = "Domaine";
|
||||
$text['label-domain']['pt-br'] = "Dominio";
|
||||
$text['label-domain']['pl'] = "Domena";
|
||||
$text['label-domain']['sv-se'] = "Domän";
|
||||
$text['label-domain']['uk'] = "Домен";
|
||||
$text['label-domain']['de-at'] = "Domain";
|
||||
|
||||
$text['label-center']['en-us'] = "Center";
|
||||
$text['label-center']['es-cl'] = "Centrar";
|
||||
$text['label-center']['pt-pt'] = "Centro";
|
||||
$text['label-center']['fr-fr'] = "centre";
|
||||
$text['label-center']['pt-br'] = "Centro";
|
||||
$text['label-center']['pl'] = "Centrum";
|
||||
$text['label-center']['he'] = "מֶרְכָּז";
|
||||
$text['label-center']['uk'] = "центр";
|
||||
$text['label-center']['sv-se'] = "Centrum";
|
||||
$text['label-center']['de-at'] = "Center";
|
||||
$text['label-center']['ro'] = "Centru";
|
||||
$text['label-center']['fa'] = "";
|
||||
$text['label-center']['ar-eg'] = "مركز";
|
||||
|
||||
$text['label-bottom']['en-us'] = "Bottom";
|
||||
$text['label-bottom']['es-cl'] = "Fondo";
|
||||
$text['label-bottom']['pt-pt'] = "Inferior";
|
||||
$text['label-bottom']['fr-fr'] = "Bas";
|
||||
$text['label-bottom']['pt-br'] = "Inferior";
|
||||
$text['label-bottom']['pl'] = "Dolny";
|
||||
$text['label-bottom']['he'] = "תַחתִית";
|
||||
$text['label-bottom']['uk'] = "дно";
|
||||
$text['label-bottom']['sv-se'] = "Botten";
|
||||
$text['label-bottom']['de-at'] = "Boden";
|
||||
$text['label-bottom']['ro'] = "Fund";
|
||||
$text['label-bottom']['fa'] = "";
|
||||
$text['label-bottom']['ar-eg'] = "أسفل";
|
||||
|
||||
$text['label-24-hour']['en-us'] = "24-Hour";
|
||||
$text['label-24-hour']['es-cl'] = "24 horas";
|
||||
$text['label-24-hour']['pt-pt'] = "24 horas";
|
||||
$text['label-24-hour']['fr-fr'] = "24 heures";
|
||||
$text['label-24-hour']['pt-br'] = "24 horas";
|
||||
$text['label-24-hour']['pl'] = "24-godzinny";
|
||||
$text['label-24-hour']['he'] = "24 שעות";
|
||||
$text['label-24-hour']['uk'] = "24-годинний";
|
||||
$text['label-24-hour']['sv-se'] = "24-timmars";
|
||||
$text['label-24-hour']['de-at'] = "24 Stunden";
|
||||
$text['label-24-hour']['ro'] = "24 de ore";
|
||||
$text['label-24-hour']['fa'] = "";
|
||||
$text['label-24-hour']['ar-eg'] = "24 ساعة";
|
||||
|
||||
$text['label-12-hour']['en-us'] = "12-Hour";
|
||||
$text['label-12-hour']['es-cl'] = "12 horas";
|
||||
$text['label-12-hour']['pt-pt'] = "12 horas";
|
||||
$text['label-12-hour']['fr-fr'] = "12 heures";
|
||||
$text['label-12-hour']['pt-br'] = "12 horas";
|
||||
$text['label-12-hour']['pl'] = "12-godzinny";
|
||||
$text['label-12-hour']['he'] = "12 שעות";
|
||||
$text['label-12-hour']['uk'] = "12-годинний";
|
||||
$text['label-12-hour']['sv-se'] = "12-timmars";
|
||||
$text['label-12-hour']['de-at'] = "12 Stunden";
|
||||
$text['label-12-hour']['ro'] = "12 de ore";
|
||||
$text['label-12-hour']['fa'] = "";
|
||||
$text['label-12-hour']['ar-eg'] = "12 ساعة";
|
||||
|
||||
$text['header-settings']['en-us'] = "Settings";
|
||||
$text['header-settings']['es-cl'] = "Configuraciones";
|
||||
$text['header-settings']['pt-pt'] = "Definições";
|
||||
$text['header-settings']['fr-fr'] = "Paramètres";
|
||||
$text['header-settings']['pt-br'] = "Configurações";
|
||||
$text['header-settings']['pl'] = "Ustawienia";
|
||||
$text['header-settings']['sv-se'] = "Inställning";
|
||||
$text['header-settings']['uk'] = "Налаштування";
|
||||
$text['header-settings']['de-at'] = "Einstellungen";
|
||||
|
||||
$text['header-domains']['en-us'] = "Domains";
|
||||
$text['header-domains']['es-cl'] = "Dominios";
|
||||
$text['header-domains']['pt-pt'] = "Domínios";
|
||||
$text['header-domains']['fr-fr'] = "Domaines";
|
||||
$text['header-domains']['pt-br'] = "Dominios";
|
||||
$text['header-domains']['pl'] = "Domeny";
|
||||
$text['header-domains']['sv-se'] = "Domäner";
|
||||
$text['header-domains']['uk'] = "Домени";
|
||||
$text['header-domains']['de-at'] = "Domains";
|
||||
|
||||
$text['header-domain_setting-edit']['en-us'] = "Domain Setting";
|
||||
$text['header-domain_setting-edit']['es-cl'] = "Configuraciones de dominio";
|
||||
$text['header-domain_setting-edit']['pt-pt'] = "Definições do Domínio";
|
||||
$text['header-domain_setting-edit']['fr-fr'] = "Paramètres du domaine";
|
||||
$text['header-domain_setting-edit']['pt-br'] = "Configurações do dominio";
|
||||
$text['header-domain_setting-edit']['pl'] = "Ustawienia domeny";
|
||||
$text['header-domain_setting-edit']['sv-se'] = "Domän Inställning";
|
||||
$text['header-domain_setting-edit']['uk'] = "Налаштування домену";
|
||||
$text['header-domain_setting-edit']['de-at'] = "Domain Einstellungen";
|
||||
|
||||
$text['header-domain_setting-add']['en-us'] = "Domain Setting Add";
|
||||
$text['header-domain_setting-add']['es-cl'] = "Agregar Configuración de Dominio";
|
||||
$text['header-domain_setting-add']['pt-pt'] = "Adicionar Definição ao Domínio";
|
||||
$text['header-domain_setting-add']['fr-fr'] = "Ajouter un paramètre au domaine";
|
||||
$text['header-domain_setting-add']['pt-br'] = "Adicionar configuração ao dominio";
|
||||
$text['header-domain_setting-add']['pl'] = "Dodaj ustawienie domeny";
|
||||
$text['header-domain_setting-add']['sv-se'] = "Lägg Till Domän Inställning";
|
||||
$text['header-domain_setting-add']['uk'] = "Параметри домену";
|
||||
$text['header-domain_setting-add']['de-at'] = "Domain Einstellungen hinzufügen";
|
||||
|
||||
$text['header-domain-edit']['en-us'] = "Domain";
|
||||
$text['header-domain-edit']['es-cl'] = "Dominio";
|
||||
$text['header-domain-edit']['pt-pt'] = "Domínio";
|
||||
$text['header-domain-edit']['fr-fr'] = "Domaine";
|
||||
$text['header-domain-edit']['pt-br'] = "Dominio";
|
||||
$text['header-domain-edit']['pl'] = "Domena";
|
||||
$text['header-domain-edit']['sv-se'] = "Domän";
|
||||
$text['header-domain-edit']['uk'] = "Домен";
|
||||
$text['header-domain-edit']['de-at'] = "Domain";
|
||||
|
||||
$text['header-domain-add']['en-us'] = "Domain Add";
|
||||
$text['header-domain-add']['es-cl'] = "Agregar Dominio";
|
||||
$text['header-domain-add']['pt-pt'] = "Adicionar Domínio";
|
||||
$text['header-domain-add']['fr-fr'] = "Ajouter un Domaine";
|
||||
$text['header-domain-add']['pt-br'] = "Adicionar dominio";
|
||||
$text['header-domain-add']['pl'] = "Dodaj domenę";
|
||||
$text['header-domain-add']['sv-se'] = "Lägg Till Domän";
|
||||
$text['header-domain-add']['uk'] = "Новий домен";
|
||||
$text['header-domain-add']['de-at'] = "Domain hinzufügen";
|
||||
|
||||
$text['description-setting_enabled']['en-us'] = "Set the status of this default setting.";
|
||||
$text['description-setting_enabled']['es-cl'] = "Configure el estado de esta configuración predeterminada.";
|
||||
$text['description-setting_enabled']['pt-pt'] = "Escolha o estado desta definição por omissão.";
|
||||
$text['description-setting_enabled']['fr-fr'] = "Choisir l'état de ce paramètre";
|
||||
$text['description-setting_enabled']['pt-br'] = "Escolha o estado desta configuração";
|
||||
$text['description-setting_enabled']['pl'] = "Wybierz, aby włączyć lub wyłączyć tę funkcję.";
|
||||
$text['description-setting_enabled']['sv-se'] = "Ange status på denna standard inställning.";
|
||||
$text['description-setting_enabled']['uk'] = "Встановіть стан цього параметра за замовчуванням.";
|
||||
$text['description-setting_enabled']['de-at'] = "Setzen Sie den Status dieser Standardeinstellung.";
|
||||
|
||||
$text['description-parent_domain']['en-us'] = "Set the parent domain.";
|
||||
$text['description-parent_domain']['es-cl'] = "Establecer el dominio principal.";
|
||||
$text['description-parent_domain']['pt-pt'] = "Defina o domínio pai.";
|
||||
$text['description-parent_domain']['fr-fr'] = "Réglez le domaine parent.";
|
||||
$text['description-parent_domain']['pt-br'] = "Defina o dominio pai";
|
||||
$text['description-parent_domain']['pl'] = "Ustaw domenę nadrzędną";
|
||||
$text['description-parent_domain']['sv-se'] = "Ange Överordan Domän.";
|
||||
$text['description-parent_domain']['uk'] = "Вкажіть батьківський домен";
|
||||
$text['description-parent_domain']['de-at'] = "Setzen Sie die übergeordnete Domain.";
|
||||
|
||||
$text['description-order']['en-us'] = "Set the order for this array element.";
|
||||
$text['description-order']['es-cl'] = "Establecer el orden para este elemento de la matriz.";
|
||||
$text['description-order']['pt-pt'] = "Definir a ordem para este elemento do array.";
|
||||
$text['description-order']['fr-fr'] = "Définissez l'ordre de cet élément de tableau.";
|
||||
$text['description-order']['pt-br'] = "Defina a ordem (indice) para este elemento da matriz";
|
||||
$text['description-order']['pl'] = "Wybierz kolejność.";
|
||||
$text['description-order']['sv-se'] = "Ställ in ordningen för detta element.";
|
||||
$text['description-order']['uk'] = "Вкажіть порядок для масиву елементів";
|
||||
$text['description-order']['de-at'] = "Wählen Sie die Reihenfolge des Array Elements.";
|
||||
|
||||
$text['description-name']['en-us'] = "Enter the name of the domain.";
|
||||
$text['description-name']['es-cl'] = "Ingrese el nombre del dominio";
|
||||
$text['description-name']['pt-pt'] = "Introduza o nome do domínio.";
|
||||
$text['description-name']['fr-fr'] = "Entrer le nom du domaine.";
|
||||
$text['description-name']['pt-br'] = "Insira o nome do menu";
|
||||
$text['description-name']['pl'] = "Wprowadź nazwę";
|
||||
$text['description-name']['sv-se'] = "Ange namn på Domänen.";
|
||||
$text['description-name']['uk'] = "Вкажіть назву домену";
|
||||
$text['description-name']['de-at'] = "Geben Sie den Namen dieser Domain an";
|
||||
|
||||
$text['description-domains']['en-us'] = "Control the list of domains to manage.";
|
||||
$text['description-domains']['es-cl'] = "Controlar la lista de dominios a gestionar.";
|
||||
$text['description-domains']['pt-pt'] = "Controlar a lista dos domínios a gerir";
|
||||
$text['description-domains']['fr-fr'] = "Contrôler la liste des domaines à gérer";
|
||||
$text['description-domains']['pt-br'] = "Gerencie a lista dos dominios";
|
||||
$text['description-domains']['pl'] = "Zarządzanie listą domen.";
|
||||
$text['description-domains']['sv-se'] = "Kontrollera lista med Domäner att hantera.";
|
||||
$text['description-domains']['uk'] = "Список доменів для керування";
|
||||
$text['description-domains']['de-at'] = "Eine Liste aller Domains.";
|
||||
|
||||
$text['description-domain_setting-edit']['en-us'] = "Edit a setting for this domain.";
|
||||
$text['description-domain_setting-edit']['es-cl'] = "Edita una configuración para este dominio.";
|
||||
$text['description-domain_setting-edit']['pt-pt'] = "Editar uma definição deste domínio.";
|
||||
$text['description-domain_setting-edit']['fr-fr'] = "Editer un paramètre du domaine.";
|
||||
$text['description-domain_setting-edit']['pt-br'] = "Editar uma configuração deste dominio";
|
||||
$text['description-domain_setting-edit']['pl'] = "Edytuj ustawienia w tej domenie";
|
||||
$text['description-domain_setting-edit']['sv-se'] = "Ändra en inställning för denna Domän.";
|
||||
$text['description-domain_setting-edit']['uk'] = "Редагування параметрів для домену";
|
||||
$text['description-domain_setting-edit']['de-at'] = "Eine Einstellung für diese Domain ändern.";
|
||||
|
||||
$text['description-domain_setting-add']['en-us'] = "Add a setting for this domain.";
|
||||
$text['description-domain_setting-add']['es-cl'] = "Agregar una configuración para este dominio.";
|
||||
$text['description-domain_setting-add']['pt-pt'] = "Adicionar uma definição a este domínio.";
|
||||
$text['description-domain_setting-add']['fr-fr'] = "";
|
||||
$text['description-domain_setting-add']['pt-br'] = "Adicionar uma configuração a este dominio";
|
||||
$text['description-domain_setting-add']['pl'] = "Dodaj ustawienie w tej domenie";
|
||||
$text['description-domain_setting-add']['sv-se'] = "Lägg Till en inställning för denna Domän.";
|
||||
$text['description-domain_setting-add']['uk'] = "Додавання параметра для домену";
|
||||
$text['description-domain_setting-add']['de-at'] = "Eine Einstellung für diese Domain hinzufügen.";
|
||||
|
||||
$text['description-domain_enabled']['en-us'] = "Set the status of the domain.";
|
||||
$text['description-domain_enabled']['es-cl'] = "Ajuste el estado del dominio.";
|
||||
$text['description-domain_enabled']['pt-pt'] = "Definir o estado do domínio.";
|
||||
$text['description-domain_enabled']['fr-fr'] = "Régler le statut du domaine.";
|
||||
$text['description-domain_enabled']['pt-br'] = "Definir o estado do dominio";
|
||||
$text['description-domain_enabled']['pl'] = "Ustaw status tej domeny.";
|
||||
$text['description-domain_enabled']['sv-se'] = "Ange status för Domänen.";
|
||||
$text['description-domain_enabled']['uk'] = "Вкажіть стан домену";
|
||||
$text['description-domain_enabled']['de-at'] = "Den Status der Domain setzen.";
|
||||
|
||||
$text['description-domain-edit']['en-us'] = "Edit the details of this domain.";
|
||||
$text['description-domain-edit']['es-cl'] = "Editar detalles de este dominio.";
|
||||
$text['description-domain-edit']['pt-pt'] = "Editar detalhes deste domínio.";
|
||||
$text['description-domain-edit']['fr-fr'] = "Editer les détaisl de ce domaine. ";
|
||||
$text['description-domain-edit']['pt-br'] = "Editar detalhes deste dominio";
|
||||
$text['description-domain-edit']['pl'] = "Edytuj szczegóły tej domeny.";
|
||||
$text['description-domain-edit']['sv-se'] = "Ändra detaljer för denna Domän.";
|
||||
$text['description-domain-edit']['uk'] = "Редагування деталей домену";
|
||||
$text['description-domain-edit']['de-at'] = "Die Details dieser Domain ändern.";
|
||||
|
||||
$text['description-domain-add']['en-us'] = "Enter the domain details below.";
|
||||
$text['description-domain-add']['es-cl'] = "Ingrese los detalles del dominio a continuación.";
|
||||
$text['description-domain-add']['pt-pt'] = "Introduza os detalhes do domínio abaixo.";
|
||||
$text['description-domain-add']['fr-fr'] = "Entrer les détails du domaine ci-dessous.";
|
||||
$text['description-domain-add']['pt-br'] = "Insira os detalhes do dominio abaixo";
|
||||
$text['description-domain-add']['pl'] = "Poniżej wprowadź szczegóły domeny";
|
||||
$text['description-domain-add']['sv-se'] = "Ange domändetaljer nedan.";
|
||||
$text['description-domain-add']['uk'] = "Введіть дані домену нижче.";
|
||||
$text['description-domain-add']['de-at'] = "Geben Sie die Domain Details unten an.";
|
||||
|
||||
<?php
|
||||
|
||||
$text['title-domains']['en-us'] = "Domains";
|
||||
$text['title-domains']['es-cl'] = "Dominios";
|
||||
$text['title-domains']['pt-pt'] = "Domínios";
|
||||
$text['title-domains']['fr-fr'] = "Domaines";
|
||||
$text['title-domains']['pt-br'] = "Dominios";
|
||||
$text['title-domains']['pl'] = "Domeny";
|
||||
$text['title-domains']['sv-se'] = "Domäner";
|
||||
$text['title-domains']['uk'] = "Домени";
|
||||
$text['title-domains']['de-at'] = "Domains";
|
||||
|
||||
$text['title-domain_setting-edit']['en-us'] = "Domain Setting";
|
||||
$text['title-domain_setting-edit']['es-cl'] = "Configuraciones de dominio.";
|
||||
$text['title-domain_setting-edit']['pt-pt'] = "Definições do Domínio";
|
||||
$text['title-domain_setting-edit']['fr-fr'] = "Paramètres du domaine";
|
||||
$text['title-domain_setting-edit']['pt-br'] = "Configurações do dominio";
|
||||
$text['title-domain_setting-edit']['pl'] = "Ustawienia domen";
|
||||
$text['title-domain_setting-edit']['sv-se'] = "Domän Inställning";
|
||||
$text['title-domain_setting-edit']['uk'] = "Налаштування доменів";
|
||||
$text['title-domain_setting-edit']['de-at'] = "Domain Einstellungen";
|
||||
|
||||
$text['title-domain_setting-add']['en-us'] = "Domain Setting Add";
|
||||
$text['title-domain_setting-add']['es-cl'] = "Agregar Configuración de Dominio";
|
||||
$text['title-domain_setting-add']['pt-pt'] = "Adicionar Definição ao Domínio";
|
||||
$text['title-domain_setting-add']['fr-fr'] = "Ajouter un paramètre au domaine";
|
||||
$text['title-domain_setting-add']['pt-br'] = "Adicionar configurações do dominio";
|
||||
$text['title-domain_setting-add']['pl'] = "Dodaj ustawienie domeny";
|
||||
$text['title-domain_setting-add']['sv-se'] = "Lägg Till Domän Inställning";
|
||||
$text['title-domain_setting-add']['uk'] = "Додавання домену";
|
||||
$text['title-domain_setting-add']['de-at'] = "Domain Einstellungen hinzufügen";
|
||||
|
||||
$text['title-domain-edit']['en-us'] = "Domain";
|
||||
$text['title-domain-edit']['es-cl'] = "Dominio";
|
||||
$text['title-domain-edit']['pt-pt'] = "Domínio";
|
||||
$text['title-domain-edit']['fr-fr'] = "Domaines";
|
||||
$text['title-domain-edit']['pt-br'] = "Dominio";
|
||||
$text['title-domain-edit']['pl'] = "Domena";
|
||||
$text['title-domain-edit']['sv-se'] = "Domän";
|
||||
$text['title-domain-edit']['uk'] = "Домен";
|
||||
$text['title-domain-edit']['de-at'] = "Domain";
|
||||
|
||||
$text['title-domain-add']['en-us'] = "Domain Add";
|
||||
$text['title-domain-add']['es-cl'] = "Agregar Dominio";
|
||||
$text['title-domain-add']['pt-pt'] = "Adicionar Domínio";
|
||||
$text['title-domain-add']['fr-fr'] = "Ajouter un Domaine";
|
||||
$text['title-domain-add']['pt-br'] = "Adicionar dominio";
|
||||
$text['title-domain-add']['pl'] = "Dodaj domenę";
|
||||
$text['title-domain-add']['sv-se'] = "Lägg Till Domän";
|
||||
$text['title-domain-add']['uk'] = "Новий домен";
|
||||
$text['title-domain-add']['de-at'] = "Domain hinzufügen";
|
||||
|
||||
$text['message-delete_failed']['en-us'] = "No Settings Checked";
|
||||
$text['message-delete_failed']['es-cl'] = "No hay ajustes facturado";
|
||||
$text['message-delete_failed']['pt-pt'] = "Nenhuma configuração marcada";
|
||||
$text['message-delete_failed']['fr-fr'] = "Pas de paramètres enregistrés";
|
||||
$text['message-delete_failed']['pt-br'] = "Falha na exclusão";
|
||||
$text['message-delete_failed']['pl'] = "Próba usunięcia zakończyła się niepowodzeniem";
|
||||
$text['message-delete_failed']['sv-se'] = "Ingen Inställning Markerad";
|
||||
$text['message-delete_failed']['uk'] = "Налаштування не вказано";
|
||||
$text['message-delete_failed']['de-at'] = "Keine Einstellungen ausgewählt";
|
||||
|
||||
$text['label-top']['en-us'] = "Top";
|
||||
$text['label-top']['es-cl'] = "encima";
|
||||
$text['label-top']['pt-pt'] = "Topo";
|
||||
$text['label-top']['fr-fr'] = "Meilleur";
|
||||
$text['label-top']['pt-br'] = "Topo";
|
||||
$text['label-top']['pl'] = "Top";
|
||||
$text['label-top']['he'] = "עליון";
|
||||
$text['label-top']['uk'] = "топ";
|
||||
$text['label-top']['sv-se'] = "Topp";
|
||||
$text['label-top']['de-at'] = "Oben";
|
||||
$text['label-top']['ro'] = "Top";
|
||||
$text['label-top']['fa'] = "";
|
||||
$text['label-top']['ar-eg'] = "أعلى";
|
||||
|
||||
$text['label-tools']['en-us'] = "Tools";
|
||||
$text['label-tools']['es-cl'] = "Herramientas";
|
||||
$text['label-tools']['pt-pt'] = "Ferramentas";
|
||||
$text['label-tools']['fr-fr'] = "Outils";
|
||||
$text['label-tools']['pt-br'] = "Ferramentas";
|
||||
$text['label-tools']['pl'] = "Narzędzia";
|
||||
$text['label-tools']['sv-se'] = "Verktyg";
|
||||
$text['label-tools']['uk'] = "Параметри";
|
||||
$text['label-tools']['de-at'] = "Werkzeug";
|
||||
|
||||
$text['label-text']['en-us'] = "Text";
|
||||
$text['label-text']['es-cl'] = "Texto";
|
||||
$text['label-text']['pt-pt'] = "Texto";
|
||||
$text['label-text']['fr-fr'] = "Texte";
|
||||
$text['label-text']['pt-br'] = "Texto";
|
||||
$text['label-text']['pl'] = "Tekst";
|
||||
$text['label-text']['he'] = "טֶקסט";
|
||||
$text['label-text']['uk'] = "текст";
|
||||
$text['label-text']['sv-se'] = "Text";
|
||||
$text['label-text']['de-at'] = "Text";
|
||||
$text['label-text']['ro'] = "Text";
|
||||
$text['label-text']['fa'] = "";
|
||||
$text['label-text']['ar-eg'] = "نص";
|
||||
|
||||
$text['label-static']['en-us'] = "Static";
|
||||
$text['label-static']['es-cl'] = "Estático";
|
||||
$text['label-static']['pt-pt'] = "Estático";
|
||||
$text['label-static']['fr-fr'] = "Statique";
|
||||
$text['label-static']['pt-br'] = "Estático";
|
||||
$text['label-static']['pl'] = "Statyczny";
|
||||
$text['label-static']['he'] = "סטָטִי";
|
||||
$text['label-static']['uk'] = "статичний";
|
||||
$text['label-static']['sv-se'] = "Statisk";
|
||||
$text['label-static']['de-at'] = "Statisch";
|
||||
$text['label-static']['ro'] = "Static";
|
||||
$text['label-static']['fa'] = "";
|
||||
$text['label-static']['ar-eg'] = "ساكن";
|
||||
|
||||
$text['label-right']['en-us'] = "Right";
|
||||
$text['label-right']['es-cl'] = "Derecha";
|
||||
$text['label-right']['pt-pt'] = "Certo";
|
||||
$text['label-right']['fr-fr'] = "Droite";
|
||||
$text['label-right']['pt-br'] = "Certo";
|
||||
$text['label-right']['pl'] = "Dobrze";
|
||||
$text['label-right']['he'] = "יָמִינָה";
|
||||
$text['label-right']['uk'] = "правий";
|
||||
$text['label-right']['sv-se'] = "Höger";
|
||||
$text['label-right']['de-at'] = "Recht";
|
||||
$text['label-right']['ro'] = "Dreapta";
|
||||
$text['label-right']['fa'] = "";
|
||||
$text['label-right']['ar-eg'] = "حق";
|
||||
|
||||
$text['label-parent_domain']['en-us'] = "Parent Domain";
|
||||
$text['label-parent_domain']['es-cl'] = "Dominio de los Padres";
|
||||
$text['label-parent_domain']['pt-pt'] = "Domínio Parent";
|
||||
$text['label-parent_domain']['fr-fr'] = "Domaine Parent";
|
||||
$text['label-parent_domain']['pt-br'] = "Dominio principal";
|
||||
$text['label-parent_domain']['pl'] = "Domena nadrzędna";
|
||||
$text['label-parent_domain']['sv-se'] = "Överordnad Domän";
|
||||
$text['label-parent_domain']['uk'] = "Батьківський домен";
|
||||
$text['label-parent_domain']['de-at'] = "Übergeordnete Domain";
|
||||
|
||||
$text['label-none']['en-us'] = "None";
|
||||
$text['label-none']['es-cl'] = "Ninguna";
|
||||
$text['label-none']['pt-pt'] = "Nenhum";
|
||||
$text['label-none']['fr-fr'] = "Aucun";
|
||||
$text['label-none']['pt-br'] = "Nenhum";
|
||||
$text['label-none']['pl'] = "Żaden";
|
||||
$text['label-none']['he'] = "אף לא אחד";
|
||||
$text['label-none']['uk'] = "жоден";
|
||||
$text['label-none']['sv-se'] = "Ingen";
|
||||
$text['label-none']['de-at'] = "Keiner";
|
||||
$text['label-none']['ro'] = "Nici unul";
|
||||
$text['label-none']['fa'] = "";
|
||||
$text['label-none']['ar-eg'] = "لا شيء";
|
||||
|
||||
$text['label-manage']['en-us'] = "Manage";
|
||||
$text['label-manage']['es-cl'] = "Gestionar";
|
||||
$text['label-manage']['pt-pt'] = "Gerir";
|
||||
$text['label-manage']['fr-fr'] = "Gérer";
|
||||
$text['label-manage']['pt-br'] = "Gerenciar";
|
||||
$text['label-manage']['pl'] = "Zarządzaj";
|
||||
$text['label-manage']['sv-se'] = "Hantera";
|
||||
$text['label-manage']['uk'] = "Керувати";
|
||||
$text['label-manage']['de-at'] = "Verwalten";
|
||||
|
||||
$text['label-left']['en-us'] = "Left";
|
||||
$text['label-left']['es-cl'] = "Izquierda";
|
||||
$text['label-left']['pt-pt'] = "Esquerda";
|
||||
$text['label-left']['fr-fr'] = "À gauche";
|
||||
$text['label-left']['pt-br'] = "Esquerda";
|
||||
$text['label-left']['pl'] = "Lewo";
|
||||
$text['label-left']['he'] = "שְׁמֹאל";
|
||||
$text['label-left']['uk'] = "лівий";
|
||||
$text['label-left']['sv-se'] = "Vänster";
|
||||
$text['label-left']['de-at'] = "Links";
|
||||
$text['label-left']['ro'] = "Stânga";
|
||||
$text['label-left']['fa'] = "";
|
||||
$text['label-left']['ar-eg'] = "اليسار";
|
||||
|
||||
$text['label-inline']['en-us'] = "Inline";
|
||||
$text['label-inline']['es-cl'] = "En línea";
|
||||
$text['label-inline']['pt-pt'] = "Na linha";
|
||||
$text['label-inline']['fr-fr'] = "En ligne";
|
||||
$text['label-inline']['pt-br'] = "Na linha";
|
||||
$text['label-inline']['pl'] = "inline";
|
||||
$text['label-inline']['he'] = "בשורה";
|
||||
$text['label-inline']['uk'] = "В лінію";
|
||||
$text['label-inline']['sv-se'] = "I kö";
|
||||
$text['label-inline']['de-at'] = "In der Reihe";
|
||||
$text['label-inline']['ro'] = "In linie";
|
||||
$text['label-inline']['fa'] = "";
|
||||
$text['label-inline']['ar-eg'] = "في النسق";
|
||||
|
||||
$text['label-image']['en-us'] = "Image";
|
||||
$text['label-image']['es-cl'] = "Imagen";
|
||||
$text['label-image']['pt-pt'] = "Imagem";
|
||||
$text['label-image']['fr-fr'] = "image";
|
||||
$text['label-image']['pt-br'] = "Imagem";
|
||||
$text['label-image']['pl'] = "Obraz";
|
||||
$text['label-image']['he'] = "תמונה";
|
||||
$text['label-image']['uk'] = "зображення";
|
||||
$text['label-image']['sv-se'] = "Bild";
|
||||
$text['label-image']['de-at'] = "Image";
|
||||
$text['label-image']['ro'] = "Imagine";
|
||||
$text['label-image']['fa'] = "";
|
||||
$text['label-image']['ar-eg'] = "صورة";
|
||||
|
||||
$text['label-fixed']['en-us'] = "Fixed";
|
||||
$text['label-fixed']['es-cl'] = "Fijo";
|
||||
$text['label-fixed']['pt-pt'] = "Fixo";
|
||||
$text['label-fixed']['fr-fr'] = "Fixé";
|
||||
$text['label-fixed']['pt-br'] = "Fixo";
|
||||
$text['label-fixed']['pl'] = "Naprawiony";
|
||||
$text['label-fixed']['he'] = "קָבוּעַ";
|
||||
$text['label-fixed']['uk'] = "фіксований";
|
||||
$text['label-fixed']['sv-se'] = "Fast";
|
||||
$text['label-fixed']['de-at'] = "fest";
|
||||
$text['label-fixed']['ro'] = "Fix";
|
||||
$text['label-fixed']['fa'] = "";
|
||||
$text['label-fixed']['ar-eg'] = "ثابت";
|
||||
|
||||
$text['label-domain']['en-us'] = "Domain";
|
||||
$text['label-domain']['es-cl'] = "Dominio";
|
||||
$text['label-domain']['pt-pt'] = "Domínio";
|
||||
$text['label-domain']['fr-fr'] = "Domaine";
|
||||
$text['label-domain']['pt-br'] = "Dominio";
|
||||
$text['label-domain']['pl'] = "Domena";
|
||||
$text['label-domain']['sv-se'] = "Domän";
|
||||
$text['label-domain']['uk'] = "Домен";
|
||||
$text['label-domain']['de-at'] = "Domain";
|
||||
|
||||
$text['label-center']['en-us'] = "Center";
|
||||
$text['label-center']['es-cl'] = "Centrar";
|
||||
$text['label-center']['pt-pt'] = "Centro";
|
||||
$text['label-center']['fr-fr'] = "centre";
|
||||
$text['label-center']['pt-br'] = "Centro";
|
||||
$text['label-center']['pl'] = "Centrum";
|
||||
$text['label-center']['he'] = "מֶרְכָּז";
|
||||
$text['label-center']['uk'] = "центр";
|
||||
$text['label-center']['sv-se'] = "Centrum";
|
||||
$text['label-center']['de-at'] = "Center";
|
||||
$text['label-center']['ro'] = "Centru";
|
||||
$text['label-center']['fa'] = "";
|
||||
$text['label-center']['ar-eg'] = "مركز";
|
||||
|
||||
$text['label-bottom']['en-us'] = "Bottom";
|
||||
$text['label-bottom']['es-cl'] = "Fondo";
|
||||
$text['label-bottom']['pt-pt'] = "Inferior";
|
||||
$text['label-bottom']['fr-fr'] = "Bas";
|
||||
$text['label-bottom']['pt-br'] = "Inferior";
|
||||
$text['label-bottom']['pl'] = "Dolny";
|
||||
$text['label-bottom']['he'] = "תַחתִית";
|
||||
$text['label-bottom']['uk'] = "дно";
|
||||
$text['label-bottom']['sv-se'] = "Botten";
|
||||
$text['label-bottom']['de-at'] = "Boden";
|
||||
$text['label-bottom']['ro'] = "Fund";
|
||||
$text['label-bottom']['fa'] = "";
|
||||
$text['label-bottom']['ar-eg'] = "أسفل";
|
||||
|
||||
$text['label-24-hour']['en-us'] = "24-Hour";
|
||||
$text['label-24-hour']['es-cl'] = "24 horas";
|
||||
$text['label-24-hour']['pt-pt'] = "24 horas";
|
||||
$text['label-24-hour']['fr-fr'] = "24 heures";
|
||||
$text['label-24-hour']['pt-br'] = "24 horas";
|
||||
$text['label-24-hour']['pl'] = "24-godzinny";
|
||||
$text['label-24-hour']['he'] = "24 שעות";
|
||||
$text['label-24-hour']['uk'] = "24-годинний";
|
||||
$text['label-24-hour']['sv-se'] = "24-timmars";
|
||||
$text['label-24-hour']['de-at'] = "24 Stunden";
|
||||
$text['label-24-hour']['ro'] = "24 de ore";
|
||||
$text['label-24-hour']['fa'] = "";
|
||||
$text['label-24-hour']['ar-eg'] = "24 ساعة";
|
||||
|
||||
$text['label-12-hour']['en-us'] = "12-Hour";
|
||||
$text['label-12-hour']['es-cl'] = "12 horas";
|
||||
$text['label-12-hour']['pt-pt'] = "12 horas";
|
||||
$text['label-12-hour']['fr-fr'] = "12 heures";
|
||||
$text['label-12-hour']['pt-br'] = "12 horas";
|
||||
$text['label-12-hour']['pl'] = "12-godzinny";
|
||||
$text['label-12-hour']['he'] = "12 שעות";
|
||||
$text['label-12-hour']['uk'] = "12-годинний";
|
||||
$text['label-12-hour']['sv-se'] = "12-timmars";
|
||||
$text['label-12-hour']['de-at'] = "12 Stunden";
|
||||
$text['label-12-hour']['ro'] = "12 de ore";
|
||||
$text['label-12-hour']['fa'] = "";
|
||||
$text['label-12-hour']['ar-eg'] = "12 ساعة";
|
||||
|
||||
$text['header-settings']['en-us'] = "Settings";
|
||||
$text['header-settings']['es-cl'] = "Configuraciones";
|
||||
$text['header-settings']['pt-pt'] = "Definições";
|
||||
$text['header-settings']['fr-fr'] = "Paramètres";
|
||||
$text['header-settings']['pt-br'] = "Configurações";
|
||||
$text['header-settings']['pl'] = "Ustawienia";
|
||||
$text['header-settings']['sv-se'] = "Inställning";
|
||||
$text['header-settings']['uk'] = "Налаштування";
|
||||
$text['header-settings']['de-at'] = "Einstellungen";
|
||||
|
||||
$text['header-domains']['en-us'] = "Domains";
|
||||
$text['header-domains']['es-cl'] = "Dominios";
|
||||
$text['header-domains']['pt-pt'] = "Domínios";
|
||||
$text['header-domains']['fr-fr'] = "Domaines";
|
||||
$text['header-domains']['pt-br'] = "Dominios";
|
||||
$text['header-domains']['pl'] = "Domeny";
|
||||
$text['header-domains']['sv-se'] = "Domäner";
|
||||
$text['header-domains']['uk'] = "Домени";
|
||||
$text['header-domains']['de-at'] = "Domains";
|
||||
|
||||
$text['header-domain_setting-edit']['en-us'] = "Domain Setting";
|
||||
$text['header-domain_setting-edit']['es-cl'] = "Configuraciones de dominio";
|
||||
$text['header-domain_setting-edit']['pt-pt'] = "Definições do Domínio";
|
||||
$text['header-domain_setting-edit']['fr-fr'] = "Paramètres du domaine";
|
||||
$text['header-domain_setting-edit']['pt-br'] = "Configurações do dominio";
|
||||
$text['header-domain_setting-edit']['pl'] = "Ustawienia domeny";
|
||||
$text['header-domain_setting-edit']['sv-se'] = "Domän Inställning";
|
||||
$text['header-domain_setting-edit']['uk'] = "Налаштування домену";
|
||||
$text['header-domain_setting-edit']['de-at'] = "Domain Einstellungen";
|
||||
|
||||
$text['header-domain_setting-add']['en-us'] = "Domain Setting Add";
|
||||
$text['header-domain_setting-add']['es-cl'] = "Agregar Configuración de Dominio";
|
||||
$text['header-domain_setting-add']['pt-pt'] = "Adicionar Definição ao Domínio";
|
||||
$text['header-domain_setting-add']['fr-fr'] = "Ajouter un paramètre au domaine";
|
||||
$text['header-domain_setting-add']['pt-br'] = "Adicionar configuração ao dominio";
|
||||
$text['header-domain_setting-add']['pl'] = "Dodaj ustawienie domeny";
|
||||
$text['header-domain_setting-add']['sv-se'] = "Lägg Till Domän Inställning";
|
||||
$text['header-domain_setting-add']['uk'] = "Параметри домену";
|
||||
$text['header-domain_setting-add']['de-at'] = "Domain Einstellungen hinzufügen";
|
||||
|
||||
$text['header-domain-edit']['en-us'] = "Domain";
|
||||
$text['header-domain-edit']['es-cl'] = "Dominio";
|
||||
$text['header-domain-edit']['pt-pt'] = "Domínio";
|
||||
$text['header-domain-edit']['fr-fr'] = "Domaine";
|
||||
$text['header-domain-edit']['pt-br'] = "Dominio";
|
||||
$text['header-domain-edit']['pl'] = "Domena";
|
||||
$text['header-domain-edit']['sv-se'] = "Domän";
|
||||
$text['header-domain-edit']['uk'] = "Домен";
|
||||
$text['header-domain-edit']['de-at'] = "Domain";
|
||||
|
||||
$text['header-domain-add']['en-us'] = "Domain Add";
|
||||
$text['header-domain-add']['es-cl'] = "Agregar Dominio";
|
||||
$text['header-domain-add']['pt-pt'] = "Adicionar Domínio";
|
||||
$text['header-domain-add']['fr-fr'] = "Ajouter un Domaine";
|
||||
$text['header-domain-add']['pt-br'] = "Adicionar dominio";
|
||||
$text['header-domain-add']['pl'] = "Dodaj domenę";
|
||||
$text['header-domain-add']['sv-se'] = "Lägg Till Domän";
|
||||
$text['header-domain-add']['uk'] = "Новий домен";
|
||||
$text['header-domain-add']['de-at'] = "Domain hinzufügen";
|
||||
|
||||
$text['description-setting_enabled']['en-us'] = "Set the status of this default setting.";
|
||||
$text['description-setting_enabled']['es-cl'] = "Configure el estado de esta configuración predeterminada.";
|
||||
$text['description-setting_enabled']['pt-pt'] = "Escolha o estado desta definição por omissão.";
|
||||
$text['description-setting_enabled']['fr-fr'] = "Choisir l'état de ce paramètre";
|
||||
$text['description-setting_enabled']['pt-br'] = "Escolha o estado desta configuração";
|
||||
$text['description-setting_enabled']['pl'] = "Wybierz, aby włączyć lub wyłączyć tę funkcję.";
|
||||
$text['description-setting_enabled']['sv-se'] = "Ange status på denna standard inställning.";
|
||||
$text['description-setting_enabled']['uk'] = "Встановіть стан цього параметра за замовчуванням.";
|
||||
$text['description-setting_enabled']['de-at'] = "Setzen Sie den Status dieser Standardeinstellung.";
|
||||
|
||||
$text['description-parent_domain']['en-us'] = "Set the parent domain.";
|
||||
$text['description-parent_domain']['es-cl'] = "Establecer el dominio principal.";
|
||||
$text['description-parent_domain']['pt-pt'] = "Defina o domínio pai.";
|
||||
$text['description-parent_domain']['fr-fr'] = "Réglez le domaine parent.";
|
||||
$text['description-parent_domain']['pt-br'] = "Defina o dominio pai";
|
||||
$text['description-parent_domain']['pl'] = "Ustaw domenę nadrzędną";
|
||||
$text['description-parent_domain']['sv-se'] = "Ange Överordan Domän.";
|
||||
$text['description-parent_domain']['uk'] = "Вкажіть батьківський домен";
|
||||
$text['description-parent_domain']['de-at'] = "Setzen Sie die übergeordnete Domain.";
|
||||
|
||||
$text['description-order']['en-us'] = "Set the order for this array element.";
|
||||
$text['description-order']['es-cl'] = "Establecer el orden para este elemento de la matriz.";
|
||||
$text['description-order']['pt-pt'] = "Definir a ordem para este elemento do array.";
|
||||
$text['description-order']['fr-fr'] = "Définissez l'ordre de cet élément de tableau.";
|
||||
$text['description-order']['pt-br'] = "Defina a ordem (indice) para este elemento da matriz";
|
||||
$text['description-order']['pl'] = "Wybierz kolejność.";
|
||||
$text['description-order']['sv-se'] = "Ställ in ordningen för detta element.";
|
||||
$text['description-order']['uk'] = "Вкажіть порядок для масиву елементів";
|
||||
$text['description-order']['de-at'] = "Wählen Sie die Reihenfolge des Array Elements.";
|
||||
|
||||
$text['description-name']['en-us'] = "Enter the name of the domain.";
|
||||
$text['description-name']['es-cl'] = "Ingrese el nombre del dominio";
|
||||
$text['description-name']['pt-pt'] = "Introduza o nome do domínio.";
|
||||
$text['description-name']['fr-fr'] = "Entrer le nom du domaine.";
|
||||
$text['description-name']['pt-br'] = "Insira o nome do menu";
|
||||
$text['description-name']['pl'] = "Wprowadź nazwę";
|
||||
$text['description-name']['sv-se'] = "Ange namn på Domänen.";
|
||||
$text['description-name']['uk'] = "Вкажіть назву домену";
|
||||
$text['description-name']['de-at'] = "Geben Sie den Namen dieser Domain an";
|
||||
|
||||
$text['description-domains']['en-us'] = "Control the list of domains to manage.";
|
||||
$text['description-domains']['es-cl'] = "Controlar la lista de dominios a gestionar.";
|
||||
$text['description-domains']['pt-pt'] = "Controlar a lista dos domínios a gerir";
|
||||
$text['description-domains']['fr-fr'] = "Contrôler la liste des domaines à gérer";
|
||||
$text['description-domains']['pt-br'] = "Gerencie a lista dos dominios";
|
||||
$text['description-domains']['pl'] = "Zarządzanie listą domen.";
|
||||
$text['description-domains']['sv-se'] = "Kontrollera lista med Domäner att hantera.";
|
||||
$text['description-domains']['uk'] = "Список доменів для керування";
|
||||
$text['description-domains']['de-at'] = "Eine Liste aller Domains.";
|
||||
|
||||
$text['description-domain_setting-edit']['en-us'] = "Edit a setting for this domain.";
|
||||
$text['description-domain_setting-edit']['es-cl'] = "Edita una configuración para este dominio.";
|
||||
$text['description-domain_setting-edit']['pt-pt'] = "Editar uma definição deste domínio.";
|
||||
$text['description-domain_setting-edit']['fr-fr'] = "Editer un paramètre du domaine.";
|
||||
$text['description-domain_setting-edit']['pt-br'] = "Editar uma configuração deste dominio";
|
||||
$text['description-domain_setting-edit']['pl'] = "Edytuj ustawienia w tej domenie";
|
||||
$text['description-domain_setting-edit']['sv-se'] = "Ändra en inställning för denna Domän.";
|
||||
$text['description-domain_setting-edit']['uk'] = "Редагування параметрів для домену";
|
||||
$text['description-domain_setting-edit']['de-at'] = "Eine Einstellung für diese Domain ändern.";
|
||||
|
||||
$text['description-domain_setting-add']['en-us'] = "Add a setting for this domain.";
|
||||
$text['description-domain_setting-add']['es-cl'] = "Agregar una configuración para este dominio.";
|
||||
$text['description-domain_setting-add']['pt-pt'] = "Adicionar uma definição a este domínio.";
|
||||
$text['description-domain_setting-add']['fr-fr'] = "";
|
||||
$text['description-domain_setting-add']['pt-br'] = "Adicionar uma configuração a este dominio";
|
||||
$text['description-domain_setting-add']['pl'] = "Dodaj ustawienie w tej domenie";
|
||||
$text['description-domain_setting-add']['sv-se'] = "Lägg Till en inställning för denna Domän.";
|
||||
$text['description-domain_setting-add']['uk'] = "Додавання параметра для домену";
|
||||
$text['description-domain_setting-add']['de-at'] = "Eine Einstellung für diese Domain hinzufügen.";
|
||||
|
||||
$text['description-domain_enabled']['en-us'] = "Set the status of the domain.";
|
||||
$text['description-domain_enabled']['es-cl'] = "Ajuste el estado del dominio.";
|
||||
$text['description-domain_enabled']['pt-pt'] = "Definir o estado do domínio.";
|
||||
$text['description-domain_enabled']['fr-fr'] = "Régler le statut du domaine.";
|
||||
$text['description-domain_enabled']['pt-br'] = "Definir o estado do dominio";
|
||||
$text['description-domain_enabled']['pl'] = "Ustaw status tej domeny.";
|
||||
$text['description-domain_enabled']['sv-se'] = "Ange status för Domänen.";
|
||||
$text['description-domain_enabled']['uk'] = "Вкажіть стан домену";
|
||||
$text['description-domain_enabled']['de-at'] = "Den Status der Domain setzen.";
|
||||
|
||||
$text['description-domain-edit']['en-us'] = "Edit the details of this domain.";
|
||||
$text['description-domain-edit']['es-cl'] = "Editar detalles de este dominio.";
|
||||
$text['description-domain-edit']['pt-pt'] = "Editar detalhes deste domínio.";
|
||||
$text['description-domain-edit']['fr-fr'] = "Editer les détaisl de ce domaine. ";
|
||||
$text['description-domain-edit']['pt-br'] = "Editar detalhes deste dominio";
|
||||
$text['description-domain-edit']['pl'] = "Edytuj szczegóły tej domeny.";
|
||||
$text['description-domain-edit']['sv-se'] = "Ändra detaljer för denna Domän.";
|
||||
$text['description-domain-edit']['uk'] = "Редагування деталей домену";
|
||||
$text['description-domain-edit']['de-at'] = "Die Details dieser Domain ändern.";
|
||||
|
||||
$text['description-domain-add']['en-us'] = "Enter the domain details below.";
|
||||
$text['description-domain-add']['es-cl'] = "Ingrese los detalles del dominio a continuación.";
|
||||
$text['description-domain-add']['pt-pt'] = "Introduza os detalhes do domínio abaixo.";
|
||||
$text['description-domain-add']['fr-fr'] = "Entrer les détails du domaine ci-dessous.";
|
||||
$text['description-domain-add']['pt-br'] = "Insira os detalhes do dominio abaixo";
|
||||
$text['description-domain-add']['pl'] = "Poniżej wprowadź szczegóły domeny";
|
||||
$text['description-domain-add']['sv-se'] = "Ange domändetaljer nedan.";
|
||||
$text['description-domain-add']['uk'] = "Введіть дані домену нижче.";
|
||||
$text['description-domain-add']['de-at'] = "Geben Sie die Domain Details unten an.";
|
||||
|
||||
?>
|
||||
@@ -1,164 +1,164 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* events class provides an event system
|
||||
*
|
||||
* @method void load_plugins
|
||||
* @method dynamic __call
|
||||
*/
|
||||
class events {
|
||||
|
||||
/**
|
||||
* @var obj $db Database connnection object
|
||||
* @var array $plugins Store available plugin classes
|
||||
* @var array $methods store methods found on each plugin
|
||||
* @var array $headers headers provide information about the events
|
||||
* @var array $required array of items that are required
|
||||
* @var string $content optional additional data about the event
|
||||
*/
|
||||
public $db;
|
||||
private $plugins = array();
|
||||
private $methods = array();
|
||||
public $headers = array();
|
||||
public $required = array();
|
||||
private $content;
|
||||
|
||||
/**
|
||||
* Called when the object is created
|
||||
* Creates the database connection object
|
||||
*/
|
||||
public function __construct() {
|
||||
//create the database connection
|
||||
include "root.php";
|
||||
require_once "resources/classes/database.php";
|
||||
$database = new database;
|
||||
$database->connect();
|
||||
$this->db = $database->db;
|
||||
return $this->db = $database->db;
|
||||
|
||||
//load the plugins
|
||||
$this->load_plugins();
|
||||
|
||||
//add values to the required array
|
||||
$this->required['headers'][] = "content-type";
|
||||
$this->required['headers'][] = "date";
|
||||
$this->required['headers'][] = "host";
|
||||
$this->required['headers'][] = "status";
|
||||
$this->required['headers'][] = "app_name";
|
||||
$this->required['headers'][] = "app_uuid";
|
||||
$this->required['headers'][] = "domain_uuid";
|
||||
$this->required['headers'][] = "user_uuid";
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when there are no references to a particular object
|
||||
* unset the variables used in the class
|
||||
*/
|
||||
public function __destruct() {
|
||||
foreach ($this as $key => $value) {
|
||||
unset($this->$key);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will load all available plugins into the memory
|
||||
* Rules:
|
||||
* plugins are stored in ./plugins
|
||||
* plugin class is named plugin_<name>
|
||||
* php file is named <name>.php
|
||||
*/
|
||||
private function load_plugins() {
|
||||
$base = realpath(dirname(__FILE__)) . "/plugins";
|
||||
$this->plugins = glob($base . "/*.php");
|
||||
foreach($this->plugins as $plugin) {
|
||||
//include the plugin php file and define the class name
|
||||
include_once $plugin;
|
||||
$plugin_name = basename($plugin, ".php");
|
||||
$class_name = "plugin_".$plugin_name;
|
||||
|
||||
//create the plugin object so that it can be stored and called later
|
||||
$obj = new $class_name();
|
||||
$this->plugins[$plugin_name] = $obj;
|
||||
|
||||
//store all methods found in the plugin
|
||||
foreach (get_class_methods($obj) as $method ) {
|
||||
$this->methods[$method] = $plugin_name;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the plugin method
|
||||
* @param strint $method
|
||||
* @param string $args
|
||||
*
|
||||
*/
|
||||
public function __call($method, $args) {
|
||||
if (! key_exists($method, $this->methods)) {
|
||||
throw new Exception ("Call to undefined method: " . $method);
|
||||
}
|
||||
array_unshift($args, $this);
|
||||
try {
|
||||
$obj = call_user_func_array(array($this->plugins[$this->methods[$method]], $method), $args);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
echo 'Exception: ', $e->getMessage(), "\n";
|
||||
}
|
||||
return $obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a new event header
|
||||
* @param string $category
|
||||
* @param string $name
|
||||
* @param string $value
|
||||
*/
|
||||
public function set_header($category, $name, $value) {
|
||||
$this->headers[$category][$name] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* check for required headers
|
||||
* @param string $category
|
||||
* @return bolean $value
|
||||
*/
|
||||
public function check_required($category) {
|
||||
foreach ($this->required['headers'] as &$header) {
|
||||
if ($category == $header) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send the event
|
||||
*/
|
||||
public function send() {
|
||||
//check for required headers are present return false if any are missing
|
||||
foreach ($this->headers as &$header) {
|
||||
if (!$this->check_required($header)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//$this->content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serialize the event headers
|
||||
* @param string $type values: array, json
|
||||
*/
|
||||
public function serialize($type) {
|
||||
$array = $this->headers;
|
||||
if ($type == "array") {
|
||||
return $array;
|
||||
} elseif ($type == "json") {
|
||||
return json_encode($array);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* events class provides an event system
|
||||
*
|
||||
* @method void load_plugins
|
||||
* @method dynamic __call
|
||||
*/
|
||||
class events {
|
||||
|
||||
/**
|
||||
* @var obj $db Database connnection object
|
||||
* @var array $plugins Store available plugin classes
|
||||
* @var array $methods store methods found on each plugin
|
||||
* @var array $headers headers provide information about the events
|
||||
* @var array $required array of items that are required
|
||||
* @var string $content optional additional data about the event
|
||||
*/
|
||||
public $db;
|
||||
private $plugins = array();
|
||||
private $methods = array();
|
||||
public $headers = array();
|
||||
public $required = array();
|
||||
private $content;
|
||||
|
||||
/**
|
||||
* Called when the object is created
|
||||
* Creates the database connection object
|
||||
*/
|
||||
public function __construct() {
|
||||
//create the database connection
|
||||
include "root.php";
|
||||
require_once "resources/classes/database.php";
|
||||
$database = new database;
|
||||
$database->connect();
|
||||
$this->db = $database->db;
|
||||
return $this->db = $database->db;
|
||||
|
||||
//load the plugins
|
||||
$this->load_plugins();
|
||||
|
||||
//add values to the required array
|
||||
$this->required['headers'][] = "content-type";
|
||||
$this->required['headers'][] = "date";
|
||||
$this->required['headers'][] = "host";
|
||||
$this->required['headers'][] = "status";
|
||||
$this->required['headers'][] = "app_name";
|
||||
$this->required['headers'][] = "app_uuid";
|
||||
$this->required['headers'][] = "domain_uuid";
|
||||
$this->required['headers'][] = "user_uuid";
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when there are no references to a particular object
|
||||
* unset the variables used in the class
|
||||
*/
|
||||
public function __destruct() {
|
||||
foreach ($this as $key => $value) {
|
||||
unset($this->$key);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will load all available plugins into the memory
|
||||
* Rules:
|
||||
* plugins are stored in ./plugins
|
||||
* plugin class is named plugin_<name>
|
||||
* php file is named <name>.php
|
||||
*/
|
||||
private function load_plugins() {
|
||||
$base = realpath(dirname(__FILE__)) . "/plugins";
|
||||
$this->plugins = glob($base . "/*.php");
|
||||
foreach($this->plugins as $plugin) {
|
||||
//include the plugin php file and define the class name
|
||||
include_once $plugin;
|
||||
$plugin_name = basename($plugin, ".php");
|
||||
$class_name = "plugin_".$plugin_name;
|
||||
|
||||
//create the plugin object so that it can be stored and called later
|
||||
$obj = new $class_name();
|
||||
$this->plugins[$plugin_name] = $obj;
|
||||
|
||||
//store all methods found in the plugin
|
||||
foreach (get_class_methods($obj) as $method ) {
|
||||
$this->methods[$method] = $plugin_name;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the plugin method
|
||||
* @param strint $method
|
||||
* @param string $args
|
||||
*
|
||||
*/
|
||||
public function __call($method, $args) {
|
||||
if (! key_exists($method, $this->methods)) {
|
||||
throw new Exception ("Call to undefined method: " . $method);
|
||||
}
|
||||
array_unshift($args, $this);
|
||||
try {
|
||||
$obj = call_user_func_array(array($this->plugins[$this->methods[$method]], $method), $args);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
echo 'Exception: ', $e->getMessage(), "\n";
|
||||
}
|
||||
return $obj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a new event header
|
||||
* @param string $category
|
||||
* @param string $name
|
||||
* @param string $value
|
||||
*/
|
||||
public function set_header($category, $name, $value) {
|
||||
$this->headers[$category][$name] = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* check for required headers
|
||||
* @param string $category
|
||||
* @return bolean $value
|
||||
*/
|
||||
public function check_required($category) {
|
||||
foreach ($this->required['headers'] as &$header) {
|
||||
if ($category == $header) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send the event
|
||||
*/
|
||||
public function send() {
|
||||
//check for required headers are present return false if any are missing
|
||||
foreach ($this->headers as &$header) {
|
||||
if (!$this->check_required($header)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//$this->content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serialize the event headers
|
||||
* @param string $type values: array, json
|
||||
*/
|
||||
public function serialize($type) {
|
||||
$array = $this->headers;
|
||||
if ($type == "array") {
|
||||
return $array;
|
||||
} elseif ($type == "json") {
|
||||
return json_encode($array);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,421 +1,421 @@
|
||||
<?php
|
||||
|
||||
$text['title-install']['en-us'] = "Install";
|
||||
$text['title-install']['es-cl'] = "Instale";
|
||||
$text['title-install']['pt-pt'] = "Installation";
|
||||
$text['title-install']['fr-fr'] = "Installation";
|
||||
$text['title-install']['pt-br'] = "Installation";
|
||||
$text['title-install']['pl'] = "Zainstalować";
|
||||
$text['title-install']['sv-se'] = "Installera";
|
||||
$text['title-install']['uk'] = "Перший раз Встановіть";
|
||||
$text['title-install']['de-at'] = "Erstinstallation";
|
||||
$text['title-install']['ar-eg'] = "للمرة الأولى قم بتثبيت";
|
||||
|
||||
$text['title-detected_configuration']['en-us'] = "Detected Configuration";
|
||||
$text['title-detected_configuration']['es-cl'] = "Configuración detectado";
|
||||
$text['title-detected_configuration']['pt-pt'] = "Configuração detectado";
|
||||
$text['title-detected_configuration']['fr-fr'] = "Detected Configuration";
|
||||
$text['title-detected_configuration']['pt-br'] = "Configuração detectado";
|
||||
$text['title-detected_configuration']['pl'] = "Wykryto Konfiguracja";
|
||||
$text['title-detected_configuration']['sv-se'] = "Detekterad Konfiguration";
|
||||
$text['title-detected_configuration']['uk'] = "виявлено Конфігурація";
|
||||
$text['title-detected_configuration']['de-at'] = "Erkannt Configuration";
|
||||
$text['title-detected_configuration']['ar-eg'] = "تكوين الكشف عن";
|
||||
|
||||
$text['title-assumed_configuration']['en-us'] = "Assumed Configuration";
|
||||
$text['title-assumed_configuration']['es-cl'] = "Configuración adoptada";
|
||||
$text['title-assumed_configuration']['pt-pt'] = "Assumed Configuration";
|
||||
$text['title-assumed_configuration']['fr-fr'] = "Configuration supposée";
|
||||
$text['title-assumed_configuration']['pt-br'] = "Assumed Configuration";
|
||||
$text['title-assumed_configuration']['pl'] = "Zakładana Konfiguracja";
|
||||
$text['title-assumed_configuration']['sv-se'] = "Antagen Konfiguration";
|
||||
$text['title-assumed_configuration']['uk'] = "передбачуваний Конфігурація";
|
||||
$text['title-assumed_configuration']['de-at'] = "Angenommene Configuration";
|
||||
$text['title-assumed_configuration']['ar-eg'] = "تكوين المفترضة";
|
||||
|
||||
$text['label-ft-install']['en-us'] = "First Time Install";
|
||||
$text['label-ft-install']['es-cl'] = "La primera instalación";
|
||||
$text['label-ft-install']['pt-pt'] = "First Time Install";
|
||||
$text['label-ft-install']['fr-fr'] = "Première installation";
|
||||
$text['label-ft-install']['pt-br'] = "First Time Install";
|
||||
$text['label-ft-install']['pl'] = "Zainstalować";
|
||||
$text['label-ft-install']['sv-se'] = "Första gången Installera";
|
||||
$text['label-ft-install']['uk'] = "Перший раз Встановіть";
|
||||
$text['label-ft-install']['de-at'] = "Erstinstallation";
|
||||
$text['label-ft-install']['ar-eg'] = "للمرة الأولى قم بتثبيت";
|
||||
|
||||
$text['description-ft-install']['en-us'] = "Perform all actions for a First Time Install";
|
||||
$text['description-ft-install']['es-cl'] = "Realizar todas las acciones para una primera instalación";
|
||||
$text['description-ft-install']['pt-pt'] = "Executar todas as ações para uma primeira vez Instalar";
|
||||
$text['description-ft-install']['fr-fr'] = "Effectuer toutes les actions pour une première installation";
|
||||
$text['description-ft-install']['pt-br'] = "Executar todas as ações para uma primeira vez Instalar";
|
||||
$text['description-ft-install']['pl'] = "Wykonać wszystkie czynności dla pierwszy raz zainstalować";
|
||||
$text['description-ft-install']['sv-se'] = "Utföra alla åtgärder för första gången Installera";
|
||||
$text['description-ft-install']['uk'] = "Виконайте всі дії для першого разу Встановіть";
|
||||
$text['description-ft-install']['de-at'] = "Führen Sie alle Aktionen für einen ersten Mal installieren";
|
||||
$text['description-ft-install']['ar-eg'] = "تنفيذ كافة الإجراءات لأول مرة التثبيت";
|
||||
|
||||
$text['label-add-switch']['en-us'] = "Add a new switch";
|
||||
$text['label-add-switch']['es-cl'] = "Añadir un nuevo conmutador";
|
||||
$text['label-add-switch']['pt-pt'] = "Adicionar um novo switch";
|
||||
$text['label-add-switch']['fr-fr'] = "Ajouter un nouveau commutateur";
|
||||
$text['label-add-switch']['pt-br'] = "Adicionar um novo switch";
|
||||
$text['label-add-switch']['pl'] = "Dodaj nowy przełącznik";
|
||||
$text['label-add-switch']['sv-se'] = "Lägg till en ny switch";
|
||||
$text['label-add-switch']['uk'] = "Додати новий перемикач";
|
||||
$text['label-add-switch']['de-at'] = "Fügen Sie einen neuen Schalter";
|
||||
$text['label-add-switch']['ar-eg'] = "إضافة مفتاح جديد";
|
||||
|
||||
$text['label-select_language']['en-us'] = "Language";
|
||||
$text['label-select_language']['es-cl'] = "Idioma";
|
||||
$text['label-select_language']['pt-pt'] = "Idioma";
|
||||
$text['label-select_language']['fr-fr'] = "Langue";
|
||||
$text['label-select_language']['pt-br'] = "Idioma";
|
||||
$text['label-select_language']['pl'] = "Język";
|
||||
$text['label-select_language']['sv-se'] = "Språk";
|
||||
$text['label-select_language']['uk'] = "Мова";
|
||||
$text['label-select_language']['de-at'] = "Sprache";
|
||||
$text['label-select_language']['ar-eg'] = "لغة";
|
||||
|
||||
$text['label-event_host']['en-us'] = "Host address";
|
||||
$text['label-event_host']['es-cl'] = "Dirección de host";
|
||||
$text['label-event_host']['pt-pt'] = "Endereço do host";
|
||||
$text['label-event_host']['fr-fr'] = "Adresse de l'hôte";
|
||||
$text['label-event_host']['pt-br'] = "Endereço do host";
|
||||
$text['label-event_host']['pl'] = "Adres hosta";
|
||||
$text['label-event_host']['sv-se'] = "Host adress";
|
||||
$text['label-event_host']['uk'] = "адреса хоста";
|
||||
$text['label-event_host']['de-at'] = "Host-Adresse";
|
||||
$text['label-event_host']['ar-eg'] = "عنوان المضيف";
|
||||
|
||||
$text['label-event_port']['en-us'] = "Port";
|
||||
$text['label-event_port']['es-cl'] = "Puerto";
|
||||
$text['label-event_port']['pt-pt'] = "Porto";
|
||||
$text['label-event_port']['fr-fr'] = "Port";
|
||||
$text['label-event_port']['pt-br'] = "Porta";
|
||||
$text['label-event_port']['pl'] = "Port";
|
||||
$text['label-event_port']['sv-se'] = "Port";
|
||||
$text['label-event_port']['uk'] = "Порт";
|
||||
$text['label-event_port']['de-at'] = "Port";
|
||||
$text['label-event_port']['ar-eg'] = "منفذ";
|
||||
|
||||
$text['label-event_password']['en-us'] = "Password";
|
||||
$text['label-event_password']['es-cl'] = "Contreseña";
|
||||
$text['label-event_password']['pt-pt'] = "Palavra-Chave";
|
||||
$text['label-event_password']['fr-fr'] = "Mot de Passe";
|
||||
$text['label-event_password']['pt-br'] = "Senha";
|
||||
$text['label-event_password']['pl'] = "Hasło";
|
||||
$text['label-event_password']['sv-se'] = "Lösenord";
|
||||
$text['label-event_password']['uk'] = "Пароль";
|
||||
$text['label-event_password']['de-at'] = "Passwort";
|
||||
$text['label-event_password']['ar-eg'] = "كلمة السر";
|
||||
|
||||
$text['label-username']['en-us'] = "Username";
|
||||
$text['label-username']['es-cl'] = "Nombre de usuario";
|
||||
$text['label-username']['pt-pt'] = "Utilizador";
|
||||
$text['label-username']['fr-fr'] = "Utilisateur";
|
||||
$text['label-username']['pt-br'] = "Nome do Usuário";
|
||||
$text['label-username']['pl'] = "Użytkownik";
|
||||
$text['label-username']['sv-se'] = "Användarnamn";
|
||||
$text['label-username']['uk'] = "Ім’я користувача";
|
||||
$text['label-username']['de-at'] = "Benutzername";
|
||||
$text['label-username']['ar-eg'] = "اسم المستخدم";
|
||||
|
||||
$text['label-port']['en-us'] = "Port";
|
||||
$text['label-port']['es-cl'] = "Puerto";
|
||||
$text['label-port']['pt-pt'] = "Porto";
|
||||
$text['label-port']['fr-fr'] = "Port";
|
||||
$text['label-port']['pt-br'] = "Porta";
|
||||
$text['label-port']['pl'] = "Port";
|
||||
$text['label-port']['sv-se'] = "Port";
|
||||
$text['label-port']['uk'] = "Порт";
|
||||
$text['label-port']['de-at'] = "Port";
|
||||
$text['label-port']['ar-eg'] = "منفذ";
|
||||
|
||||
$text['label-path']['en-us'] = "Path";
|
||||
$text['label-path']['es-cl'] = "Ruta";
|
||||
$text['label-path']['pt-pt'] = "Caminho";
|
||||
$text['label-path']['fr-fr'] = "Chemin";
|
||||
$text['label-path']['pt-br'] = "Caminho";
|
||||
$text['label-path']['pl'] = "Ścieżka";
|
||||
$text['label-path']['sv-se'] = "Sökväg";
|
||||
$text['label-path']['uk'] = "Шлях";
|
||||
$text['label-path']['de-at'] = "Pfad";
|
||||
$text['label-path']['ar-eg'] = "مسار";
|
||||
|
||||
$text['label-host']['en-us'] = "Host";
|
||||
$text['label-host']['es-cl'] = "Host";
|
||||
$text['label-host']['pt-pt'] = "Máquina";
|
||||
$text['label-host']['fr-fr'] = "Hôte";
|
||||
$text['label-host']['pt-br'] = "Máquina";
|
||||
$text['label-host']['pl'] = "Host";
|
||||
$text['label-host']['sv-se'] = "Värd";
|
||||
$text['label-host']['uk'] = "Хост";
|
||||
$text['label-host']['de-at'] = "Host";
|
||||
$text['label-host']['ar-eg'] = "مضيف";
|
||||
|
||||
$text['label-driver']['en-us'] = "Driver";
|
||||
$text['label-driver']['es-cl'] = "Controlador";
|
||||
$text['label-driver']['pt-pt'] = "Driver";
|
||||
$text['label-driver']['fr-fr'] = "Driver";
|
||||
$text['label-driver']['pt-br'] = "Driver";
|
||||
$text['label-driver']['pl'] = "Sterownik";
|
||||
$text['label-driver']['sv-se'] = "Drivrutin";
|
||||
$text['label-driver']['uk'] = "Драйвер";
|
||||
$text['label-driver']['de-at'] = "Treiber";
|
||||
$text['label-driver']['ar-eg'] = "سائق";
|
||||
|
||||
$text['header-install']['en-us'] = "Install";
|
||||
$text['header-install']['es-cl'] = "Instalar";
|
||||
$text['header-install']['pt-pt'] = "Instalar";
|
||||
$text['header-install']['fr-fr'] = "Installer";
|
||||
$text['header-install']['pt-br'] = "Instalar";
|
||||
$text['header-install']['pl'] = "Zainstalować";
|
||||
$text['header-install']['sv-se'] = "Installera";
|
||||
$text['header-install']['uk'] = "встановлювати";
|
||||
$text['header-install']['de-at'] = "Installieren";
|
||||
$text['header-install']['ar-eg'] = "تثبيت";
|
||||
|
||||
$text['header-select_language']['en-us'] = "Select Language";
|
||||
$text['header-select_language']['es-cl'] = "Selecciona idioma";
|
||||
$text['header-select_language']['pt-pt'] = "Selecione o idioma";
|
||||
$text['header-select_language']['fr-fr'] = "Sélectionnez la langue";
|
||||
$text['header-select_language']['pt-br'] = "Selecione o idioma";
|
||||
$text['header-select_language']['pl'] = "Wybierz język";
|
||||
$text['header-select_language']['sv-se'] = "Välj språk";
|
||||
$text['header-select_language']['uk'] = "вибір мови";
|
||||
$text['header-select_language']['de-at'] = "Sprache wählen";
|
||||
$text['header-select_language']['ar-eg'] = "اختار اللغة";
|
||||
|
||||
$text['header-event_socket']['en-us'] = "Event Socket Configuration";
|
||||
$text['header-event_socket']['es-cl'] = "Configuración del zócalo evento";
|
||||
$text['header-event_socket']['pt-pt'] = "Configuração soquete evento";
|
||||
$text['header-event_socket']['fr-fr'] = "Event Configuration Socket";
|
||||
$text['header-event_socket']['pt-br'] = "Configuração soquete evento";
|
||||
$text['header-event_socket']['pl'] = "Zdarzenie Gniazdo Konfiguracja";
|
||||
$text['header-event_socket']['sv-se'] = "Händelse Socket Konfiguration";
|
||||
$text['header-event_socket']['uk'] = "Конфігурація гніздо Подія";
|
||||
$text['header-event_socket']['de-at'] = "Veranstaltungssockelkonfiguration";
|
||||
$text['header-event_socket']['ar-eg'] = "تكوين المقبس الحدث";
|
||||
|
||||
$text['header-config_detail']['en-us'] = "Admin Configuration";
|
||||
$text['header-config_detail']['es-cl'] = "Configuración de administración";
|
||||
$text['header-config_detail']['pt-pt'] = "Configuração de administrador";
|
||||
$text['header-config_detail']['fr-fr'] = "Configuration Admin";
|
||||
$text['header-config_detail']['pt-br'] = "Configuração de administrador";
|
||||
$text['header-config_detail']['pl'] = "Konfiguracja Admin";
|
||||
$text['header-config_detail']['sv-se'] = "Admin Konfiguration";
|
||||
$text['header-config_detail']['uk'] = "конфігурація Адмін";
|
||||
$text['header-config_detail']['de-at'] = "Admin-Konfiguration";
|
||||
$text['header-config_detail']['ar-eg'] = "تكوين المشرف";
|
||||
|
||||
$text['header-config_database']['en-us'] = "Database Configuration";
|
||||
$text['header-config_database']['es-cl'] = "Configuración de la base de datos";
|
||||
$text['header-config_database']['pt-pt'] = "Configuration Database";
|
||||
$text['header-config_database']['fr-fr'] = "Configuration de base de données";
|
||||
$text['header-config_database']['pt-br'] = "Configuration Database";
|
||||
$text['header-config_database']['pl'] = "Konfiguracja bazy danych";
|
||||
$text['header-config_database']['sv-se'] = "Databaskonfiguration ";
|
||||
$text['header-config_database']['uk'] = "конфігурація бази даних";
|
||||
$text['header-config_database']['de-at'] = "Datenbankkonfiguration ";
|
||||
$text['header-config_database']['ar-eg'] = "تكوين قاعدة بيانات";
|
||||
|
||||
$text['header-installing']['en-us'] = "Executing Install";
|
||||
$text['header-installing']['es-cl'] = "Instalar la ejecución";
|
||||
$text['header-installing']['pt-pt'] = "Execução Instalar";
|
||||
$text['header-installing']['fr-fr'] = "Installez exécution";
|
||||
$text['header-installing']['pt-br'] = "Execução Instalar";
|
||||
$text['header-installing']['pl'] = "Wykonywanie Install";
|
||||
$text['header-installing']['sv-se'] = "Exekvera Installera";
|
||||
$text['header-installing']['uk'] = "виконання Встановіть";
|
||||
$text['header-installing']['de-at'] = "Ausführen Installieren";
|
||||
$text['header-installing']['ar-eg'] = "تنفيذ التثبيت";
|
||||
|
||||
$text['description-event_host']['en-us'] = "Enter the event socket host name or IP address.";
|
||||
$text['description-event_host']['es-cl'] = "Introduzca el nombre de host toma evento o dirección IP.";
|
||||
$text['description-event_host']['pt-pt'] = "Digite o nome do host tomada evento ou endereço IP.";
|
||||
$text['description-event_host']['fr-fr'] = "Entrez le socket nom d'hôte de l'événement ou de l'adresse IP.";
|
||||
$text['description-event_host']['pt-br'] = "Digite o nome do host tomada evento ou endereço IP.";
|
||||
$text['description-event_host']['pl'] = "Wprowadź nazwę hosta gniazda wydarzenie lub adres IP.";
|
||||
$text['description-event_host']['sv-se'] = "Ange händelsen uttag värdnamn eller IP-adress.";
|
||||
$text['description-event_host']['uk'] = "Введіть проведення сокета ім'я хоста або IP-адресу.";
|
||||
$text['description-event_host']['de-at'] = "Geben Sie das Ereignis Buchse Hostnamen oder die IP-Adresse .";
|
||||
$text['description-event_host']['ar-eg'] = "أدخل اسم المضيف مأخذ الحدث.";
|
||||
|
||||
$text['description-event_port']['en-us'] = "Enter the event socket port number.";
|
||||
$text['description-event_port']['es-cl'] = "Introduzca el número de puerto de socket evento.";
|
||||
$text['description-event_port']['pt-pt'] = "Digite o número do evento porta de soquete.";
|
||||
$text['description-event_port']['fr-fr'] = "Entrez le numéro cas de port du socket.";
|
||||
$text['description-event_port']['pt-br'] = "Digite o número do evento porta de soquete.";
|
||||
$text['description-event_port']['pl'] = "Wprowadź numer portu gniazda zdarzenia.";
|
||||
$text['description-event_port']['sv-se'] = "Ange händelsen socket portnummer.";
|
||||
$text['description-event_port']['uk'] = "Введіть номер подія гніздо порту.";
|
||||
$text['description-event_port']['de-at'] = "Geben Sie das Ereignis Socket-Portnummer.";
|
||||
$text['description-event_port']['ar-eg'] = "أدخل رقم الحدث ميناء المقبس.";
|
||||
|
||||
$text['description-event_password']['en-us'] = "Enter the event socket password.";
|
||||
$text['description-event_password']['es-cl'] = "Introduzca la toma evento contraseña.";
|
||||
$text['description-event_password']['pt-pt'] = "Digite tomada a senha evento.";
|
||||
$text['description-event_password']['fr-fr'] = "Saisissez la prise de mot de passe de l'événement.";
|
||||
$text['description-event_password']['pt-br'] = "Digite tomada a senha evento.";
|
||||
$text['description-event_password']['pl'] = "Wprowadź hasło gniazda zdarzenia.";
|
||||
$text['description-event_password']['sv-se'] = "Ange händelsen uttag lösenord.";
|
||||
$text['description-event_password']['uk'] = "Введіть гніздо пароль подією.";
|
||||
$text['description-event_password']['de-at'] = "Geben Sie das Ereignis Passwort Steckdose.";
|
||||
$text['description-event_password']['ar-eg'] = "أدخل كلمة المرور مأخذ الحدث.";
|
||||
|
||||
$text['description-username']['en-us'] = "Enter the database username.";
|
||||
$text['description-username']['es-cl'] = "Ingrese el nombre de usuario de la base de datos.";
|
||||
$text['description-username']['pt-pt'] = "Introduza o utilizador da base de dados.";
|
||||
$text['description-username']['fr-fr'] = "Entrer le nom d'utilisateur de la Base de données.";
|
||||
$text['description-username']['pt-br'] = "Insira o nome do usuário";
|
||||
$text['description-username']['pl'] = "Wprowadź nazwę użytkownika";
|
||||
$text['description-username']['sv-se'] = "Ange databasen användarnamn här.";
|
||||
$text['description-username']['uk'] = "Введіть ім’я користувача бази даних";
|
||||
$text['description-username']['de-at'] = "Geben Sie den Datenbank Benutzernamen an.";
|
||||
$text['description-username']['ar-eg'] = "أدخل اسم المستخدم هنا";
|
||||
|
||||
$text['description-type']['en-us'] = "Select the database type.";
|
||||
$text['description-type']['es-cl'] = "Seleccione el tipo de base de datos";
|
||||
$text['description-type']['pt-pt'] = "Escolha o tipo de base de dados.";
|
||||
$text['description-type']['fr-fr'] = "Choisir le type de Base de données.";
|
||||
$text['description-type']['pt-br'] = "Introduza o tipo de definição.";
|
||||
$text['description-type']['pl'] = "Wprowadź rodzaj bazy danych";
|
||||
$text['description-type']['sv-se'] = "Välj databastyp";
|
||||
$text['description-type']['uk'] = "Виберіть тип бази даних";
|
||||
$text['description-type']['de-at'] = "Wählen Sie den Datenbank Typ.";
|
||||
$text['description-type']['ar-eg'] = "إختر نوع قاعدة البيانات";
|
||||
|
||||
$text['description-port']['en-us'] = "Enter the port number.";
|
||||
$text['description-port']['es-cl'] = "Ingrese el número del puerto.";
|
||||
$text['description-port']['pt-pt'] = "Introduza o número do porto.";
|
||||
$text['description-port']['fr-fr'] = "Entrer le numéro de port.";
|
||||
$text['description-port']['pt-br'] = "Insira o número da porta";
|
||||
$text['description-port']['pl'] = "Wprowadź numer portu";
|
||||
$text['description-port']['sv-se'] = "Ange portnummer";
|
||||
$text['description-port']['uk'] = "Введіть номер порта";
|
||||
$text['description-port']['de-at'] = "Geben Sie die Port Nummer an.";
|
||||
$text['description-port']['ar-eg'] = "أدخل رقم المنفذ";
|
||||
|
||||
$text['description-path']['en-us'] = "Enter the database file path (SQLite only).";
|
||||
$text['description-path']['es-cl'] = "Ingrese la ruta al archivo de datos (solo SQLite).";
|
||||
$text['description-path']['pt-pt'] = "Introduza o caminho da base de dados (apenas SQLite)";
|
||||
$text['description-path']['fr-fr'] = "Entrer le chemin du fichier Base de données (Spécifique SQLite).";
|
||||
$text['description-path']['pt-br'] = "Insira o caminho da base de dados (SQLite)";
|
||||
$text['description-path']['pl'] = "Wprowadź ścieżkę do pliku bazy danych (tylko SQLite)";
|
||||
$text['description-path']['sv-se'] = "Ange databasens sökväg (gäller endast SQLite).";
|
||||
$text['description-path']['uk'] = "Вкажіть шлях до файлу бази даних (тільки SQLite).";
|
||||
$text['description-path']['de-at'] = "Geben Sie den Datenbank Pfad an (nur für SQLite).";
|
||||
$text['description-path']['ar-eg'] = "أدخل مسار ملف قاعدة البيانات (سكليتي فقط).";
|
||||
|
||||
$text['description-password']['en-us'] = "Enter the database password.";
|
||||
$text['description-password']['es-cl'] = "Ingrese la contraseña de la base de datos.";
|
||||
$text['description-password']['pt-pt'] = "Introduza a palavra-chave da base de dados.";
|
||||
$text['description-password']['fr-fr'] = "Entrer le mot de passe pour la Base de données.";
|
||||
$text['description-password']['pt-br'] = "Introduza a senha";
|
||||
$text['description-password']['pl'] = "Wpisz hasło";
|
||||
$text['description-password']['sv-se'] = "Ange databasens lösenord.";
|
||||
$text['description-password']['uk'] = "Введіть пароль бази даних.";
|
||||
$text['description-password']['de-at'] = "Geben Sie das Datenbank Passwort ein.";
|
||||
$text['description-password']['ar-eg'] = "أدخل الرقم السري الخاص بقاعدة البيانات";
|
||||
|
||||
$text['description-name']['en-us'] = "Enter the database name.";
|
||||
$text['description-name']['es-cl'] = "Ingrese el nombre de la base de datos.";
|
||||
$text['description-name']['pt-pt'] = "Introduza o nome da base de dados.";
|
||||
$text['description-name']['fr-fr'] = "Entrer le nom de la Base de données.";
|
||||
$text['description-name']['pt-br'] = "Insira o nome do menu";
|
||||
$text['description-name']['pl'] = "Wprowadź nazwę bazy danych.";
|
||||
$text['description-name']['sv-se'] = "Ange databasens namn.";
|
||||
$text['description-name']['uk'] = "Введіть ім'я бази даних.";
|
||||
$text['description-name']['de-at'] = "Geben Sie den Namen der Datenbank an";
|
||||
$text['description-name']['ar-eg'] = "أدخل إسم قاعدة البيانات";
|
||||
|
||||
$text['description-host']['en-us'] = "Enter the host name.";
|
||||
$text['description-host']['es-cl'] = "Ingrese el nombre de host";
|
||||
$text['description-host']['pt-pt'] = "Introduza o nome da máquina.";
|
||||
$text['description-host']['fr-fr'] = "Entrer le nom de l'hôte.";
|
||||
$text['description-host']['pt-br'] = "Insira o nome da máquina ";
|
||||
$text['description-host']['pl'] = "Wprowadź nazwę hosta.";
|
||||
$text['description-host']['sv-se'] = "Ange värdnamnet";
|
||||
$text['description-host']['uk'] = "Введіть ім'я хоста.";
|
||||
$text['description-host']['de-at'] = "Geben Sie den Host Namen ein.";
|
||||
$text['description-host']['ar-eg'] = "أدخل إسم المضيف";
|
||||
|
||||
$text['description-driver']['en-us'] = "Select the database driver.";
|
||||
$text['description-driver']['es-cl'] = "Seleccione un controlador de base de datos.";
|
||||
$text['description-driver']['pt-pt'] = "Escolha o driver da base de dados";
|
||||
$text['description-driver']['fr-fr'] = "Choisir le driver de la Base de données.";
|
||||
$text['description-driver']['pt-br'] = "Escolha o driver da base de dados";
|
||||
$text['description-driver']['pl'] = "Wybierz sterownik bazy danych.";
|
||||
$text['description-driver']['sv-se'] = "Välj databas drivrutin.";
|
||||
$text['description-driver']['uk'] = "Виберіть драйвер бази даних.";
|
||||
$text['description-driver']['de-at'] = "Wählen Sie den Datenbank Treiber.";
|
||||
$text['description-driver']['ar-eg'] = "حدد برنامج تشغيل قاعدة البيانات.";
|
||||
|
||||
$text['description-install']['en-us'] = "Select the action below you wish to perform.";
|
||||
$text['description-install']['es-cl'] = "Seleccione las accion a continuación que desea realizar.";
|
||||
$text['description-install']['pt-pt'] = "Selecione as ações abaixo você deseja executar."; //action signular needed
|
||||
$text['description-install']['fr-fr'] = "Sélectionnez les action ci-dessous que vous souhaitez effectuer.";
|
||||
$text['description-install']['pt-br'] = "Seleciona as ações abaixo que deseja executar "; //action signular needed
|
||||
$text['description-install']['pl'] = "Wybierz opcje, które chcesz wykonać."; //action signular needed
|
||||
$text['description-install']['sv-se'] = "Välj de åtgärder nedan som du vill utföra."; //action signular needed
|
||||
$text['description-install']['uk'] = "Виберіть об’єкти для оновлення"; //action signular needed
|
||||
$text['description-install']['de-at'] = "Wählen Sie eine Aktion."; //action signular needed
|
||||
$text['description-install']['ar-eg'] = "حدد الإجراء أدناه كنت ترغب في القيام بها.";
|
||||
|
||||
$text['description-database-edit']['en-us'] = "Database connection information.";
|
||||
$text['description-database-edit']['es-cl'] = "Información de conexión a base de datos.";
|
||||
$text['description-database-edit']['pt-pt'] = "Informação da ligação à base de dados.";
|
||||
$text['description-database-edit']['fr-fr'] = "Informations de connexion à la Base";
|
||||
$text['description-database-edit']['pt-br'] = "Informações da ligação na base de dados";
|
||||
$text['description-database-edit']['pl'] = "Informacje o połączeniach z bazą danych.";
|
||||
$text['description-database-edit']['sv-se'] = "Information om Databasanslutning";
|
||||
$text['description-database-edit']['uk'] = "інформація про підключення до бази даних.";
|
||||
$text['description-database-edit']['de-at'] = "Datenbank Verbindungs Information.";
|
||||
$text['description-database-edit']['ar-eg'] = "بيانات الإتصال الخاص بقاعدة البيانات";
|
||||
|
||||
$text['description-database-add']['en-us'] = "Database connection information.";
|
||||
$text['description-database-add']['es-cl'] = "Información de conexión a base de datos.";
|
||||
$text['description-database-add']['pt-pt'] = "Informação da ligação à base de dados.";
|
||||
$text['description-database-add']['fr-fr'] = "Informations de connexion à la Base.";
|
||||
$text['description-database-add']['pt-br'] = "Informações da ligação na base de dados";
|
||||
$text['description-database-add']['pl'] = "Informacje o połączeniach z bazą danych.";
|
||||
$text['description-database-add']['sv-se'] = "Information om Databasanslutning";
|
||||
$text['description-database-add']['uk'] = "інформація про підключення до бази даних.";
|
||||
$text['description-database-add']['de-at'] = "Datenbank Verbindungs Information.";
|
||||
$text['description-database-add']['ar-eg'] = "بيانات الإتصال الخاص بقاعدة البيانات";
|
||||
|
||||
$text['description-select_language']['en-us'] = "Please select the language you want to use";
|
||||
$text['description-select_language']['es-cl'] = "Por favor, seleccione el idioma que desea utilizar";
|
||||
$text['description-select_language']['pt-pt'] = "Por favor, selecione o idioma que deseja usar";
|
||||
$text['description-select_language']['fr-fr'] = "S'il vous plaît choisir la langue que vous souhaitez utiliser";
|
||||
$text['description-select_language']['pt-br'] = "Por favor, selecione o idioma que deseja usar";
|
||||
$text['description-select_language']['pl'] = "Wybierz język, którego chcesz używać";
|
||||
$text['description-select_language']['sv-se'] = "Välj det språk du vill använda";
|
||||
$text['description-select_language']['uk'] = "Виберіть мову, який ви хочете використовувати";
|
||||
$text['description-select_language']['de-at'] = "Bitte wählen Sie die gewünschte Sprache zu verwenden";
|
||||
$text['description-select_language']['ar-eg'] = "يرجى اختيار اللغة التي تريد استخدامها";
|
||||
|
||||
$text['button-detect']['en-us'] = "Detect Configuration";
|
||||
$text['button-detect']['es-cl'] = "Detectar Configuración";
|
||||
$text['button-detect']['pt-pt'] = "Detectar Configuração";
|
||||
$text['button-detect']['fr-fr'] = "Détecter Configuration";
|
||||
$text['button-detect']['pt-br'] = "Detectar Configuração";
|
||||
$text['button-detect']['pl'] = "Wykrywanie Konfiguracja";
|
||||
$text['button-detect']['sv-se'] = "Detektera Konfiguration";
|
||||
$text['button-detect']['uk'] = "виявлення Конфігурація";
|
||||
$text['button-detect']['de-at'] = "Detect-Konfiguration";
|
||||
$text['button-detect']['ar-eg'] = "كشف تكوين";
|
||||
|
||||
$text['button-select']['en-us'] = "Select";
|
||||
$text['button-select']['es-cl'] = "Seleccionar";
|
||||
$text['button-select']['pt-pt'] = "Selecionar";
|
||||
$text['button-select']['fr-fr'] = "Sélectionner";
|
||||
$text['button-select']['pt-br'] = "Selecionar";
|
||||
$text['button-select']['pl'] = "Wybierz";
|
||||
$text['button-select']['sv-se'] = "Välj";
|
||||
$text['button-select']['uk'] = "вибрати";
|
||||
$text['button-select']['de-at'] = "Wählen";
|
||||
$text['button-select']['ar-eg'] = "اختار";
|
||||
|
||||
<?php
|
||||
|
||||
$text['title-install']['en-us'] = "Install";
|
||||
$text['title-install']['es-cl'] = "Instale";
|
||||
$text['title-install']['pt-pt'] = "Installation";
|
||||
$text['title-install']['fr-fr'] = "Installation";
|
||||
$text['title-install']['pt-br'] = "Installation";
|
||||
$text['title-install']['pl'] = "Zainstalować";
|
||||
$text['title-install']['sv-se'] = "Installera";
|
||||
$text['title-install']['uk'] = "Перший раз Встановіть";
|
||||
$text['title-install']['de-at'] = "Erstinstallation";
|
||||
$text['title-install']['ar-eg'] = "للمرة الأولى قم بتثبيت";
|
||||
|
||||
$text['title-detected_configuration']['en-us'] = "Detected Configuration";
|
||||
$text['title-detected_configuration']['es-cl'] = "Configuración detectado";
|
||||
$text['title-detected_configuration']['pt-pt'] = "Configuração detectado";
|
||||
$text['title-detected_configuration']['fr-fr'] = "Detected Configuration";
|
||||
$text['title-detected_configuration']['pt-br'] = "Configuração detectado";
|
||||
$text['title-detected_configuration']['pl'] = "Wykryto Konfiguracja";
|
||||
$text['title-detected_configuration']['sv-se'] = "Detekterad Konfiguration";
|
||||
$text['title-detected_configuration']['uk'] = "виявлено Конфігурація";
|
||||
$text['title-detected_configuration']['de-at'] = "Erkannt Configuration";
|
||||
$text['title-detected_configuration']['ar-eg'] = "تكوين الكشف عن";
|
||||
|
||||
$text['title-assumed_configuration']['en-us'] = "Assumed Configuration";
|
||||
$text['title-assumed_configuration']['es-cl'] = "Configuración adoptada";
|
||||
$text['title-assumed_configuration']['pt-pt'] = "Assumed Configuration";
|
||||
$text['title-assumed_configuration']['fr-fr'] = "Configuration supposée";
|
||||
$text['title-assumed_configuration']['pt-br'] = "Assumed Configuration";
|
||||
$text['title-assumed_configuration']['pl'] = "Zakładana Konfiguracja";
|
||||
$text['title-assumed_configuration']['sv-se'] = "Antagen Konfiguration";
|
||||
$text['title-assumed_configuration']['uk'] = "передбачуваний Конфігурація";
|
||||
$text['title-assumed_configuration']['de-at'] = "Angenommene Configuration";
|
||||
$text['title-assumed_configuration']['ar-eg'] = "تكوين المفترضة";
|
||||
|
||||
$text['label-ft-install']['en-us'] = "First Time Install";
|
||||
$text['label-ft-install']['es-cl'] = "La primera instalación";
|
||||
$text['label-ft-install']['pt-pt'] = "First Time Install";
|
||||
$text['label-ft-install']['fr-fr'] = "Première installation";
|
||||
$text['label-ft-install']['pt-br'] = "First Time Install";
|
||||
$text['label-ft-install']['pl'] = "Zainstalować";
|
||||
$text['label-ft-install']['sv-se'] = "Första gången Installera";
|
||||
$text['label-ft-install']['uk'] = "Перший раз Встановіть";
|
||||
$text['label-ft-install']['de-at'] = "Erstinstallation";
|
||||
$text['label-ft-install']['ar-eg'] = "للمرة الأولى قم بتثبيت";
|
||||
|
||||
$text['description-ft-install']['en-us'] = "Perform all actions for a First Time Install";
|
||||
$text['description-ft-install']['es-cl'] = "Realizar todas las acciones para una primera instalación";
|
||||
$text['description-ft-install']['pt-pt'] = "Executar todas as ações para uma primeira vez Instalar";
|
||||
$text['description-ft-install']['fr-fr'] = "Effectuer toutes les actions pour une première installation";
|
||||
$text['description-ft-install']['pt-br'] = "Executar todas as ações para uma primeira vez Instalar";
|
||||
$text['description-ft-install']['pl'] = "Wykonać wszystkie czynności dla pierwszy raz zainstalować";
|
||||
$text['description-ft-install']['sv-se'] = "Utföra alla åtgärder för första gången Installera";
|
||||
$text['description-ft-install']['uk'] = "Виконайте всі дії для першого разу Встановіть";
|
||||
$text['description-ft-install']['de-at'] = "Führen Sie alle Aktionen für einen ersten Mal installieren";
|
||||
$text['description-ft-install']['ar-eg'] = "تنفيذ كافة الإجراءات لأول مرة التثبيت";
|
||||
|
||||
$text['label-add-switch']['en-us'] = "Add a new switch";
|
||||
$text['label-add-switch']['es-cl'] = "Añadir un nuevo conmutador";
|
||||
$text['label-add-switch']['pt-pt'] = "Adicionar um novo switch";
|
||||
$text['label-add-switch']['fr-fr'] = "Ajouter un nouveau commutateur";
|
||||
$text['label-add-switch']['pt-br'] = "Adicionar um novo switch";
|
||||
$text['label-add-switch']['pl'] = "Dodaj nowy przełącznik";
|
||||
$text['label-add-switch']['sv-se'] = "Lägg till en ny switch";
|
||||
$text['label-add-switch']['uk'] = "Додати новий перемикач";
|
||||
$text['label-add-switch']['de-at'] = "Fügen Sie einen neuen Schalter";
|
||||
$text['label-add-switch']['ar-eg'] = "إضافة مفتاح جديد";
|
||||
|
||||
$text['label-select_language']['en-us'] = "Language";
|
||||
$text['label-select_language']['es-cl'] = "Idioma";
|
||||
$text['label-select_language']['pt-pt'] = "Idioma";
|
||||
$text['label-select_language']['fr-fr'] = "Langue";
|
||||
$text['label-select_language']['pt-br'] = "Idioma";
|
||||
$text['label-select_language']['pl'] = "Język";
|
||||
$text['label-select_language']['sv-se'] = "Språk";
|
||||
$text['label-select_language']['uk'] = "Мова";
|
||||
$text['label-select_language']['de-at'] = "Sprache";
|
||||
$text['label-select_language']['ar-eg'] = "لغة";
|
||||
|
||||
$text['label-event_host']['en-us'] = "Host address";
|
||||
$text['label-event_host']['es-cl'] = "Dirección de host";
|
||||
$text['label-event_host']['pt-pt'] = "Endereço do host";
|
||||
$text['label-event_host']['fr-fr'] = "Adresse de l'hôte";
|
||||
$text['label-event_host']['pt-br'] = "Endereço do host";
|
||||
$text['label-event_host']['pl'] = "Adres hosta";
|
||||
$text['label-event_host']['sv-se'] = "Host adress";
|
||||
$text['label-event_host']['uk'] = "адреса хоста";
|
||||
$text['label-event_host']['de-at'] = "Host-Adresse";
|
||||
$text['label-event_host']['ar-eg'] = "عنوان المضيف";
|
||||
|
||||
$text['label-event_port']['en-us'] = "Port";
|
||||
$text['label-event_port']['es-cl'] = "Puerto";
|
||||
$text['label-event_port']['pt-pt'] = "Porto";
|
||||
$text['label-event_port']['fr-fr'] = "Port";
|
||||
$text['label-event_port']['pt-br'] = "Porta";
|
||||
$text['label-event_port']['pl'] = "Port";
|
||||
$text['label-event_port']['sv-se'] = "Port";
|
||||
$text['label-event_port']['uk'] = "Порт";
|
||||
$text['label-event_port']['de-at'] = "Port";
|
||||
$text['label-event_port']['ar-eg'] = "منفذ";
|
||||
|
||||
$text['label-event_password']['en-us'] = "Password";
|
||||
$text['label-event_password']['es-cl'] = "Contreseña";
|
||||
$text['label-event_password']['pt-pt'] = "Palavra-Chave";
|
||||
$text['label-event_password']['fr-fr'] = "Mot de Passe";
|
||||
$text['label-event_password']['pt-br'] = "Senha";
|
||||
$text['label-event_password']['pl'] = "Hasło";
|
||||
$text['label-event_password']['sv-se'] = "Lösenord";
|
||||
$text['label-event_password']['uk'] = "Пароль";
|
||||
$text['label-event_password']['de-at'] = "Passwort";
|
||||
$text['label-event_password']['ar-eg'] = "كلمة السر";
|
||||
|
||||
$text['label-username']['en-us'] = "Username";
|
||||
$text['label-username']['es-cl'] = "Nombre de usuario";
|
||||
$text['label-username']['pt-pt'] = "Utilizador";
|
||||
$text['label-username']['fr-fr'] = "Utilisateur";
|
||||
$text['label-username']['pt-br'] = "Nome do Usuário";
|
||||
$text['label-username']['pl'] = "Użytkownik";
|
||||
$text['label-username']['sv-se'] = "Användarnamn";
|
||||
$text['label-username']['uk'] = "Ім’я користувача";
|
||||
$text['label-username']['de-at'] = "Benutzername";
|
||||
$text['label-username']['ar-eg'] = "اسم المستخدم";
|
||||
|
||||
$text['label-port']['en-us'] = "Port";
|
||||
$text['label-port']['es-cl'] = "Puerto";
|
||||
$text['label-port']['pt-pt'] = "Porto";
|
||||
$text['label-port']['fr-fr'] = "Port";
|
||||
$text['label-port']['pt-br'] = "Porta";
|
||||
$text['label-port']['pl'] = "Port";
|
||||
$text['label-port']['sv-se'] = "Port";
|
||||
$text['label-port']['uk'] = "Порт";
|
||||
$text['label-port']['de-at'] = "Port";
|
||||
$text['label-port']['ar-eg'] = "منفذ";
|
||||
|
||||
$text['label-path']['en-us'] = "Path";
|
||||
$text['label-path']['es-cl'] = "Ruta";
|
||||
$text['label-path']['pt-pt'] = "Caminho";
|
||||
$text['label-path']['fr-fr'] = "Chemin";
|
||||
$text['label-path']['pt-br'] = "Caminho";
|
||||
$text['label-path']['pl'] = "Ścieżka";
|
||||
$text['label-path']['sv-se'] = "Sökväg";
|
||||
$text['label-path']['uk'] = "Шлях";
|
||||
$text['label-path']['de-at'] = "Pfad";
|
||||
$text['label-path']['ar-eg'] = "مسار";
|
||||
|
||||
$text['label-host']['en-us'] = "Host";
|
||||
$text['label-host']['es-cl'] = "Host";
|
||||
$text['label-host']['pt-pt'] = "Máquina";
|
||||
$text['label-host']['fr-fr'] = "Hôte";
|
||||
$text['label-host']['pt-br'] = "Máquina";
|
||||
$text['label-host']['pl'] = "Host";
|
||||
$text['label-host']['sv-se'] = "Värd";
|
||||
$text['label-host']['uk'] = "Хост";
|
||||
$text['label-host']['de-at'] = "Host";
|
||||
$text['label-host']['ar-eg'] = "مضيف";
|
||||
|
||||
$text['label-driver']['en-us'] = "Driver";
|
||||
$text['label-driver']['es-cl'] = "Controlador";
|
||||
$text['label-driver']['pt-pt'] = "Driver";
|
||||
$text['label-driver']['fr-fr'] = "Driver";
|
||||
$text['label-driver']['pt-br'] = "Driver";
|
||||
$text['label-driver']['pl'] = "Sterownik";
|
||||
$text['label-driver']['sv-se'] = "Drivrutin";
|
||||
$text['label-driver']['uk'] = "Драйвер";
|
||||
$text['label-driver']['de-at'] = "Treiber";
|
||||
$text['label-driver']['ar-eg'] = "سائق";
|
||||
|
||||
$text['header-install']['en-us'] = "Install";
|
||||
$text['header-install']['es-cl'] = "Instalar";
|
||||
$text['header-install']['pt-pt'] = "Instalar";
|
||||
$text['header-install']['fr-fr'] = "Installer";
|
||||
$text['header-install']['pt-br'] = "Instalar";
|
||||
$text['header-install']['pl'] = "Zainstalować";
|
||||
$text['header-install']['sv-se'] = "Installera";
|
||||
$text['header-install']['uk'] = "встановлювати";
|
||||
$text['header-install']['de-at'] = "Installieren";
|
||||
$text['header-install']['ar-eg'] = "تثبيت";
|
||||
|
||||
$text['header-select_language']['en-us'] = "Select Language";
|
||||
$text['header-select_language']['es-cl'] = "Selecciona idioma";
|
||||
$text['header-select_language']['pt-pt'] = "Selecione o idioma";
|
||||
$text['header-select_language']['fr-fr'] = "Sélectionnez la langue";
|
||||
$text['header-select_language']['pt-br'] = "Selecione o idioma";
|
||||
$text['header-select_language']['pl'] = "Wybierz język";
|
||||
$text['header-select_language']['sv-se'] = "Välj språk";
|
||||
$text['header-select_language']['uk'] = "вибір мови";
|
||||
$text['header-select_language']['de-at'] = "Sprache wählen";
|
||||
$text['header-select_language']['ar-eg'] = "اختار اللغة";
|
||||
|
||||
$text['header-event_socket']['en-us'] = "Event Socket Configuration";
|
||||
$text['header-event_socket']['es-cl'] = "Configuración del zócalo evento";
|
||||
$text['header-event_socket']['pt-pt'] = "Configuração soquete evento";
|
||||
$text['header-event_socket']['fr-fr'] = "Event Configuration Socket";
|
||||
$text['header-event_socket']['pt-br'] = "Configuração soquete evento";
|
||||
$text['header-event_socket']['pl'] = "Zdarzenie Gniazdo Konfiguracja";
|
||||
$text['header-event_socket']['sv-se'] = "Händelse Socket Konfiguration";
|
||||
$text['header-event_socket']['uk'] = "Конфігурація гніздо Подія";
|
||||
$text['header-event_socket']['de-at'] = "Veranstaltungssockelkonfiguration";
|
||||
$text['header-event_socket']['ar-eg'] = "تكوين المقبس الحدث";
|
||||
|
||||
$text['header-config_detail']['en-us'] = "Admin Configuration";
|
||||
$text['header-config_detail']['es-cl'] = "Configuración de administración";
|
||||
$text['header-config_detail']['pt-pt'] = "Configuração de administrador";
|
||||
$text['header-config_detail']['fr-fr'] = "Configuration Admin";
|
||||
$text['header-config_detail']['pt-br'] = "Configuração de administrador";
|
||||
$text['header-config_detail']['pl'] = "Konfiguracja Admin";
|
||||
$text['header-config_detail']['sv-se'] = "Admin Konfiguration";
|
||||
$text['header-config_detail']['uk'] = "конфігурація Адмін";
|
||||
$text['header-config_detail']['de-at'] = "Admin-Konfiguration";
|
||||
$text['header-config_detail']['ar-eg'] = "تكوين المشرف";
|
||||
|
||||
$text['header-config_database']['en-us'] = "Database Configuration";
|
||||
$text['header-config_database']['es-cl'] = "Configuración de la base de datos";
|
||||
$text['header-config_database']['pt-pt'] = "Configuration Database";
|
||||
$text['header-config_database']['fr-fr'] = "Configuration de base de données";
|
||||
$text['header-config_database']['pt-br'] = "Configuration Database";
|
||||
$text['header-config_database']['pl'] = "Konfiguracja bazy danych";
|
||||
$text['header-config_database']['sv-se'] = "Databaskonfiguration ";
|
||||
$text['header-config_database']['uk'] = "конфігурація бази даних";
|
||||
$text['header-config_database']['de-at'] = "Datenbankkonfiguration ";
|
||||
$text['header-config_database']['ar-eg'] = "تكوين قاعدة بيانات";
|
||||
|
||||
$text['header-installing']['en-us'] = "Executing Install";
|
||||
$text['header-installing']['es-cl'] = "Instalar la ejecución";
|
||||
$text['header-installing']['pt-pt'] = "Execução Instalar";
|
||||
$text['header-installing']['fr-fr'] = "Installez exécution";
|
||||
$text['header-installing']['pt-br'] = "Execução Instalar";
|
||||
$text['header-installing']['pl'] = "Wykonywanie Install";
|
||||
$text['header-installing']['sv-se'] = "Exekvera Installera";
|
||||
$text['header-installing']['uk'] = "виконання Встановіть";
|
||||
$text['header-installing']['de-at'] = "Ausführen Installieren";
|
||||
$text['header-installing']['ar-eg'] = "تنفيذ التثبيت";
|
||||
|
||||
$text['description-event_host']['en-us'] = "Enter the event socket host name or IP address.";
|
||||
$text['description-event_host']['es-cl'] = "Introduzca el nombre de host toma evento o dirección IP.";
|
||||
$text['description-event_host']['pt-pt'] = "Digite o nome do host tomada evento ou endereço IP.";
|
||||
$text['description-event_host']['fr-fr'] = "Entrez le socket nom d'hôte de l'événement ou de l'adresse IP.";
|
||||
$text['description-event_host']['pt-br'] = "Digite o nome do host tomada evento ou endereço IP.";
|
||||
$text['description-event_host']['pl'] = "Wprowadź nazwę hosta gniazda wydarzenie lub adres IP.";
|
||||
$text['description-event_host']['sv-se'] = "Ange händelsen uttag värdnamn eller IP-adress.";
|
||||
$text['description-event_host']['uk'] = "Введіть проведення сокета ім'я хоста або IP-адресу.";
|
||||
$text['description-event_host']['de-at'] = "Geben Sie das Ereignis Buchse Hostnamen oder die IP-Adresse .";
|
||||
$text['description-event_host']['ar-eg'] = "أدخل اسم المضيف مأخذ الحدث.";
|
||||
|
||||
$text['description-event_port']['en-us'] = "Enter the event socket port number.";
|
||||
$text['description-event_port']['es-cl'] = "Introduzca el número de puerto de socket evento.";
|
||||
$text['description-event_port']['pt-pt'] = "Digite o número do evento porta de soquete.";
|
||||
$text['description-event_port']['fr-fr'] = "Entrez le numéro cas de port du socket.";
|
||||
$text['description-event_port']['pt-br'] = "Digite o número do evento porta de soquete.";
|
||||
$text['description-event_port']['pl'] = "Wprowadź numer portu gniazda zdarzenia.";
|
||||
$text['description-event_port']['sv-se'] = "Ange händelsen socket portnummer.";
|
||||
$text['description-event_port']['uk'] = "Введіть номер подія гніздо порту.";
|
||||
$text['description-event_port']['de-at'] = "Geben Sie das Ereignis Socket-Portnummer.";
|
||||
$text['description-event_port']['ar-eg'] = "أدخل رقم الحدث ميناء المقبس.";
|
||||
|
||||
$text['description-event_password']['en-us'] = "Enter the event socket password.";
|
||||
$text['description-event_password']['es-cl'] = "Introduzca la toma evento contraseña.";
|
||||
$text['description-event_password']['pt-pt'] = "Digite tomada a senha evento.";
|
||||
$text['description-event_password']['fr-fr'] = "Saisissez la prise de mot de passe de l'événement.";
|
||||
$text['description-event_password']['pt-br'] = "Digite tomada a senha evento.";
|
||||
$text['description-event_password']['pl'] = "Wprowadź hasło gniazda zdarzenia.";
|
||||
$text['description-event_password']['sv-se'] = "Ange händelsen uttag lösenord.";
|
||||
$text['description-event_password']['uk'] = "Введіть гніздо пароль подією.";
|
||||
$text['description-event_password']['de-at'] = "Geben Sie das Ereignis Passwort Steckdose.";
|
||||
$text['description-event_password']['ar-eg'] = "أدخل كلمة المرور مأخذ الحدث.";
|
||||
|
||||
$text['description-username']['en-us'] = "Enter the database username.";
|
||||
$text['description-username']['es-cl'] = "Ingrese el nombre de usuario de la base de datos.";
|
||||
$text['description-username']['pt-pt'] = "Introduza o utilizador da base de dados.";
|
||||
$text['description-username']['fr-fr'] = "Entrer le nom d'utilisateur de la Base de données.";
|
||||
$text['description-username']['pt-br'] = "Insira o nome do usuário";
|
||||
$text['description-username']['pl'] = "Wprowadź nazwę użytkownika";
|
||||
$text['description-username']['sv-se'] = "Ange databasen användarnamn här.";
|
||||
$text['description-username']['uk'] = "Введіть ім’я користувача бази даних";
|
||||
$text['description-username']['de-at'] = "Geben Sie den Datenbank Benutzernamen an.";
|
||||
$text['description-username']['ar-eg'] = "أدخل اسم المستخدم هنا";
|
||||
|
||||
$text['description-type']['en-us'] = "Select the database type.";
|
||||
$text['description-type']['es-cl'] = "Seleccione el tipo de base de datos";
|
||||
$text['description-type']['pt-pt'] = "Escolha o tipo de base de dados.";
|
||||
$text['description-type']['fr-fr'] = "Choisir le type de Base de données.";
|
||||
$text['description-type']['pt-br'] = "Introduza o tipo de definição.";
|
||||
$text['description-type']['pl'] = "Wprowadź rodzaj bazy danych";
|
||||
$text['description-type']['sv-se'] = "Välj databastyp";
|
||||
$text['description-type']['uk'] = "Виберіть тип бази даних";
|
||||
$text['description-type']['de-at'] = "Wählen Sie den Datenbank Typ.";
|
||||
$text['description-type']['ar-eg'] = "إختر نوع قاعدة البيانات";
|
||||
|
||||
$text['description-port']['en-us'] = "Enter the port number.";
|
||||
$text['description-port']['es-cl'] = "Ingrese el número del puerto.";
|
||||
$text['description-port']['pt-pt'] = "Introduza o número do porto.";
|
||||
$text['description-port']['fr-fr'] = "Entrer le numéro de port.";
|
||||
$text['description-port']['pt-br'] = "Insira o número da porta";
|
||||
$text['description-port']['pl'] = "Wprowadź numer portu";
|
||||
$text['description-port']['sv-se'] = "Ange portnummer";
|
||||
$text['description-port']['uk'] = "Введіть номер порта";
|
||||
$text['description-port']['de-at'] = "Geben Sie die Port Nummer an.";
|
||||
$text['description-port']['ar-eg'] = "أدخل رقم المنفذ";
|
||||
|
||||
$text['description-path']['en-us'] = "Enter the database file path (SQLite only).";
|
||||
$text['description-path']['es-cl'] = "Ingrese la ruta al archivo de datos (solo SQLite).";
|
||||
$text['description-path']['pt-pt'] = "Introduza o caminho da base de dados (apenas SQLite)";
|
||||
$text['description-path']['fr-fr'] = "Entrer le chemin du fichier Base de données (Spécifique SQLite).";
|
||||
$text['description-path']['pt-br'] = "Insira o caminho da base de dados (SQLite)";
|
||||
$text['description-path']['pl'] = "Wprowadź ścieżkę do pliku bazy danych (tylko SQLite)";
|
||||
$text['description-path']['sv-se'] = "Ange databasens sökväg (gäller endast SQLite).";
|
||||
$text['description-path']['uk'] = "Вкажіть шлях до файлу бази даних (тільки SQLite).";
|
||||
$text['description-path']['de-at'] = "Geben Sie den Datenbank Pfad an (nur für SQLite).";
|
||||
$text['description-path']['ar-eg'] = "أدخل مسار ملف قاعدة البيانات (سكليتي فقط).";
|
||||
|
||||
$text['description-password']['en-us'] = "Enter the database password.";
|
||||
$text['description-password']['es-cl'] = "Ingrese la contraseña de la base de datos.";
|
||||
$text['description-password']['pt-pt'] = "Introduza a palavra-chave da base de dados.";
|
||||
$text['description-password']['fr-fr'] = "Entrer le mot de passe pour la Base de données.";
|
||||
$text['description-password']['pt-br'] = "Introduza a senha";
|
||||
$text['description-password']['pl'] = "Wpisz hasło";
|
||||
$text['description-password']['sv-se'] = "Ange databasens lösenord.";
|
||||
$text['description-password']['uk'] = "Введіть пароль бази даних.";
|
||||
$text['description-password']['de-at'] = "Geben Sie das Datenbank Passwort ein.";
|
||||
$text['description-password']['ar-eg'] = "أدخل الرقم السري الخاص بقاعدة البيانات";
|
||||
|
||||
$text['description-name']['en-us'] = "Enter the database name.";
|
||||
$text['description-name']['es-cl'] = "Ingrese el nombre de la base de datos.";
|
||||
$text['description-name']['pt-pt'] = "Introduza o nome da base de dados.";
|
||||
$text['description-name']['fr-fr'] = "Entrer le nom de la Base de données.";
|
||||
$text['description-name']['pt-br'] = "Insira o nome do menu";
|
||||
$text['description-name']['pl'] = "Wprowadź nazwę bazy danych.";
|
||||
$text['description-name']['sv-se'] = "Ange databasens namn.";
|
||||
$text['description-name']['uk'] = "Введіть ім'я бази даних.";
|
||||
$text['description-name']['de-at'] = "Geben Sie den Namen der Datenbank an";
|
||||
$text['description-name']['ar-eg'] = "أدخل إسم قاعدة البيانات";
|
||||
|
||||
$text['description-host']['en-us'] = "Enter the host name.";
|
||||
$text['description-host']['es-cl'] = "Ingrese el nombre de host";
|
||||
$text['description-host']['pt-pt'] = "Introduza o nome da máquina.";
|
||||
$text['description-host']['fr-fr'] = "Entrer le nom de l'hôte.";
|
||||
$text['description-host']['pt-br'] = "Insira o nome da máquina ";
|
||||
$text['description-host']['pl'] = "Wprowadź nazwę hosta.";
|
||||
$text['description-host']['sv-se'] = "Ange värdnamnet";
|
||||
$text['description-host']['uk'] = "Введіть ім'я хоста.";
|
||||
$text['description-host']['de-at'] = "Geben Sie den Host Namen ein.";
|
||||
$text['description-host']['ar-eg'] = "أدخل إسم المضيف";
|
||||
|
||||
$text['description-driver']['en-us'] = "Select the database driver.";
|
||||
$text['description-driver']['es-cl'] = "Seleccione un controlador de base de datos.";
|
||||
$text['description-driver']['pt-pt'] = "Escolha o driver da base de dados";
|
||||
$text['description-driver']['fr-fr'] = "Choisir le driver de la Base de données.";
|
||||
$text['description-driver']['pt-br'] = "Escolha o driver da base de dados";
|
||||
$text['description-driver']['pl'] = "Wybierz sterownik bazy danych.";
|
||||
$text['description-driver']['sv-se'] = "Välj databas drivrutin.";
|
||||
$text['description-driver']['uk'] = "Виберіть драйвер бази даних.";
|
||||
$text['description-driver']['de-at'] = "Wählen Sie den Datenbank Treiber.";
|
||||
$text['description-driver']['ar-eg'] = "حدد برنامج تشغيل قاعدة البيانات.";
|
||||
|
||||
$text['description-install']['en-us'] = "Select the action below you wish to perform.";
|
||||
$text['description-install']['es-cl'] = "Seleccione las accion a continuación que desea realizar.";
|
||||
$text['description-install']['pt-pt'] = "Selecione as ações abaixo você deseja executar."; //action signular needed
|
||||
$text['description-install']['fr-fr'] = "Sélectionnez les action ci-dessous que vous souhaitez effectuer.";
|
||||
$text['description-install']['pt-br'] = "Seleciona as ações abaixo que deseja executar "; //action signular needed
|
||||
$text['description-install']['pl'] = "Wybierz opcje, które chcesz wykonać."; //action signular needed
|
||||
$text['description-install']['sv-se'] = "Välj de åtgärder nedan som du vill utföra."; //action signular needed
|
||||
$text['description-install']['uk'] = "Виберіть об’єкти для оновлення"; //action signular needed
|
||||
$text['description-install']['de-at'] = "Wählen Sie eine Aktion."; //action signular needed
|
||||
$text['description-install']['ar-eg'] = "حدد الإجراء أدناه كنت ترغب في القيام بها.";
|
||||
|
||||
$text['description-database-edit']['en-us'] = "Database connection information.";
|
||||
$text['description-database-edit']['es-cl'] = "Información de conexión a base de datos.";
|
||||
$text['description-database-edit']['pt-pt'] = "Informação da ligação à base de dados.";
|
||||
$text['description-database-edit']['fr-fr'] = "Informations de connexion à la Base";
|
||||
$text['description-database-edit']['pt-br'] = "Informações da ligação na base de dados";
|
||||
$text['description-database-edit']['pl'] = "Informacje o połączeniach z bazą danych.";
|
||||
$text['description-database-edit']['sv-se'] = "Information om Databasanslutning";
|
||||
$text['description-database-edit']['uk'] = "інформація про підключення до бази даних.";
|
||||
$text['description-database-edit']['de-at'] = "Datenbank Verbindungs Information.";
|
||||
$text['description-database-edit']['ar-eg'] = "بيانات الإتصال الخاص بقاعدة البيانات";
|
||||
|
||||
$text['description-database-add']['en-us'] = "Database connection information.";
|
||||
$text['description-database-add']['es-cl'] = "Información de conexión a base de datos.";
|
||||
$text['description-database-add']['pt-pt'] = "Informação da ligação à base de dados.";
|
||||
$text['description-database-add']['fr-fr'] = "Informations de connexion à la Base.";
|
||||
$text['description-database-add']['pt-br'] = "Informações da ligação na base de dados";
|
||||
$text['description-database-add']['pl'] = "Informacje o połączeniach z bazą danych.";
|
||||
$text['description-database-add']['sv-se'] = "Information om Databasanslutning";
|
||||
$text['description-database-add']['uk'] = "інформація про підключення до бази даних.";
|
||||
$text['description-database-add']['de-at'] = "Datenbank Verbindungs Information.";
|
||||
$text['description-database-add']['ar-eg'] = "بيانات الإتصال الخاص بقاعدة البيانات";
|
||||
|
||||
$text['description-select_language']['en-us'] = "Please select the language you want to use";
|
||||
$text['description-select_language']['es-cl'] = "Por favor, seleccione el idioma que desea utilizar";
|
||||
$text['description-select_language']['pt-pt'] = "Por favor, selecione o idioma que deseja usar";
|
||||
$text['description-select_language']['fr-fr'] = "S'il vous plaît choisir la langue que vous souhaitez utiliser";
|
||||
$text['description-select_language']['pt-br'] = "Por favor, selecione o idioma que deseja usar";
|
||||
$text['description-select_language']['pl'] = "Wybierz język, którego chcesz używać";
|
||||
$text['description-select_language']['sv-se'] = "Välj det språk du vill använda";
|
||||
$text['description-select_language']['uk'] = "Виберіть мову, який ви хочете використовувати";
|
||||
$text['description-select_language']['de-at'] = "Bitte wählen Sie die gewünschte Sprache zu verwenden";
|
||||
$text['description-select_language']['ar-eg'] = "يرجى اختيار اللغة التي تريد استخدامها";
|
||||
|
||||
$text['button-detect']['en-us'] = "Detect Configuration";
|
||||
$text['button-detect']['es-cl'] = "Detectar Configuración";
|
||||
$text['button-detect']['pt-pt'] = "Detectar Configuração";
|
||||
$text['button-detect']['fr-fr'] = "Détecter Configuration";
|
||||
$text['button-detect']['pt-br'] = "Detectar Configuração";
|
||||
$text['button-detect']['pl'] = "Wykrywanie Konfiguracja";
|
||||
$text['button-detect']['sv-se'] = "Detektera Konfiguration";
|
||||
$text['button-detect']['uk'] = "виявлення Конфігурація";
|
||||
$text['button-detect']['de-at'] = "Detect-Konfiguration";
|
||||
$text['button-detect']['ar-eg'] = "كشف تكوين";
|
||||
|
||||
$text['button-select']['en-us'] = "Select";
|
||||
$text['button-select']['es-cl'] = "Seleccionar";
|
||||
$text['button-select']['pt-pt'] = "Selecionar";
|
||||
$text['button-select']['fr-fr'] = "Sélectionner";
|
||||
$text['button-select']['pt-br'] = "Selecionar";
|
||||
$text['button-select']['pl'] = "Wybierz";
|
||||
$text['button-select']['sv-se'] = "Välj";
|
||||
$text['button-select']['uk'] = "вибрати";
|
||||
$text['button-select']['de-at'] = "Wählen";
|
||||
$text['button-select']['ar-eg'] = "اختار";
|
||||
|
||||
?>
|
||||
@@ -1,83 +1,83 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//detect install state
|
||||
$install_enabled = true;
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
|
||||
$install_enabled = false;
|
||||
} elseif (file_exists("/etc/fusionpbx/config.php")) {
|
||||
//linux
|
||||
$install_enabled = false;
|
||||
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")) {
|
||||
$install_enabled = false;
|
||||
}
|
||||
|
||||
if($install_enabled) {
|
||||
header("Location: ".PROJECT_PATH."/core/install/install.php");
|
||||
exit;
|
||||
}
|
||||
require_once "resources/check_auth.php";
|
||||
if (!if_group("superadmin")) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//includes and title
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-install'];
|
||||
|
||||
echo "<b>".$text['header-install']."</b>";
|
||||
echo "<br><br>";
|
||||
echo $text['description-install'];
|
||||
echo "<br><br>";
|
||||
|
||||
echo "<form name='frm' method='post' action='/core/install/install.php'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " <input id='do_ft-install' type='submit' class='btn' value='".$text['label-ft-install']."'/>";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_ft-install'>";
|
||||
echo " ".$text['description-ft-install'];
|
||||
echo " </label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</form>\n";
|
||||
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//detect install state
|
||||
$install_enabled = true;
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
|
||||
$install_enabled = false;
|
||||
} elseif (file_exists("/etc/fusionpbx/config.php")) {
|
||||
//linux
|
||||
$install_enabled = false;
|
||||
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")) {
|
||||
$install_enabled = false;
|
||||
}
|
||||
|
||||
if($install_enabled) {
|
||||
header("Location: ".PROJECT_PATH."/core/install/install.php");
|
||||
exit;
|
||||
}
|
||||
require_once "resources/check_auth.php";
|
||||
if (!if_group("superadmin")) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//includes and title
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-install'];
|
||||
|
||||
echo "<b>".$text['header-install']."</b>";
|
||||
echo "<br><br>";
|
||||
echo $text['description-install'];
|
||||
echo "<br><br>";
|
||||
|
||||
echo "<form name='frm' method='post' action='/core/install/install.php'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " <input id='do_ft-install' type='submit' class='btn' value='".$text['label-ft-install']."'/>";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_ft-install'>";
|
||||
echo " ".$text['description-ft-install'];
|
||||
echo " </label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</form>\n";
|
||||
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
@@ -1,367 +1,367 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2016
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
//add the required includes
|
||||
require_once "root.php";
|
||||
require_once "resources/functions.php";
|
||||
require_once "resources/classes/text.php";
|
||||
|
||||
//initialize variables we are going to use
|
||||
$event_host = '';
|
||||
$event_port = '';
|
||||
$event_password = '';
|
||||
$install_language = 'en-us';
|
||||
$admin_username = '';
|
||||
$admin_password = '';
|
||||
$install_default_country = 'US';
|
||||
$install_template_name = '';
|
||||
$domain_name = '';
|
||||
$db_type = '';
|
||||
$db_path = '';
|
||||
$db_host = '';
|
||||
$db_port = '';
|
||||
$db_name = '';
|
||||
$db_username = '';
|
||||
$db_password = '';
|
||||
$db_create = '';
|
||||
$db_create_username = '';
|
||||
$db_create_password = '';
|
||||
|
||||
//detect the iso country code from the locale
|
||||
//$locale = Locale::getDefault();
|
||||
$timezone = 'UTC';
|
||||
if (is_link('/etc/localtime')) {
|
||||
// Mac OS X (and older Linuxes)
|
||||
// /etc/localtime is a symlink to the
|
||||
// timezone in /usr/share/zoneinfo.
|
||||
$filename = readlink('/etc/localtime');
|
||||
if (strpos($filename, '/usr/share/zoneinfo/') === 0) {
|
||||
$timezone = substr($filename, 20);
|
||||
}
|
||||
} elseif (file_exists('/etc/timezone')) {
|
||||
// Ubuntu / Debian.
|
||||
$data = file_get_contents('/etc/timezone');
|
||||
if ($data) {
|
||||
$timezone = rtrim($data);
|
||||
}
|
||||
} elseif (file_exists('/etc/sysconfig/clock')) {
|
||||
// RHEL / CentOS
|
||||
$data = parse_ini_file('/etc/sysconfig/clock');
|
||||
if (!empty($data['ZONE'])) {
|
||||
$timezone = $data['ZONE'];
|
||||
}
|
||||
}
|
||||
|
||||
//set the time zone
|
||||
date_default_timezone_set($timezone);
|
||||
|
||||
//if the config.php exists deny access to install.php
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
} elseif (file_exists("/etc/fusionpbx/config.php")) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//intialize variables
|
||||
$install_step = '';
|
||||
$return_install_step = '';
|
||||
|
||||
//process the the HTTP POST
|
||||
if (count($_POST) > 0) {
|
||||
$install_language = check_str($_POST["install_language"]);
|
||||
$install_step = check_str($_POST["install_step"]);
|
||||
$return_install_step = check_str($_POST["return_install_step"]);
|
||||
if(isset($_POST["event_host"])){
|
||||
$event_host = check_str($_POST["event_host"]);
|
||||
$event_port = check_str($_POST["event_port"]);
|
||||
$event_password = check_str($_POST["event_password"]);
|
||||
}
|
||||
if(isset($_POST["db_type"])){
|
||||
$db_type = $_POST["db_type"];
|
||||
$admin_username = $_POST["admin_username"];
|
||||
$admin_password = $_POST["admin_password"];
|
||||
$install_default_country = $_POST["install_default_country"];
|
||||
$install_template_name = $_POST["install_template_name"];
|
||||
$domain_name = $_POST["domain_name"];
|
||||
}
|
||||
}
|
||||
|
||||
//set the install step if it is not set
|
||||
if(!$install_step) { $install_step = 'select_language'; }
|
||||
|
||||
//set the language for the install
|
||||
$_SESSION['domain']['language']['code'] = $install_language;
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//set a default enviroment if first_time
|
||||
//initialize some varibles to cut down on warnings
|
||||
$_SESSION['message'] = '';
|
||||
$v_link_label_play = '';
|
||||
$v_link_label_pause = '';
|
||||
$default_login = 0;
|
||||
$onload = '';
|
||||
|
||||
//buffer the content
|
||||
ob_end_clean(); //clean the buffer
|
||||
ob_start();
|
||||
|
||||
$messages = array();
|
||||
if (!extension_loaded('PDO')) {
|
||||
$messages[] = "<b>PHP PDO was not detected</b>. Please install it before proceeding";
|
||||
}
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
$msg = '';
|
||||
//make sure the includes directory is writable so the config.php file can be written.
|
||||
if (!is_writable($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/pdo.php")) {
|
||||
$messages[] = "<b>Write access to ".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."</b> and its sub-directories are required during the install.";
|
||||
}
|
||||
//test for selinux
|
||||
if (file_exists('/usr/sbin/getenforce')) {
|
||||
$enforcing;
|
||||
exec('getenforce', $enforcing);
|
||||
if($enforcing[0] == 'Enforcing'){
|
||||
$messages[] = "<b>SELinux is enabled and enforcing</b> you must have a policy installed to let the webserver connect to the switch event socket<br/>".
|
||||
"<sm>You can use the following to find what ports are allowed<pre>semanage port -l | grep '^http_port_t'</pre></sm>";
|
||||
}
|
||||
}
|
||||
//test for windows and non sqlite
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' and strlen($db_type) > 0 and $db_type !='sqlite') {
|
||||
$messages[] = "<b>Windows requires a system DSN ODBC connection</b> this must be configured.";
|
||||
}
|
||||
|
||||
//action code
|
||||
if($return_install_step == 'config_detail'){
|
||||
//check for all required data
|
||||
$existing_errors = count($messages);
|
||||
if (strlen($admin_username) == 0) { $messages[] = "Please provide the Admin Username"; }
|
||||
if (strlen($admin_password) == 0) { $messages[] = "Please provide the Admin Password"; }
|
||||
elseif (strlen($admin_password) < 5) { $messages[] = "Please provide an Admin Password that is 5 or more characters.<br>\n"; }
|
||||
if ( count($messages) > $existing_errors) { $install_step = 'config_detail'; }
|
||||
}
|
||||
|
||||
if($install_step =='execute') {
|
||||
//set the max execution time to 1 hour
|
||||
ini_set('max_execution_time',3600);
|
||||
}
|
||||
|
||||
//display messages
|
||||
if (count($messages)>0) {
|
||||
echo "<br />\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='75%'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th align='left'>Messages</th>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td class='row_style1'><strong><ul>\n";
|
||||
foreach ($messages as $message){
|
||||
echo "<li>$message</li>\n";
|
||||
}
|
||||
echo "</ul></strong></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
//includes and title
|
||||
$document['title'] = $text['title-install'];
|
||||
|
||||
//view code
|
||||
if($install_step == 'select_language'){
|
||||
echo " <form method='post' name='frm' action=''>\n";
|
||||
include "resources/page_parts/install_select_language.php";
|
||||
echo " <input type='hidden' name='return_install_step' value='select_language'/>\n";
|
||||
echo " <input type='hidden' name='install_step' value='detect_config'/>\n";
|
||||
echo "</form>\n";
|
||||
} elseif($install_step == 'detect_config'){
|
||||
if(!($event_host == '' || $event_host == 'localhost' || $event_host == '::1' || $event_host == '127.0.0.1' )){
|
||||
echo "<p><b>Warning</b> you have choosen a value other than localhost for event_host, this is unsoported at present</p>\n";
|
||||
}
|
||||
//if($detect_ok){
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
include "resources/page_parts/install_event_socket.php";
|
||||
echo " <input type='hidden' name='install_language' value='".$_SESSION['domain']['language']['code']."'/>\n";
|
||||
echo " <input type='hidden' name='return_install_step' value='detect_config'/>\n";
|
||||
echo " <input type='hidden' name='install_step' value='config_detail'/>\n";
|
||||
echo " <input type='hidden' name='event_host' value='$event_host'/>\n";
|
||||
echo " <input type='hidden' name='event_port' value='$event_port'/>\n";
|
||||
echo " <input type='hidden' name='event_password' value='$event_password'/>\n";
|
||||
//echo " <div style='text-align:right'>\n";
|
||||
//echo " <button type='button' class='btn' onclick=\"history.go(-1);\">".$text['button-back']."</button>\n";
|
||||
//echo " <button type='submit' class='btn' id='next'>".$text['button-next']."</button>\n";
|
||||
//echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
//} else {
|
||||
// echo "<form method='post' name='frm' action=''>\n";
|
||||
// echo " <div style='text-align:right'>\n";
|
||||
// echo " <button type='button' class='btn' onclick=\"history.go(-1);\">".$text['button-back']."</button>\n";
|
||||
// echo " </div>\n";
|
||||
// echo "</form>\n";
|
||||
//}
|
||||
}
|
||||
elseif($install_step == 'config_detail'){
|
||||
//get the domain
|
||||
if(!$domain_name){
|
||||
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
||||
$domain_name = $domain_array[0];
|
||||
}
|
||||
include "resources/page_parts/install_config_detail.php";
|
||||
}
|
||||
elseif($install_step == 'config_database'){
|
||||
include "resources/page_parts/install_config_database.php";
|
||||
}
|
||||
elseif($install_step == 'execute'){
|
||||
echo "<p><b>".$text['header-installing']."</b></p>\n";
|
||||
//$protocol = 'http';
|
||||
//if($_SERVER['HTTPS']) { $protocol = 'https'; }
|
||||
//echo "<iframe src='$protocol://$domain_name/core/install/install_first_time.php' style='border:solid 1px #000;width:100%;height:auto'></iframe>";
|
||||
require_once "core/install/resources/classes/detect_switch.php";
|
||||
$detect_switch = new detect_switch($event_host, $event_port, $event_password);
|
||||
$detect_ok = true;
|
||||
try {
|
||||
$detect_switch->detect();
|
||||
} catch(Exception $e){
|
||||
//echo "<p>Failed to detect configuration detect_switch reported: " . $e->getMessage() . "</p>\n";
|
||||
//$detect_ok = false;
|
||||
}
|
||||
if($detect_ok){
|
||||
$install_ok = true;
|
||||
echo "<pre style='text-align:left;'>\n";
|
||||
function error_handler($err_severity, $errstr, $errfile, $errline ) {
|
||||
if (0 === error_reporting()) { return false;}
|
||||
switch($err_severity)
|
||||
{
|
||||
case E_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_PARSE: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_CORE_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_COMPILE_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_USER_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_STRICT: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_RECOVERABLE_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
#set_error_handler("error_handler");
|
||||
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"); }
|
||||
require_once "resources/classes/install_fusionpbx.php";
|
||||
$system = new install_fusionpbx($global_settings);
|
||||
$system->admin_username = $admin_username;
|
||||
$system->admin_password = $admin_password;
|
||||
$system->default_country = $install_default_country;
|
||||
$system->install_language = $install_language;
|
||||
$system->template_name = $install_template_name;
|
||||
|
||||
require_once "resources/classes/install_switch.php";
|
||||
$switch = new install_switch($global_settings);
|
||||
//$switch->debug = true;
|
||||
//$system->debug = true;
|
||||
$switch->echo_progress = true;
|
||||
$system->echo_progress = true;
|
||||
$system->install_phase_1();
|
||||
$switch->install_phase_1();
|
||||
$system->install_phase_2();
|
||||
$switch->install_phase_2();
|
||||
} catch(Exception $e){
|
||||
echo "</pre>\n";
|
||||
echo "<p><b>Failed to install</b><br/>" . $e->getMessage() . "</p>\n";
|
||||
try {
|
||||
require_once "resources/classes/install_fusionpbx.php";
|
||||
$system = new install_fusionpbx($global_settings);
|
||||
$system->remove_config();
|
||||
} catch(Exception $e){
|
||||
echo "<p><b>Failed to remove config:</b> " . $e->getMessage() . "</p>\n";
|
||||
}
|
||||
$install_ok = false;
|
||||
}
|
||||
restore_error_handler();
|
||||
if($install_ok){
|
||||
echo "</pre>\n";
|
||||
header("Location: ".PROJECT_PATH."/logout.php");
|
||||
$_SESSION['message'] = 'Install complete';
|
||||
} else {
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
echo " <div style='text-align:right'>\n";
|
||||
echo " <button type='button' class='btn' onclick=\"history.go(-1);\">".$text['button-back']."</button>\n";
|
||||
echo " <button type='button' class='btn' onclick=\"location.reload(true);\">".$text['button-execute']."</button>\n";
|
||||
echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "<p>Unkown install_step '$install_step'</p>\n";
|
||||
}
|
||||
|
||||
//initialize some defaults so we can be 'logged in'
|
||||
$_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
|
||||
ob_end_clean(); //clean the buffer
|
||||
|
||||
//set a default template
|
||||
$default_template = 'default';
|
||||
$_SESSION['domain']['template']['name'] = $default_template;
|
||||
$_SESSION['theme']['menu_brand_type']['text'] = "text";
|
||||
|
||||
//set the default template path
|
||||
$template_path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/themes/'.$default_template.'/template.php';
|
||||
|
||||
//get the content of the template
|
||||
$template_content = file_get_contents($template_path);
|
||||
|
||||
//replace the variables in the template
|
||||
$template_content = str_replace ("<!--{title}-->", $document['title'], $template_content); //<!--{title}--> defined in each individual page
|
||||
$template_content = str_replace ("<!--{head}-->", '', $template_content); //<!--{head}--> defined in each individual page
|
||||
//$template_content = str_replace ("<!--{menu}-->", $_SESSION["menu"], $template_content); //included in the theme
|
||||
$template_content = str_replace ("<!--{body}-->", $body, $template_content); //defined in /themes/default/template.php
|
||||
$template_content = str_replace ("<!--{project_path}-->", PROJECT_PATH, $template_content); //defined in /themes/default/template.php
|
||||
|
||||
//get the contents of the template and save it to the template variable
|
||||
ob_start();
|
||||
require_once "resources/classes/menu.php";
|
||||
eval('?>' . $template_content . '<?php ');
|
||||
$content = ob_get_contents(); //get the output from the buffer
|
||||
ob_end_clean(); //clean the buffer
|
||||
|
||||
//send the content to the browser and then clear the variable
|
||||
echo $content;
|
||||
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2016
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
//add the required includes
|
||||
require_once "root.php";
|
||||
require_once "resources/functions.php";
|
||||
require_once "resources/classes/text.php";
|
||||
|
||||
//initialize variables we are going to use
|
||||
$event_host = '';
|
||||
$event_port = '';
|
||||
$event_password = '';
|
||||
$install_language = 'en-us';
|
||||
$admin_username = '';
|
||||
$admin_password = '';
|
||||
$install_default_country = 'US';
|
||||
$install_template_name = '';
|
||||
$domain_name = '';
|
||||
$db_type = '';
|
||||
$db_path = '';
|
||||
$db_host = '';
|
||||
$db_port = '';
|
||||
$db_name = '';
|
||||
$db_username = '';
|
||||
$db_password = '';
|
||||
$db_create = '';
|
||||
$db_create_username = '';
|
||||
$db_create_password = '';
|
||||
|
||||
//detect the iso country code from the locale
|
||||
//$locale = Locale::getDefault();
|
||||
$timezone = 'UTC';
|
||||
if (is_link('/etc/localtime')) {
|
||||
// Mac OS X (and older Linuxes)
|
||||
// /etc/localtime is a symlink to the
|
||||
// timezone in /usr/share/zoneinfo.
|
||||
$filename = readlink('/etc/localtime');
|
||||
if (strpos($filename, '/usr/share/zoneinfo/') === 0) {
|
||||
$timezone = substr($filename, 20);
|
||||
}
|
||||
} elseif (file_exists('/etc/timezone')) {
|
||||
// Ubuntu / Debian.
|
||||
$data = file_get_contents('/etc/timezone');
|
||||
if ($data) {
|
||||
$timezone = rtrim($data);
|
||||
}
|
||||
} elseif (file_exists('/etc/sysconfig/clock')) {
|
||||
// RHEL / CentOS
|
||||
$data = parse_ini_file('/etc/sysconfig/clock');
|
||||
if (!empty($data['ZONE'])) {
|
||||
$timezone = $data['ZONE'];
|
||||
}
|
||||
}
|
||||
|
||||
//set the time zone
|
||||
date_default_timezone_set($timezone);
|
||||
|
||||
//if the config.php exists deny access to install.php
|
||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/resources/config.php")) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
} elseif (file_exists("/etc/fusionpbx/config.php")) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
} elseif (file_exists("/usr/local/etc/fusionpbx/config.php")) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//intialize variables
|
||||
$install_step = '';
|
||||
$return_install_step = '';
|
||||
|
||||
//process the the HTTP POST
|
||||
if (count($_POST) > 0) {
|
||||
$install_language = check_str($_POST["install_language"]);
|
||||
$install_step = check_str($_POST["install_step"]);
|
||||
$return_install_step = check_str($_POST["return_install_step"]);
|
||||
if(isset($_POST["event_host"])){
|
||||
$event_host = check_str($_POST["event_host"]);
|
||||
$event_port = check_str($_POST["event_port"]);
|
||||
$event_password = check_str($_POST["event_password"]);
|
||||
}
|
||||
if(isset($_POST["db_type"])){
|
||||
$db_type = $_POST["db_type"];
|
||||
$admin_username = $_POST["admin_username"];
|
||||
$admin_password = $_POST["admin_password"];
|
||||
$install_default_country = $_POST["install_default_country"];
|
||||
$install_template_name = $_POST["install_template_name"];
|
||||
$domain_name = $_POST["domain_name"];
|
||||
}
|
||||
}
|
||||
|
||||
//set the install step if it is not set
|
||||
if(!$install_step) { $install_step = 'select_language'; }
|
||||
|
||||
//set the language for the install
|
||||
$_SESSION['domain']['language']['code'] = $install_language;
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//set a default enviroment if first_time
|
||||
//initialize some varibles to cut down on warnings
|
||||
$_SESSION['message'] = '';
|
||||
$v_link_label_play = '';
|
||||
$v_link_label_pause = '';
|
||||
$default_login = 0;
|
||||
$onload = '';
|
||||
|
||||
//buffer the content
|
||||
ob_end_clean(); //clean the buffer
|
||||
ob_start();
|
||||
|
||||
$messages = array();
|
||||
if (!extension_loaded('PDO')) {
|
||||
$messages[] = "<b>PHP PDO was not detected</b>. Please install it before proceeding";
|
||||
}
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
$msg = '';
|
||||
//make sure the includes directory is writable so the config.php file can be written.
|
||||
if (!is_writable($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/pdo.php")) {
|
||||
$messages[] = "<b>Write access to ".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."</b> and its sub-directories are required during the install.";
|
||||
}
|
||||
//test for selinux
|
||||
if (file_exists('/usr/sbin/getenforce')) {
|
||||
$enforcing;
|
||||
exec('getenforce', $enforcing);
|
||||
if($enforcing[0] == 'Enforcing'){
|
||||
$messages[] = "<b>SELinux is enabled and enforcing</b> you must have a policy installed to let the webserver connect to the switch event socket<br/>".
|
||||
"<sm>You can use the following to find what ports are allowed<pre>semanage port -l | grep '^http_port_t'</pre></sm>";
|
||||
}
|
||||
}
|
||||
//test for windows and non sqlite
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' and strlen($db_type) > 0 and $db_type !='sqlite') {
|
||||
$messages[] = "<b>Windows requires a system DSN ODBC connection</b> this must be configured.";
|
||||
}
|
||||
|
||||
//action code
|
||||
if($return_install_step == 'config_detail'){
|
||||
//check for all required data
|
||||
$existing_errors = count($messages);
|
||||
if (strlen($admin_username) == 0) { $messages[] = "Please provide the Admin Username"; }
|
||||
if (strlen($admin_password) == 0) { $messages[] = "Please provide the Admin Password"; }
|
||||
elseif (strlen($admin_password) < 5) { $messages[] = "Please provide an Admin Password that is 5 or more characters.<br>\n"; }
|
||||
if ( count($messages) > $existing_errors) { $install_step = 'config_detail'; }
|
||||
}
|
||||
|
||||
if($install_step =='execute') {
|
||||
//set the max execution time to 1 hour
|
||||
ini_set('max_execution_time',3600);
|
||||
}
|
||||
|
||||
//display messages
|
||||
if (count($messages)>0) {
|
||||
echo "<br />\n";
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='75%'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<th align='left'>Messages</th>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td class='row_style1'><strong><ul>\n";
|
||||
foreach ($messages as $message){
|
||||
echo "<li>$message</li>\n";
|
||||
}
|
||||
echo "</ul></strong></td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
//includes and title
|
||||
$document['title'] = $text['title-install'];
|
||||
|
||||
//view code
|
||||
if($install_step == 'select_language'){
|
||||
echo " <form method='post' name='frm' action=''>\n";
|
||||
include "resources/page_parts/install_select_language.php";
|
||||
echo " <input type='hidden' name='return_install_step' value='select_language'/>\n";
|
||||
echo " <input type='hidden' name='install_step' value='detect_config'/>\n";
|
||||
echo "</form>\n";
|
||||
} elseif($install_step == 'detect_config'){
|
||||
if(!($event_host == '' || $event_host == 'localhost' || $event_host == '::1' || $event_host == '127.0.0.1' )){
|
||||
echo "<p><b>Warning</b> you have choosen a value other than localhost for event_host, this is unsoported at present</p>\n";
|
||||
}
|
||||
//if($detect_ok){
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
include "resources/page_parts/install_event_socket.php";
|
||||
echo " <input type='hidden' name='install_language' value='".$_SESSION['domain']['language']['code']."'/>\n";
|
||||
echo " <input type='hidden' name='return_install_step' value='detect_config'/>\n";
|
||||
echo " <input type='hidden' name='install_step' value='config_detail'/>\n";
|
||||
echo " <input type='hidden' name='event_host' value='$event_host'/>\n";
|
||||
echo " <input type='hidden' name='event_port' value='$event_port'/>\n";
|
||||
echo " <input type='hidden' name='event_password' value='$event_password'/>\n";
|
||||
//echo " <div style='text-align:right'>\n";
|
||||
//echo " <button type='button' class='btn' onclick=\"history.go(-1);\">".$text['button-back']."</button>\n";
|
||||
//echo " <button type='submit' class='btn' id='next'>".$text['button-next']."</button>\n";
|
||||
//echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
//} else {
|
||||
// echo "<form method='post' name='frm' action=''>\n";
|
||||
// echo " <div style='text-align:right'>\n";
|
||||
// echo " <button type='button' class='btn' onclick=\"history.go(-1);\">".$text['button-back']."</button>\n";
|
||||
// echo " </div>\n";
|
||||
// echo "</form>\n";
|
||||
//}
|
||||
}
|
||||
elseif($install_step == 'config_detail'){
|
||||
//get the domain
|
||||
if(!$domain_name){
|
||||
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
|
||||
$domain_name = $domain_array[0];
|
||||
}
|
||||
include "resources/page_parts/install_config_detail.php";
|
||||
}
|
||||
elseif($install_step == 'config_database'){
|
||||
include "resources/page_parts/install_config_database.php";
|
||||
}
|
||||
elseif($install_step == 'execute'){
|
||||
echo "<p><b>".$text['header-installing']."</b></p>\n";
|
||||
//$protocol = 'http';
|
||||
//if($_SERVER['HTTPS']) { $protocol = 'https'; }
|
||||
//echo "<iframe src='$protocol://$domain_name/core/install/install_first_time.php' style='border:solid 1px #000;width:100%;height:auto'></iframe>";
|
||||
require_once "core/install/resources/classes/detect_switch.php";
|
||||
$detect_switch = new detect_switch($event_host, $event_port, $event_password);
|
||||
$detect_ok = true;
|
||||
try {
|
||||
$detect_switch->detect();
|
||||
} catch(Exception $e){
|
||||
//echo "<p>Failed to detect configuration detect_switch reported: " . $e->getMessage() . "</p>\n";
|
||||
//$detect_ok = false;
|
||||
}
|
||||
if($detect_ok){
|
||||
$install_ok = true;
|
||||
echo "<pre style='text-align:left;'>\n";
|
||||
function error_handler($err_severity, $errstr, $errfile, $errline ) {
|
||||
if (0 === error_reporting()) { return false;}
|
||||
switch($err_severity)
|
||||
{
|
||||
case E_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_PARSE: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_CORE_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_COMPILE_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_USER_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_STRICT: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
case E_RECOVERABLE_ERROR: throw new Exception ($errstr . " in $errfile line: $errline");
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
#set_error_handler("error_handler");
|
||||
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"); }
|
||||
require_once "resources/classes/install_fusionpbx.php";
|
||||
$system = new install_fusionpbx($global_settings);
|
||||
$system->admin_username = $admin_username;
|
||||
$system->admin_password = $admin_password;
|
||||
$system->default_country = $install_default_country;
|
||||
$system->install_language = $install_language;
|
||||
$system->template_name = $install_template_name;
|
||||
|
||||
require_once "resources/classes/install_switch.php";
|
||||
$switch = new install_switch($global_settings);
|
||||
//$switch->debug = true;
|
||||
//$system->debug = true;
|
||||
$switch->echo_progress = true;
|
||||
$system->echo_progress = true;
|
||||
$system->install_phase_1();
|
||||
$switch->install_phase_1();
|
||||
$system->install_phase_2();
|
||||
$switch->install_phase_2();
|
||||
} catch(Exception $e){
|
||||
echo "</pre>\n";
|
||||
echo "<p><b>Failed to install</b><br/>" . $e->getMessage() . "</p>\n";
|
||||
try {
|
||||
require_once "resources/classes/install_fusionpbx.php";
|
||||
$system = new install_fusionpbx($global_settings);
|
||||
$system->remove_config();
|
||||
} catch(Exception $e){
|
||||
echo "<p><b>Failed to remove config:</b> " . $e->getMessage() . "</p>\n";
|
||||
}
|
||||
$install_ok = false;
|
||||
}
|
||||
restore_error_handler();
|
||||
if($install_ok){
|
||||
echo "</pre>\n";
|
||||
header("Location: ".PROJECT_PATH."/logout.php");
|
||||
$_SESSION['message'] = 'Install complete';
|
||||
} else {
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
echo " <div style='text-align:right'>\n";
|
||||
echo " <button type='button' class='btn' onclick=\"history.go(-1);\">".$text['button-back']."</button>\n";
|
||||
echo " <button type='button' class='btn' onclick=\"location.reload(true);\">".$text['button-execute']."</button>\n";
|
||||
echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
echo "<p>Unkown install_step '$install_step'</p>\n";
|
||||
}
|
||||
|
||||
//initialize some defaults so we can be 'logged in'
|
||||
$_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
|
||||
ob_end_clean(); //clean the buffer
|
||||
|
||||
//set a default template
|
||||
$default_template = 'default';
|
||||
$_SESSION['domain']['template']['name'] = $default_template;
|
||||
$_SESSION['theme']['menu_brand_type']['text'] = "text";
|
||||
|
||||
//set the default template path
|
||||
$template_path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/themes/'.$default_template.'/template.php';
|
||||
|
||||
//get the content of the template
|
||||
$template_content = file_get_contents($template_path);
|
||||
|
||||
//replace the variables in the template
|
||||
$template_content = str_replace ("<!--{title}-->", $document['title'], $template_content); //<!--{title}--> defined in each individual page
|
||||
$template_content = str_replace ("<!--{head}-->", '', $template_content); //<!--{head}--> defined in each individual page
|
||||
//$template_content = str_replace ("<!--{menu}-->", $_SESSION["menu"], $template_content); //included in the theme
|
||||
$template_content = str_replace ("<!--{body}-->", $body, $template_content); //defined in /themes/default/template.php
|
||||
$template_content = str_replace ("<!--{project_path}-->", PROJECT_PATH, $template_content); //defined in /themes/default/template.php
|
||||
|
||||
//get the contents of the template and save it to the template variable
|
||||
ob_start();
|
||||
require_once "resources/classes/menu.php";
|
||||
eval('?>' . $template_content . '<?php ');
|
||||
$content = ob_get_contents(); //get the output from the buffer
|
||||
ob_end_clean(); //clean the buffer
|
||||
|
||||
//send the content to the browser and then clear the variable
|
||||
echo $content;
|
||||
|
||||
?>
|
||||
@@ -1,170 +1,170 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Copyright (C) 2010-2015
|
||||
All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Matthew Vale <github@mafoo.org>
|
||||
|
||||
*/
|
||||
require_once "root.php";
|
||||
require_once "resources/classes/event_socket.php";
|
||||
|
||||
//define the install class
|
||||
class detect_switch {
|
||||
|
||||
// cached data
|
||||
protected $_dirs;
|
||||
protected $_vdirs;
|
||||
public function get_dirs() { return $this->_dirs; }
|
||||
public function get_vdirs() { return $this->_vdirs; }
|
||||
|
||||
// version information
|
||||
protected $_major;
|
||||
protected $_minor;
|
||||
protected $_build;
|
||||
protected $_bits;
|
||||
public function major() { return $this->_major; }
|
||||
public function minor() { return $this->_minor; }
|
||||
public function build() { return $this->_build; }
|
||||
public function bits() { return $this->_bits; }
|
||||
public function version() { return $this->_major.".".$this->_minor.".".$this->_build." (".$this->_bits.")"; }
|
||||
|
||||
// dirs - detected by from the switch
|
||||
protected $_base_dir = '';
|
||||
protected $_cache_dir = '';
|
||||
protected $_conf_dir = '';
|
||||
protected $_db_dir = '';
|
||||
protected $_grammar_dir = '';
|
||||
protected $_htdocs_dir = '';
|
||||
protected $_log_dir = '';
|
||||
protected $_mod_dir = '';
|
||||
protected $_recordings_dir = '';
|
||||
protected $_run_dir = '';
|
||||
protected $_script_dir = '';
|
||||
protected $_sounds_dir = '';
|
||||
protected $_storage_dir = '';
|
||||
protected $_temp_dir = '';
|
||||
public function base_dir() { return $this->_base_dir; }
|
||||
public function cache_dir() { return $this->_cache_dir; }
|
||||
public function conf_dir() { return $this->_conf_dir; }
|
||||
public function db_dir() { return $this->_db_dir; }
|
||||
public function grammar_dir() { return $this->_grammar_dir; }
|
||||
public function htdocs_dir() { return $this->_htdocs_dir; }
|
||||
public function log_dir() { return $this->_log_dir; }
|
||||
public function mod_dir() { return $this->_mod_dir; }
|
||||
public function recordings_dir() { return $this->_recordings_dir; }
|
||||
public function run_dir() { return $this->_run_dir; }
|
||||
public function script_dir() { return $this->_script_dir; }
|
||||
public function sounds_dir() { return $this->_sounds_dir; }
|
||||
public function storage_dir() { return $this->_storage_dir; }
|
||||
public function temp_dir() { return $this->_temp_dir; }
|
||||
|
||||
// virtual dirs - assumed based on the detected dirs
|
||||
protected $_voicemail_vdir = '';
|
||||
protected $_phrases_vdir = '';
|
||||
protected $_extensions_vdir = '';
|
||||
protected $_sip_profiles_vdir = '';
|
||||
protected $_dialplan_vdir = '';
|
||||
protected $_backup_vdir = '';
|
||||
public function voicemail_vdir() { return $this->_voicemail_vdir; }
|
||||
public function phrases_vdir() { return $this->_phrases_vdir; }
|
||||
public function extensions_vdir() { return $this->_extensions_vdir; }
|
||||
public function sip_profiles_vdir() { return $this->_sip_profiles_vdir; }
|
||||
public function dialplan_vdir() { return $this->_dialplan_vdir; }
|
||||
public function backup_vdir() { return $this->_backup_vdir; }
|
||||
|
||||
// event socket
|
||||
public $event_host = 'localhost';
|
||||
public $event_port = '8021';
|
||||
public $event_password = 'ClueCon';
|
||||
protected $event_socket;
|
||||
|
||||
public function __construct($event_host, $event_port, $event_password) {
|
||||
//do not take these settings from session as they be detecting a new switch
|
||||
if($event_host){ $this->event_host = $event_host; }
|
||||
if($event_port){ $this->event_port = $event_port; }
|
||||
if($event_password){ $this->event_password = $event_password; }
|
||||
$this->connect_event_socket();
|
||||
if(!$this->event_socket){
|
||||
$this->detect_event_socket();
|
||||
}
|
||||
$this->_dirs = preg_grep ('/.*_dir$/', get_class_methods('detect_switch') );
|
||||
sort( $this->_dirs );
|
||||
$this->_vdirs = preg_grep ('/.*_vdir$/', get_class_methods('detect_switch') );
|
||||
sort( $this->_vdirs );
|
||||
}
|
||||
|
||||
protected function detect_event_socket() {
|
||||
//perform searches for user's config here
|
||||
}
|
||||
|
||||
public function detect() {
|
||||
$this->connect_event_socket();
|
||||
if(!$this->event_socket){
|
||||
throw new Exception('Failed to use event socket');
|
||||
}
|
||||
$FS_Version = $this->event_socket_request('api version');
|
||||
preg_match("/FreeSWITCH Version (\d+)\.(\d+)\.(\d+(?:\.\d+)?).*\(.*?(\d+\w+)\s*\)/", $FS_Version, $matches);
|
||||
$this->_major = $matches[1];
|
||||
$this->_minor = $matches[2];
|
||||
$this->_build = $matches[3];
|
||||
$this->_bits = $matches[4];
|
||||
$FS_Vars = $this->event_socket_request('api global_getvar');
|
||||
foreach (explode("\n",$FS_Vars) as $FS_Var){
|
||||
preg_match("/(\w+_dir)=(.*)/", $FS_Var, $matches);
|
||||
if(count($matches) > 0 and property_exists($this, "_" . $matches[1])){
|
||||
$field = "_" . $matches[1];
|
||||
$this->$field = normalize_path($matches[2]);
|
||||
}
|
||||
}
|
||||
$this->_voicemail_vdir = normalize_path($this->_storage_dir . DIRECTORY_SEPARATOR . "voicemail");
|
||||
$this->_phrases_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "lang");
|
||||
$this->_extensions_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "directory");
|
||||
$this->_sip_profiles_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "sip_profiles");
|
||||
$this->_dialplan_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "dialplan");
|
||||
$this->_backup_vdir = normalize_path(sys_get_temp_dir());
|
||||
}
|
||||
|
||||
protected function connect_event_socket(){
|
||||
$esl = new event_socket;
|
||||
if ($esl->connect($this->event_host, $this->event_port, $this->event_password)) {
|
||||
$this->event_socket = $esl->reset_fp();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function event_socket_request($cmd) {
|
||||
$esl = new event_socket($this->event_socket);
|
||||
$result = $esl->request($cmd);
|
||||
$esl->reset_fp();
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function restart_switch() {
|
||||
$this->connect_event_socket();
|
||||
if(!$this->event_socket){
|
||||
throw new Exception('Failed to use event socket');
|
||||
}
|
||||
$this->event_socket_request('api fsctl shutdown restart elegant');
|
||||
}
|
||||
}
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Copyright (C) 2010-2015
|
||||
All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Matthew Vale <github@mafoo.org>
|
||||
|
||||
*/
|
||||
require_once "root.php";
|
||||
require_once "resources/classes/event_socket.php";
|
||||
|
||||
//define the install class
|
||||
class detect_switch {
|
||||
|
||||
// cached data
|
||||
protected $_dirs;
|
||||
protected $_vdirs;
|
||||
public function get_dirs() { return $this->_dirs; }
|
||||
public function get_vdirs() { return $this->_vdirs; }
|
||||
|
||||
// version information
|
||||
protected $_major;
|
||||
protected $_minor;
|
||||
protected $_build;
|
||||
protected $_bits;
|
||||
public function major() { return $this->_major; }
|
||||
public function minor() { return $this->_minor; }
|
||||
public function build() { return $this->_build; }
|
||||
public function bits() { return $this->_bits; }
|
||||
public function version() { return $this->_major.".".$this->_minor.".".$this->_build." (".$this->_bits.")"; }
|
||||
|
||||
// dirs - detected by from the switch
|
||||
protected $_base_dir = '';
|
||||
protected $_cache_dir = '';
|
||||
protected $_conf_dir = '';
|
||||
protected $_db_dir = '';
|
||||
protected $_grammar_dir = '';
|
||||
protected $_htdocs_dir = '';
|
||||
protected $_log_dir = '';
|
||||
protected $_mod_dir = '';
|
||||
protected $_recordings_dir = '';
|
||||
protected $_run_dir = '';
|
||||
protected $_script_dir = '';
|
||||
protected $_sounds_dir = '';
|
||||
protected $_storage_dir = '';
|
||||
protected $_temp_dir = '';
|
||||
public function base_dir() { return $this->_base_dir; }
|
||||
public function cache_dir() { return $this->_cache_dir; }
|
||||
public function conf_dir() { return $this->_conf_dir; }
|
||||
public function db_dir() { return $this->_db_dir; }
|
||||
public function grammar_dir() { return $this->_grammar_dir; }
|
||||
public function htdocs_dir() { return $this->_htdocs_dir; }
|
||||
public function log_dir() { return $this->_log_dir; }
|
||||
public function mod_dir() { return $this->_mod_dir; }
|
||||
public function recordings_dir() { return $this->_recordings_dir; }
|
||||
public function run_dir() { return $this->_run_dir; }
|
||||
public function script_dir() { return $this->_script_dir; }
|
||||
public function sounds_dir() { return $this->_sounds_dir; }
|
||||
public function storage_dir() { return $this->_storage_dir; }
|
||||
public function temp_dir() { return $this->_temp_dir; }
|
||||
|
||||
// virtual dirs - assumed based on the detected dirs
|
||||
protected $_voicemail_vdir = '';
|
||||
protected $_phrases_vdir = '';
|
||||
protected $_extensions_vdir = '';
|
||||
protected $_sip_profiles_vdir = '';
|
||||
protected $_dialplan_vdir = '';
|
||||
protected $_backup_vdir = '';
|
||||
public function voicemail_vdir() { return $this->_voicemail_vdir; }
|
||||
public function phrases_vdir() { return $this->_phrases_vdir; }
|
||||
public function extensions_vdir() { return $this->_extensions_vdir; }
|
||||
public function sip_profiles_vdir() { return $this->_sip_profiles_vdir; }
|
||||
public function dialplan_vdir() { return $this->_dialplan_vdir; }
|
||||
public function backup_vdir() { return $this->_backup_vdir; }
|
||||
|
||||
// event socket
|
||||
public $event_host = 'localhost';
|
||||
public $event_port = '8021';
|
||||
public $event_password = 'ClueCon';
|
||||
protected $event_socket;
|
||||
|
||||
public function __construct($event_host, $event_port, $event_password) {
|
||||
//do not take these settings from session as they be detecting a new switch
|
||||
if($event_host){ $this->event_host = $event_host; }
|
||||
if($event_port){ $this->event_port = $event_port; }
|
||||
if($event_password){ $this->event_password = $event_password; }
|
||||
$this->connect_event_socket();
|
||||
if(!$this->event_socket){
|
||||
$this->detect_event_socket();
|
||||
}
|
||||
$this->_dirs = preg_grep ('/.*_dir$/', get_class_methods('detect_switch') );
|
||||
sort( $this->_dirs );
|
||||
$this->_vdirs = preg_grep ('/.*_vdir$/', get_class_methods('detect_switch') );
|
||||
sort( $this->_vdirs );
|
||||
}
|
||||
|
||||
protected function detect_event_socket() {
|
||||
//perform searches for user's config here
|
||||
}
|
||||
|
||||
public function detect() {
|
||||
$this->connect_event_socket();
|
||||
if(!$this->event_socket){
|
||||
throw new Exception('Failed to use event socket');
|
||||
}
|
||||
$FS_Version = $this->event_socket_request('api version');
|
||||
preg_match("/FreeSWITCH Version (\d+)\.(\d+)\.(\d+(?:\.\d+)?).*\(.*?(\d+\w+)\s*\)/", $FS_Version, $matches);
|
||||
$this->_major = $matches[1];
|
||||
$this->_minor = $matches[2];
|
||||
$this->_build = $matches[3];
|
||||
$this->_bits = $matches[4];
|
||||
$FS_Vars = $this->event_socket_request('api global_getvar');
|
||||
foreach (explode("\n",$FS_Vars) as $FS_Var){
|
||||
preg_match("/(\w+_dir)=(.*)/", $FS_Var, $matches);
|
||||
if(count($matches) > 0 and property_exists($this, "_" . $matches[1])){
|
||||
$field = "_" . $matches[1];
|
||||
$this->$field = normalize_path($matches[2]);
|
||||
}
|
||||
}
|
||||
$this->_voicemail_vdir = normalize_path($this->_storage_dir . DIRECTORY_SEPARATOR . "voicemail");
|
||||
$this->_phrases_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "lang");
|
||||
$this->_extensions_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "directory");
|
||||
$this->_sip_profiles_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "sip_profiles");
|
||||
$this->_dialplan_vdir = normalize_path($this->_conf_dir . DIRECTORY_SEPARATOR . "dialplan");
|
||||
$this->_backup_vdir = normalize_path(sys_get_temp_dir());
|
||||
}
|
||||
|
||||
protected function connect_event_socket(){
|
||||
$esl = new event_socket;
|
||||
if ($esl->connect($this->event_host, $this->event_port, $this->event_password)) {
|
||||
$this->event_socket = $esl->reset_fp();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected function event_socket_request($cmd) {
|
||||
$esl = new event_socket($this->event_socket);
|
||||
$result = $esl->request($cmd);
|
||||
$esl->reset_fp();
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function restart_switch() {
|
||||
$this->connect_event_socket();
|
||||
if(!$this->event_socket){
|
||||
throw new Exception('Failed to use event socket');
|
||||
}
|
||||
$this->event_socket_request('api fsctl shutdown restart elegant');
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -1,214 +1,214 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Copyright (C) 2010-2015
|
||||
All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Matthew Vale <github@mafoo.org>
|
||||
|
||||
*/
|
||||
require_once "root.php";
|
||||
|
||||
//define the install class
|
||||
class global_settings {
|
||||
|
||||
// cached data
|
||||
protected $_switch_dirs;
|
||||
protected $_switch_vdirs;
|
||||
public function get_switch_dirs() { return $this->_switch_dirs; }
|
||||
public function get_switch_vdirs() { return $this->_switch_vdirs; }
|
||||
|
||||
// dirs - detected from the switch
|
||||
protected $_switch_base_dir = '';
|
||||
protected $_switch_cache_dir = '';
|
||||
protected $_switch_conf_dir = '';
|
||||
protected $_switch_db_dir = '';
|
||||
protected $_switch_grammar_dir = '';
|
||||
protected $_switch_htdocs_dir = '';
|
||||
protected $_switch_log_dir = '';
|
||||
protected $_switch_mod_dir = '';
|
||||
protected $_switch_recordings_dir = '';
|
||||
protected $_switch_run_dir = '';
|
||||
protected $_switch_script_dir = '';
|
||||
protected $_switch_sounds_dir = '';
|
||||
protected $_switch_storage_dir = '';
|
||||
protected $_switch_temp_dir = '';
|
||||
public function switch_base_dir() { return $this->_switch_base_dir; }
|
||||
public function switch_cache_dir() { return $this->_switch_cache_dir; }
|
||||
public function switch_conf_dir() { return $this->_switch_conf_dir; }
|
||||
public function switch_db_dir() { return $this->_switch_db_dir; }
|
||||
public function switch_grammar_dir() { return $this->_switch_grammar_dir; }
|
||||
public function switch_htdocs_dir() { return $this->_switch_htdocs_dir; }
|
||||
public function switch_log_dir() { return $this->_switch_log_dir; }
|
||||
public function switch_mod_dir() { return $this->_switch_mod_dir; }
|
||||
public function switch_recordings_dir() { return $this->_switch_recordings_dir; }
|
||||
public function switch_run_dir() { return $this->_switch_run_dir; }
|
||||
public function switch_script_dir() { return $this->_switch_script_dir; }
|
||||
public function switch_sounds_dir() { return $this->_switch_sounds_dir; }
|
||||
public function switch_storage_dir() { return $this->_switch_storage_dir; }
|
||||
public function switch_temp_dir() { return $this->_switch_temp_dir; }
|
||||
|
||||
// virtual dirs - assumed based on the detected dirs
|
||||
protected $_switch_voicemail_vdir = '';
|
||||
protected $_switch_phrases_vdir = '';
|
||||
protected $_switch_extensions_vdir = '';
|
||||
protected $_switch_sip_profiles_vdir = '';
|
||||
protected $_switch_dialplan_vdir = '';
|
||||
protected $_switch_backup_vdir = '';
|
||||
public function switch_voicemail_vdir() { return $this->_switch_voicemail_vdir; }
|
||||
public function switch_phrases_vdir() { return $this->_switch_phrases_vdir; }
|
||||
public function switch_extensions_vdir() { return $this->_switch_extensions_vdir; }
|
||||
public function switch_sip_profiles_vdir() { return $this->_switch_sip_profiles_vdir; }
|
||||
public function switch_dialplan_vdir() { return $this->_switch_dialplan_vdir; }
|
||||
public function switch_backup_vdir() { return $this->_switch_backup_vdir; }
|
||||
|
||||
// event socket
|
||||
protected $_switch_event_host;
|
||||
protected $_switch_event_port;
|
||||
protected $_switch_event_password;
|
||||
public function switch_event_host() { return $this->_switch_event_host; }
|
||||
public function switch_event_port() { return $this->_switch_event_port; }
|
||||
public function switch_event_password() { return $this->_switch_event_password; }
|
||||
|
||||
// database information
|
||||
protected $_db_type;
|
||||
protected $_db_path;
|
||||
protected $_db_host;
|
||||
protected $_db_port;
|
||||
protected $_db_name;
|
||||
protected $_db_username;
|
||||
protected $_db_password;
|
||||
protected $_db_create;
|
||||
protected $_db_create_username;
|
||||
protected $_db_create_password;
|
||||
public function db_type() { return $this->_db_type; }
|
||||
public function db_path() { return $this->_db_path; }
|
||||
public function db_host() { return $this->_db_host; }
|
||||
public function db_port() { return $this->_db_port; }
|
||||
public function db_name() { return $this->_db_name; }
|
||||
public function db_username() { return $this->_db_username; }
|
||||
public function db_password() { return $this->_db_password; }
|
||||
public function db_create() { return $this->_db_create; }
|
||||
public function db_create_username() { return $this->_db_create_username; }
|
||||
public function db_create_password() { return $this->_db_create_password; }
|
||||
|
||||
//misc information
|
||||
protected $_domain_uuid;
|
||||
protected $_domain_name;
|
||||
protected $_domain_count;
|
||||
public function domain_uuid() { return $this->_domain_uuid; }
|
||||
public function domain_name() { return $this->_domain_name; }
|
||||
public function domain_count() { return $this->_domain_count; }
|
||||
public function set_domain_uuid($domain_uuid) {
|
||||
$e = new Exception();
|
||||
$trace = $e->getTrace();
|
||||
if($trace[1]['function'] != 'create_domain'){
|
||||
throw new Exception('Only create_domain is allowed to update the domain_uuid');
|
||||
}
|
||||
$this->_domain_uuid = $domain_uuid;
|
||||
}
|
||||
|
||||
public function __construct($detect_switch = null, $domain_name = null, $domain_uuid = null) {
|
||||
$this->_switch_dirs = preg_grep ('/^switch_.*_dir$/', get_class_methods('global_settings') );
|
||||
sort( $this->_switch_dirs );
|
||||
$this->_switch_vdirs = preg_grep ('/^switch_.*_vdir$/', get_class_methods('global_settings') );
|
||||
sort( $this->_switch_vdirs );
|
||||
if(is_null($detect_switch)){
|
||||
//take settings from session
|
||||
foreach ($this->_switch_dirs as $dir){
|
||||
$category = 'switch';
|
||||
$session_var;
|
||||
preg_match( '/^switch_(.*)_dir$/', $dir, $session_var);
|
||||
$dir = "_$dir";
|
||||
if($session_var[1] == 'script'){ $session_var[1] = 'scripts'; }
|
||||
if($session_var[1] == 'temp'){ $category = 'server'; }
|
||||
$this->$dir = $_SESSION[$category][$session_var[1]]['dir'];
|
||||
}
|
||||
foreach ($this->_switch_vdirs as $vdir){
|
||||
$category = 'switch';
|
||||
$session_var;
|
||||
preg_match( '/^switch_(.*)_vdir$/', $vdir, $session_var);
|
||||
$vdir = "_$vdir";
|
||||
if($session_var[1] == 'backup'){ $category = 'server'; }
|
||||
$this->$vdir = $_SESSION[$category][$session_var[1]]['dir'];
|
||||
}
|
||||
$this->_switch_event_host = $_SESSION['event_socket_ip_address'];
|
||||
$this->_switch_event_port = $_SESSION['event_socket_port'];
|
||||
$this->_switch_event_password = $_SESSION['event_socket_password'];
|
||||
|
||||
// domain info
|
||||
$this->_domain_name = $_SESSION['domain_name'];
|
||||
$this->_domain_uuid = $_SESSION['domain_uuid'];
|
||||
|
||||
// collect misc info
|
||||
$this->_domain_count = count($_SESSION["domains"]);
|
||||
|
||||
// collect db_info
|
||||
global $db_type, $db_path, $db_host, $db_port, $db_name, $db_username, $db_password;
|
||||
$this->_db_type = $db_type;
|
||||
$this->_db_path = $db_path;
|
||||
$this->_db_host = $db_host;
|
||||
$this->_db_port = $db_port;
|
||||
$this->_db_name = $db_name;
|
||||
$this->_db_username = $db_username;
|
||||
$this->_db_password = $db_password;
|
||||
|
||||
}elseif(!is_a($detect_switch, 'detect_switch')){
|
||||
throw new Exception('The parameter $detect_switch must be a detect_switch object (or a subclass of)');
|
||||
|
||||
}else{
|
||||
//copy from detect_switch
|
||||
foreach($detect_switch->get_dirs() as $dir){
|
||||
$t_dir = "_switch_$dir";
|
||||
$this->$t_dir = $detect_switch->$dir();
|
||||
}
|
||||
foreach($detect_switch->get_vdirs() as $vdir){
|
||||
$t_vdir = "_switch_$vdir";
|
||||
$this->$t_vdir = $detect_switch->$vdir();
|
||||
}
|
||||
$this->_switch_event_host = $detect_switch->event_host;
|
||||
$this->_switch_event_port = $detect_switch->event_port;
|
||||
$this->_switch_event_password = $detect_switch->event_password;
|
||||
|
||||
//copy from _POST
|
||||
foreach($_POST as $key=>$value){
|
||||
if(substr($key,0,3) == "db_"){
|
||||
$o_key = "_$key";
|
||||
$this->$o_key = $value;
|
||||
}
|
||||
}
|
||||
if($this->_db_create and strlen($this->_db_create_username) == 0)
|
||||
{
|
||||
$this->_db_create_username = $this->_db_username;
|
||||
$this->_db_create_password = $this->_db_password;
|
||||
}
|
||||
if (strlen($this->_db_port) == 0) { $this->_db_port = "5432"; }
|
||||
|
||||
// domain info
|
||||
if(strlen($domain_uuid) == 0){ $domain_uuid = uuid(); }
|
||||
$this->_domain_name = $domain_name;
|
||||
$this->_domain_uuid = $domain_uuid;
|
||||
|
||||
//collect misc info
|
||||
$this->_domain_count = 1; //assumed to be one
|
||||
}
|
||||
}
|
||||
}
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Copyright (C) 2010-2015
|
||||
All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Matthew Vale <github@mafoo.org>
|
||||
|
||||
*/
|
||||
require_once "root.php";
|
||||
|
||||
//define the install class
|
||||
class global_settings {
|
||||
|
||||
// cached data
|
||||
protected $_switch_dirs;
|
||||
protected $_switch_vdirs;
|
||||
public function get_switch_dirs() { return $this->_switch_dirs; }
|
||||
public function get_switch_vdirs() { return $this->_switch_vdirs; }
|
||||
|
||||
// dirs - detected from the switch
|
||||
protected $_switch_base_dir = '';
|
||||
protected $_switch_cache_dir = '';
|
||||
protected $_switch_conf_dir = '';
|
||||
protected $_switch_db_dir = '';
|
||||
protected $_switch_grammar_dir = '';
|
||||
protected $_switch_htdocs_dir = '';
|
||||
protected $_switch_log_dir = '';
|
||||
protected $_switch_mod_dir = '';
|
||||
protected $_switch_recordings_dir = '';
|
||||
protected $_switch_run_dir = '';
|
||||
protected $_switch_script_dir = '';
|
||||
protected $_switch_sounds_dir = '';
|
||||
protected $_switch_storage_dir = '';
|
||||
protected $_switch_temp_dir = '';
|
||||
public function switch_base_dir() { return $this->_switch_base_dir; }
|
||||
public function switch_cache_dir() { return $this->_switch_cache_dir; }
|
||||
public function switch_conf_dir() { return $this->_switch_conf_dir; }
|
||||
public function switch_db_dir() { return $this->_switch_db_dir; }
|
||||
public function switch_grammar_dir() { return $this->_switch_grammar_dir; }
|
||||
public function switch_htdocs_dir() { return $this->_switch_htdocs_dir; }
|
||||
public function switch_log_dir() { return $this->_switch_log_dir; }
|
||||
public function switch_mod_dir() { return $this->_switch_mod_dir; }
|
||||
public function switch_recordings_dir() { return $this->_switch_recordings_dir; }
|
||||
public function switch_run_dir() { return $this->_switch_run_dir; }
|
||||
public function switch_script_dir() { return $this->_switch_script_dir; }
|
||||
public function switch_sounds_dir() { return $this->_switch_sounds_dir; }
|
||||
public function switch_storage_dir() { return $this->_switch_storage_dir; }
|
||||
public function switch_temp_dir() { return $this->_switch_temp_dir; }
|
||||
|
||||
// virtual dirs - assumed based on the detected dirs
|
||||
protected $_switch_voicemail_vdir = '';
|
||||
protected $_switch_phrases_vdir = '';
|
||||
protected $_switch_extensions_vdir = '';
|
||||
protected $_switch_sip_profiles_vdir = '';
|
||||
protected $_switch_dialplan_vdir = '';
|
||||
protected $_switch_backup_vdir = '';
|
||||
public function switch_voicemail_vdir() { return $this->_switch_voicemail_vdir; }
|
||||
public function switch_phrases_vdir() { return $this->_switch_phrases_vdir; }
|
||||
public function switch_extensions_vdir() { return $this->_switch_extensions_vdir; }
|
||||
public function switch_sip_profiles_vdir() { return $this->_switch_sip_profiles_vdir; }
|
||||
public function switch_dialplan_vdir() { return $this->_switch_dialplan_vdir; }
|
||||
public function switch_backup_vdir() { return $this->_switch_backup_vdir; }
|
||||
|
||||
// event socket
|
||||
protected $_switch_event_host;
|
||||
protected $_switch_event_port;
|
||||
protected $_switch_event_password;
|
||||
public function switch_event_host() { return $this->_switch_event_host; }
|
||||
public function switch_event_port() { return $this->_switch_event_port; }
|
||||
public function switch_event_password() { return $this->_switch_event_password; }
|
||||
|
||||
// database information
|
||||
protected $_db_type;
|
||||
protected $_db_path;
|
||||
protected $_db_host;
|
||||
protected $_db_port;
|
||||
protected $_db_name;
|
||||
protected $_db_username;
|
||||
protected $_db_password;
|
||||
protected $_db_create;
|
||||
protected $_db_create_username;
|
||||
protected $_db_create_password;
|
||||
public function db_type() { return $this->_db_type; }
|
||||
public function db_path() { return $this->_db_path; }
|
||||
public function db_host() { return $this->_db_host; }
|
||||
public function db_port() { return $this->_db_port; }
|
||||
public function db_name() { return $this->_db_name; }
|
||||
public function db_username() { return $this->_db_username; }
|
||||
public function db_password() { return $this->_db_password; }
|
||||
public function db_create() { return $this->_db_create; }
|
||||
public function db_create_username() { return $this->_db_create_username; }
|
||||
public function db_create_password() { return $this->_db_create_password; }
|
||||
|
||||
//misc information
|
||||
protected $_domain_uuid;
|
||||
protected $_domain_name;
|
||||
protected $_domain_count;
|
||||
public function domain_uuid() { return $this->_domain_uuid; }
|
||||
public function domain_name() { return $this->_domain_name; }
|
||||
public function domain_count() { return $this->_domain_count; }
|
||||
public function set_domain_uuid($domain_uuid) {
|
||||
$e = new Exception();
|
||||
$trace = $e->getTrace();
|
||||
if($trace[1]['function'] != 'create_domain'){
|
||||
throw new Exception('Only create_domain is allowed to update the domain_uuid');
|
||||
}
|
||||
$this->_domain_uuid = $domain_uuid;
|
||||
}
|
||||
|
||||
public function __construct($detect_switch = null, $domain_name = null, $domain_uuid = null) {
|
||||
$this->_switch_dirs = preg_grep ('/^switch_.*_dir$/', get_class_methods('global_settings') );
|
||||
sort( $this->_switch_dirs );
|
||||
$this->_switch_vdirs = preg_grep ('/^switch_.*_vdir$/', get_class_methods('global_settings') );
|
||||
sort( $this->_switch_vdirs );
|
||||
if(is_null($detect_switch)){
|
||||
//take settings from session
|
||||
foreach ($this->_switch_dirs as $dir){
|
||||
$category = 'switch';
|
||||
$session_var;
|
||||
preg_match( '/^switch_(.*)_dir$/', $dir, $session_var);
|
||||
$dir = "_$dir";
|
||||
if($session_var[1] == 'script'){ $session_var[1] = 'scripts'; }
|
||||
if($session_var[1] == 'temp'){ $category = 'server'; }
|
||||
$this->$dir = $_SESSION[$category][$session_var[1]]['dir'];
|
||||
}
|
||||
foreach ($this->_switch_vdirs as $vdir){
|
||||
$category = 'switch';
|
||||
$session_var;
|
||||
preg_match( '/^switch_(.*)_vdir$/', $vdir, $session_var);
|
||||
$vdir = "_$vdir";
|
||||
if($session_var[1] == 'backup'){ $category = 'server'; }
|
||||
$this->$vdir = $_SESSION[$category][$session_var[1]]['dir'];
|
||||
}
|
||||
$this->_switch_event_host = $_SESSION['event_socket_ip_address'];
|
||||
$this->_switch_event_port = $_SESSION['event_socket_port'];
|
||||
$this->_switch_event_password = $_SESSION['event_socket_password'];
|
||||
|
||||
// domain info
|
||||
$this->_domain_name = $_SESSION['domain_name'];
|
||||
$this->_domain_uuid = $_SESSION['domain_uuid'];
|
||||
|
||||
// collect misc info
|
||||
$this->_domain_count = count($_SESSION["domains"]);
|
||||
|
||||
// collect db_info
|
||||
global $db_type, $db_path, $db_host, $db_port, $db_name, $db_username, $db_password;
|
||||
$this->_db_type = $db_type;
|
||||
$this->_db_path = $db_path;
|
||||
$this->_db_host = $db_host;
|
||||
$this->_db_port = $db_port;
|
||||
$this->_db_name = $db_name;
|
||||
$this->_db_username = $db_username;
|
||||
$this->_db_password = $db_password;
|
||||
|
||||
}elseif(!is_a($detect_switch, 'detect_switch')){
|
||||
throw new Exception('The parameter $detect_switch must be a detect_switch object (or a subclass of)');
|
||||
|
||||
}else{
|
||||
//copy from detect_switch
|
||||
foreach($detect_switch->get_dirs() as $dir){
|
||||
$t_dir = "_switch_$dir";
|
||||
$this->$t_dir = $detect_switch->$dir();
|
||||
}
|
||||
foreach($detect_switch->get_vdirs() as $vdir){
|
||||
$t_vdir = "_switch_$vdir";
|
||||
$this->$t_vdir = $detect_switch->$vdir();
|
||||
}
|
||||
$this->_switch_event_host = $detect_switch->event_host;
|
||||
$this->_switch_event_port = $detect_switch->event_port;
|
||||
$this->_switch_event_password = $detect_switch->event_password;
|
||||
|
||||
//copy from _POST
|
||||
foreach($_POST as $key=>$value){
|
||||
if(substr($key,0,3) == "db_"){
|
||||
$o_key = "_$key";
|
||||
$this->$o_key = $value;
|
||||
}
|
||||
}
|
||||
if($this->_db_create and strlen($this->_db_create_username) == 0)
|
||||
{
|
||||
$this->_db_create_username = $this->_db_username;
|
||||
$this->_db_create_password = $this->_db_password;
|
||||
}
|
||||
if (strlen($this->_db_port) == 0) { $this->_db_port = "5432"; }
|
||||
|
||||
// domain info
|
||||
if(strlen($domain_uuid) == 0){ $domain_uuid = uuid(); }
|
||||
$this->_domain_name = $domain_name;
|
||||
$this->_domain_uuid = $domain_uuid;
|
||||
|
||||
//collect misc info
|
||||
$this->_domain_count = 1; //assumed to be one
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,146 +1,146 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Copyright (C) 2010-2015
|
||||
All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
include "root.php";
|
||||
|
||||
//define the install class
|
||||
class install_switch {
|
||||
|
||||
protected $global_settings;
|
||||
protected $dbh;
|
||||
|
||||
public $debug = false;
|
||||
public $echo_progress = false;
|
||||
|
||||
function __construct($global_settings) {
|
||||
if(is_null($global_settings)){
|
||||
require_once "core/install/resources/classes/global_settings.php";
|
||||
$global_settings = new global_settings();
|
||||
}elseif(!is_a($global_settings, 'global_settings')){
|
||||
throw new Exception('The parameter $global_settings must be a global_settings object (or a subclass of)');
|
||||
}
|
||||
$this->global_settings = $global_settings;
|
||||
}
|
||||
|
||||
//utility Functions
|
||||
function write_debug($message) {
|
||||
if($this->debug){
|
||||
echo "$message\n";
|
||||
}
|
||||
}
|
||||
|
||||
function write_progress($message) {
|
||||
if($this->echo_progress){
|
||||
echo "$message\n";
|
||||
}
|
||||
}
|
||||
|
||||
protected function backup_dir($dir, $backup_name){
|
||||
if (!is_readable($dir)) {
|
||||
throw new Exception("backup_dir() source directory '".$dir."' does not exist.");
|
||||
}
|
||||
$dst_tar = join( DIRECTORY_SEPARATOR, array(sys_get_temp_dir(), "$backup_name.tar"));
|
||||
//pharData is the correct way to do it, but it keeps creating incomplete archives
|
||||
//$tar = new PharData($dst_tar);
|
||||
//$tar->buildFromDirectory($dir);
|
||||
$this->write_debug("backing up to $dst_tar");
|
||||
if (file_exists('/bin/tar')) {
|
||||
exec('tar -cvf ' .$dst_tar. ' -C '.$dir .' .');
|
||||
}else{
|
||||
$this->write_debug('WARN: old config could not be compressed');
|
||||
$dst_dir = join( DIRECTORY_SEPARATOR, array(sys_get_temp_dir(), "$backup_name"));
|
||||
recursive_copy($dir, $dst_dir);
|
||||
}
|
||||
}
|
||||
|
||||
function install_phase_1() {
|
||||
$this->write_progress("Install phase 1 started for switch");
|
||||
$this->copy_conf();
|
||||
$this->write_progress("Install phase 1 completed for switch");
|
||||
}
|
||||
|
||||
function install_phase_2() {
|
||||
$this->write_progress("Install phase 2 started for switch");
|
||||
$this->restart_switch();
|
||||
$this->write_progress("Install phase 2 completed for switch");
|
||||
}
|
||||
|
||||
protected function copy_conf() {
|
||||
//send a message
|
||||
$this->write_progress("\tCopying Config");
|
||||
|
||||
//make a backup of the config
|
||||
if (file_exists($this->global_settings->switch_conf_dir())) {
|
||||
$this->backup_dir($this->global_settings->switch_conf_dir(), 'fusionpbx_switch_config');
|
||||
recursive_delete($this->global_settings->switch_conf_dir());
|
||||
}
|
||||
|
||||
//make sure the conf directory exists
|
||||
if (!is_dir($this->global_settings->switch_conf_dir())) {
|
||||
if (!mkdir($this->global_settings->switch_conf_dir(), 0774, true)) {
|
||||
throw new Exception("Failed to create the switch conf directory '".$this->global_settings->switch_conf_dir()."'. ");
|
||||
}
|
||||
}
|
||||
|
||||
//copy resources/templates/conf to the freeswitch conf dir
|
||||
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";
|
||||
}
|
||||
$dst_dir = $this->global_settings->switch_conf_dir();
|
||||
if (is_readable($dst_dir)) {
|
||||
recursive_copy($src_dir, $dst_dir);
|
||||
unset($src_dir, $dst_dir);
|
||||
}
|
||||
$fax_dir = join( DIRECTORY_SEPARATOR, array($this->global_settings->switch_storage_dir(), 'fax'));
|
||||
if (!is_readable($fax_dir)) { mkdir($fax_dir,0777,true); }
|
||||
$voicemail_dir = join( DIRECTORY_SEPARATOR, array($this->global_settings->switch_storage_dir(), 'voicemail'));
|
||||
if (!is_readable($voicemail_dir)) { mkdir($voicemail_dir,0777,true); }
|
||||
|
||||
//write the xml_cdr.conf.xml file
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/xml_cdr")) {
|
||||
xml_cdr_conf_xml();
|
||||
}
|
||||
|
||||
//write the switch.conf.xml file
|
||||
if (file_exists($this->global_settings->switch_conf_dir())) {
|
||||
switch_conf_xml();
|
||||
}
|
||||
}
|
||||
|
||||
protected function restart_switch() {
|
||||
$esl = new event_socket;
|
||||
if(!$esl->connect($this->global_settings->switch_event_host(), $this->global_settings->switch_event_port(), $this->global_settings->switch_event_password())) {
|
||||
throw new Exception("Failed to connect to switch");
|
||||
}
|
||||
if (!$esl->request('api fsctl shutdown restart elegant')){
|
||||
throw new Exception("Failed to send switch restart");
|
||||
}
|
||||
$esl->reset_fp();
|
||||
}
|
||||
}
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Copyright (C) 2010-2015
|
||||
All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
include "root.php";
|
||||
|
||||
//define the install class
|
||||
class install_switch {
|
||||
|
||||
protected $global_settings;
|
||||
protected $dbh;
|
||||
|
||||
public $debug = false;
|
||||
public $echo_progress = false;
|
||||
|
||||
function __construct($global_settings) {
|
||||
if(is_null($global_settings)){
|
||||
require_once "core/install/resources/classes/global_settings.php";
|
||||
$global_settings = new global_settings();
|
||||
}elseif(!is_a($global_settings, 'global_settings')){
|
||||
throw new Exception('The parameter $global_settings must be a global_settings object (or a subclass of)');
|
||||
}
|
||||
$this->global_settings = $global_settings;
|
||||
}
|
||||
|
||||
//utility Functions
|
||||
function write_debug($message) {
|
||||
if($this->debug){
|
||||
echo "$message\n";
|
||||
}
|
||||
}
|
||||
|
||||
function write_progress($message) {
|
||||
if($this->echo_progress){
|
||||
echo "$message\n";
|
||||
}
|
||||
}
|
||||
|
||||
protected function backup_dir($dir, $backup_name){
|
||||
if (!is_readable($dir)) {
|
||||
throw new Exception("backup_dir() source directory '".$dir."' does not exist.");
|
||||
}
|
||||
$dst_tar = join( DIRECTORY_SEPARATOR, array(sys_get_temp_dir(), "$backup_name.tar"));
|
||||
//pharData is the correct way to do it, but it keeps creating incomplete archives
|
||||
//$tar = new PharData($dst_tar);
|
||||
//$tar->buildFromDirectory($dir);
|
||||
$this->write_debug("backing up to $dst_tar");
|
||||
if (file_exists('/bin/tar')) {
|
||||
exec('tar -cvf ' .$dst_tar. ' -C '.$dir .' .');
|
||||
}else{
|
||||
$this->write_debug('WARN: old config could not be compressed');
|
||||
$dst_dir = join( DIRECTORY_SEPARATOR, array(sys_get_temp_dir(), "$backup_name"));
|
||||
recursive_copy($dir, $dst_dir);
|
||||
}
|
||||
}
|
||||
|
||||
function install_phase_1() {
|
||||
$this->write_progress("Install phase 1 started for switch");
|
||||
$this->copy_conf();
|
||||
$this->write_progress("Install phase 1 completed for switch");
|
||||
}
|
||||
|
||||
function install_phase_2() {
|
||||
$this->write_progress("Install phase 2 started for switch");
|
||||
$this->restart_switch();
|
||||
$this->write_progress("Install phase 2 completed for switch");
|
||||
}
|
||||
|
||||
protected function copy_conf() {
|
||||
//send a message
|
||||
$this->write_progress("\tCopying Config");
|
||||
|
||||
//make a backup of the config
|
||||
if (file_exists($this->global_settings->switch_conf_dir())) {
|
||||
$this->backup_dir($this->global_settings->switch_conf_dir(), 'fusionpbx_switch_config');
|
||||
recursive_delete($this->global_settings->switch_conf_dir());
|
||||
}
|
||||
|
||||
//make sure the conf directory exists
|
||||
if (!is_dir($this->global_settings->switch_conf_dir())) {
|
||||
if (!mkdir($this->global_settings->switch_conf_dir(), 0774, true)) {
|
||||
throw new Exception("Failed to create the switch conf directory '".$this->global_settings->switch_conf_dir()."'. ");
|
||||
}
|
||||
}
|
||||
|
||||
//copy resources/templates/conf to the freeswitch conf dir
|
||||
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";
|
||||
}
|
||||
$dst_dir = $this->global_settings->switch_conf_dir();
|
||||
if (is_readable($dst_dir)) {
|
||||
recursive_copy($src_dir, $dst_dir);
|
||||
unset($src_dir, $dst_dir);
|
||||
}
|
||||
$fax_dir = join( DIRECTORY_SEPARATOR, array($this->global_settings->switch_storage_dir(), 'fax'));
|
||||
if (!is_readable($fax_dir)) { mkdir($fax_dir,0777,true); }
|
||||
$voicemail_dir = join( DIRECTORY_SEPARATOR, array($this->global_settings->switch_storage_dir(), 'voicemail'));
|
||||
if (!is_readable($voicemail_dir)) { mkdir($voicemail_dir,0777,true); }
|
||||
|
||||
//write the xml_cdr.conf.xml file
|
||||
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/xml_cdr")) {
|
||||
xml_cdr_conf_xml();
|
||||
}
|
||||
|
||||
//write the switch.conf.xml file
|
||||
if (file_exists($this->global_settings->switch_conf_dir())) {
|
||||
switch_conf_xml();
|
||||
}
|
||||
}
|
||||
|
||||
protected function restart_switch() {
|
||||
$esl = new event_socket;
|
||||
if(!$esl->connect($this->global_settings->switch_event_host(), $this->global_settings->switch_event_port(), $this->global_settings->switch_event_password())) {
|
||||
throw new Exception("Failed to connect to switch");
|
||||
}
|
||||
if (!$esl->request('api fsctl shutdown restart elegant')){
|
||||
throw new Exception("Failed to send switch restart");
|
||||
}
|
||||
$esl->reset_fp();
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -1,252 +1,252 @@
|
||||
<?php
|
||||
|
||||
$iso_countries = array
|
||||
(
|
||||
'AF' => 'Afghanistan',
|
||||
'AX' => 'Aland Islands',
|
||||
'AL' => 'Albania',
|
||||
'DZ' => 'Algeria',
|
||||
'AS' => 'American Samoa',
|
||||
'AD' => 'Andorra',
|
||||
'AO' => 'Angola',
|
||||
'AI' => 'Anguilla',
|
||||
'AQ' => 'Antarctica',
|
||||
'AG' => 'Antigua And Barbuda',
|
||||
'AR' => 'Argentina',
|
||||
'AM' => 'Armenia',
|
||||
'AW' => 'Aruba',
|
||||
'AU' => 'Australia',
|
||||
'AT' => 'Austria',
|
||||
'AZ' => 'Azerbaijan',
|
||||
'BS' => 'Bahamas',
|
||||
'BH' => 'Bahrain',
|
||||
'BD' => 'Bangladesh',
|
||||
'BB' => 'Barbados',
|
||||
'BY' => 'Belarus',
|
||||
'BE' => 'Belgium',
|
||||
'BZ' => 'Belize',
|
||||
'BJ' => 'Benin',
|
||||
'BM' => 'Bermuda',
|
||||
'BT' => 'Bhutan',
|
||||
'BO' => 'Bolivia',
|
||||
'BA' => 'Bosnia And Herzegovina',
|
||||
'BW' => 'Botswana',
|
||||
'BV' => 'Bouvet Island',
|
||||
'BR' => 'Brazil',
|
||||
'IO' => 'British Indian Ocean Territory',
|
||||
'BN' => 'Brunei Darussalam',
|
||||
'BG' => 'Bulgaria',
|
||||
'BF' => 'Burkina Faso',
|
||||
'BI' => 'Burundi',
|
||||
'KH' => 'Cambodia',
|
||||
'CM' => 'Cameroon',
|
||||
'CA' => 'Canada',
|
||||
'CV' => 'Cape Verde',
|
||||
'KY' => 'Cayman Islands',
|
||||
'CF' => 'Central African Republic',
|
||||
'TD' => 'Chad',
|
||||
'CL' => 'Chile',
|
||||
'CN' => 'China',
|
||||
'CX' => 'Christmas Island',
|
||||
'CC' => 'Cocos (Keeling) Islands',
|
||||
'CO' => 'Colombia',
|
||||
'KM' => 'Comoros',
|
||||
'CG' => 'Congo',
|
||||
'CD' => 'Congo, Democratic Republic',
|
||||
'CK' => 'Cook Islands',
|
||||
'CR' => 'Costa Rica',
|
||||
'CI' => 'Cote D\'Ivoire',
|
||||
'HR' => 'Croatia',
|
||||
'CU' => 'Cuba',
|
||||
'CY' => 'Cyprus',
|
||||
'CZ' => 'Czech Republic',
|
||||
'DK' => 'Denmark',
|
||||
'DJ' => 'Djibouti',
|
||||
'DM' => 'Dominica',
|
||||
'DO' => 'Dominican Republic',
|
||||
'EC' => 'Ecuador',
|
||||
'EG' => 'Egypt',
|
||||
'SV' => 'El Salvador',
|
||||
'GQ' => 'Equatorial Guinea',
|
||||
'ER' => 'Eritrea',
|
||||
'EE' => 'Estonia',
|
||||
'ET' => 'Ethiopia',
|
||||
'FK' => 'Falkland Islands (Malvinas)',
|
||||
'FO' => 'Faroe Islands',
|
||||
'FJ' => 'Fiji',
|
||||
'FI' => 'Finland',
|
||||
'FR' => 'France',
|
||||
'GF' => 'French Guiana',
|
||||
'PF' => 'French Polynesia',
|
||||
'TF' => 'French Southern Territories',
|
||||
'GA' => 'Gabon',
|
||||
'GM' => 'Gambia',
|
||||
'GE' => 'Georgia',
|
||||
'DE' => 'Germany',
|
||||
'GH' => 'Ghana',
|
||||
'GI' => 'Gibraltar',
|
||||
'GR' => 'Greece',
|
||||
'GL' => 'Greenland',
|
||||
'GD' => 'Grenada',
|
||||
'GP' => 'Guadeloupe',
|
||||
'GU' => 'Guam',
|
||||
'GT' => 'Guatemala',
|
||||
'GG' => 'Guernsey',
|
||||
'GN' => 'Guinea',
|
||||
'GW' => 'Guinea-Bissau',
|
||||
'GY' => 'Guyana',
|
||||
'HT' => 'Haiti',
|
||||
'HM' => 'Heard Island & Mcdonald Islands',
|
||||
'VA' => 'Holy See (Vatican City State)',
|
||||
'HN' => 'Honduras',
|
||||
'HK' => 'Hong Kong',
|
||||
'HU' => 'Hungary',
|
||||
'IS' => 'Iceland',
|
||||
'IN' => 'India',
|
||||
'ID' => 'Indonesia',
|
||||
'IR' => 'Iran, Islamic Republic Of',
|
||||
'IQ' => 'Iraq',
|
||||
'IE' => 'Ireland',
|
||||
'IM' => 'Isle Of Man',
|
||||
'IL' => 'Israel',
|
||||
'IT' => 'Italy',
|
||||
'JM' => 'Jamaica',
|
||||
'JP' => 'Japan',
|
||||
'JE' => 'Jersey',
|
||||
'JO' => 'Jordan',
|
||||
'KZ' => 'Kazakhstan',
|
||||
'KE' => 'Kenya',
|
||||
'KI' => 'Kiribati',
|
||||
'KR' => 'Korea',
|
||||
'KW' => 'Kuwait',
|
||||
'KG' => 'Kyrgyzstan',
|
||||
'LA' => 'Lao People\'s Democratic Republic',
|
||||
'LV' => 'Latvia',
|
||||
'LB' => 'Lebanon',
|
||||
'LS' => 'Lesotho',
|
||||
'LR' => 'Liberia',
|
||||
'LY' => 'Libyan Arab Jamahiriya',
|
||||
'LI' => 'Liechtenstein',
|
||||
'LT' => 'Lithuania',
|
||||
'LU' => 'Luxembourg',
|
||||
'MO' => 'Macao',
|
||||
'MK' => 'Macedonia',
|
||||
'MG' => 'Madagascar',
|
||||
'MW' => 'Malawi',
|
||||
'MY' => 'Malaysia',
|
||||
'MV' => 'Maldives',
|
||||
'ML' => 'Mali',
|
||||
'MT' => 'Malta',
|
||||
'MH' => 'Marshall Islands',
|
||||
'MQ' => 'Martinique',
|
||||
'MR' => 'Mauritania',
|
||||
'MU' => 'Mauritius',
|
||||
'YT' => 'Mayotte',
|
||||
'MX' => 'Mexico',
|
||||
'FM' => 'Micronesia, Federated States Of',
|
||||
'MD' => 'Moldova',
|
||||
'MC' => 'Monaco',
|
||||
'MN' => 'Mongolia',
|
||||
'ME' => 'Montenegro',
|
||||
'MS' => 'Montserrat',
|
||||
'MA' => 'Morocco',
|
||||
'MZ' => 'Mozambique',
|
||||
'MM' => 'Myanmar',
|
||||
'NA' => 'Namibia',
|
||||
'NR' => 'Nauru',
|
||||
'NP' => 'Nepal',
|
||||
'NL' => 'Netherlands',
|
||||
'AN' => 'Netherlands Antilles',
|
||||
'NC' => 'New Caledonia',
|
||||
'NZ' => 'New Zealand',
|
||||
'NI' => 'Nicaragua',
|
||||
'NE' => 'Niger',
|
||||
'NG' => 'Nigeria',
|
||||
'NU' => 'Niue',
|
||||
'NF' => 'Norfolk Island',
|
||||
'MP' => 'Northern Mariana Islands',
|
||||
'NO' => 'Norway',
|
||||
'OM' => 'Oman',
|
||||
'PK' => 'Pakistan',
|
||||
'PW' => 'Palau',
|
||||
'PS' => 'Palestinian Territory, Occupied',
|
||||
'PA' => 'Panama',
|
||||
'PG' => 'Papua New Guinea',
|
||||
'PY' => 'Paraguay',
|
||||
'PE' => 'Peru',
|
||||
'PH' => 'Philippines',
|
||||
'PN' => 'Pitcairn',
|
||||
'PL' => 'Poland',
|
||||
'PT' => 'Portugal',
|
||||
'PR' => 'Puerto Rico',
|
||||
'QA' => 'Qatar',
|
||||
'RE' => 'Reunion',
|
||||
'RO' => 'Romania',
|
||||
'RU' => 'Russian Federation',
|
||||
'RW' => 'Rwanda',
|
||||
'BL' => 'Saint Barthelemy',
|
||||
'SH' => 'Saint Helena',
|
||||
'KN' => 'Saint Kitts And Nevis',
|
||||
'LC' => 'Saint Lucia',
|
||||
'MF' => 'Saint Martin',
|
||||
'PM' => 'Saint Pierre And Miquelon',
|
||||
'VC' => 'Saint Vincent And Grenadines',
|
||||
'WS' => 'Samoa',
|
||||
'SM' => 'San Marino',
|
||||
'ST' => 'Sao Tome And Principe',
|
||||
'SA' => 'Saudi Arabia',
|
||||
'SN' => 'Senegal',
|
||||
'RS' => 'Serbia',
|
||||
'SC' => 'Seychelles',
|
||||
'SL' => 'Sierra Leone',
|
||||
'SG' => 'Singapore',
|
||||
'SK' => 'Slovakia',
|
||||
'SI' => 'Slovenia',
|
||||
'SB' => 'Solomon Islands',
|
||||
'SO' => 'Somalia',
|
||||
'ZA' => 'South Africa',
|
||||
'GS' => 'South Georgia And Sandwich Isl.',
|
||||
'ES' => 'Spain',
|
||||
'LK' => 'Sri Lanka',
|
||||
'SD' => 'Sudan',
|
||||
'SR' => 'Suriname',
|
||||
'SJ' => 'Svalbard And Jan Mayen',
|
||||
'SZ' => 'Swaziland',
|
||||
'SE' => 'Sweden',
|
||||
'CH' => 'Switzerland',
|
||||
'SY' => 'Syrian Arab Republic',
|
||||
'TW' => 'Taiwan',
|
||||
'TJ' => 'Tajikistan',
|
||||
'TZ' => 'Tanzania',
|
||||
'TH' => 'Thailand',
|
||||
'TL' => 'Timor-Leste',
|
||||
'TG' => 'Togo',
|
||||
'TK' => 'Tokelau',
|
||||
'TO' => 'Tonga',
|
||||
'TT' => 'Trinidad And Tobago',
|
||||
'TN' => 'Tunisia',
|
||||
'TR' => 'Turkey',
|
||||
'TM' => 'Turkmenistan',
|
||||
'TC' => 'Turks And Caicos Islands',
|
||||
'TV' => 'Tuvalu',
|
||||
'UG' => 'Uganda',
|
||||
'UA' => 'Ukraine',
|
||||
'AE' => 'United Arab Emirates',
|
||||
'GB' => 'United Kingdom',
|
||||
'US' => 'United States',
|
||||
'UM' => 'United States Outlying Islands',
|
||||
'UY' => 'Uruguay',
|
||||
'UZ' => 'Uzbekistan',
|
||||
'VU' => 'Vanuatu',
|
||||
'VE' => 'Venezuela',
|
||||
'VN' => 'Viet Nam',
|
||||
'VG' => 'Virgin Islands, British',
|
||||
'VI' => 'Virgin Islands, U.S.',
|
||||
'WF' => 'Wallis And Futuna',
|
||||
'EH' => 'Western Sahara',
|
||||
'YE' => 'Yemen',
|
||||
'ZM' => 'Zambia',
|
||||
'ZW' => 'Zimbabwe',
|
||||
);
|
||||
|
||||
<?php
|
||||
|
||||
$iso_countries = array
|
||||
(
|
||||
'AF' => 'Afghanistan',
|
||||
'AX' => 'Aland Islands',
|
||||
'AL' => 'Albania',
|
||||
'DZ' => 'Algeria',
|
||||
'AS' => 'American Samoa',
|
||||
'AD' => 'Andorra',
|
||||
'AO' => 'Angola',
|
||||
'AI' => 'Anguilla',
|
||||
'AQ' => 'Antarctica',
|
||||
'AG' => 'Antigua And Barbuda',
|
||||
'AR' => 'Argentina',
|
||||
'AM' => 'Armenia',
|
||||
'AW' => 'Aruba',
|
||||
'AU' => 'Australia',
|
||||
'AT' => 'Austria',
|
||||
'AZ' => 'Azerbaijan',
|
||||
'BS' => 'Bahamas',
|
||||
'BH' => 'Bahrain',
|
||||
'BD' => 'Bangladesh',
|
||||
'BB' => 'Barbados',
|
||||
'BY' => 'Belarus',
|
||||
'BE' => 'Belgium',
|
||||
'BZ' => 'Belize',
|
||||
'BJ' => 'Benin',
|
||||
'BM' => 'Bermuda',
|
||||
'BT' => 'Bhutan',
|
||||
'BO' => 'Bolivia',
|
||||
'BA' => 'Bosnia And Herzegovina',
|
||||
'BW' => 'Botswana',
|
||||
'BV' => 'Bouvet Island',
|
||||
'BR' => 'Brazil',
|
||||
'IO' => 'British Indian Ocean Territory',
|
||||
'BN' => 'Brunei Darussalam',
|
||||
'BG' => 'Bulgaria',
|
||||
'BF' => 'Burkina Faso',
|
||||
'BI' => 'Burundi',
|
||||
'KH' => 'Cambodia',
|
||||
'CM' => 'Cameroon',
|
||||
'CA' => 'Canada',
|
||||
'CV' => 'Cape Verde',
|
||||
'KY' => 'Cayman Islands',
|
||||
'CF' => 'Central African Republic',
|
||||
'TD' => 'Chad',
|
||||
'CL' => 'Chile',
|
||||
'CN' => 'China',
|
||||
'CX' => 'Christmas Island',
|
||||
'CC' => 'Cocos (Keeling) Islands',
|
||||
'CO' => 'Colombia',
|
||||
'KM' => 'Comoros',
|
||||
'CG' => 'Congo',
|
||||
'CD' => 'Congo, Democratic Republic',
|
||||
'CK' => 'Cook Islands',
|
||||
'CR' => 'Costa Rica',
|
||||
'CI' => 'Cote D\'Ivoire',
|
||||
'HR' => 'Croatia',
|
||||
'CU' => 'Cuba',
|
||||
'CY' => 'Cyprus',
|
||||
'CZ' => 'Czech Republic',
|
||||
'DK' => 'Denmark',
|
||||
'DJ' => 'Djibouti',
|
||||
'DM' => 'Dominica',
|
||||
'DO' => 'Dominican Republic',
|
||||
'EC' => 'Ecuador',
|
||||
'EG' => 'Egypt',
|
||||
'SV' => 'El Salvador',
|
||||
'GQ' => 'Equatorial Guinea',
|
||||
'ER' => 'Eritrea',
|
||||
'EE' => 'Estonia',
|
||||
'ET' => 'Ethiopia',
|
||||
'FK' => 'Falkland Islands (Malvinas)',
|
||||
'FO' => 'Faroe Islands',
|
||||
'FJ' => 'Fiji',
|
||||
'FI' => 'Finland',
|
||||
'FR' => 'France',
|
||||
'GF' => 'French Guiana',
|
||||
'PF' => 'French Polynesia',
|
||||
'TF' => 'French Southern Territories',
|
||||
'GA' => 'Gabon',
|
||||
'GM' => 'Gambia',
|
||||
'GE' => 'Georgia',
|
||||
'DE' => 'Germany',
|
||||
'GH' => 'Ghana',
|
||||
'GI' => 'Gibraltar',
|
||||
'GR' => 'Greece',
|
||||
'GL' => 'Greenland',
|
||||
'GD' => 'Grenada',
|
||||
'GP' => 'Guadeloupe',
|
||||
'GU' => 'Guam',
|
||||
'GT' => 'Guatemala',
|
||||
'GG' => 'Guernsey',
|
||||
'GN' => 'Guinea',
|
||||
'GW' => 'Guinea-Bissau',
|
||||
'GY' => 'Guyana',
|
||||
'HT' => 'Haiti',
|
||||
'HM' => 'Heard Island & Mcdonald Islands',
|
||||
'VA' => 'Holy See (Vatican City State)',
|
||||
'HN' => 'Honduras',
|
||||
'HK' => 'Hong Kong',
|
||||
'HU' => 'Hungary',
|
||||
'IS' => 'Iceland',
|
||||
'IN' => 'India',
|
||||
'ID' => 'Indonesia',
|
||||
'IR' => 'Iran, Islamic Republic Of',
|
||||
'IQ' => 'Iraq',
|
||||
'IE' => 'Ireland',
|
||||
'IM' => 'Isle Of Man',
|
||||
'IL' => 'Israel',
|
||||
'IT' => 'Italy',
|
||||
'JM' => 'Jamaica',
|
||||
'JP' => 'Japan',
|
||||
'JE' => 'Jersey',
|
||||
'JO' => 'Jordan',
|
||||
'KZ' => 'Kazakhstan',
|
||||
'KE' => 'Kenya',
|
||||
'KI' => 'Kiribati',
|
||||
'KR' => 'Korea',
|
||||
'KW' => 'Kuwait',
|
||||
'KG' => 'Kyrgyzstan',
|
||||
'LA' => 'Lao People\'s Democratic Republic',
|
||||
'LV' => 'Latvia',
|
||||
'LB' => 'Lebanon',
|
||||
'LS' => 'Lesotho',
|
||||
'LR' => 'Liberia',
|
||||
'LY' => 'Libyan Arab Jamahiriya',
|
||||
'LI' => 'Liechtenstein',
|
||||
'LT' => 'Lithuania',
|
||||
'LU' => 'Luxembourg',
|
||||
'MO' => 'Macao',
|
||||
'MK' => 'Macedonia',
|
||||
'MG' => 'Madagascar',
|
||||
'MW' => 'Malawi',
|
||||
'MY' => 'Malaysia',
|
||||
'MV' => 'Maldives',
|
||||
'ML' => 'Mali',
|
||||
'MT' => 'Malta',
|
||||
'MH' => 'Marshall Islands',
|
||||
'MQ' => 'Martinique',
|
||||
'MR' => 'Mauritania',
|
||||
'MU' => 'Mauritius',
|
||||
'YT' => 'Mayotte',
|
||||
'MX' => 'Mexico',
|
||||
'FM' => 'Micronesia, Federated States Of',
|
||||
'MD' => 'Moldova',
|
||||
'MC' => 'Monaco',
|
||||
'MN' => 'Mongolia',
|
||||
'ME' => 'Montenegro',
|
||||
'MS' => 'Montserrat',
|
||||
'MA' => 'Morocco',
|
||||
'MZ' => 'Mozambique',
|
||||
'MM' => 'Myanmar',
|
||||
'NA' => 'Namibia',
|
||||
'NR' => 'Nauru',
|
||||
'NP' => 'Nepal',
|
||||
'NL' => 'Netherlands',
|
||||
'AN' => 'Netherlands Antilles',
|
||||
'NC' => 'New Caledonia',
|
||||
'NZ' => 'New Zealand',
|
||||
'NI' => 'Nicaragua',
|
||||
'NE' => 'Niger',
|
||||
'NG' => 'Nigeria',
|
||||
'NU' => 'Niue',
|
||||
'NF' => 'Norfolk Island',
|
||||
'MP' => 'Northern Mariana Islands',
|
||||
'NO' => 'Norway',
|
||||
'OM' => 'Oman',
|
||||
'PK' => 'Pakistan',
|
||||
'PW' => 'Palau',
|
||||
'PS' => 'Palestinian Territory, Occupied',
|
||||
'PA' => 'Panama',
|
||||
'PG' => 'Papua New Guinea',
|
||||
'PY' => 'Paraguay',
|
||||
'PE' => 'Peru',
|
||||
'PH' => 'Philippines',
|
||||
'PN' => 'Pitcairn',
|
||||
'PL' => 'Poland',
|
||||
'PT' => 'Portugal',
|
||||
'PR' => 'Puerto Rico',
|
||||
'QA' => 'Qatar',
|
||||
'RE' => 'Reunion',
|
||||
'RO' => 'Romania',
|
||||
'RU' => 'Russian Federation',
|
||||
'RW' => 'Rwanda',
|
||||
'BL' => 'Saint Barthelemy',
|
||||
'SH' => 'Saint Helena',
|
||||
'KN' => 'Saint Kitts And Nevis',
|
||||
'LC' => 'Saint Lucia',
|
||||
'MF' => 'Saint Martin',
|
||||
'PM' => 'Saint Pierre And Miquelon',
|
||||
'VC' => 'Saint Vincent And Grenadines',
|
||||
'WS' => 'Samoa',
|
||||
'SM' => 'San Marino',
|
||||
'ST' => 'Sao Tome And Principe',
|
||||
'SA' => 'Saudi Arabia',
|
||||
'SN' => 'Senegal',
|
||||
'RS' => 'Serbia',
|
||||
'SC' => 'Seychelles',
|
||||
'SL' => 'Sierra Leone',
|
||||
'SG' => 'Singapore',
|
||||
'SK' => 'Slovakia',
|
||||
'SI' => 'Slovenia',
|
||||
'SB' => 'Solomon Islands',
|
||||
'SO' => 'Somalia',
|
||||
'ZA' => 'South Africa',
|
||||
'GS' => 'South Georgia And Sandwich Isl.',
|
||||
'ES' => 'Spain',
|
||||
'LK' => 'Sri Lanka',
|
||||
'SD' => 'Sudan',
|
||||
'SR' => 'Suriname',
|
||||
'SJ' => 'Svalbard And Jan Mayen',
|
||||
'SZ' => 'Swaziland',
|
||||
'SE' => 'Sweden',
|
||||
'CH' => 'Switzerland',
|
||||
'SY' => 'Syrian Arab Republic',
|
||||
'TW' => 'Taiwan',
|
||||
'TJ' => 'Tajikistan',
|
||||
'TZ' => 'Tanzania',
|
||||
'TH' => 'Thailand',
|
||||
'TL' => 'Timor-Leste',
|
||||
'TG' => 'Togo',
|
||||
'TK' => 'Tokelau',
|
||||
'TO' => 'Tonga',
|
||||
'TT' => 'Trinidad And Tobago',
|
||||
'TN' => 'Tunisia',
|
||||
'TR' => 'Turkey',
|
||||
'TM' => 'Turkmenistan',
|
||||
'TC' => 'Turks And Caicos Islands',
|
||||
'TV' => 'Tuvalu',
|
||||
'UG' => 'Uganda',
|
||||
'UA' => 'Ukraine',
|
||||
'AE' => 'United Arab Emirates',
|
||||
'GB' => 'United Kingdom',
|
||||
'US' => 'United States',
|
||||
'UM' => 'United States Outlying Islands',
|
||||
'UY' => 'Uruguay',
|
||||
'UZ' => 'Uzbekistan',
|
||||
'VU' => 'Vanuatu',
|
||||
'VE' => 'Venezuela',
|
||||
'VN' => 'Viet Nam',
|
||||
'VG' => 'Virgin Islands, British',
|
||||
'VI' => 'Virgin Islands, U.S.',
|
||||
'WF' => 'Wallis And Futuna',
|
||||
'EH' => 'Western Sahara',
|
||||
'YE' => 'Yemen',
|
||||
'ZM' => 'Zambia',
|
||||
'ZW' => 'Zimbabwe',
|
||||
);
|
||||
|
||||
?>
|
||||
@@ -1,276 +1,276 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
echo "<input type='hidden' name='install_language' value='".$_SESSION['domain']['language']['code']."'/>\n";
|
||||
echo "<input type='hidden' name='return_install_step' value='config_database'/>\n";
|
||||
echo "<input type='hidden' name='install_step' value='execute'/>\n";
|
||||
|
||||
echo "<input type='hidden' name='event_host' value='$event_host'/>\n";
|
||||
echo "<input type='hidden' name='event_port' value='$event_port'/>\n";
|
||||
echo "<input type='hidden' name='event_password' value='$event_password'/>\n";
|
||||
echo "<input type='hidden' name='db_type' value='$db_type'/>\n";
|
||||
echo "<input type='hidden' name='admin_username' value='$admin_username'/>\n";
|
||||
echo "<input type='hidden' name='admin_password' value='$admin_password'/>\n";
|
||||
echo "<input type='hidden' name='install_default_country' value='$install_default_country'/>\n";
|
||||
echo "<input type='hidden' name='install_template_name' value='$install_template_name'/>\n";
|
||||
echo "<input type='hidden' name='domain_name' value='$domain_name'/>\n";
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$text['header-config_database']."</b></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='next' class='btn' value='".$text['button-next']."'/>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($db_type == "sqlite") {
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' 'valign='top' align='left' nowrap>\n";
|
||||
echo " Database Filename\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_name' maxlength='255' value=\"$db_name\"><br />\n";
|
||||
echo " Set the database filename. The file extension should be '.db'.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' 'valign='top' align='left' nowrap>\n";
|
||||
echo " Database Directory\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_path' maxlength='255' value=\"$db_path\"><br />\n";
|
||||
echo " Set the path to the database directory.\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
}
|
||||
|
||||
if ($db_type == "mysql") {
|
||||
|
||||
//set defaults
|
||||
if (strlen($db_host) == 0) { $db_host = 'localhost'; }
|
||||
if (strlen($db_port) == 0) { $db_port = '3306'; }
|
||||
//if (strlen($db_name) == 0) { $db_name = 'fusionpbx'; }
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Host\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_host' maxlength='255' value=\"$db_host\"><br />\n";
|
||||
echo " Enter the host address for the database server.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Port\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_port' maxlength='255' value=\"$db_port\"><br />\n";
|
||||
echo " Enter the port number. It is optional if the database is using the default port.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Name\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_name' maxlength='255' value=\"$db_name\"><br />\n";
|
||||
echo " Enter the name of the database.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_username' maxlength='255' value=\"$db_username\"><br />\n";
|
||||
echo " Enter the database username. \n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_password' maxlength='255' value=\"$db_password\"><br />\n";
|
||||
echo " Enter the database password.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Options\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
if($db_create=='1') { $checked = "checked='checked'"; } else { $checked = ''; }
|
||||
echo " <label><input type='checkbox' name='db_create' value='1' $checked /> Create the database</label>\n";
|
||||
echo "<br />\n";
|
||||
echo "Choose whether to create the database\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_create_username' maxlength='255' value=\"$db_create_username\"><br />\n";
|
||||
echo " Optional, this username is used to create the database, a database user and set the permissions. \n";
|
||||
echo " By default this username is 'root' however it can be any account with permission to add a database, user, and grant permissions. \n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_create_password' maxlength='255' value=\"$db_create_password\"><br />\n";
|
||||
echo " Enter the create database password.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
}
|
||||
|
||||
if ($db_type == "pgsql") {
|
||||
if (strlen($db_host) == 0) { $db_host = 'localhost'; }
|
||||
if (strlen($db_port) == 0) { $db_port = '5432'; }
|
||||
if (strlen($db_name) == 0) { $db_name = 'fusionpbx'; }
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Host\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_host' maxlength='255' value=\"$db_host\"><br />\n";
|
||||
echo " Enter the host address for the database server.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Port\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_port' maxlength='255' value=\"$db_port\"><br />\n";
|
||||
echo " Enter the port number. It is optional if the database is using the default port.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Name\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_name' maxlength='255' value=\"$db_name\"><br />\n";
|
||||
echo " Enter the name of the database.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_username' maxlength='255' value=\"$db_username\"><br />\n";
|
||||
echo " Enter the database username.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_password' maxlength='255' value=\"$db_password\"><br />\n";
|
||||
echo " Enter the database password.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Options\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
if($db_create=='1') { $checked = "checked='checked'"; } else { $checked = ''; }
|
||||
echo " <label><input type='checkbox' name='db_create' value='1' $checked /> Create the database</label>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_create_username' maxlength='255' value=\"$db_create_username\"><br />\n";
|
||||
echo " Optional, this username is used to create the database, a database user and set the permissions. \n";
|
||||
echo " By default this username is 'pgsql' however it can be any account with permission to add a database, user, and grant permissions. \n";
|
||||
echo " Leave blank to use the details above. \n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_create_password' maxlength='255' value=\"$db_create_password\"><br />\n";
|
||||
echo " Enter the create database password.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
//echo " <div style='text-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='btn' name='".$text['button-execute']."'>\n";
|
||||
//echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
echo "<input type='hidden' name='install_language' value='".$_SESSION['domain']['language']['code']."'/>\n";
|
||||
echo "<input type='hidden' name='return_install_step' value='config_database'/>\n";
|
||||
echo "<input type='hidden' name='install_step' value='execute'/>\n";
|
||||
|
||||
echo "<input type='hidden' name='event_host' value='$event_host'/>\n";
|
||||
echo "<input type='hidden' name='event_port' value='$event_port'/>\n";
|
||||
echo "<input type='hidden' name='event_password' value='$event_password'/>\n";
|
||||
echo "<input type='hidden' name='db_type' value='$db_type'/>\n";
|
||||
echo "<input type='hidden' name='admin_username' value='$admin_username'/>\n";
|
||||
echo "<input type='hidden' name='admin_password' value='$admin_password'/>\n";
|
||||
echo "<input type='hidden' name='install_default_country' value='$install_default_country'/>\n";
|
||||
echo "<input type='hidden' name='install_template_name' value='$install_template_name'/>\n";
|
||||
echo "<input type='hidden' name='domain_name' value='$domain_name'/>\n";
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$text['header-config_database']."</b></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='next' class='btn' value='".$text['button-next']."'/>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($db_type == "sqlite") {
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' 'valign='top' align='left' nowrap>\n";
|
||||
echo " Database Filename\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_name' maxlength='255' value=\"$db_name\"><br />\n";
|
||||
echo " Set the database filename. The file extension should be '.db'.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' 'valign='top' align='left' nowrap>\n";
|
||||
echo " Database Directory\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_path' maxlength='255' value=\"$db_path\"><br />\n";
|
||||
echo " Set the path to the database directory.\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
}
|
||||
|
||||
if ($db_type == "mysql") {
|
||||
|
||||
//set defaults
|
||||
if (strlen($db_host) == 0) { $db_host = 'localhost'; }
|
||||
if (strlen($db_port) == 0) { $db_port = '3306'; }
|
||||
//if (strlen($db_name) == 0) { $db_name = 'fusionpbx'; }
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Host\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_host' maxlength='255' value=\"$db_host\"><br />\n";
|
||||
echo " Enter the host address for the database server.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Port\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_port' maxlength='255' value=\"$db_port\"><br />\n";
|
||||
echo " Enter the port number. It is optional if the database is using the default port.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Name\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_name' maxlength='255' value=\"$db_name\"><br />\n";
|
||||
echo " Enter the name of the database.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_username' maxlength='255' value=\"$db_username\"><br />\n";
|
||||
echo " Enter the database username. \n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_password' maxlength='255' value=\"$db_password\"><br />\n";
|
||||
echo " Enter the database password.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Options\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
if($db_create=='1') { $checked = "checked='checked'"; } else { $checked = ''; }
|
||||
echo " <label><input type='checkbox' name='db_create' value='1' $checked /> Create the database</label>\n";
|
||||
echo "<br />\n";
|
||||
echo "Choose whether to create the database\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_create_username' maxlength='255' value=\"$db_create_username\"><br />\n";
|
||||
echo " Optional, this username is used to create the database, a database user and set the permissions. \n";
|
||||
echo " By default this username is 'root' however it can be any account with permission to add a database, user, and grant permissions. \n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_create_password' maxlength='255' value=\"$db_create_password\"><br />\n";
|
||||
echo " Enter the create database password.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
}
|
||||
|
||||
if ($db_type == "pgsql") {
|
||||
if (strlen($db_host) == 0) { $db_host = 'localhost'; }
|
||||
if (strlen($db_port) == 0) { $db_port = '5432'; }
|
||||
if (strlen($db_name) == 0) { $db_name = 'fusionpbx'; }
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Host\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_host' maxlength='255' value=\"$db_host\"><br />\n";
|
||||
echo " Enter the host address for the database server.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Port\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_port' maxlength='255' value=\"$db_port\"><br />\n";
|
||||
echo " Enter the port number. It is optional if the database is using the default port.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Name\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_name' maxlength='255' value=\"$db_name\"><br />\n";
|
||||
echo " Enter the name of the database.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_username' maxlength='255' value=\"$db_username\"><br />\n";
|
||||
echo " Enter the database username.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_password' maxlength='255' value=\"$db_password\"><br />\n";
|
||||
echo " Enter the database password.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Options\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
if($db_create=='1') { $checked = "checked='checked'"; } else { $checked = ''; }
|
||||
echo " <label><input type='checkbox' name='db_create' value='1' $checked /> Create the database</label>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_create_username' maxlength='255' value=\"$db_create_username\"><br />\n";
|
||||
echo " Optional, this username is used to create the database, a database user and set the permissions. \n";
|
||||
echo " By default this username is 'pgsql' however it can be any account with permission to add a database, user, and grant permissions. \n";
|
||||
echo " Leave blank to use the details above. \n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " Create Database Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='db_create_password' maxlength='255' value=\"$db_create_password\"><br />\n";
|
||||
echo " Enter the create database password.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
//echo " <div style='text-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='btn' name='".$text['button-execute']."'>\n";
|
||||
//echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
?>
|
||||
@@ -1,150 +1,150 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
echo "<input type='hidden' name='install_language' value='".$_SESSION['domain']['language']['code']."'/>\n";
|
||||
echo "<input type='hidden' name='return_install_step' value='config_detail'/>\n";
|
||||
echo "<input type='hidden' name='install_step' value='config_database'/>\n";
|
||||
|
||||
echo "<input type='hidden' name='event_host' value='$event_host'/>\n";
|
||||
echo "<input type='hidden' name='event_port' value='$event_port'/>\n";
|
||||
echo "<input type='hidden' name='event_password' value='$event_password'/>\n";
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$text['header-config_detail']."</b></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='next' class='btn' value='".$text['button-next']."'/>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='admin_username' maxlength='255' value=\"$admin_username\"><br />\n";
|
||||
echo " Enter the username to use when logging in with the browser.<br />\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='admin_password' maxlength='255' value=\"$admin_password\"><br />\n";
|
||||
echo " Enter the password to use when logging in with the browser.<br />\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " Country\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select id='install_default_country' name='install_default_country' class='formfld' style=''>\n";
|
||||
require "resources/countries.php";
|
||||
|
||||
foreach ($countries as $iso_code => $country ){
|
||||
if($iso_code == $install_default_country){
|
||||
echo " <option value='$iso_code' selected='selected'>".$country['country']."</option>\n";
|
||||
}else{
|
||||
echo " <option value='$iso_code'>".$country['country']."</option>\n";
|
||||
}
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " <br />\n";
|
||||
echo " Select ISO country code used to initialize calling contry code variables.<br />\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td width='20%' class=\"vncellreq\" align='left' nowrap='nowrap'>\n";
|
||||
echo " Theme: \n";
|
||||
echo " </td>\n";
|
||||
echo " <td class=\"vtable\" align='left'>\n";
|
||||
echo " <select id='install_template_name' name='install_template_name' class='formfld' style=''>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
//add all the themes to the list
|
||||
$theme_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/themes';
|
||||
if ($handle = opendir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/themes')) {
|
||||
while (false !== ($dir_name = readdir($handle))) {
|
||||
if ($dir_name != "." && $dir_name != ".." && $dir_name != ".svn" && $dir_name != ".git" && $dir_name != "flags" && is_readable($theme_dir.'/'.$dir_name)) {
|
||||
$dir_label = str_replace('_', ' ', $dir_name);
|
||||
$dir_label = str_replace('-', ' ', $dir_label);
|
||||
if ($dir_name == 'enhanced') {
|
||||
echo " <option value='$dir_name' selected='selected'>$dir_label</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='$dir_name'>$dir_label</option>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " <br />\n";
|
||||
echo " Select a theme to set as the default.<br />\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Domain name\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='domain_name' maxlength='255' value=\"$domain_name\"><br />\n";
|
||||
echo " Enter the default domain name. \n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Type\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select name='db_type' id='db_type' class='formfld' id='form_tag' onchange='db_type_onchange();'>\n";
|
||||
if (extension_loaded('pdo_pgsql')) { echo " <option value='pgsql'>postgresql</option>\n"; }
|
||||
if (extension_loaded('pdo_mysql')) { echo " <option value='mysql'>mysql</option>\n"; }
|
||||
if (extension_loaded('pdo_sqlite')) { echo " <option value='sqlite' selected='selected'>sqlite</option>\n"; } //set sqlite as the default
|
||||
echo " </select><br />\n";
|
||||
echo " Select the database type.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
//echo " <div style='text-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' name='".$text['button-next']."'>\n";
|
||||
//echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
echo "<input type='hidden' name='install_language' value='".$_SESSION['domain']['language']['code']."'/>\n";
|
||||
echo "<input type='hidden' name='return_install_step' value='config_detail'/>\n";
|
||||
echo "<input type='hidden' name='install_step' value='config_database'/>\n";
|
||||
|
||||
echo "<input type='hidden' name='event_host' value='$event_host'/>\n";
|
||||
echo "<input type='hidden' name='event_port' value='$event_port'/>\n";
|
||||
echo "<input type='hidden' name='event_password' value='$event_password'/>\n";
|
||||
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td align='left' width='30%' nowrap><b>".$text['header-config_detail']."</b></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='next' class='btn' value='".$text['button-next']."'/>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " Username\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='admin_username' maxlength='255' value=\"$admin_username\"><br />\n";
|
||||
echo " Enter the username to use when logging in with the browser.<br />\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " Password\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='admin_password' maxlength='255' value=\"$admin_password\"><br />\n";
|
||||
echo " Enter the password to use when logging in with the browser.<br />\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " Country\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select id='install_default_country' name='install_default_country' class='formfld' style=''>\n";
|
||||
require "resources/countries.php";
|
||||
|
||||
foreach ($countries as $iso_code => $country ){
|
||||
if($iso_code == $install_default_country){
|
||||
echo " <option value='$iso_code' selected='selected'>".$country['country']."</option>\n";
|
||||
}else{
|
||||
echo " <option value='$iso_code'>".$country['country']."</option>\n";
|
||||
}
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " <br />\n";
|
||||
echo " Select ISO country code used to initialize calling contry code variables.<br />\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td width='20%' class=\"vncellreq\" align='left' nowrap='nowrap'>\n";
|
||||
echo " Theme: \n";
|
||||
echo " </td>\n";
|
||||
echo " <td class=\"vtable\" align='left'>\n";
|
||||
echo " <select id='install_template_name' name='install_template_name' class='formfld' style=''>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
//add all the themes to the list
|
||||
$theme_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/themes';
|
||||
if ($handle = opendir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/themes')) {
|
||||
while (false !== ($dir_name = readdir($handle))) {
|
||||
if ($dir_name != "." && $dir_name != ".." && $dir_name != ".svn" && $dir_name != ".git" && $dir_name != "flags" && is_readable($theme_dir.'/'.$dir_name)) {
|
||||
$dir_label = str_replace('_', ' ', $dir_name);
|
||||
$dir_label = str_replace('-', ' ', $dir_label);
|
||||
if ($dir_name == 'enhanced') {
|
||||
echo " <option value='$dir_name' selected='selected'>$dir_label</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='$dir_name'>$dir_label</option>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " <br />\n";
|
||||
echo " Select a theme to set as the default.<br />\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Domain name\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='domain_name' maxlength='255' value=\"$domain_name\"><br />\n";
|
||||
echo " Enter the default domain name. \n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " Database Type\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select name='db_type' id='db_type' class='formfld' id='form_tag' onchange='db_type_onchange();'>\n";
|
||||
if (extension_loaded('pdo_pgsql')) { echo " <option value='pgsql'>postgresql</option>\n"; }
|
||||
if (extension_loaded('pdo_mysql')) { echo " <option value='mysql'>mysql</option>\n"; }
|
||||
if (extension_loaded('pdo_sqlite')) { echo " <option value='sqlite' selected='selected'>sqlite</option>\n"; } //set sqlite as the default
|
||||
echo " </select><br />\n";
|
||||
echo " Select the database type.\n";
|
||||
echo "\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "</table>";
|
||||
//echo " <div style='text-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' name='".$text['button-next']."'>\n";
|
||||
//echo " </div>\n";
|
||||
echo "</form>\n";
|
||||
?>
|
||||
@@ -1,137 +1,137 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
//fetch the values
|
||||
require_once "core/install/resources/classes/detect_switch.php";
|
||||
$switch_detect = new detect_switch($event_host, $event_port, $event_password);
|
||||
//$switch_detect->event_port = 2021;
|
||||
$detect_ok = true;
|
||||
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 "<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";
|
||||
|
||||
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='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";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
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."\" />\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-event_host']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
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."\"/>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-event_port']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
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."\"/>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-event_password']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td colspan='2' align='right'>\n";
|
||||
echo " <br>";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
|
||||
echo "</table>";
|
||||
if($detect_ok){
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='4' align='left' nowrap><b>".$text['title-detected_configuration']."</b></td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
$id = 1;
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap' width='15%'>\n";
|
||||
echo "Switch version\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' width='35%' align='left'>\n";
|
||||
echo " ".$switch_detect->version()."\n";
|
||||
echo "</td>\n";
|
||||
|
||||
foreach ($switch_detect->get_dirs() 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";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' width='35%' align='left'>\n";
|
||||
echo " ".$switch_detect->$folder()."\n";
|
||||
echo "</td>\n";
|
||||
if($id % 2 == 1){ echo "</tr>\n"; }
|
||||
$id++;
|
||||
}
|
||||
if($id % 2 == 1){ echo "</tr>\n"; }
|
||||
echo "<tr>\n";
|
||||
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) {
|
||||
if($id % 2 == 0){ echo "<tr>\n"; }
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap' width='15%'>\n";
|
||||
echo $folder."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' width='35%' align='left'>\n";
|
||||
echo " ".$switch_detect->$folder()."\n";
|
||||
echo "</td>\n";
|
||||
if($id % 2 == 1){ echo "</tr>\n"; }
|
||||
$id++;
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Matthew Vale <github@mafoo.org>
|
||||
*/
|
||||
//fetch the values
|
||||
require_once "core/install/resources/classes/detect_switch.php";
|
||||
$switch_detect = new detect_switch($event_host, $event_port, $event_password);
|
||||
//$switch_detect->event_port = 2021;
|
||||
$detect_ok = true;
|
||||
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 "<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";
|
||||
|
||||
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='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";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
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."\" />\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-event_host']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
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."\"/>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-event_port']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
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."\"/>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-event_password']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td colspan='2' align='right'>\n";
|
||||
echo " <br>";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
|
||||
echo "</table>";
|
||||
if($detect_ok){
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='4' align='left' nowrap><b>".$text['title-detected_configuration']."</b></td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
$id = 1;
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap' width='15%'>\n";
|
||||
echo "Switch version\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' width='35%' align='left'>\n";
|
||||
echo " ".$switch_detect->version()."\n";
|
||||
echo "</td>\n";
|
||||
|
||||
foreach ($switch_detect->get_dirs() 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";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' width='35%' align='left'>\n";
|
||||
echo " ".$switch_detect->$folder()."\n";
|
||||
echo "</td>\n";
|
||||
if($id % 2 == 1){ echo "</tr>\n"; }
|
||||
$id++;
|
||||
}
|
||||
if($id % 2 == 1){ echo "</tr>\n"; }
|
||||
echo "<tr>\n";
|
||||
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) {
|
||||
if($id % 2 == 0){ echo "<tr>\n"; }
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap' width='15%'>\n";
|
||||
echo $folder."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' width='35%' align='left'>\n";
|
||||
echo " ".$switch_detect->$folder()."\n";
|
||||
echo "</td>\n";
|
||||
if($id % 2 == 1){ echo "</tr>\n"; }
|
||||
$id++;
|
||||
}
|
||||
echo "</table>";
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,65 +1,65 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
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='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\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";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$text['label-select_language']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left'>\n";
|
||||
echo " <table cellpadding='0' cellspacing='0'>";
|
||||
foreach($_SESSION['app']['languages'] as $lang_code){
|
||||
echo " <tr>";
|
||||
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>";
|
||||
echo " <br />\n";
|
||||
echo " ".$text['description-select_language']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>";
|
||||
echo "<br><br>";
|
||||
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
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='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\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";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$text['label-select_language']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left'>\n";
|
||||
echo " <table cellpadding='0' cellspacing='0'>";
|
||||
foreach($_SESSION['app']['languages'] as $lang_code){
|
||||
echo " <tr>";
|
||||
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>";
|
||||
echo " <br />\n";
|
||||
echo " ".$text['description-select_language']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>";
|
||||
echo "<br><br>";
|
||||
|
||||
?>
|
||||
@@ -1,461 +1,461 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (if_group('superadmin')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
// retrieve software uuid
|
||||
$sql = "select software_uuid, software_url, software_version from v_software";
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$software_uuid = $row["software_uuid"];
|
||||
$software_url = $row["software_url"];
|
||||
$software_version = $row["software_version"];
|
||||
break; // limit to 1 row
|
||||
}
|
||||
}
|
||||
unset($sql, $prep_statement);
|
||||
|
||||
if (count($_REQUEST) > 0) {
|
||||
|
||||
// prepare demographic information **********************************************
|
||||
|
||||
// fusionpbx version
|
||||
$software_ver = $software_version;
|
||||
|
||||
// php version
|
||||
$php_ver = phpversion();
|
||||
|
||||
// webserver name & version
|
||||
$web_server = $_SERVER['SERVER_SOFTWARE'];
|
||||
|
||||
// switch version
|
||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
if ($fp) {
|
||||
$switch_result = event_socket_request($fp, 'api version');
|
||||
}
|
||||
$switch_ver = trim($switch_result);
|
||||
|
||||
// database name & version
|
||||
switch ($db_type) {
|
||||
case "pgsql" : $db_ver_query = "select version() as db_ver;"; break;
|
||||
case "mysql" : $db_ver_query = "select version() as db_ver;"; break;
|
||||
case "sqlite" : $db_ver_query = "select sqlite_version() as db_ver;"; break;
|
||||
}
|
||||
$prep_statement = $db->prepare($db_ver_query);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$database_version = $row["db_ver"];
|
||||
break; // limit to 1 row
|
||||
}
|
||||
}
|
||||
unset($db_ver_query, $prep_statement);
|
||||
$db_ver = $database_version;
|
||||
|
||||
// operating system name & version
|
||||
$os_platform = PHP_OS;
|
||||
$os_info_1 = php_uname("a");
|
||||
if ($os_platform == "Linux") {
|
||||
$os_info_2 = shell_exec("cat /etc/*{release,version}");
|
||||
$os_info_2 .= shell_exec("lsb_release -d -s");
|
||||
}
|
||||
else if (substr(strtoupper($os_platform), 0, 3) == "WIN") {
|
||||
$os_info_2 = trim(shell_exec("ver"));
|
||||
}
|
||||
|
||||
// **************************************************************************
|
||||
|
||||
// check for demographic only submit
|
||||
if (isset($_GET["demo"])) {
|
||||
|
||||
// update remote server record with new values
|
||||
$url = "https://".$software_url."/app/notifications/notifications_manage.php";
|
||||
$url .= "?demo";
|
||||
$url .= "&id=".$software_uuid;
|
||||
$url .= "&software_ver=".urlencode($software_ver);
|
||||
$url .= "&php_ver=".urlencode($php_ver);
|
||||
$url .= "&web_server=".urlencode($web_server);
|
||||
$url .= "&switch_ver=".urlencode($switch_ver);
|
||||
$url .= "&db_type=".urlencode($db_type);
|
||||
$url .= "&db_ver=".urlencode($db_ver);
|
||||
$url .= "&os_platform=".urlencode($os_platform);
|
||||
$url .= "&os_info_1=".urlencode($os_info_1);
|
||||
$url .= "&os_info_2=".urlencode($os_info_2);
|
||||
|
||||
if (file_get_contents(__FILE__) && ini_get('allow_url_fopen')) {
|
||||
$response = file_get_contents($url);
|
||||
}
|
||||
else if (function_exists('curl_version')) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
}
|
||||
|
||||
// parse response
|
||||
$response = json_decode($response, true);
|
||||
|
||||
if ($response['result'] == 'submitted') {
|
||||
// set message
|
||||
$_SESSION["message"] = $text['message-demographics_submitted'];
|
||||
}
|
||||
|
||||
header("Location: notification_edit.php");
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
// retrieve submitted values
|
||||
$project_notifications = check_str($_POST["project_notifications"]);
|
||||
$project_security = check_str($_POST["project_security"]);
|
||||
$project_releases = check_str($_POST["project_releases"]);
|
||||
$project_events = check_str($_POST["project_events"]);
|
||||
$project_news = check_str($_POST["project_news"]);
|
||||
$project_notification_method = check_str($_POST["project_notification_method"]);
|
||||
$project_notification_recipient = check_str($_POST["project_notification_recipient"]);
|
||||
|
||||
// get local project notification participation flag
|
||||
$sql = "select project_notifications from v_notifications";
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$current_project_notifications = $row["project_notifications"];
|
||||
break; // limit to 1 row
|
||||
}
|
||||
}
|
||||
unset($sql, $prep_statement);
|
||||
|
||||
// check if remote record should be removed
|
||||
if ($project_notifications == 'false') {
|
||||
|
||||
if ($current_project_notifications == 'true') {
|
||||
// remove remote server record
|
||||
$url = "https://".$software_url."/app/notifications/notifications_manage.php?id=".$software_uuid."&action=delete";
|
||||
if (file_get_contents(__FILE__) && ini_get('allow_url_fopen')) {
|
||||
$response = file_get_contents($url);
|
||||
}
|
||||
else if (function_exists('curl_version')) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
}
|
||||
|
||||
// parse response
|
||||
$response = json_decode($response, true);
|
||||
|
||||
if ($response['result'] == 'deleted') {
|
||||
// set local project notification participation flag to false
|
||||
$sql = "update v_notifications set project_notifications = 'false'";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
}
|
||||
}
|
||||
// redirect
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
header("Location: notification_edit.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
// check for invalid values
|
||||
if ($project_notifications == 'true') {
|
||||
if (
|
||||
($project_notification_method == 'email' && !valid_email($project_notification_recipient)) ||
|
||||
($project_notification_method == 'email' && $project_notification_recipient == '')
|
||||
) {
|
||||
$_SESSION["postback"] = $_POST;
|
||||
$_SESSION["message_mood"] = 'negative';
|
||||
$_SESSION["message"] = $text['message-invalid_recipient'];
|
||||
header("Location: notification_edit.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
// update remote server record with new values
|
||||
$url = "https://".$software_url."/app/notifications/notifications_manage.php";
|
||||
$url .= "?id=".$software_uuid;
|
||||
$url .= "&security=".$project_security;
|
||||
$url .= "&releases=".$project_releases;
|
||||
$url .= "&events=".$project_events;
|
||||
$url .= "&news=".$project_news;
|
||||
$url .= "&method=".$project_notification_method;
|
||||
$url .= "&recipient=".urlencode($project_notification_recipient);
|
||||
$url .= "&software_ver=".urlencode($software_ver);
|
||||
$url .= "&php_ver=".urlencode($php_ver);
|
||||
$url .= "&web_server=".urlencode($web_server);
|
||||
$url .= "&switch_ver=".urlencode($switch_ver);
|
||||
$url .= "&db_type=".urlencode($db_type);
|
||||
$url .= "&db_ver=".urlencode($db_ver);
|
||||
$url .= "&os_platform=".urlencode($os_platform);
|
||||
$url .= "&os_info_1=".urlencode($os_info_1);
|
||||
$url .= "&os_info_2=".urlencode($os_info_2);
|
||||
|
||||
if (file_get_contents(__FILE__) && ini_get('allow_url_fopen')) {
|
||||
$response = file_get_contents($url);
|
||||
}
|
||||
else if (function_exists('curl_version')) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
}
|
||||
|
||||
// parse response
|
||||
$response = json_decode($response, true);
|
||||
|
||||
if ($response['result'] == 'updated' || $response['result'] == 'inserted') {
|
||||
// set local project notification participation flag to true
|
||||
$sql = "update v_notifications set project_notifications = 'true'";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
// set message
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
if (
|
||||
$project_security == 'false' &&
|
||||
$project_releases == 'false' &&
|
||||
$project_events == 'false' &&
|
||||
$project_news == 'false'
|
||||
) {
|
||||
$_SESSION["message_mood"] = 'alert';
|
||||
$_SESSION["message"] = $_SESSION["message"]." - ".$text['message-no_channels'];
|
||||
}
|
||||
// redirect
|
||||
header("Location: notification_edit.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// check postback session
|
||||
if (!isset($_SESSION["postback"])) {
|
||||
|
||||
// check local project notification participation flag
|
||||
$sql = "select project_notifications from v_notifications";
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$setting["project_notifications"] = $row["project_notifications"];
|
||||
break; // limit to 1 row
|
||||
}
|
||||
}
|
||||
unset($sql, $prep_statement);
|
||||
|
||||
// if participation enabled
|
||||
if ($setting["project_notifications"] == 'true') {
|
||||
|
||||
// get current project notification preferences
|
||||
$url = "https://".$software_url."/app/notifications/notifications_manage.php?id=".$software_uuid;
|
||||
if (file_get_contents(__FILE__) && ini_get('allow_url_fopen')) {
|
||||
$response = file_get_contents($url);
|
||||
}
|
||||
else if (function_exists('curl_version')) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
}
|
||||
|
||||
// parse response
|
||||
$setting = json_decode($response, true);
|
||||
$setting["project_notifications"] = 'true';
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
// load postback variables
|
||||
$setting = fix_postback($_SESSION["postback"]);
|
||||
unset($_SESSION["postback"]);
|
||||
|
||||
}
|
||||
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-notifications'];
|
||||
|
||||
// show the content
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' nowrap='nowrap'><b>".$text['header-notifications']."</b><br><br></td>\n";
|
||||
echo " <td align='right'>";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||
echo " <br><br>";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' colspan='2'>\n";
|
||||
echo " ".$text['description-notifications']."<br /><br />\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td width='30%' class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_notifications']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' align='left'>\n";
|
||||
echo " <select name='project_notifications' class='formfld' style='width: auto;' onchange=\"$('#notification_channels').slideToggle();\">\n";
|
||||
echo " <option value='false' ".(($setting["project_notifications"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_notifications"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_notifications']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo "</table>\n";
|
||||
|
||||
echo "<div id='notification_channels' ".(($setting["project_notifications"] != 'true') ? "style='display: none;'" : null).">\n";
|
||||
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_security']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' align='left'>\n";
|
||||
echo " <select name='project_security' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='false' ".(($setting["project_security"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_security"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_security']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_releases']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left'>\n";
|
||||
echo " <select name='project_releases' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='false' ".(($setting["project_releases"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_releases"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_releases']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_events']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' align='left'>\n";
|
||||
echo " <select name='project_events' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='false' ".(($setting["project_events"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_events"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_events']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_news']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left'>\n";
|
||||
echo " <select name='project_news' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='false' ".(($setting["project_news"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_news"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_news']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <input type='hidden' name='project_notification_method' value='email'>\n";
|
||||
/*
|
||||
echo " <tr>\n";
|
||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_notification_method']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' align='left'>\n";
|
||||
echo " <select name='project_notification_method' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='email' ".(($setting["project_notification_method"] == 'email') ? "selected='selected'" : null).">".$text['option-email']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_notification_method']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
*/
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_notification_recipient']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='project_notification_recipient' maxlength='50' value='".$setting["project_notification_recipient"]."'><br />\n";
|
||||
echo $text['description-project_notification_recipient']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td colspan='2' class='vtable' style='padding: 15px;' align='right'>\n";
|
||||
echo " ".$text['message-disclaimer']."\n";
|
||||
echo " <br /><br />\n";
|
||||
echo " ".$text['message-demographics']." <a href='?demo'>".$text['message-demographics_click_here']."</a>.\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='right'>\n";
|
||||
echo " <br>";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
|
||||
echo "</table>\n";
|
||||
|
||||
echo "</form>\n";
|
||||
|
||||
// include the footer
|
||||
require_once "resources/footer.php";
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
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
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
if (if_group('superadmin')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
// retrieve software uuid
|
||||
$sql = "select software_uuid, software_url, software_version from v_software";
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$software_uuid = $row["software_uuid"];
|
||||
$software_url = $row["software_url"];
|
||||
$software_version = $row["software_version"];
|
||||
break; // limit to 1 row
|
||||
}
|
||||
}
|
||||
unset($sql, $prep_statement);
|
||||
|
||||
if (count($_REQUEST) > 0) {
|
||||
|
||||
// prepare demographic information **********************************************
|
||||
|
||||
// fusionpbx version
|
||||
$software_ver = $software_version;
|
||||
|
||||
// php version
|
||||
$php_ver = phpversion();
|
||||
|
||||
// webserver name & version
|
||||
$web_server = $_SERVER['SERVER_SOFTWARE'];
|
||||
|
||||
// switch version
|
||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
if ($fp) {
|
||||
$switch_result = event_socket_request($fp, 'api version');
|
||||
}
|
||||
$switch_ver = trim($switch_result);
|
||||
|
||||
// database name & version
|
||||
switch ($db_type) {
|
||||
case "pgsql" : $db_ver_query = "select version() as db_ver;"; break;
|
||||
case "mysql" : $db_ver_query = "select version() as db_ver;"; break;
|
||||
case "sqlite" : $db_ver_query = "select sqlite_version() as db_ver;"; break;
|
||||
}
|
||||
$prep_statement = $db->prepare($db_ver_query);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$database_version = $row["db_ver"];
|
||||
break; // limit to 1 row
|
||||
}
|
||||
}
|
||||
unset($db_ver_query, $prep_statement);
|
||||
$db_ver = $database_version;
|
||||
|
||||
// operating system name & version
|
||||
$os_platform = PHP_OS;
|
||||
$os_info_1 = php_uname("a");
|
||||
if ($os_platform == "Linux") {
|
||||
$os_info_2 = shell_exec("cat /etc/*{release,version}");
|
||||
$os_info_2 .= shell_exec("lsb_release -d -s");
|
||||
}
|
||||
else if (substr(strtoupper($os_platform), 0, 3) == "WIN") {
|
||||
$os_info_2 = trim(shell_exec("ver"));
|
||||
}
|
||||
|
||||
// **************************************************************************
|
||||
|
||||
// check for demographic only submit
|
||||
if (isset($_GET["demo"])) {
|
||||
|
||||
// update remote server record with new values
|
||||
$url = "https://".$software_url."/app/notifications/notifications_manage.php";
|
||||
$url .= "?demo";
|
||||
$url .= "&id=".$software_uuid;
|
||||
$url .= "&software_ver=".urlencode($software_ver);
|
||||
$url .= "&php_ver=".urlencode($php_ver);
|
||||
$url .= "&web_server=".urlencode($web_server);
|
||||
$url .= "&switch_ver=".urlencode($switch_ver);
|
||||
$url .= "&db_type=".urlencode($db_type);
|
||||
$url .= "&db_ver=".urlencode($db_ver);
|
||||
$url .= "&os_platform=".urlencode($os_platform);
|
||||
$url .= "&os_info_1=".urlencode($os_info_1);
|
||||
$url .= "&os_info_2=".urlencode($os_info_2);
|
||||
|
||||
if (file_get_contents(__FILE__) && ini_get('allow_url_fopen')) {
|
||||
$response = file_get_contents($url);
|
||||
}
|
||||
else if (function_exists('curl_version')) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
}
|
||||
|
||||
// parse response
|
||||
$response = json_decode($response, true);
|
||||
|
||||
if ($response['result'] == 'submitted') {
|
||||
// set message
|
||||
$_SESSION["message"] = $text['message-demographics_submitted'];
|
||||
}
|
||||
|
||||
header("Location: notification_edit.php");
|
||||
exit;
|
||||
|
||||
}
|
||||
|
||||
// retrieve submitted values
|
||||
$project_notifications = check_str($_POST["project_notifications"]);
|
||||
$project_security = check_str($_POST["project_security"]);
|
||||
$project_releases = check_str($_POST["project_releases"]);
|
||||
$project_events = check_str($_POST["project_events"]);
|
||||
$project_news = check_str($_POST["project_news"]);
|
||||
$project_notification_method = check_str($_POST["project_notification_method"]);
|
||||
$project_notification_recipient = check_str($_POST["project_notification_recipient"]);
|
||||
|
||||
// get local project notification participation flag
|
||||
$sql = "select project_notifications from v_notifications";
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$current_project_notifications = $row["project_notifications"];
|
||||
break; // limit to 1 row
|
||||
}
|
||||
}
|
||||
unset($sql, $prep_statement);
|
||||
|
||||
// check if remote record should be removed
|
||||
if ($project_notifications == 'false') {
|
||||
|
||||
if ($current_project_notifications == 'true') {
|
||||
// remove remote server record
|
||||
$url = "https://".$software_url."/app/notifications/notifications_manage.php?id=".$software_uuid."&action=delete";
|
||||
if (file_get_contents(__FILE__) && ini_get('allow_url_fopen')) {
|
||||
$response = file_get_contents($url);
|
||||
}
|
||||
else if (function_exists('curl_version')) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
}
|
||||
|
||||
// parse response
|
||||
$response = json_decode($response, true);
|
||||
|
||||
if ($response['result'] == 'deleted') {
|
||||
// set local project notification participation flag to false
|
||||
$sql = "update v_notifications set project_notifications = 'false'";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
}
|
||||
}
|
||||
// redirect
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
header("Location: notification_edit.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
// check for invalid values
|
||||
if ($project_notifications == 'true') {
|
||||
if (
|
||||
($project_notification_method == 'email' && !valid_email($project_notification_recipient)) ||
|
||||
($project_notification_method == 'email' && $project_notification_recipient == '')
|
||||
) {
|
||||
$_SESSION["postback"] = $_POST;
|
||||
$_SESSION["message_mood"] = 'negative';
|
||||
$_SESSION["message"] = $text['message-invalid_recipient'];
|
||||
header("Location: notification_edit.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
// update remote server record with new values
|
||||
$url = "https://".$software_url."/app/notifications/notifications_manage.php";
|
||||
$url .= "?id=".$software_uuid;
|
||||
$url .= "&security=".$project_security;
|
||||
$url .= "&releases=".$project_releases;
|
||||
$url .= "&events=".$project_events;
|
||||
$url .= "&news=".$project_news;
|
||||
$url .= "&method=".$project_notification_method;
|
||||
$url .= "&recipient=".urlencode($project_notification_recipient);
|
||||
$url .= "&software_ver=".urlencode($software_ver);
|
||||
$url .= "&php_ver=".urlencode($php_ver);
|
||||
$url .= "&web_server=".urlencode($web_server);
|
||||
$url .= "&switch_ver=".urlencode($switch_ver);
|
||||
$url .= "&db_type=".urlencode($db_type);
|
||||
$url .= "&db_ver=".urlencode($db_ver);
|
||||
$url .= "&os_platform=".urlencode($os_platform);
|
||||
$url .= "&os_info_1=".urlencode($os_info_1);
|
||||
$url .= "&os_info_2=".urlencode($os_info_2);
|
||||
|
||||
if (file_get_contents(__FILE__) && ini_get('allow_url_fopen')) {
|
||||
$response = file_get_contents($url);
|
||||
}
|
||||
else if (function_exists('curl_version')) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
}
|
||||
|
||||
// parse response
|
||||
$response = json_decode($response, true);
|
||||
|
||||
if ($response['result'] == 'updated' || $response['result'] == 'inserted') {
|
||||
// set local project notification participation flag to true
|
||||
$sql = "update v_notifications set project_notifications = 'true'";
|
||||
$db->exec(check_sql($sql));
|
||||
unset($sql);
|
||||
// set message
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
if (
|
||||
$project_security == 'false' &&
|
||||
$project_releases == 'false' &&
|
||||
$project_events == 'false' &&
|
||||
$project_news == 'false'
|
||||
) {
|
||||
$_SESSION["message_mood"] = 'alert';
|
||||
$_SESSION["message"] = $_SESSION["message"]." - ".$text['message-no_channels'];
|
||||
}
|
||||
// redirect
|
||||
header("Location: notification_edit.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// check postback session
|
||||
if (!isset($_SESSION["postback"])) {
|
||||
|
||||
// check local project notification participation flag
|
||||
$sql = "select project_notifications from v_notifications";
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
$setting["project_notifications"] = $row["project_notifications"];
|
||||
break; // limit to 1 row
|
||||
}
|
||||
}
|
||||
unset($sql, $prep_statement);
|
||||
|
||||
// if participation enabled
|
||||
if ($setting["project_notifications"] == 'true') {
|
||||
|
||||
// get current project notification preferences
|
||||
$url = "https://".$software_url."/app/notifications/notifications_manage.php?id=".$software_uuid;
|
||||
if (file_get_contents(__FILE__) && ini_get('allow_url_fopen')) {
|
||||
$response = file_get_contents($url);
|
||||
}
|
||||
else if (function_exists('curl_version')) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
}
|
||||
|
||||
// parse response
|
||||
$setting = json_decode($response, true);
|
||||
$setting["project_notifications"] = 'true';
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
// load postback variables
|
||||
$setting = fix_postback($_SESSION["postback"]);
|
||||
unset($_SESSION["postback"]);
|
||||
|
||||
}
|
||||
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-notifications'];
|
||||
|
||||
// show the content
|
||||
echo "<form method='post' name='frm' action=''>\n";
|
||||
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' nowrap='nowrap'><b>".$text['header-notifications']."</b><br><br></td>\n";
|
||||
echo " <td align='right'>";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||
echo " <br><br>";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' colspan='2'>\n";
|
||||
echo " ".$text['description-notifications']."<br /><br />\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td width='30%' class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_notifications']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' align='left'>\n";
|
||||
echo " <select name='project_notifications' class='formfld' style='width: auto;' onchange=\"$('#notification_channels').slideToggle();\">\n";
|
||||
echo " <option value='false' ".(($setting["project_notifications"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_notifications"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_notifications']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo "</table>\n";
|
||||
|
||||
echo "<div id='notification_channels' ".(($setting["project_notifications"] != 'true') ? "style='display: none;'" : null).">\n";
|
||||
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_security']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' align='left'>\n";
|
||||
echo " <select name='project_security' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='false' ".(($setting["project_security"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_security"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_security']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_releases']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left'>\n";
|
||||
echo " <select name='project_releases' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='false' ".(($setting["project_releases"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_releases"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_releases']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_events']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' align='left'>\n";
|
||||
echo " <select name='project_events' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='false' ".(($setting["project_events"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_events"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_events']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_news']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left'>\n";
|
||||
echo " <select name='project_news' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='false' ".(($setting["project_news"] == 'false') ? "selected='selected'" : null).">".$text['option-disabled']."</option>\n";
|
||||
echo " <option value='true' ".(($setting["project_news"] == 'true') ? "selected='selected'" : null).">".$text['option-enabled']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_news']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo " <input type='hidden' name='project_notification_method' value='email'>\n";
|
||||
/*
|
||||
echo " <tr>\n";
|
||||
echo " <td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_notification_method']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' align='left'>\n";
|
||||
echo " <select name='project_notification_method' class='formfld' style='width: auto;'>\n";
|
||||
echo " <option value='email' ".(($setting["project_notification_method"] == 'email') ? "selected='selected'" : null).">".$text['option-email']."</option>\n";
|
||||
echo " </select><br />\n";
|
||||
echo $text['description-project_notification_method']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
*/
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo $text['label-project_notification_recipient']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='project_notification_recipient' maxlength='50' value='".$setting["project_notification_recipient"]."'><br />\n";
|
||||
echo $text['description-project_notification_recipient']."\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
|
||||
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td colspan='2' class='vtable' style='padding: 15px;' align='right'>\n";
|
||||
echo " ".$text['message-disclaimer']."\n";
|
||||
echo " <br /><br />\n";
|
||||
echo " ".$text['message-demographics']." <a href='?demo'>".$text['message-demographics_click_here']."</a>.\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
echo "<table cellpadding='0' cellspacing='0' width='100%' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='right'>\n";
|
||||
echo " <br>";
|
||||
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>";
|
||||
|
||||
echo "</table>\n";
|
||||
|
||||
echo "</form>\n";
|
||||
|
||||
// include the footer
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
@@ -1,249 +1,249 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2015
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
set_time_limit(600); //sec (10 min)
|
||||
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check the permission
|
||||
if (
|
||||
!permission_exists('upgrade_source') &&
|
||||
!permission_exists('upgrade_schema') &&
|
||||
!permission_exists('upgrade_apps') &&
|
||||
!permission_exists('menu_restore') &&
|
||||
!permission_exists('group_edit')
|
||||
) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
if (sizeof($_POST) > 0) {
|
||||
|
||||
$do = $_POST['do'];
|
||||
|
||||
// run source update
|
||||
if ($do["source"] && permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx")) {
|
||||
chdir($_SERVER["PROJECT_ROOT"]);
|
||||
exec("git pull", $response_source_update);
|
||||
$update_failed = true;
|
||||
if (sizeof($response_source_update) > 0) {
|
||||
$_SESSION["response_source_update"] = $response_source_update;
|
||||
foreach ($response_source_update as $response_line) {
|
||||
if (substr_count($response_line, "Updating ") > 0 || substr_count($response_line, "Already up-to-date.") > 0) {
|
||||
$update_failed = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($update_failed) {
|
||||
$_SESSION["message_delay"] = 3500;
|
||||
$_SESSION["message_mood"] = 'negative';
|
||||
$response_message = $text['message-upgrade_source_failed'];
|
||||
}
|
||||
}
|
||||
|
||||
// load an array of the database schema and compare it with the active database
|
||||
if ($do["schema"] && permission_exists("upgrade_schema")) {
|
||||
$response_message = $text['message-upgrade_schema'];
|
||||
|
||||
$upgrade_data_types = check_str($do["data_types"]);
|
||||
require_once "resources/classes/schema.php";
|
||||
$obj = new schema();
|
||||
$_SESSION["schema"]["response"] = $obj->schema("html");
|
||||
}
|
||||
|
||||
// process the apps defaults
|
||||
if ($do["apps"] && permission_exists("upgrade_apps")) {
|
||||
$response_message = $text['message-upgrade_apps'];
|
||||
|
||||
require_once "resources/classes/domains.php";
|
||||
$domain = new domains;
|
||||
$domain->upgrade();
|
||||
}
|
||||
|
||||
// restore defaults of the selected menu
|
||||
if ($do["menu"] && permission_exists("menu_restore")) {
|
||||
$sel_menu = explode('|', check_str($_POST["sel_menu"]));
|
||||
$menu_uuid = $sel_menu[0];
|
||||
$menu_language = $sel_menu[1];
|
||||
$included = true;
|
||||
require_once("core/menu/menu_restore_default.php");
|
||||
unset($sel_menu);
|
||||
$response_message = $text['message-upgrade_menu'];
|
||||
}
|
||||
|
||||
// restore default permissions
|
||||
if ($do["permissions"] && permission_exists("group_edit")) {
|
||||
$included = true;
|
||||
require_once("core/users/permissions_default.php");
|
||||
$response_message = "Permission Defaults Restored";
|
||||
}
|
||||
|
||||
if (sizeof($_POST['do']) > 1) {
|
||||
$response_message = $text['message-upgrade'];
|
||||
}
|
||||
|
||||
$_SESSION["message"] = $response_message;
|
||||
header("Location: ".PROJECT_PATH."/core/upgrade/index.php");
|
||||
exit;
|
||||
|
||||
} // end if
|
||||
|
||||
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-upgrade'];
|
||||
|
||||
echo "<b>".$text['header-upgrade']."</b>";
|
||||
echo "<br><br>";
|
||||
echo $text['description-upgrade'];
|
||||
echo "<br><br>";
|
||||
|
||||
echo "<form name='frm' method='post' action=''>\n";
|
||||
|
||||
if (permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx") && is_writeable($_SERVER["PROJECT_ROOT"]."/.git")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_source'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_source'><input type='checkbox' name='do[source]' id='do_source' value='1'> ".$text['description-upgrade_source']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
if (permission_exists("upgrade_schema")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_schema'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_schema'><input type='checkbox' name='do[schema]' id='do_schema' value='1' onchange=\"$('#do_data_types').prop('checked', false); $('#tr_data_types').slideToggle('fast');\"> ".$text['description-upgrade_schema']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
echo "<div id='tr_data_types' style='display: none;'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_data_types'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_data_types'><input type='checkbox' name='do[data_types]' id='do_data_types' value='true'> ".$text['description-upgrade_data_types']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if (permission_exists("upgrade_apps")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_apps'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_apps'><input type='checkbox' name='do[apps]' id='do_apps' value='1'> ".$text['description-upgrade_apps']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
if (permission_exists("menu_restore")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_menu'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_menu'>";
|
||||
echo "<input type='checkbox' name='do[menu]' id='do_menu' value='1' onchange=\"$('#sel_menu').fadeToggle('fast');\">";
|
||||
echo "<select name='sel_menu' id='sel_menu' class='formfld' style='display: none; vertical-align: middle; margin-left: 5px;'>";
|
||||
$sql = "select * from v_menus ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
echo "<option value='".$row["menu_uuid"]."|".$row["menu_language"]."'>".$row["menu_name"]."</option>";
|
||||
}
|
||||
unset ($sql, $result, $prep_statement);
|
||||
echo "</select>";
|
||||
echo " ".$text['description-upgrade_menu'];
|
||||
echo "</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
if (permission_exists("group_edit")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_permissions'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_permissions'><input type='checkbox' name='do[permissions]' id='do_permissions' value='1'> ".$text['description-upgrade_permissions']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
echo "<br>";
|
||||
echo "<div style='text-align: right;'><input type='submit' class='btn' value='".$text['button-upgrade_execute']."'></div>";
|
||||
echo "<br><br>";
|
||||
echo "</form>\n";
|
||||
|
||||
// output result of source update
|
||||
if (sizeof($_SESSION["response_source_update"]) > 0) {
|
||||
echo "<br />";
|
||||
echo "<b>".$text['header-source_update_results']."</b>";
|
||||
echo "<br /><br />";
|
||||
echo "<pre>";
|
||||
echo implode("\n", $_SESSION["response_source_update"]);
|
||||
echo "</pre>";
|
||||
echo "<br /><br />";
|
||||
unset($_SESSION["response_source_update"]);
|
||||
}
|
||||
|
||||
// output result of upgrade schema
|
||||
if ($_SESSION["schema"]["response"] != '') {
|
||||
echo "<br />";
|
||||
echo "<b>".$text['header-upgrade_schema_results']."</b>";
|
||||
echo "<br /><br />";
|
||||
echo $_SESSION["schema"]["response"];
|
||||
unset($_SESSION["schema"]["response"]);
|
||||
}
|
||||
|
||||
require_once "resources/footer.php";
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2015
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
|
||||
set_time_limit(600); //sec (10 min)
|
||||
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check the permission
|
||||
if (
|
||||
!permission_exists('upgrade_source') &&
|
||||
!permission_exists('upgrade_schema') &&
|
||||
!permission_exists('upgrade_apps') &&
|
||||
!permission_exists('menu_restore') &&
|
||||
!permission_exists('group_edit')
|
||||
) {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
if (sizeof($_POST) > 0) {
|
||||
|
||||
$do = $_POST['do'];
|
||||
|
||||
// run source update
|
||||
if ($do["source"] && permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx")) {
|
||||
chdir($_SERVER["PROJECT_ROOT"]);
|
||||
exec("git pull", $response_source_update);
|
||||
$update_failed = true;
|
||||
if (sizeof($response_source_update) > 0) {
|
||||
$_SESSION["response_source_update"] = $response_source_update;
|
||||
foreach ($response_source_update as $response_line) {
|
||||
if (substr_count($response_line, "Updating ") > 0 || substr_count($response_line, "Already up-to-date.") > 0) {
|
||||
$update_failed = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($update_failed) {
|
||||
$_SESSION["message_delay"] = 3500;
|
||||
$_SESSION["message_mood"] = 'negative';
|
||||
$response_message = $text['message-upgrade_source_failed'];
|
||||
}
|
||||
}
|
||||
|
||||
// load an array of the database schema and compare it with the active database
|
||||
if ($do["schema"] && permission_exists("upgrade_schema")) {
|
||||
$response_message = $text['message-upgrade_schema'];
|
||||
|
||||
$upgrade_data_types = check_str($do["data_types"]);
|
||||
require_once "resources/classes/schema.php";
|
||||
$obj = new schema();
|
||||
$_SESSION["schema"]["response"] = $obj->schema("html");
|
||||
}
|
||||
|
||||
// process the apps defaults
|
||||
if ($do["apps"] && permission_exists("upgrade_apps")) {
|
||||
$response_message = $text['message-upgrade_apps'];
|
||||
|
||||
require_once "resources/classes/domains.php";
|
||||
$domain = new domains;
|
||||
$domain->upgrade();
|
||||
}
|
||||
|
||||
// restore defaults of the selected menu
|
||||
if ($do["menu"] && permission_exists("menu_restore")) {
|
||||
$sel_menu = explode('|', check_str($_POST["sel_menu"]));
|
||||
$menu_uuid = $sel_menu[0];
|
||||
$menu_language = $sel_menu[1];
|
||||
$included = true;
|
||||
require_once("core/menu/menu_restore_default.php");
|
||||
unset($sel_menu);
|
||||
$response_message = $text['message-upgrade_menu'];
|
||||
}
|
||||
|
||||
// restore default permissions
|
||||
if ($do["permissions"] && permission_exists("group_edit")) {
|
||||
$included = true;
|
||||
require_once("core/users/permissions_default.php");
|
||||
$response_message = "Permission Defaults Restored";
|
||||
}
|
||||
|
||||
if (sizeof($_POST['do']) > 1) {
|
||||
$response_message = $text['message-upgrade'];
|
||||
}
|
||||
|
||||
$_SESSION["message"] = $response_message;
|
||||
header("Location: ".PROJECT_PATH."/core/upgrade/index.php");
|
||||
exit;
|
||||
|
||||
} // end if
|
||||
|
||||
|
||||
require_once "resources/header.php";
|
||||
$document['title'] = $text['title-upgrade'];
|
||||
|
||||
echo "<b>".$text['header-upgrade']."</b>";
|
||||
echo "<br><br>";
|
||||
echo $text['description-upgrade'];
|
||||
echo "<br><br>";
|
||||
|
||||
echo "<form name='frm' method='post' action=''>\n";
|
||||
|
||||
if (permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx") && is_writeable($_SERVER["PROJECT_ROOT"]."/.git")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_source'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_source'><input type='checkbox' name='do[source]' id='do_source' value='1'> ".$text['description-upgrade_source']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
if (permission_exists("upgrade_schema")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_schema'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_schema'><input type='checkbox' name='do[schema]' id='do_schema' value='1' onchange=\"$('#do_data_types').prop('checked', false); $('#tr_data_types').slideToggle('fast');\"> ".$text['description-upgrade_schema']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
echo "<div id='tr_data_types' style='display: none;'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_data_types'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_data_types'><input type='checkbox' name='do[data_types]' id='do_data_types' value='true'> ".$text['description-upgrade_data_types']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</div>\n";
|
||||
}
|
||||
|
||||
if (permission_exists("upgrade_apps")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_apps'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_apps'><input type='checkbox' name='do[apps]' id='do_apps' value='1'> ".$text['description-upgrade_apps']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
if (permission_exists("menu_restore")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_menu'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_menu'>";
|
||||
echo "<input type='checkbox' name='do[menu]' id='do_menu' value='1' onchange=\"$('#sel_menu').fadeToggle('fast');\">";
|
||||
echo "<select name='sel_menu' id='sel_menu' class='formfld' style='display: none; vertical-align: middle; margin-left: 5px;'>";
|
||||
$sql = "select * from v_menus ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
foreach ($result as &$row) {
|
||||
echo "<option value='".$row["menu_uuid"]."|".$row["menu_language"]."'>".$row["menu_name"]."</option>";
|
||||
}
|
||||
unset ($sql, $result, $prep_statement);
|
||||
echo "</select>";
|
||||
echo " ".$text['description-upgrade_menu'];
|
||||
echo "</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
if (permission_exists("group_edit")) {
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " ".$text['label-upgrade_permissions'];
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_permissions'><input type='checkbox' name='do[permissions]' id='do_permissions' value='1'> ".$text['description-upgrade_permissions']."</label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
}
|
||||
|
||||
echo "<br>";
|
||||
echo "<div style='text-align: right;'><input type='submit' class='btn' value='".$text['button-upgrade_execute']."'></div>";
|
||||
echo "<br><br>";
|
||||
echo "</form>\n";
|
||||
|
||||
// output result of source update
|
||||
if (sizeof($_SESSION["response_source_update"]) > 0) {
|
||||
echo "<br />";
|
||||
echo "<b>".$text['header-source_update_results']."</b>";
|
||||
echo "<br /><br />";
|
||||
echo "<pre>";
|
||||
echo implode("\n", $_SESSION["response_source_update"]);
|
||||
echo "</pre>";
|
||||
echo "<br /><br />";
|
||||
unset($_SESSION["response_source_update"]);
|
||||
}
|
||||
|
||||
// output result of upgrade schema
|
||||
if ($_SESSION["schema"]["response"] != '') {
|
||||
echo "<br />";
|
||||
echo "<b>".$text['header-upgrade_schema_results']."</b>";
|
||||
echo "<br /><br />";
|
||||
echo $_SESSION["schema"]["response"];
|
||||
unset($_SESSION["schema"]["response"]);
|
||||
}
|
||||
|
||||
require_once "resources/footer.php";
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,43 +1,43 @@
|
||||
<?php
|
||||
|
||||
$apps[$x]['menu'][0]['title']['en-us'] = "Account Settings";
|
||||
$apps[$x]['menu'][0]['title']['es-cl'] = "Config de Cuenta";
|
||||
$apps[$x]['menu'][0]['title']['fr-fr'] = "Configuration du Compte";
|
||||
$apps[$x]['menu'][0]['title']['pt-pt'] = "Configurações da Conta";
|
||||
$apps[$x]['menu'][0]['title']['pt-br'] = "Configurações da Conta";
|
||||
$apps[$x]['menu'][0]['title']['pl'] = "Ustawienia konta";
|
||||
$apps[$x]['menu'][0]['title']['he'] = "הגדרת חשבון";
|
||||
$apps[$x]['menu'][0]['title']['uk'] = "Обліковий запис";
|
||||
$apps[$x]['menu'][0]['title']['sv-se'] = "Kontoinställningar";
|
||||
$apps[$x]['menu'][0]['title']['de-at'] = "Kontoeinstellungen";
|
||||
$apps[$x]['menu'][0]['title']['ro'] = "Setări cont";
|
||||
$apps[$x]['menu'][0]['title']['ar-eg'] = "إعدادات الحساب";
|
||||
$apps[$x]['menu'][0]['uuid'] = "4d532f0b-c206-c39d-ff33-fc67d668fb69";
|
||||
$apps[$x]['menu'][0]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
|
||||
$apps[$x]['menu'][0]['category'] = "internal";
|
||||
$apps[$x]['menu'][0]['path'] = "/core/user_settings/user_edit.php";
|
||||
$apps[$x]['menu'][0]['groups'][] = "user";
|
||||
$apps[$x]['menu'][0]['groups'][] = "admin";
|
||||
$apps[$x]['menu'][0]['groups'][] = "superadmin";
|
||||
|
||||
$apps[$x]['menu'][1]['title']['en-us'] = "Dashboard";
|
||||
$apps[$x]['menu'][1]['title']['es-cl'] = "Dashboard Usuario";
|
||||
$apps[$x]['menu'][1]['title']['fr-fr'] = "Tableau de bord de l'utilisateur";
|
||||
$apps[$x]['menu'][1]['title']['pt-pt'] = "Painel de Controle do Usuário";
|
||||
$apps[$x]['menu'][1]['title']['pt-br'] = "Painel de Controle do Usuário";
|
||||
$apps[$x]['menu'][1]['title']['pl'] = "Panel użytkowników";
|
||||
$apps[$x]['menu'][1]['title']['he'] = "ממשק משתמש";
|
||||
$apps[$x]['menu'][1]['title']['uk'] = "Панель користувача";
|
||||
$apps[$x]['menu'][1]['title']['sv-se'] = "Användarpanel";
|
||||
$apps[$x]['menu'][1]['title']['de-at'] = "Benutzerübersicht";
|
||||
$apps[$x]['menu'][1]['title']['ro'] = "Panou control utilizator";
|
||||
$apps[$x]['menu'][1]['title']['ar-eg'] = "الصفحه الرئيسيه للمستخدم";
|
||||
$apps[$x]['menu'][1]['uuid'] = "92c8ffdb-3c82-4f08-aec0-82421ec41bb5";
|
||||
$apps[$x]['menu'][1]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
|
||||
$apps[$x]['menu'][1]['category'] = "internal";
|
||||
$apps[$x]['menu'][1]['path'] = "/core/user_settings/user_dashboard.php";
|
||||
$apps[$x]['menu'][1]['groups'][] = "user";
|
||||
$apps[$x]['menu'][1]['groups'][] = "admin";
|
||||
$apps[$x]['menu'][1]['groups'][] = "superadmin";
|
||||
|
||||
<?php
|
||||
|
||||
$apps[$x]['menu'][0]['title']['en-us'] = "Account Settings";
|
||||
$apps[$x]['menu'][0]['title']['es-cl'] = "Config de Cuenta";
|
||||
$apps[$x]['menu'][0]['title']['fr-fr'] = "Configuration du Compte";
|
||||
$apps[$x]['menu'][0]['title']['pt-pt'] = "Configurações da Conta";
|
||||
$apps[$x]['menu'][0]['title']['pt-br'] = "Configurações da Conta";
|
||||
$apps[$x]['menu'][0]['title']['pl'] = "Ustawienia konta";
|
||||
$apps[$x]['menu'][0]['title']['he'] = "הגדרת חשבון";
|
||||
$apps[$x]['menu'][0]['title']['uk'] = "Обліковий запис";
|
||||
$apps[$x]['menu'][0]['title']['sv-se'] = "Kontoinställningar";
|
||||
$apps[$x]['menu'][0]['title']['de-at'] = "Kontoeinstellungen";
|
||||
$apps[$x]['menu'][0]['title']['ro'] = "Setări cont";
|
||||
$apps[$x]['menu'][0]['title']['ar-eg'] = "إعدادات الحساب";
|
||||
$apps[$x]['menu'][0]['uuid'] = "4d532f0b-c206-c39d-ff33-fc67d668fb69";
|
||||
$apps[$x]['menu'][0]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
|
||||
$apps[$x]['menu'][0]['category'] = "internal";
|
||||
$apps[$x]['menu'][0]['path'] = "/core/user_settings/user_edit.php";
|
||||
$apps[$x]['menu'][0]['groups'][] = "user";
|
||||
$apps[$x]['menu'][0]['groups'][] = "admin";
|
||||
$apps[$x]['menu'][0]['groups'][] = "superadmin";
|
||||
|
||||
$apps[$x]['menu'][1]['title']['en-us'] = "Dashboard";
|
||||
$apps[$x]['menu'][1]['title']['es-cl'] = "Dashboard Usuario";
|
||||
$apps[$x]['menu'][1]['title']['fr-fr'] = "Tableau de bord de l'utilisateur";
|
||||
$apps[$x]['menu'][1]['title']['pt-pt'] = "Painel de Controle do Usuário";
|
||||
$apps[$x]['menu'][1]['title']['pt-br'] = "Painel de Controle do Usuário";
|
||||
$apps[$x]['menu'][1]['title']['pl'] = "Panel użytkowników";
|
||||
$apps[$x]['menu'][1]['title']['he'] = "ממשק משתמש";
|
||||
$apps[$x]['menu'][1]['title']['uk'] = "Панель користувача";
|
||||
$apps[$x]['menu'][1]['title']['sv-se'] = "Användarpanel";
|
||||
$apps[$x]['menu'][1]['title']['de-at'] = "Benutzerübersicht";
|
||||
$apps[$x]['menu'][1]['title']['ro'] = "Panou control utilizator";
|
||||
$apps[$x]['menu'][1]['title']['ar-eg'] = "الصفحه الرئيسيه للمستخدم";
|
||||
$apps[$x]['menu'][1]['uuid'] = "92c8ffdb-3c82-4f08-aec0-82421ec41bb5";
|
||||
$apps[$x]['menu'][1]['parent_uuid'] = "02194288-6d56-6d3e-0b1a-d53a2bc10788";
|
||||
$apps[$x]['menu'][1]['category'] = "internal";
|
||||
$apps[$x]['menu'][1]['path'] = "/core/user_settings/user_dashboard.php";
|
||||
$apps[$x]['menu'][1]['groups'][] = "user";
|
||||
$apps[$x]['menu'][1]['groups'][] = "admin";
|
||||
$apps[$x]['menu'][1]['groups'][] = "superadmin";
|
||||
|
||||
?>
|
||||
@@ -1,421 +1,421 @@
|
||||
<?php
|
||||
//application details
|
||||
$apps[$x]['name'] = "User Manager";
|
||||
$apps[$x]['uuid'] = "112124b3-95c2-5352-7e9d-d14c0b88f207";
|
||||
$apps[$x]['category'] = "Core";
|
||||
$apps[$x]['subcategory'] = "";
|
||||
$apps[$x]['version'] = "";
|
||||
$apps[$x]['license'] = "Mozilla Public License 1.1";
|
||||
$apps[$x]['url'] = "http://www.fusionpbx.com";
|
||||
$apps[$x]['description']['en-us'] = "Add, edit, delete, and search for users.";
|
||||
$apps[$x]['description']['es-cl'] = "Agregar, Editar, Eliminar y Buscar Usuarios.";
|
||||
$apps[$x]['description']['de-de'] = "";
|
||||
$apps[$x]['description']['de-ch'] = "";
|
||||
$apps[$x]['description']['de-at'] = "";
|
||||
$apps[$x]['description']['fr-fr'] = "Ajouter, Editer, Supprimer et Chercher des Usagers";
|
||||
$apps[$x]['description']['fr-ca'] = "";
|
||||
$apps[$x]['description']['fr-ch'] = "";
|
||||
$apps[$x]['description']['pt-pt'] = "Adicionar, editar, apagar e pesquisa pelos utilizadores.";
|
||||
$apps[$x]['description']['pt-br'] = "";
|
||||
|
||||
//permission details
|
||||
$y = 0;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "0d57cc1e-1874-47b9-7ddd-fe1f57cec99b";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = 'user_domain';
|
||||
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = 'user_all';
|
||||
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = 'group_domain';
|
||||
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = 'group_all';
|
||||
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_member_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_member_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_member_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permissions";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_user_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_user_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_user_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_user_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permission_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permission_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permission_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permission_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_view";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_category_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
|
||||
//schema details
|
||||
$y = 0; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_users";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "username";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "password";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "salt";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
//$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
//$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_contacts";
|
||||
//$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "contact_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "user_email";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "useremail";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "user_status";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "userstatus";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "user_time_zone";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "usertimezone";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "api_key";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_enabled";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "add_user";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "add_date";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
$y = 1; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_groups";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "group_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "groupid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_protected";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "group_description";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "groupdesc";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
$y = 2; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_group_users";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_user_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "group_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "groupid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_groups";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "group_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "username";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
$y = 3; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_group_permissions";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_permission_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "group_permission_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "permission_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "permission_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
$y = 4; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_user_settings";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_category";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the category.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_subcategory";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the subcategory.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the name.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_value";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the value.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_order";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_enabled";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_description";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
?>
|
||||
<?php
|
||||
//application details
|
||||
$apps[$x]['name'] = "User Manager";
|
||||
$apps[$x]['uuid'] = "112124b3-95c2-5352-7e9d-d14c0b88f207";
|
||||
$apps[$x]['category'] = "Core";
|
||||
$apps[$x]['subcategory'] = "";
|
||||
$apps[$x]['version'] = "";
|
||||
$apps[$x]['license'] = "Mozilla Public License 1.1";
|
||||
$apps[$x]['url'] = "http://www.fusionpbx.com";
|
||||
$apps[$x]['description']['en-us'] = "Add, edit, delete, and search for users.";
|
||||
$apps[$x]['description']['es-cl'] = "Agregar, Editar, Eliminar y Buscar Usuarios.";
|
||||
$apps[$x]['description']['de-de'] = "";
|
||||
$apps[$x]['description']['de-ch'] = "";
|
||||
$apps[$x]['description']['de-at'] = "";
|
||||
$apps[$x]['description']['fr-fr'] = "Ajouter, Editer, Supprimer et Chercher des Usagers";
|
||||
$apps[$x]['description']['fr-ca'] = "";
|
||||
$apps[$x]['description']['fr-ch'] = "";
|
||||
$apps[$x]['description']['pt-pt'] = "Adicionar, editar, apagar e pesquisa pelos utilizadores.";
|
||||
$apps[$x]['description']['pt-br'] = "";
|
||||
|
||||
//permission details
|
||||
$y = 0;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "0d57cc1e-1874-47b9-7ddd-fe1f57cec99b";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = 'user_domain';
|
||||
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = 'user_all';
|
||||
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = 'group_domain';
|
||||
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = 'group_all';
|
||||
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_member_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_member_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_member_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permissions";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_user_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_user_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_user_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_user_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permission_view";
|
||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permission_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permission_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "group_permission_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_view";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "user_setting_category_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
|
||||
//schema details
|
||||
$y = 0; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_users";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "username";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "password";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "salt";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
//$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
//$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_contacts";
|
||||
//$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "contact_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "user_email";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "useremail";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "user_status";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "userstatus";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "user_time_zone";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "usertimezone";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "api_key";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_enabled";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "add_user";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "add_date";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
$y = 1; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_groups";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "group_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "groupid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_protected";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "group_description";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "groupdesc";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
$y = 2; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_group_users";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_user_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "group_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "groupid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_groups";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "group_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "username";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
$y = 3; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_group_permissions";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_permission_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "group_permission_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "integer";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "INT NOT NULL AUTO_INCREMENT";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "permission_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "permission_id";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "group_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
$y = 4; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_user_settings";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_category";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the category.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_subcategory";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the subcategory.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the name.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_value";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the value.";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_order";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "numeric";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_enabled";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_description";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
?>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,36 +1,36 @@
|
||||
<?php
|
||||
|
||||
$apps[$x]['menu'][2]['title']['en-us'] = "Users";
|
||||
$apps[$x]['menu'][2]['title']['es-cl'] = "Gestor de Usuarios";
|
||||
$apps[$x]['menu'][2]['title']['fr-fr'] = "Gestion des utilisteurs";
|
||||
$apps[$x]['menu'][2]['title']['pt-pt'] = "Gestão de Utilizadores";
|
||||
$apps[$x]['menu'][2]['title']['pt-br'] = "Gerencir utiliários";
|
||||
$apps[$x]['menu'][2]['title']['pl'] = "Menedżer użytkowników";
|
||||
$apps[$x]['menu'][2]['title']['uk'] = "Користувачі";
|
||||
$apps[$x]['menu'][2]['title']['sv-se'] = "Användar Inställningar";
|
||||
$apps[$x]['menu'][2]['title']['de-at'] = "Benutzerverwaltung";
|
||||
$apps[$x]['menu'][2]['title']['he'] = "מנהל משתמש";
|
||||
$apps[$x]['menu'][2]['uuid'] = "0d57cc1e-1874-47b9-7ddd-fe1f57cec99b";
|
||||
$apps[$x]['menu'][2]['parent_uuid'] = "bc96d773-ee57-0cdd-c3ac-2d91aba61b55";
|
||||
$apps[$x]['menu'][2]['category'] = "internal";
|
||||
$apps[$x]['menu'][2]['path'] = "/core/users/index.php";
|
||||
$apps[$x]['menu'][2]['groups'][] = "admin";
|
||||
$apps[$x]['menu'][2]['groups'][] = "superadmin";
|
||||
|
||||
$apps[$x]['menu'][3]['title']['en-us'] = "Group Manager";
|
||||
$apps[$x]['menu'][3]['title']['es-cl'] = "Administración de Grupos";
|
||||
$apps[$x]['menu'][3]['title']['fr-fr'] = "Gestion des groupes";
|
||||
$apps[$x]['menu'][3]['title']['pt-pt'] = "'Gestão de Grupos";
|
||||
$apps[$x]['menu'][3]['title']['pt-br'] = "Gerenciar grupos";
|
||||
$apps[$x]['menu'][3]['title']['pl'] = "Menedżer grup";
|
||||
$apps[$x]['menu'][3]['title']['uk'] = "Групи";
|
||||
$apps[$x]['menu'][3]['title']['sv-se'] = "Grupp Inställningar";
|
||||
$apps[$x]['menu'][3]['title']['de-at'] = "Gruppenverwaltung";
|
||||
$apps[$x]['menu'][3]['title']['he'] = "מנהל קבוצה";
|
||||
$apps[$x]['menu'][3]['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['menu'][3]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
|
||||
$apps[$x]['menu'][3]['category'] = "internal";
|
||||
$apps[$x]['menu'][3]['path'] = "/core/users/groups.php";
|
||||
$apps[$x]['menu'][3]['groups'][] = "superadmin";
|
||||
|
||||
<?php
|
||||
|
||||
$apps[$x]['menu'][2]['title']['en-us'] = "Users";
|
||||
$apps[$x]['menu'][2]['title']['es-cl'] = "Gestor de Usuarios";
|
||||
$apps[$x]['menu'][2]['title']['fr-fr'] = "Gestion des utilisteurs";
|
||||
$apps[$x]['menu'][2]['title']['pt-pt'] = "Gestão de Utilizadores";
|
||||
$apps[$x]['menu'][2]['title']['pt-br'] = "Gerencir utiliários";
|
||||
$apps[$x]['menu'][2]['title']['pl'] = "Menedżer użytkowników";
|
||||
$apps[$x]['menu'][2]['title']['uk'] = "Користувачі";
|
||||
$apps[$x]['menu'][2]['title']['sv-se'] = "Användar Inställningar";
|
||||
$apps[$x]['menu'][2]['title']['de-at'] = "Benutzerverwaltung";
|
||||
$apps[$x]['menu'][2]['title']['he'] = "מנהל משתמש";
|
||||
$apps[$x]['menu'][2]['uuid'] = "0d57cc1e-1874-47b9-7ddd-fe1f57cec99b";
|
||||
$apps[$x]['menu'][2]['parent_uuid'] = "bc96d773-ee57-0cdd-c3ac-2d91aba61b55";
|
||||
$apps[$x]['menu'][2]['category'] = "internal";
|
||||
$apps[$x]['menu'][2]['path'] = "/core/users/index.php";
|
||||
$apps[$x]['menu'][2]['groups'][] = "admin";
|
||||
$apps[$x]['menu'][2]['groups'][] = "superadmin";
|
||||
|
||||
$apps[$x]['menu'][3]['title']['en-us'] = "Group Manager";
|
||||
$apps[$x]['menu'][3]['title']['es-cl'] = "Administración de Grupos";
|
||||
$apps[$x]['menu'][3]['title']['fr-fr'] = "Gestion des groupes";
|
||||
$apps[$x]['menu'][3]['title']['pt-pt'] = "'Gestão de Grupos";
|
||||
$apps[$x]['menu'][3]['title']['pt-br'] = "Gerenciar grupos";
|
||||
$apps[$x]['menu'][3]['title']['pl'] = "Menedżer grup";
|
||||
$apps[$x]['menu'][3]['title']['uk'] = "Групи";
|
||||
$apps[$x]['menu'][3]['title']['sv-se'] = "Grupp Inställningar";
|
||||
$apps[$x]['menu'][3]['title']['de-at'] = "Gruppenverwaltung";
|
||||
$apps[$x]['menu'][3]['title']['he'] = "מנהל קבוצה";
|
||||
$apps[$x]['menu'][3]['uuid'] = "3b4acc6d-827b-f537-bf21-0093d94ffec7";
|
||||
$apps[$x]['menu'][3]['parent_uuid'] = "594d99c5-6128-9c88-ca35-4b33392cec0f";
|
||||
$apps[$x]['menu'][3]['category'] = "internal";
|
||||
$apps[$x]['menu'][3]['path'] = "/core/users/groups.php";
|
||||
$apps[$x]['menu'][3]['groups'][] = "superadmin";
|
||||
|
||||
?>
|
||||
@@ -1,312 +1,312 @@
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2014
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
|
||||
//check permissions
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('group_edit')) {
|
||||
//access allowed
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
return;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//process update
|
||||
if (count($_POST) > 0) {
|
||||
//set the variables
|
||||
$group_uuid = check_str($_POST['group_uuid']);
|
||||
$group_name = check_str($_POST['group_name']);
|
||||
$group_name_previous = check_str($_POST['group_name_previous']);
|
||||
$domain_uuid = check_str($_POST["domain_uuid"]);
|
||||
$domain_uuid_previous = check_str($_POST["domain_uuid_previous"]);
|
||||
$group_description = check_str($_POST["group_description"]);
|
||||
|
||||
//check for global/domain duplicates
|
||||
$sql = "select count(*) as num_rows from v_groups where ";
|
||||
$sql .= "group_name = '".$group_name."' ";
|
||||
$sql .= "and group_uuid <> '".$group_uuid."' ";
|
||||
$sql .= "and domain_uuid ".(($domain_uuid != '') ? " = '".$domain_uuid."' " : " is null ");
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
||||
$group_exists = ($row['num_rows'] > 0) ? true : false;
|
||||
}
|
||||
else {
|
||||
$group_exists = false;
|
||||
}
|
||||
unset($sql, $prep_statement, $row);
|
||||
|
||||
//update group
|
||||
if (!$group_exists) {
|
||||
$sql = "update v_groups ";
|
||||
$sql .= "set ";
|
||||
$sql .= "group_name = '".$group_name."', ";
|
||||
$sql .= "domain_uuid = ".(($domain_uuid != '') ? "'".$domain_uuid."'" : "null").", ";
|
||||
$sql .= "group_description = '".$group_description."' ";
|
||||
$sql .= "where group_uuid = '".$group_uuid."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
echo "<pre>".print_r($error, true)."</pre>";
|
||||
exit;
|
||||
}
|
||||
|
||||
//group changed from global to domain-specific
|
||||
if ($domain_uuid_previous == '' && $domain_uuid != '') {
|
||||
//remove any users assigned to the group from the old domain
|
||||
$sql = "delete from v_group_users where group_uuid = '".$group_uuid."' and domain_uuid <> '".$domain_uuid."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//update permissions to use new domain uuid
|
||||
$sql = "update v_group_permissions set domain_uuid = '".$domain_uuid."' where group_name = '".$group_name_previous."' and domain_uuid is null ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name
|
||||
if ($group_name != $group_name_previous && $group_name != '') {
|
||||
//change group name in group users
|
||||
$sql = "update v_group_users set group_name = '".$group_name."' where group_uuid = '".$group_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name in permissions
|
||||
$sql = "update v_group_permissions set group_name = '".$group_name."' where domain_uuid = '".$domain_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//group changed from one domain to another
|
||||
else if ($domain_uuid_previous != '' && $domain_uuid != '' && $domain_uuid_previous != $domain_uuid) {
|
||||
//remove any users assigned to the group from the old domain
|
||||
$sql = "delete from v_group_users where group_uuid = '".$group_uuid."' and domain_uuid = '".$domain_uuid_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//update permissions to use new domain uuid
|
||||
$sql = "update v_group_permissions set domain_uuid = '".$domain_uuid."' where group_name = '".$group_name_previous."' and domain_uuid = '".$domain_uuid_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name
|
||||
if ($group_name != $group_name_previous && $group_name != '') {
|
||||
//change group name in group users
|
||||
$sql = "update v_group_users set group_name = '".$group_name."' where group_uuid = '".$group_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name in permissions
|
||||
$sql = "update v_group_permissions set group_name = '".$group_name."' where domain_uuid = '".$domain_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//group changed from domain-specific to global
|
||||
else if ($domain_uuid_previous != '' && $domain_uuid == '') {
|
||||
//change group name
|
||||
if ($group_name != $group_name_previous && $group_name != '') {
|
||||
//change group name in group users
|
||||
$sql = "update v_group_users set group_name = '".$group_name."' where group_uuid = '".$group_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name in permissions
|
||||
$sql = "update v_group_permissions set group_name = '".$group_name."' where domain_uuid = '".$domain_uuid_previous."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
//update permissions to not use a domain uuid
|
||||
$sql = "update v_group_permissions set domain_uuid = null where group_name = '".$group_name."' and domain_uuid = '".$domain_uuid_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
|
||||
//domain didn't change, but name may still
|
||||
else {
|
||||
//change group name
|
||||
if ($group_name != $group_name_previous && $group_name != '') {
|
||||
//change group name in group users
|
||||
$sql = "update v_group_users set group_name = '".$group_name."' where group_uuid = '".$group_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name in permissions
|
||||
$sql = "update v_group_permissions set group_name = '".$group_name."' where domain_uuid ".(($domain_uuid != '') ? " = '".$domain_uuid."' " : " is null ")." and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
header("Location: groups.php");
|
||||
}
|
||||
else {
|
||||
$_SESSION['message_mood'] = 'negative';
|
||||
$_SESSION["message"] = $text['message-group_exists'];
|
||||
header("Location: groupedit.php?id=".$group_uuid);
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
return;
|
||||
}
|
||||
|
||||
//pre-populate the form
|
||||
$group_uuid = check_str($_REQUEST['id']);
|
||||
if ($group_uuid != '') {
|
||||
$sql = "select * from v_groups where ";
|
||||
$sql .= "group_uuid = '".$group_uuid."' ";
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
||||
$group_name = $row['group_name'];
|
||||
$domain_uuid = $row['domain_uuid'];
|
||||
$group_description = $row['group_description'];
|
||||
}
|
||||
}
|
||||
|
||||
//include the header
|
||||
include "resources/header.php";
|
||||
$document['title'] = $text['title-group_edit'];
|
||||
|
||||
//copy group javascript
|
||||
echo "<script language='javascript' type='text/javascript'>\n";
|
||||
echo " function copy_group() {\n";
|
||||
echo " var new_group_name;\n";
|
||||
echo " var new_group_desc;\n";
|
||||
echo " new_group_name = prompt('".$text['message-new_group_name']."');\n";
|
||||
echo " if (new_group_name != null) {\n";
|
||||
echo " new_group_desc = prompt('".$text['message-new_group_description']."');\n";
|
||||
echo " if (new_group_desc != null) {\n";
|
||||
echo " window.location = 'permissions_copy.php?group_name=".$group_name."&new_group_name=' + new_group_name + '&new_group_desc=' + new_group_desc;\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
echo "</script>\n";
|
||||
|
||||
//show the content
|
||||
echo "<form name='login' method='post' action=''>\n";
|
||||
echo "<input type='hidden' name='group_uuid' value='".$group_uuid."'>\n";
|
||||
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' valign='top'>\n";
|
||||
echo " <b>".$text['header-group_edit']."</b>\n";
|
||||
echo " <br><br>\n";
|
||||
echo " ".$text['description-group_edit']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td align='right' valign='top'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='groups.php'\" value='".$text['button-back']."'> ";
|
||||
echo " <input type='button' class='btn' alt='".$text['button-copy']."' onclick='copy_group();' value='".$text['button-copy']."'>";
|
||||
echo " <input type='submit' class='btn' value=\"".$text['button-save']."\">\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "<br>";
|
||||
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td width='30%' class='vncellreq' valign='top'>\n";
|
||||
echo $text['label-group_name']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td width='70%' align='left' class='vtable'>\n";
|
||||
echo " <input type='hidden' name='group_name_previous' value=\"".$group_name."\">\n";
|
||||
echo " <input type='text' class='formfld' name='group_name' value=\"".$group_name."\">\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if (permission_exists('group_domain')) {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top'>\n";
|
||||
echo " ".$text['label-domain']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input type='hidden' name='domain_uuid_previous' value='".$domain_uuid."'>\n";
|
||||
echo " <select class='formfld' name='domain_uuid'>\n";
|
||||
echo " <option value='' ".((strlen($domain_uuid) == 0) ? "selected='selected'" : null).">".$text['option-global']."</option>\n";
|
||||
foreach ($_SESSION['domains'] as $row) {
|
||||
echo "<option value='".$row['domain_uuid']."' ".(($row['domain_uuid'] == $domain_uuid) ? "selected='selected'" : null).">".$row['domain_name']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " <br />\n";
|
||||
echo $text['description-domain_name']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
else {
|
||||
echo "<input type='hidden' name='domain_uuid' value='".$domain_uuid."'>";
|
||||
}
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top'>\n";
|
||||
echo $text['label-group_description']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td align='left' class='vtable' valign='top'>\n";
|
||||
echo " <textarea name='group_description' class='formfld' style='width: 250px; height: 50px;'>".$group_description."</textarea>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='2' align='right'>\n";
|
||||
echo " <br />";
|
||||
echo " <input type='submit' class='btn' value=\"".$text['button-save']."\">\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "</table>\n";
|
||||
echo "<br><br>";
|
||||
echo "</form>";
|
||||
|
||||
//include the footer
|
||||
include "resources/footer.php";
|
||||
|
||||
<?php
|
||||
/*
|
||||
FusionPBX
|
||||
Version: MPL 1.1
|
||||
|
||||
The contents of this file are subject to the Mozilla Public License Version
|
||||
1.1 (the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
http://www.mozilla.org/MPL/
|
||||
|
||||
Software distributed under the License is distributed on an "AS IS" basis,
|
||||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
for the specific language governing rights and limitations under the
|
||||
License.
|
||||
|
||||
The Original Code is FusionPBX
|
||||
|
||||
The Initial Developer of the Original Code is
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2014
|
||||
the Initial Developer. All Rights Reserved.
|
||||
|
||||
Contributor(s):
|
||||
Mark J Crane <markjcrane@fusionpbx.com>
|
||||
*/
|
||||
include "root.php";
|
||||
require_once "resources/require.php";
|
||||
|
||||
//check permissions
|
||||
require_once "resources/check_auth.php";
|
||||
if (permission_exists('group_edit')) {
|
||||
//access allowed
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
return;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//process update
|
||||
if (count($_POST) > 0) {
|
||||
//set the variables
|
||||
$group_uuid = check_str($_POST['group_uuid']);
|
||||
$group_name = check_str($_POST['group_name']);
|
||||
$group_name_previous = check_str($_POST['group_name_previous']);
|
||||
$domain_uuid = check_str($_POST["domain_uuid"]);
|
||||
$domain_uuid_previous = check_str($_POST["domain_uuid_previous"]);
|
||||
$group_description = check_str($_POST["group_description"]);
|
||||
|
||||
//check for global/domain duplicates
|
||||
$sql = "select count(*) as num_rows from v_groups where ";
|
||||
$sql .= "group_name = '".$group_name."' ";
|
||||
$sql .= "and group_uuid <> '".$group_uuid."' ";
|
||||
$sql .= "and domain_uuid ".(($domain_uuid != '') ? " = '".$domain_uuid."' " : " is null ");
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
||||
$group_exists = ($row['num_rows'] > 0) ? true : false;
|
||||
}
|
||||
else {
|
||||
$group_exists = false;
|
||||
}
|
||||
unset($sql, $prep_statement, $row);
|
||||
|
||||
//update group
|
||||
if (!$group_exists) {
|
||||
$sql = "update v_groups ";
|
||||
$sql .= "set ";
|
||||
$sql .= "group_name = '".$group_name."', ";
|
||||
$sql .= "domain_uuid = ".(($domain_uuid != '') ? "'".$domain_uuid."'" : "null").", ";
|
||||
$sql .= "group_description = '".$group_description."' ";
|
||||
$sql .= "where group_uuid = '".$group_uuid."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
echo "<pre>".print_r($error, true)."</pre>";
|
||||
exit;
|
||||
}
|
||||
|
||||
//group changed from global to domain-specific
|
||||
if ($domain_uuid_previous == '' && $domain_uuid != '') {
|
||||
//remove any users assigned to the group from the old domain
|
||||
$sql = "delete from v_group_users where group_uuid = '".$group_uuid."' and domain_uuid <> '".$domain_uuid."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//update permissions to use new domain uuid
|
||||
$sql = "update v_group_permissions set domain_uuid = '".$domain_uuid."' where group_name = '".$group_name_previous."' and domain_uuid is null ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name
|
||||
if ($group_name != $group_name_previous && $group_name != '') {
|
||||
//change group name in group users
|
||||
$sql = "update v_group_users set group_name = '".$group_name."' where group_uuid = '".$group_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name in permissions
|
||||
$sql = "update v_group_permissions set group_name = '".$group_name."' where domain_uuid = '".$domain_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//group changed from one domain to another
|
||||
else if ($domain_uuid_previous != '' && $domain_uuid != '' && $domain_uuid_previous != $domain_uuid) {
|
||||
//remove any users assigned to the group from the old domain
|
||||
$sql = "delete from v_group_users where group_uuid = '".$group_uuid."' and domain_uuid = '".$domain_uuid_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//update permissions to use new domain uuid
|
||||
$sql = "update v_group_permissions set domain_uuid = '".$domain_uuid."' where group_name = '".$group_name_previous."' and domain_uuid = '".$domain_uuid_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name
|
||||
if ($group_name != $group_name_previous && $group_name != '') {
|
||||
//change group name in group users
|
||||
$sql = "update v_group_users set group_name = '".$group_name."' where group_uuid = '".$group_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name in permissions
|
||||
$sql = "update v_group_permissions set group_name = '".$group_name."' where domain_uuid = '".$domain_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//group changed from domain-specific to global
|
||||
else if ($domain_uuid_previous != '' && $domain_uuid == '') {
|
||||
//change group name
|
||||
if ($group_name != $group_name_previous && $group_name != '') {
|
||||
//change group name in group users
|
||||
$sql = "update v_group_users set group_name = '".$group_name."' where group_uuid = '".$group_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name in permissions
|
||||
$sql = "update v_group_permissions set group_name = '".$group_name."' where domain_uuid = '".$domain_uuid_previous."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
//update permissions to not use a domain uuid
|
||||
$sql = "update v_group_permissions set domain_uuid = null where group_name = '".$group_name."' and domain_uuid = '".$domain_uuid_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
|
||||
//domain didn't change, but name may still
|
||||
else {
|
||||
//change group name
|
||||
if ($group_name != $group_name_previous && $group_name != '') {
|
||||
//change group name in group users
|
||||
$sql = "update v_group_users set group_name = '".$group_name."' where group_uuid = '".$group_uuid."' and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
//change group name in permissions
|
||||
$sql = "update v_group_permissions set group_name = '".$group_name."' where domain_uuid ".(($domain_uuid != '') ? " = '".$domain_uuid."' " : " is null ")." and group_name = '".$group_name_previous."' ";
|
||||
if (!$db->exec(check_sql($sql))) {
|
||||
$error = $db->errorInfo();
|
||||
//echo "<pre>".print_r($error, true)."</pre>"; exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$_SESSION["message"] = $text['message-update'];
|
||||
header("Location: groups.php");
|
||||
}
|
||||
else {
|
||||
$_SESSION['message_mood'] = 'negative';
|
||||
$_SESSION["message"] = $text['message-group_exists'];
|
||||
header("Location: groupedit.php?id=".$group_uuid);
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
return;
|
||||
}
|
||||
|
||||
//pre-populate the form
|
||||
$group_uuid = check_str($_REQUEST['id']);
|
||||
if ($group_uuid != '') {
|
||||
$sql = "select * from v_groups where ";
|
||||
$sql .= "group_uuid = '".$group_uuid."' ";
|
||||
$prep_statement = $db->prepare($sql);
|
||||
if ($prep_statement) {
|
||||
$prep_statement->execute();
|
||||
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
||||
$group_name = $row['group_name'];
|
||||
$domain_uuid = $row['domain_uuid'];
|
||||
$group_description = $row['group_description'];
|
||||
}
|
||||
}
|
||||
|
||||
//include the header
|
||||
include "resources/header.php";
|
||||
$document['title'] = $text['title-group_edit'];
|
||||
|
||||
//copy group javascript
|
||||
echo "<script language='javascript' type='text/javascript'>\n";
|
||||
echo " function copy_group() {\n";
|
||||
echo " var new_group_name;\n";
|
||||
echo " var new_group_desc;\n";
|
||||
echo " new_group_name = prompt('".$text['message-new_group_name']."');\n";
|
||||
echo " if (new_group_name != null) {\n";
|
||||
echo " new_group_desc = prompt('".$text['message-new_group_description']."');\n";
|
||||
echo " if (new_group_desc != null) {\n";
|
||||
echo " window.location = 'permissions_copy.php?group_name=".$group_name."&new_group_name=' + new_group_name + '&new_group_desc=' + new_group_desc;\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
echo "</script>\n";
|
||||
|
||||
//show the content
|
||||
echo "<form name='login' method='post' action=''>\n";
|
||||
echo "<input type='hidden' name='group_uuid' value='".$group_uuid."'>\n";
|
||||
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' valign='top'>\n";
|
||||
echo " <b>".$text['header-group_edit']."</b>\n";
|
||||
echo " <br><br>\n";
|
||||
echo " ".$text['description-group_edit']."\n";
|
||||
echo " </td>\n";
|
||||
echo " <td align='right' valign='top'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='groups.php'\" value='".$text['button-back']."'> ";
|
||||
echo " <input type='button' class='btn' alt='".$text['button-copy']."' onclick='copy_group();' value='".$text['button-copy']."'>";
|
||||
echo " <input type='submit' class='btn' value=\"".$text['button-save']."\">\n";
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "<br>";
|
||||
|
||||
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td width='30%' class='vncellreq' valign='top'>\n";
|
||||
echo $text['label-group_name']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td width='70%' align='left' class='vtable'>\n";
|
||||
echo " <input type='hidden' name='group_name_previous' value=\"".$group_name."\">\n";
|
||||
echo " <input type='text' class='formfld' name='group_name' value=\"".$group_name."\">\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if (permission_exists('group_domain')) {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top'>\n";
|
||||
echo " ".$text['label-domain']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input type='hidden' name='domain_uuid_previous' value='".$domain_uuid."'>\n";
|
||||
echo " <select class='formfld' name='domain_uuid'>\n";
|
||||
echo " <option value='' ".((strlen($domain_uuid) == 0) ? "selected='selected'" : null).">".$text['option-global']."</option>\n";
|
||||
foreach ($_SESSION['domains'] as $row) {
|
||||
echo "<option value='".$row['domain_uuid']."' ".(($row['domain_uuid'] == $domain_uuid) ? "selected='selected'" : null).">".$row['domain_name']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
echo " <br />\n";
|
||||
echo $text['description-domain_name']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
else {
|
||||
echo "<input type='hidden' name='domain_uuid' value='".$domain_uuid."'>";
|
||||
}
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top'>\n";
|
||||
echo $text['label-group_description']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td align='left' class='vtable' valign='top'>\n";
|
||||
echo " <textarea name='group_description' class='formfld' style='width: 250px; height: 50px;'>".$group_description."</textarea>\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='2' align='right'>\n";
|
||||
echo " <br />";
|
||||
echo " <input type='submit' class='btn' value=\"".$text['button-save']."\">\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "</table>\n";
|
||||
echo "<br><br>";
|
||||
echo "</form>";
|
||||
|
||||
//include the footer
|
||||
include "resources/footer.php";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user