\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:
+420
-420
@@ -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'] = "اختار";
|
||||
|
||||
?>
|
||||
+82
-82
@@ -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";
|
||||
|
||||
?>
|
||||
+366
-366
@@ -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>";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user