Last active
October 11, 2023 12:23
-
-
Save ruvasik/e1fb3dda5d74c7b99fe875f528f6e700 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (ini_get('short_open_tag') == 0 && strtoupper(ini_get('short_open_tag')) != 'ON') | |
die('Error: short_open_tag parameter must be turned on in php.ini'); | |
?><? | |
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); | |
@ini_set('pcre.backtrack_limit', 1024*1024); | |
define('IP_LIMIT_DEFAULT', '#IP'.'_LIMIT_PLACEHOLDER#'); | |
define('IP_LIMIT', '#IP_LIMIT_PLACEHOLDER#'); | |
define('INIT_TIMESTAMP', '#INIT_TIMESTAMP#'); | |
if (getenv('BITRIX_VA_VER')) | |
define('VMBITRIX', 'defined'); | |
if (version_compare(phpversion(),'5.6','<')) // 5.6 для старых версий Битрикс, без поддержки PHP 7 | |
die('Error: PHP version 5.6 or higher is required'); | |
if(realpath(dirname(__FILE__)) != realpath($_SERVER['DOCUMENT_ROOT'])) | |
die('Error: this script must be started from Web Server\'s DOCUMENT ROOT'); | |
if(isset($_SERVER["BX_PERSONAL_ROOT"]) && $_SERVER["BX_PERSONAL_ROOT"] <> "") | |
define("BX_PERSONAL_ROOT", $_SERVER["BX_PERSONAL_ROOT"]); | |
else | |
define("BX_PERSONAL_ROOT", "/bitrix"); | |
if(!defined("START_EXEC_TIME")) | |
define("START_EXEC_TIME", microtime(true)); | |
$START_TIME = START_EXEC_TIME; | |
define("STEP_TIME", defined('VMBITRIX') ? 30 : 15); | |
# xdebug_start_trace(); | |
define('RESTORE_FILE_LIST', $_SERVER['DOCUMENT_ROOT'].'/bitrix/tmp/restore.file_list.php'); | |
define('RESTORE_FILE_DIR', $_SERVER['DOCUMENT_ROOT'].'/bitrix/tmp/restore.removed'); | |
if (file_exists($_SERVER['DOCUMENT_ROOT'].'/bitrix/restore_cloud.txt') && file_exists($_SERVER['DOCUMENT_ROOT'].'/bitrix/restore_cloud.php')) | |
unlink($_SERVER['DOCUMENT_ROOT'].'/bitrix/restore_cloud.txt'); | |
define('RESTORE_CLOUD_FILE_LIST', file_exists($_SERVER['DOCUMENT_ROOT'].'/bitrix/restore_cloud.txt') ? $_SERVER['DOCUMENT_ROOT'].'/bitrix/restore_cloud.txt' : $_SERVER['DOCUMENT_ROOT'].'/bitrix/restore_cloud.php'); | |
$strWarning = ''; | |
if (function_exists('mb_internal_encoding')) | |
{ | |
switch (ini_get("mbstring.func_overload")) | |
{ | |
case 0: | |
$bUTF_serv = false; | |
break; | |
case 2: | |
$bUTF_serv = mb_internal_encoding() == 'UTF-8'; | |
break; | |
default: | |
die('PHP parameter mbstring.func_overload='.ini_get("mbstring.func_overload").'. The only supported values are 0 or 2.'); | |
break; | |
} | |
mb_internal_encoding('ISO-8859-1'); | |
} | |
else | |
$bUTF_serv = false; | |
if (!function_exists('htmlspecialcharsbx')) | |
{ | |
function htmlspecialcharsbx($string, $flags = ENT_COMPAT) | |
{ | |
//shitty function for php 5.4 where default encoding is UTF-8 | |
return htmlspecialchars($string, $flags, "ISO-8859-1"); | |
} | |
} | |
define('DEBUG', file_exists(dirname(__FILE__).'/restore.debug')); | |
#@set_time_limit(0); | |
ob_start(); | |
if (@preg_match('#ru#i',$_SERVER['HTTP_ACCEPT_LANGUAGE'])) | |
$lang = 'ru'; | |
elseif (@preg_match('#de#i',$_SERVER['HTTP_ACCEPT_LANGUAGE'])) | |
$lang = 'de'; | |
if ($_REQUEST['lang']) | |
$lang = $_REQUEST['lang']; | |
if (!in_array($lang,array('ru','en','de'))) | |
$lang = 'en'; | |
define("LANG", $lang); | |
if (!headers_sent()) | |
header("Content-type:text/html; charset=utf-8"); | |
$dbconn = $_SERVER['DOCUMENT_ROOT']."/bitrix/php_interface/dbconn.php"; | |
$arc_name = $_REQUEST["arc_name"]; | |
if (LANG == 'ru') | |
{ | |
$MESS = array( | |
"BEGIN" => " | |
<p> | |
<ul> | |
<li>Перейдите в административную панель своего сайта на страницу <b>Настройки > Инструменты > Резервное копирование</b> | |
<li>Создайте полную резервную копию, которая будет включать <b>публичную часть</b>, <b>ядро</b> и <b>базу данных</b> | |
</ul> | |
<a href='https://dev.1c-bitrix.ru/~4thxV' target='_blank'>Документация</a> | |
</p> | |
", | |
"ARC_DOWN" => "Скачать резервную копию с дальнего сайта", | |
"ARC_DOWN_BITRIXCLOUD" => "Развернуть резервную копию из облака "1С-Битрикс"", | |
"BITRIXCLOUD_KEYS" => "Обновление ключей доступа к файлам в облаке", | |
"LICENSE_KEY" => "Ваш лицензионный ключ:", | |
"ARC_LOCAL_NAME" => "Имя архива:", | |
"DB_SELECT" => "Выберите дамп БД:", | |
"DB_SETTINGS" => "Параметры подключения к базе данных", | |
"DB_SKIP" => "Пропустить восстановление базы", | |
"SKIP" => "Пропустить", | |
"DELETE_FILES" => "Удалить локальную резервную копию и служебные скрипты", | |
"ARC_DOWN_URL" => "Ссылка на архив:", | |
"TITLE0" => "Подготовка архива", | |
"TITLE1" => "Загрузка резервной копии", | |
"TITLE_PROCESS1" => "Распаковка архива", | |
"FILE_IS_ENC" => "Архив зашифрован, для продолжения распаковки необходимо ввести пароль (с учетом регистра и пробелов): ", | |
"WRONG_PASS" => "Введенный пароль неверен", | |
"ENC_KEY" => "Пароль: ", | |
"TITLE_PROCESS2" => "Выполняется восстановление базы данных", | |
"TITLE2" => "Восстановление базы данных", | |
"TITLE3" => "Загрузка файлов из облака", | |
"ARC_SKIP" => "Архив уже распакован", | |
"ARC_SKIP_DESC" => "переход к восстановлению базы данных", | |
"ARC_NAME" => "Архив загружен в корневую папку сервера", | |
"ARC_DOWN_PROCESS" => "Загружается:", | |
"ERR_LOAD_FILE_LIST" => "Ошибочный ответ от сервиса 1С-Битрикс", | |
"ARC_LOCAL" => "Загрузить с локального диска", | |
"ARC_LOCAL_WARN" => "Загрузите все части многотомного архива", | |
"ERR_NO_PARTS" => "Доступны не все части многотомного архива.<br>Общее число частей: ", | |
"BUT_TEXT1" => "Далее", | |
"BUT_TEXT_BACK" => "Назад", | |
"DUMP_RETRY" => "Попробовать снова", | |
"USER_NAME" => "Имя пользователя", | |
"USER_PASS" => "Пароль", | |
"SEARCHING_UNUSED" => "Поиск посторонних файлов в ядре...", | |
"BASE_NAME" => "Имя базы данных", | |
"BASE_HOST" => "Сервер баз данных", | |
"BASE_RESTORE" => "Восстановить", | |
"ERR_EXTRACT" => "Ошибка", | |
"ERR_MSG" => "Ошибка!", | |
"LICENSE_NOT_FOUND" => "Лицензионный ключ не найден", | |
"SELECT_ARC" => "Выберите архив", | |
"CNT_PARTS" => "частей", | |
"ARC_LIST_EMPTY" => "Нет резервных копий, связанных с этим ключом", | |
"ERR_UNKNOWN" => "Неизвестный ответ сервера", | |
"ERR_UPLOAD" => "Не удалось загрузить файл на сервер", | |
"ERR_DUMP_RESTORE" => "Ошибка восстановления базы данных", | |
"ERR_CREATE_DB" => "Ошибка создания базы", | |
"ERR_TAR_TAR" => "Присутствуют файлы с расширением tar.tar. Вместо них должны быть архивы с номерами: tar.1, tar.2 и т.д.", | |
"FINISH" => "Операция выполнена успешно", | |
"FINISH_MSG" => "Операция восстановления системы завершена.", | |
"FINISH_BTN" => "Перейти на сайт", | |
"BASE_CREATE_DB" => "Создать базу данных если не существует", | |
"BASE_CLOUDS" => "Файлы из облачных хранилищ:", | |
"BASE_CLOUDS_Y" => "сохранить локально", | |
"BASE_CLOUDS_N" => "оставить в облаке", | |
"FINISH_ERR_DELL" => "Не удалось удалить все временные файлы! Обязательно удалите их вручную.", | |
"FINISH_ERR_DELL_TITLE" => "Ошибка удаления файлов", | |
"NO_READ_PERMS" => "Нет прав на чтение корневой папки сайта", | |
"UTF8_ERROR1" => "Сайт работал в кодировке UTF-8. Конфигурация сервера не соответствует требованиям.<br>Для продолжения установите настройки PHP: mbstring.func_overload=2 и mbstring.internal_encoding=UTF-8.", | |
"UTF8_ERROR2" => "Сайт работал в однобайтовой кодировке, а конфигурация сервера рассчитана на кодировку UTF-8.<br>Для продолжения установите настройки PHP: mbstring.func_overload=0 или mbstring.internal_encoding=ISO-8859-1.", | |
"DOC_ROOT_WARN" => "Во избежание проблем с доступом был переписан путь к корню сайта в настройках сайтов. Проверьте настройки сайтов.", | |
"CDN_WARN" => "Ускорение CDN было отключено т.к. текущий домен не соответствует домену из настроек CDN.", | |
"HOSTS_WARN" => "Было отключено ограничение по доменам в модуле проактивной защиты т.к. текущий домен попадает под ограничения.", | |
"WARN_CLEARED" => "При распаковке ядра были обнаружены файлы, которых не было в архиве. Эти файлы перенесены в /bitrix/tmp/restore.removed", | |
"WARN_SITES" => "Вы распаковали многосайтовый архив, файлы дополнительных сайтов следует скопировать вручную из папки /bitrix/backup/sites", | |
"WARNING" => "Внимание!", | |
"DBCONN_WARN" => "Данные подключения взяты из dbconn.php. Если их не изменить, будет переписана база данных текущего сайта.", | |
"HTACCESS_RENAMED_WARN" => "Файл .htaccess из архива был сохранен в корне сайта под именем .htaccess.restore, т.к. он может содержать директивы, недопустимые на данном сервере.", | |
"HTACCESS_WARN" => "Файл .htaccess из архива был сохранен в корне сайта под именем .htaccess.restore, т.к. он может содержать директивы, недопустимые на данном сервере. В корне сайта создан .htaccess по умолчанию. Измените его вручную через FTP.", | |
"HTACCESS_ERR_WARN" => "Файл .htaccess из архива был сохранен в корне сайта под именем .htaccess.restore, т.к. он может содержать директивы, недопустимые на данном сервере. <br> Не удалось создать корне сайта .htaccess по умолчанию. Переименуйте файл .htaccess.restore в .htaccess через FTP.", | |
"ERR_CANT_DECODE" => "Невозможно восстановить архив т.к. он содержит файлы, имена которых нужно перекодировать, а модуль mbstring недоступен.", | |
"ERR_CANT_DETECT_ENC" => "Невозможно восстановить архив т.к. он содержит файлы с именами в неизвестной кодировке:", | |
'TAR_ERR_FILE_OPEN' => 'Не удалось открыть файл: ', | |
"ARC_DOWN_OK" => "Все части архива загружены", | |
"LOADER_SUBTITLE1" => "Загрузка резервной копии", | |
"LOADER_SUBTITLE1_ERR" => "Ошибка загрузки", | |
"LOADER_LOAD_QUERY_DISTR" => "Запрашиваю файл #DISTR#", | |
"LOADER_LOAD_CONN2HOST" => "Подключение к серверу #HOST#", | |
"LOADER_LOAD_NO_CONN2HOST" => "Не могу соединиться с #HOST#:", | |
"LOADER_LOAD_SERVER_ANSWER" => "Ошибка загрузки. Сервер ответил: #ANS#", | |
"LOADER_LOAD_SERVER_ANSWER1" => "Ошибка загрузки. У вас нет прав на доступ к этому файлу. Сервер ответил: #ANS#", | |
"LOADER_LOAD_LOAD_DISTR" => "Загружаю файл #DISTR#", | |
"LOADER_LOAD_ERR_RENAME" => "Не могу переименовать файл #FILE1# в файл #FILE2#", | |
"ERROR_CANT_WRITE" => "Не могу записать файл #FILE#. Место на диске: #SPACE#", | |
"ERROR_IP_CHANGED" => "IP адрес клиента изменился, продолжение невозможно.", | |
"ERROR_INIT_TIMESTAMP" => "Время работы скрипта восстановления истекло. Загрузите новую версию.", | |
"LOADER_LOAD_CANT_REDIRECT" => "Ошибочное перенаправление на адрес #URL#. Проверьте адрес для скачивания.", | |
"LOADER_LOAD_CANT_OPEN_READ" => "Не могу открыть файл #FILE# на чтение", | |
"LOADER_LOAD_LOADING" => "Загружаю файл, дождитесь окончания загрузки...", | |
"LOADER_LOAD_FILE_SAVED" => "Файл сохранен: #FILE# [#SIZE# байт]", | |
"UPDATE_SUCCESS" => "Обновлено успешно. <a href='?'>Открыть</a>.", | |
"LOADER_NEW_VERSION" => "Доступна новая версия скрипта восстановления, но загрузить её не удалось", | |
); | |
} | |
elseif (LANG == 'de') | |
{ | |
$MESS = array( | |
"BACK" => "Zurück", | |
"BEGIN" => " | |
<p> | |
<ul> | |
<li>Öffnen Sie den Administrativen Bereich Ihrer alten Website und wählen Sie <b>Einstellungen > Tools > Backup</b> | |
<li>Erstellen Sie ein vollständiges Archiv mit <b>öffentlichen Website-Dateien</b>, <b>Kernel-Dateien</b> und <b>Datenbank-Dump</b> | |
</ul> | |
<b>Dokumentation:</b> <a href='https://training.bitrix24.com/support/training/course/?COURSE_ID=12&LESSON_ID=5913&LESSON_PATH=3884.5489.5913' target='_blank'>Trainingskurs</a> | |
</p> | |
", | |
"ARC_DOWN" => "Von Remote-Server herunterladen", | |
"ARC_DOWN_BITRIXCLOUD" => "Backup aus der Bitrix Cloud wiederherstellen", | |
"BITRIXCLOUD_KEYS" => "Refreshing Bitrix Cloud access keys", | |
"LICENSE_KEY" => "Ihr Lizenzschlüssel:", | |
"ARC_LOCAL_NAME" => "Archivname:", | |
"DB_SELECT" => "Datenbank-Dump auswählen:", | |
"DB_SETTINGS" => "Datenbank-Einstellungen", | |
"DB_SKIP" => "Überspringen", | |
"SKIP" => "Überspringen", | |
"DELETE_FILES" => "Archiv und temporäre Scripts löschen", | |
"ARC_DOWN_URL" => "Archiv-URL:", | |
"TITLE0" => "Archiv erstellen", | |
"TITLE1" => "Archiv herunterladen", | |
"TITLE_PROCESS1" => "Archiv wird entpackt", | |
"TITLE_PROCESS2" => "Datenbank wird wiederhergestellt...", | |
"FILE_IS_ENC" => "Archiv ist verschlüsselt. Passwort eingeben: ", | |
"WRONG_PASS" => "Passwort ist falsch", | |
"ENC_KEY" => "Passwort: ", | |
"TITLE2" => "Datenbank wiederherstellen", | |
"TITLE3" => "Herunterladen von cloud-Dateien", | |
"ARC_SKIP" => "Archiv wurde bereits entpackt", | |
"ARC_SKIP_DESC" => "Wiederherstellung der Datenbank starten", | |
"ARC_NAME" => "Archiv ist im Dokumenten-Root abgespeichert", | |
"ARC_DOWN_PROCESS" => "Wird herunterladen:", | |
"ERR_LOAD_FILE_LIST" => "Falsche Antwort vom Bitrixsoft Server", | |
"ARC_LOCAL" => "Vom lokalen Speicher hochladen", | |
"ARC_LOCAL_WARN" => "Vergessen Sie nicht, alle Teile eines mehrbändigen Archivs hochzuladen.", | |
"ERR_NO_PARTS" => "Einige Teile des mehrbändigen Archivs fehlen.<br>Teile gesamt: ", | |
"BUT_TEXT1" => "Fortfahren", | |
"BUT_TEXT_BACK" => "Zurück", | |
"DUMP_RETRY" => "Wiederholen", | |
"USER_NAME" => "Name des datenbank-Nutzers", | |
"USER_PASS" => "Passwort", | |
"BASE_NAME" => "Datenbankname", | |
"SEARCHING_UNUSED" => "Ungenutzte Kernel-Dateien werden gesucht...", | |
"BASE_HOST" => "Datenbank-Host", | |
"BASE_RESTORE" => "Wiederherstellen", | |
"ERR_EXTRACT" => "Fehler", | |
"ERR_MSG" => "Fehler!", | |
"LICENSE_NOT_FOUND" => "Lizenz wurde nicht gefunden", | |
"SELECT_ARC" => "Backup auswählen", | |
"CNT_PARTS" => "Teile", | |
"ARC_LIST_EMPTY" => "Backup-Liste ist leer für den aktuellen Lizenzschlüssel", | |
"ERR_UNKNOWN" => "Unbekannte Server-Antwort", | |
"ERR_UPLOAD" => "Datei kann nicht hochgeladen werden", | |
"ERR_DUMP_RESTORE" => "Fehler bei Wiederherstellung der Datenbank:", | |
"ERR_CREATE_DB" => "Fehler bei Erstellung der Datenbank", | |
"ERR_TAR_TAR" => "Es gibt Dateien mit Erweiterung tar.tar. Es müssten tar.1, tar.2 und so weiter sein", | |
"FINISH" => "Erfolgreich abgeschlossen", | |
"FINISH_MSG" => "Wiederherstellung des Systems wurde abgeschlossen.", | |
"FINISH_BTN" => "Website öffnen", | |
"BASE_CREATE_DB" => "Datenbank erstellen", | |
"BASE_CLOUDS" => "Cloud-Dateien:", | |
"BASE_CLOUDS_Y" => "lokal speichern", | |
"BASE_CLOUDS_N" => "in der Cloud lassen", | |
"FINISH_ERR_DELL" => "Löschen von temporären Dateien ist fehlgeschlagen. Sie sollten diese manuell löschen", | |
"FINISH_ERR_DELL_TITLE" => "Fehler beim Löschen von dateien", | |
"NO_READ_PERMS" => "Sie haben nicht genügend Rechte, um Web-Server Root zu lesen", | |
"UTF8_ERROR1" => "Ihr Server ist für die Codierung UTF-8 nicht konfiguriert. Definieren Sie bitte mbstring.func_overload=2 und mbstring.internal_encoding=UTF-8 um fortzufahren.", | |
"UTF8_ERROR2" => "Ihr Server ist für die Codierung UTF-8 konfiguriert. Definieren Sie bitte mbstring.func_overload=0 oder mbstring.internal_encoding=ISO-8859-1 um fortzufahren.", | |
"DOC_ROOT_WARN" => "Um Probleme mit Zugriffsrechten zu vermeiden, wurde das Dokumenten-Root in den Einstellungen der Website aufgeräumt.", | |
"CDN_WARN" => "CDN Web-Accelerator wurde deaktiviert, weil die aktuelle Domain sich von der unterscheidet, die in den CDN-Einstellungen gespeichrt ist.", | |
"HOSTS_WARN" => "Domain-Einschränkung wurde deaktiviert (Sicherheitsmodul), weil die aktuelle Domain den Einstellungen nicht entspricht.", | |
"WARN_CLEARED" => "Einige Dateien wurden in /bitrix gefunden, sie sind in der Backup nicht enthalten. Sie wurden nach /bitrix/tmp/restore.removed verschoben", | |
"WARN_SITES" => "Sie haben das Multisite-Archiv entpackt, kopieren Sie bitte die Dateien zusätzlicher Websites von /bitrix/backup/sites in einen entsprechenden Ort", | |
"WARNING" => "Warnung!", | |
"DBCONN_WARN" => "Die Verbindungseinstellungen werden von dbconn.php gelesen. Wenn Sie sie nicht ändern, wird aktuelle Datenbank überschrieben.", | |
"HTACCESS_RENAMED_WARN" => "Die Datei .htaccess wurde unter .htaccess.restore gespeichert, weil sie Anweisungen enthalten kann, die auf diesem Server nicht erlaubt sind.", | |
"HTACCESS_WARN" => "Die Datei .htaccess wurde unter .htaccess.restore gespeichert, weil sie die Anweisungen enthalten kann, die auf diesem Server nicht erlaubt sind. Standarddatei .htaccess wurde im Dokumenten-Root erstellt. Sie sollten sie manuell via FTP aktualisieren.", | |
"HTACCESS_ERR_WARN" => "Die Datei .htaccess wurde unter .htaccess.restore gespeichert, weil sie Anweisungen enthalten kann, die auf diesem Server nicht erlaubt sind. Es gab einen Fehler beim Erstellen der Standarddatei .htaccess. Sie sollten .htaccess.restore in .htaccess via FTP umbenennen.", | |
"ERR_CANT_DECODE" => "Unmöglich fortzufahren, weil das Modul MBString nicht verfügbar ist.", | |
"ERR_CANT_DETECT_ENC" => "Unmöglich fortzufahren wegen eines Fehlers in der Erkennung der Codierung des Dateinamen: ", | |
'TAR_ERR_FILE_OPEN' => 'Datei kann nicht geöffnet werden: ', | |
"ARC_DOWN_OK" => "Alle Archivteile wurden heruntergeladen", | |
"LOADER_SUBTITLE1" => "Wird geladen", | |
"LOADER_SUBTITLE1_ERR" => "Fehler beim Laden", | |
"LOADER_LOAD_QUERY_DISTR" => "Paket #DISTR# wird angefragt", | |
"LOADER_LOAD_CONN2HOST" => "Verbindung mit #HOST#", | |
"LOADER_LOAD_NO_CONN2HOST" => "Keine Verbindung mit #HOST#:", | |
"LOADER_LOAD_SERVER_ANSWER" => "Fehler beim Herunterladen. Die Antwort vom Server war: #ANS#", | |
"LOADER_LOAD_SERVER_ANSWER1" => "Fehler beim Herunterladen. Sie können dieses Paket nicht herunterladen. Die Antwort vom Server war: #ANS#", | |
"LOADER_LOAD_LOAD_DISTR" => "Das Paket #DISTR# wird heruntergeladen", | |
"LOADER_LOAD_ERR_RENAME" => "Die Datei #FILE1# kann nicht in #FILE2# umbenannt werden", | |
"ERROR_CANT_WRITE" => "In der Datei #FILE# kann nicht geschrieben werden. Freier Speicherplatz: #SPACE#", | |
"ERROR_IP_CHANGED" => "IP address has changed. Permission denied.", | |
"ERROR_INIT_TIMESTAMP" => "This script is outdated. Please upload the new version.", | |
"LOADER_LOAD_CANT_REDIRECT" => "Inkorrekte Weiterleitung an #URL#. Überprüfen Sie die Download-URL.", | |
"LOADER_LOAD_CANT_OPEN_READ" => "Die Datei #FILE# kann nicht zum Lesen geöffnet werden", | |
"LOADER_LOAD_LOADING" => "Es wird nun heruntergeladen. Bitte warten...", | |
"LOADER_LOAD_FILE_SAVED" => "Datei gespeichert: #FILE# [#SIZE# bytes]", | |
"UPDATE_SUCCESS" => "Aktualisierung war erfolgreich. <a href='?'>Öffnen</a>.", | |
"LOADER_NEW_VERSION" => "Beim Aktualisieren des Scripts restore.php ist ein Fehler aufgetreten.", | |
); | |
} | |
else | |
{ | |
$MESS = array( | |
"BEGIN" => " | |
<p> | |
<ul> | |
<li>Open Control Panel section of your old site and select <b>Settings > Tools > Backup</b> | |
<li>Create full archive which contains <b>public site files</b>, <b>kernel files</b> and <b>database dump</b> | |
</ul> | |
<b>Documentation:</b> <a href='https://training.bitrix24.com/support/training/course/?COURSE_ID=12&LESSON_ID=5913&LESSON_PATH=3884.5489.5913' target='_blank'>learning course</a> | |
</p> | |
", | |
"ARC_DOWN" => "Download from remote server", | |
"ARC_DOWN_BITRIXCLOUD" => "Restore the backup from the Bitrix Cloud", | |
"BITRIXCLOUD_KEYS" => "Refreshing Bitrix Cloud access keys", | |
"LICENSE_KEY" => "Your license key:", | |
"ARC_LOCAL_NAME" => "Archive name:", | |
"DB_SELECT" => "Select Database Dump:", | |
"DB_SETTINGS" => "Database settings", | |
"DB_SKIP" => "Skip", | |
"SKIP" => "Skip", | |
"DELETE_FILES" => "Delete archive and temporary scripts", | |
"ARC_DOWN_URL" => "Archive URL:", | |
"TITLE0" => "Archive Creation", | |
"TITLE1" => "Archive download", | |
"TITLE_PROCESS1" => "Extracting an archive", | |
"TITLE_PROCESS2" => "Restoring database...", | |
"FILE_IS_ENC" => "Archive is encrypted. Enter password: ", | |
"WRONG_PASS" => "Wrong password", | |
"ENC_KEY" => "Password: ", | |
"TITLE2" => "Database restore", | |
"TITLE3" => "Downloading cloud files", | |
"ARC_SKIP" => "Archive is already extracted", | |
"ARC_SKIP_DESC" => "Starting database restore", | |
"ARC_NAME" => "Archive is stored in document root folder", | |
"ARC_DOWN_PROCESS" => "Downloading:", | |
"ERR_LOAD_FILE_LIST" => "Wrong Bitrixsoft server response", | |
"ARC_LOCAL" => "Upload from local disk", | |
"ARC_LOCAL_WARN" => "Don't forget to upload all the parts of multi-volume archive.", | |
"ERR_NO_PARTS" => "Some parts of the multivolume archive are missed.<br>Total number of parts: ", | |
"BUT_TEXT1" => "Continue", | |
"BUT_TEXT_BACK" => "Back", | |
"DUMP_RETRY" => "Retry", | |
"USER_NAME" => "Database User Name", | |
"USER_PASS" => "Password", | |
"BASE_NAME" => "Database Name", | |
"SEARCHING_UNUSED" => "Searching for unused kernel files...", | |
"BASE_HOST" => "Database Host", | |
"BASE_RESTORE" => "Restore", | |
"ERR_EXTRACT" => "Error", | |
"ERR_MSG" => "Error!", | |
"LICENSE_NOT_FOUND" => "License not found", | |
"SELECT_ARC" => "Select backup", | |
"CNT_PARTS" => "parts", | |
"ARC_LIST_EMPTY" => "Backup list is empty for current license key", | |
"ERR_UNKNOWN" => "Unknown server response", | |
"ERR_UPLOAD" => "Unable to upload file", | |
"ERR_DUMP_RESTORE" => "Error restoring the database:", | |
"ERR_CREATE_DB" => "Error creating the database", | |
"ERR_TAR_TAR" => "There are files with tar.tar extension presents. Should be tar.1, tar.2 and so on", | |
"FINISH" => "Successfully completed", | |
"FINISH_MSG" => "Restoring of the system was completed.", | |
"FINISH_BTN" => "Open site", | |
"BASE_CREATE_DB" => "Create database", | |
"BASE_CLOUDS" => "Cloud files:", | |
"BASE_CLOUDS_Y" => "store locally", | |
"BASE_CLOUDS_N" => "leave in the cloud", | |
"FINISH_ERR_DELL" => "Failed to delete temporary files! You should delete them manually", | |
"FINISH_ERR_DELL_TITLE" => "Error deleting the files", | |
"NO_READ_PERMS" => "No permissions for reading Web Server root", | |
"UTF8_ERROR1" => "Your server is not configured for UTF-8 encoding. Please set mbstring.func_overload=2 and mbstring.internal_encoding=UTF-8 to continue.", | |
"UTF8_ERROR2" => "Your server is configured for UTF-8 encoding. Please set mbstring.func_overload=0 or mbstring.internal_encoding=ISO-8859-1 to continue.", | |
"DOC_ROOT_WARN" => "To prevent access problems the document root has been cleared in the site settings.", | |
"CDN_WARN" => "CDN Web Accelerator has been disabled because current domain differs from the one stored in CDN settings.", | |
"HOSTS_WARN" => "Domain restriction has beed disabled (security module) because current domain doesn't correspond settings.", | |
"WARN_CLEARED" => "Some files were found in /bitrix which don't present in the backup. They were moved to /bitrix/tmp/restore.removed", | |
"WARN_SITES" => "You have extracted the multisite archive, please copy files of additional sites from /bitrix/backup/sites to an appropriate place", | |
"WARNING" => "Warning!", | |
"DBCONN_WARN" => "The connection settings are read from dbconn.php. If you don't change them, current database will be overwriten.", | |
"HTACCESS_RENAMED_WARN" => "The file .htaccess was saved as .htaccess.restore, because it may contain directives which are not permitted on this server.", | |
"HTACCESS_WARN" => "The file .htaccess was saved as .htaccess.restore, because it may contain directives which are not permitted on this server. Default .htaccess file has been created at the document root. Please modify it manually using FTP.", | |
"HTACCESS_ERR_WARN" => "The file .htaccess was saved as .htaccess.restore, because it may contain directives which are not permitted on this server. There was an error in creating default .htaccess file. Please rename .htaccess.restore to .htaccess using FTP.", | |
"ERR_CANT_DECODE" => "Unable to continue because the module MBString is not available.", | |
"ERR_CANT_DETECT_ENC" => "Unable to continue due to error in encoding detection of file name: ", | |
'TAR_ERR_FILE_OPEN' => 'Can\'t open file: ', | |
"ARC_DOWN_OK" => "All archive parts have been downloaded", | |
"LOADER_SUBTITLE1" => "Loading", | |
"LOADER_SUBTITLE1_ERR" => "Loading Error", | |
"LOADER_MENU_UNPACK" => "Unpack file", | |
"LOADER_LOAD_QUERY_DISTR" => "Requesting package #DISTR#", | |
"LOADER_LOAD_CONN2HOST" => "Connection to #HOST#...", | |
"LOADER_LOAD_NO_CONN2HOST" => "Cannot connect to #HOST#:", | |
"LOADER_LOAD_SERVER_ANSWER" => "Error while downloading. Server reply was: #ANS#", | |
"LOADER_LOAD_SERVER_ANSWER1" => "Error while downloading. Your can not download this package. Server reply was: #ANS#", | |
"LOADER_LOAD_LOAD_DISTR" => "Downloading package #DISTR#", | |
"LOADER_LOAD_ERR_RENAME" => "Cannot rename file #FILE1# to #FILE2#", | |
"ERROR_CANT_WRITE" => "Cannot write to file #FILE#. Free disk space: #SPACE#", | |
"ERROR_IP_CHANGED" => "IP address has changed. Permission denied.", | |
"ERROR_INIT_TIMESTAMP" => "This script is outdated. Please upload the new version.", | |
"LOADER_LOAD_CANT_REDIRECT" => "Wrong redirect to #URL#. Check download url.", | |
"LOADER_LOAD_CANT_OPEN_READ" => "Cannot open file #FILE# for reading", | |
"LOADER_LOAD_LOADING" => "Download in progress. Please wait...", | |
"LOADER_LOAD_FILE_SAVED" => "File saved: #FILE# [#SIZE# bytes]", | |
"UPDATE_SUCCESS" => "Successful update. <a href='?'>Open</a>.", | |
"LOADER_NEW_VERSION" => "Error occured while updating restore.php script!", | |
); | |
} | |
$bClearUnusedStep = (bool) $_REQUEST['clear']; | |
$bSelectDumpStep = $_REQUEST['source'] == 'dump'; | |
$bCloudDownloadStep = $_REQUEST['cloud_download']; | |
$Step = IntVal($_REQUEST["Step"]); | |
$strErrMsg = ''; | |
if (!DEBUG && !$Step && $_SERVER['REQUEST_METHOD'] == 'GET') | |
{ | |
$this_script_name = basename(__FILE__); | |
$bx_host = 'www.1c-bitrix.ru'; | |
$bx_url = '/download/files/scripts/'.$this_script_name; | |
$form = ''; | |
// Check for updates | |
$res = fsockopen('ssl://'.$bx_host, 443, $errno, $errstr, 3); | |
if($res) | |
{ | |
$strRequest = "HEAD ".$bx_url." HTTP/1.1\r\n"; | |
$strRequest.= "Host: ".$bx_host."\r\n"; | |
$strRequest.= "\r\n"; | |
fputs($res, $strRequest); | |
while ($line = fgets($res, 4096)) | |
{ | |
if (preg_match("/Content-Length: *([0-9]+)/i", $line, $regs)) | |
{ | |
if (filesize(__FILE__) != trim($regs[1])) | |
{ | |
$tmp_name = $this_script_name.'.tmp'; | |
if (LoadFile('https://'.$bx_host.$bx_url, $tmp_name)) | |
{ | |
if (rename($_SERVER['DOCUMENT_ROOT'].'/'.$tmp_name,__FILE__)) | |
{ | |
bx_accelerator_reset(); | |
echo '<script>document.location="?lang='.LANG.'";</script>'.getMsg('UPDATE_SUCCESS'); | |
die(); | |
} | |
else | |
$strErrMsg = getMsg("ERROR_CANT_WRITE", ["#FILE#" => $this_script_name, '#SPACE#' => freeSpace()]); | |
} | |
else | |
$strErrMsg = getMsg('LOADER_NEW_VERSION'); | |
} | |
break; | |
} | |
} | |
fclose($res); | |
} | |
} | |
@ini_set('pcre.backtrack_limit', 1024*1024); | |
if (!DEBUG) | |
{ | |
if (IP_LIMIT == IP_LIMIT_DEFAULT) | |
{ | |
($str = file_get_contents(__FILE__)) || die(getMsg("LOADER_LOAD_CANT_OPEN_READ", ["#FILE#" => __FILE__])); | |
$size = strlen($str); | |
$str = str_replace(IP_LIMIT, $_SERVER['REMOTE_ADDR'], $str); | |
$str = str_replace(INIT_TIMESTAMP, time(), $str); | |
$str = str_pad($str, $size, ' '); | |
file_put_contents(__FILE__, $str) || die(getMsg("ERROR_CANT_WRITE", ["#FILE#" => __FILE__, '#SPACE#' => freeSpace()])); | |
bx_accelerator_reset(); | |
header('Location: '.$_SERVER['REQUEST_URI']); | |
die(); | |
} | |
elseif ($_SERVER['REMOTE_ADDR'] != IP_LIMIT) | |
$strErrMsg = getMsg('ERROR_IP_CHANGED'); | |
elseif (time() - INIT_TIMESTAMP > 86400) | |
$strErrMsg = getMsg('ERROR_INIT_TIMESTAMP'); | |
if ($strErrMsg) | |
{ | |
echo '<div style="color:red">'.getMsg('ERR_MSG').' '.$strErrMsg.'</div>'; | |
die(); | |
} | |
} | |
if ($_REQUEST['LoadFileList']) | |
{ | |
$strLog = ''; | |
if (LoadFile("https://www.1c-bitrix.ru/buy_tmp/backup.php?license=".md5(trim($_REQUEST['license_key']))."&lang=".LANG."&action=get_info", $file = $_SERVER['DOCUMENT_ROOT'].'/file_list.xml') && ($str = file_get_contents($file))) | |
{ | |
if (preg_match_all('/<file name="([^"]+)" size="([^"]+)".*?\\/>/', $str, $regs)) | |
{ | |
$arFiles = array(); | |
$arParts = array(); | |
foreach($regs[0] as $i => $wholeMatch) | |
{ | |
$name = CTar::getFirstName($regs[1][$i]); | |
$arFiles[$name] += $regs[2][$i]; | |
$arParts[$name]++; | |
} | |
krsort($arFiles); | |
echo getMsg('SELECT_ARC').': <select name="bitrixcloud_backup">'; | |
foreach($arFiles as $name => $size) | |
echo '<option value="'.htmlspecialcharsbx($name).'" '.($_REQUEST['bitrixcloud_backup'] == $name ? 'selected' : '').'>'.htmlspecialcharsbx($name).' ('.floor($size/1024/1024), ' Mb'.($arParts[$name] > 1 ? ', '.getMsg('CNT_PARTS').': '.$arParts[$name] : '').')</option>'; | |
echo '</select><br>'; | |
echo getMsg('ENC_KEY').' <input type="password" size=30 name="EncryptKey" autocomplete="off">'; | |
} | |
else | |
{ | |
if (strpos($str, '<files>') !== false) // valid answer | |
$strErrMsg = getMsg('ARC_LIST_EMPTY'); | |
elseif (preg_match('#error#i',$str)) | |
{ | |
$code = strip_tags($str); | |
if ($code == 'LICENSE_NOT_FOUND') | |
$strErrMsg = getMsg('LICENSE_NOT_FOUND'); | |
else | |
$strErrMsg = $code; | |
} | |
else | |
$strErrMsg = getMsg('ERR_UNKNOWN'); | |
echo '<div style="color:red">'.getMsg('ERR_MSG').' '.$strErrMsg.'</div>'; | |
} | |
bx_unlink($file); | |
} | |
else | |
echo '<div style="color:red">'.getMsg('ERR_LOAD_FILE_LIST').'</div><div style="text-align:left;color:#CCC">'.nl2br($strLog).'</div>'; | |
die(); | |
} | |
elseif ($Step == 2 && !$bSelectDumpStep) | |
{ | |
if (is_array($_REQUEST['arHeaders'])) | |
$arHeaders = $_REQUEST['arHeaders']; | |
else | |
$arHeaders = array(); | |
$source = $_REQUEST['source']; | |
if ($source == 'bitrixcloud' && !$_REQUEST['arc_down_url']) | |
{ | |
$strLog = ''; | |
if (LoadFile('https://www.1c-bitrix.ru/buy_tmp/backup.php?license='.md5(trim($_REQUEST['license_key'])).'&lang='.LANG.'&action=read_file&file_name='.urlencode($_REQUEST['bitrixcloud_backup']).'&check_word='.CTar::getCheckword($_REQUEST['EncryptKey']), $file = $_SERVER['DOCUMENT_ROOT'].'/file_info.xml') && ($str = file_get_contents($file))) | |
{ | |
bx_unlink($file); | |
$host = preg_match('#<host>([^<]+)</host>#i',$str,$regs) ? $regs[1] : false; | |
$path = preg_match('#<path>([^<]+)</path>#i',$str,$regs) ? $regs[1] : false; | |
if (preg_match_all('/<header name="([^"]+)" value="([^"]+)".*?\\/>/', $str, $regs)) | |
{ | |
foreach($regs[0] as $i => $wholeMatch) | |
$arHeaders[$regs[1][$i]] = $regs[2][$i]; | |
} | |
if ($host && $path) | |
{ | |
$_REQUEST['arc_down_url'] = $host.$path; | |
} | |
elseif (strpos($str, 'WRONG_FILE_NAME_OR_CHECKWORD') !== false) | |
$strErrMsg = '<div style="color:red">'.getMsg('WRONG_PASS').'</div>'; | |
else | |
$strErrMsg = '<div style="color:red">'.getMsg('ERR_LOAD_FILE_LIST').'</div>'; | |
} | |
else | |
$strErrMsg = '<div style="color:red">'.getMsg('ERR_LOAD_FILE_LIST').'</div><div style="text-align:left;color:#CCC">'.nl2br($strLog).'</div>'; | |
if (!$_REQUEST['try_next'] && $strErrMsg) | |
{ | |
$text = $strErrMsg. | |
getMsg('ENC_KEY').'<input type="password" size=30 name="EncryptKey" autocomplete="off" value="">'. | |
'<input type="hidden" name="license_key" value="'.htmlspecialcharsbx($_REQUEST['license_key']).'">'. | |
'<input type="hidden" name="source" value="bitrixcloud">'. | |
'<input type="hidden" name="bitrixcloud_backup" value="'.htmlspecialcharsbx($_REQUEST['bitrixcloud_backup']).'">'. | |
'<input type="hidden" name="Step" value="2">'; | |
$bottom .= ' | |
<a href="/restore.php?Step=1&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a> | |
<input type="button" id="start_button" value="'.getMsg("BUT_TEXT1").'" onClick="reloadPage(2)">'; | |
showMsg(getMsg('TITLE1'),$text,$bottom); | |
die(); | |
} | |
} | |
if ($source == 'download' || $source == 'bitrixcloud') | |
{ | |
$strUrl = $_REQUEST['arc_down_url']; | |
$res = false; | |
if ($strUrl) | |
{ | |
if (!preg_match('#https?://#',$strUrl)) | |
$strUrl = 'http://'.$strUrl; | |
$arc_name = trim(basename($strUrl)); | |
if ($arc_name == CTar::getFirstName($arc_name)) | |
{ | |
$full = false; | |
$tar = new CTar(); | |
$n = CTar::getLastNum($_SERVER['DOCUMENT_ROOT'].'/'.$arc_name); | |
$arc_name1 = $arc_name; | |
while(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.$arc_name1)) | |
{ | |
if ($n && $arc_name1 == $arc_name.'.'.$n) | |
{ | |
$full = true; | |
break; | |
} | |
$arc_name1 = $tar->getNextName($arc_name1); | |
} | |
if (!$full) | |
{ | |
$strUrl = str_replace($arc_name, $arc_name1, $strUrl); | |
$_REQUEST['bitrixcloud_backup'] = $arc_name = $arc_name1; | |
} | |
} | |
$strLog = ''; | |
$status = ''; | |
if ($_REQUEST['continue']) | |
{ | |
$res = LoadFile($strUrl, $_SERVER['DOCUMENT_ROOT'].'/'.$arc_name, $arHeaders); | |
if (file_exists($file = $_SERVER['DOCUMENT_ROOT'].'/'.$arc_name)) | |
{ | |
if ($res == 1) | |
{ | |
$f = fopen($_SERVER['DOCUMENT_ROOT'].'/'.$arc_name, 'rb'); | |
$id = fread($f, 2); | |
fclose($f); | |
if ($id != chr(31).chr(139)) // not gzip | |
{ | |
$s = filesize($_SERVER['DOCUMENT_ROOT'].'/'.$arc_name); | |
if ($s == 0 || $s%512 > 0) // not tar | |
{ | |
bx_unlink($_SERVER['DOCUMENT_ROOT'].'/'.$arc_name); | |
$res = false; | |
} | |
} | |
} | |
} | |
} | |
else | |
{ | |
$res = 2; | |
SetCurrentProgress(0); | |
} | |
} | |
if ($res) | |
{ | |
$text = getMsg('ARC_DOWN_PROCESS').' <b>'.htmlspecialcharsbx($arc_name).'</b>' . $status . | |
'<input type=hidden name=Step value=2>'. | |
'<input type=hidden name=continue value=Y>'. | |
'<input type=hidden name="EncryptKey" value="'.htmlspecialcharsbx($_REQUEST['EncryptKey']).'">'. | |
'<input type=hidden name="license_key" value="'.htmlspecialcharsbx($_REQUEST['license_key']).'">'; | |
if ($res == 2) | |
{ | |
$text .= '<input type=hidden name=arc_down_url value="'.htmlspecialcharsbx($strUrl).'">'; | |
$text .= '<input type=hidden name=source value=download>'; | |
$text .= '<input type=hidden name="bitrixcloud_backup" value="'.htmlspecialcharsbx($_REQUEST['bitrixcloud_backup']).'">'; | |
} | |
else | |
{ | |
$tar = new CTar(); | |
$text .= '<input type=hidden name=try_next value=Y>'; | |
if (count($arHeaders)) // bitrixcloud | |
{ | |
$text .= '<input type=hidden name=source value=bitrixcloud>'; | |
$text .= '<input type=hidden name="bitrixcloud_backup" value="'.htmlspecialcharsbx($tar->getNextName($_REQUEST['bitrixcloud_backup'])).'">'; | |
} | |
else | |
{ | |
$text .= '<input type=hidden name=source value=download>'; | |
$text .= '<input type=hidden name=arc_down_url value="'.htmlspecialcharsbx($tar->getNextName($strUrl)).'">'; | |
} | |
} | |
if (count($arHeaders)) | |
{ | |
foreach($arHeaders as $k=>$v) | |
$text .= '<input type=hidden name="arHeaders['.htmlspecialcharsbx($k).']" value="'.htmlspecialcharsbx($v).'">'; | |
} | |
} | |
elseif ($_REQUEST['try_next']) | |
{ | |
$text = getMsg('ARC_DOWN_OK'). | |
'<input type=hidden name=Step value=2>'. | |
'<input type=hidden name="EncryptKey" value="'.htmlspecialcharsbx($_REQUEST['EncryptKey']).'">'; | |
if ($_REQUEST['bitrixcloud_backup']) | |
$text .= '<input type=hidden name=arc_name value="'.htmlspecialcharsbx(CTar::getFirstName($_REQUEST['bitrixcloud_backup'])).'">'; | |
else | |
$text .= '<input type=hidden name=arc_name value="'.htmlspecialcharsbx(CTar::getFirstName($arc_name)).'">'; | |
} | |
else | |
{ | |
if ($_REQUEST['bitrixcloud_backup'] && $replycode == 403 && count($arHeaders) && (!$_REQUEST['timestamp'] || time() - $_REQUEST['timestamp'] > 10)) // Retry for bitrixcloud | |
{ | |
$status = '<div>'.getMsg('BITRIXCLOUD_KEYS').'</div>'; | |
$text = getMsg('ARC_DOWN_PROCESS').' <b>'.htmlspecialcharsbx($arc_name).'</b>' . $status . | |
'<input type=hidden name=Step value=2>'. | |
'<input type=hidden name=timestamp value='.time().'>'. | |
'<input type=hidden name=continue value=Y>'. | |
'<input type=hidden name="EncryptKey" value="'.htmlspecialcharsbx($_REQUEST['EncryptKey']).'">'. | |
'<input type=hidden name="license_key" value="'.htmlspecialcharsbx($_REQUEST['license_key']).'">'; | |
$text .= '<input type=hidden name=source value=bitrixcloud>'; | |
$text .= '<input type=hidden name="bitrixcloud_backup" value="'.htmlspecialcharsbx($_REQUEST['bitrixcloud_backup']).'">'; | |
} | |
else | |
{ | |
$ar = array( | |
'TITLE' => getMsg('LOADER_SUBTITLE1_ERR'), | |
'TEXT' => nl2br($strLog), | |
'BOTTOM' => '<a href="/restore.php?Step=1&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a>' | |
); | |
html($ar); | |
die(); | |
} | |
} | |
$bottom = '<a href="/restore.php?Step=1&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a>'; | |
showMsg(getMsg('LOADER_SUBTITLE1'),$text,$bottom); | |
?><script>reloadPage(2, 1);</script><? | |
die(); | |
} | |
elseif($source == 'upload') | |
{ | |
if (!count($_FILES['archive']['tmp_name'])) | |
{ | |
$ar = array( | |
'TITLE' => getMsg('ERR_EXTRACT'), | |
'TEXT' => getMsg('ERR_UPLOAD'), | |
'BOTTOM' => '<a href="/restore.php?Step=1&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a>' | |
); | |
html($ar); | |
die(); | |
} | |
foreach($_FILES['archive']['tmp_name'] as $k => $v) | |
{ | |
if (!$v) | |
continue; | |
$arc_name = $_FILES['archive']['name'][$k]; | |
if (!@move_uploaded_file($v, $_SERVER['DOCUMENT_ROOT'].'/'.$arc_name)) | |
{ | |
$ar = array( | |
'TITLE' => getMsg('ERR_EXTRACT'), | |
'TEXT' => getMsg('ERR_UPLOAD'), | |
'BOTTOM' => '<a href="/restore.php?Step=1&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a>' | |
); | |
html($ar); | |
die(); | |
} | |
} | |
$text = | |
'<input type=hidden name=Step value=2>'. | |
'<input type=hidden name=arc_name value="'.htmlspecialcharsbx(CTar::getFirstName($arc_name)).'">'; | |
showMsg(getMsg('LOADER_SUBTITLE1'),$text); | |
?><script>reloadPage(2, 1);</script><? | |
die(); | |
} | |
} | |
elseif($Step == 3) | |
{ | |
$d_pos = (double) $_REQUEST["d_pos"]; | |
if ($d_pos < 0) | |
$d_pos = 0; | |
$oDB = new CDBRestore($_REQUEST["DBHost"], $_REQUEST["DBName"], $_REQUEST["DBLogin"], $_REQUEST["DBPassword"], $_REQUEST["dump_name"], $d_pos); | |
$oDB->LocalCloud = $_REQUEST['LocalCloud']; | |
if(!$oDB->Connect()) | |
{ | |
$strErrMsg = $oDB->getError(); | |
$Step = 2; | |
$bSelectDumpStep = true; | |
} | |
} | |
##################################### GUI ################################# | |
if(!$Step) | |
{ | |
$ar = array( | |
'TITLE' => getMsg("TITLE0"), | |
'TEXT' => | |
($strErrMsg ? '<div style="color:red;padding:10px;border:1px solid red">'.$strErrMsg.'</div>' : ''). | |
getMsg('BEGIN'), | |
'BOTTOM' => | |
(defined('VMBITRIX') ? '<a href="/?lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a> ' : ''). | |
'<input type="button" value="'.getMsg("BUT_TEXT1").'" onClick="reloadPage(1)">' | |
); | |
html($ar); | |
} | |
elseif($Step == 1) | |
{ | |
$arc_down_url = $_REQUEST['arc_down_url'] ? $_REQUEST['arc_down_url'] : ''; | |
$local_arc_name = htmlspecialcharsbx(ltrim($_REQUEST['local_arc_name'],'/')); | |
if ($_REQUEST['bitrixcloud_backup']) | |
{ | |
@include($_SERVER['DOCUMENT_ROOT'].'/bitrix/license_key.php'); | |
$license_key = $LICENSE_KEY; | |
} | |
$option = getArcList(); | |
$ar = array( | |
'TITLE' => getMsg("TITLE1"), | |
'TEXT' => | |
$local_arc_name | |
? | |
'<div class=t_div><input type=hidden name=arc_name value="'.$local_arc_name.'"> '.getMsg("ARC_LOCAL_NAME").' <b>'.$local_arc_name.'</div>' | |
: | |
($strErrMsg ? '<div style="color:red">'.$strErrMsg.'</div>' : ''). | |
'<input type="hidden" name="Step" value="2">'. | |
'<div class=t_div> | |
<label><input type=radio name=x_source onclick="div_show(0)" '.($_REQUEST['bitrixcloud_backup'] ? 'checked' : '').'>'.getMsg("ARC_DOWN_BITRIXCLOUD").'</label> | |
<div id=div0 class="div-tool" style="display:none"> | |
<nobr>'.getMsg("LICENSE_KEY").'</nobr> <input name=license_key type="text" id=license_key size=30 value="'.htmlspecialcharsbx($license_key).'"> <input type="button" value=" OK " onclick="LoadFileList()"><br> | |
<div id=file_list></div> | |
</div> | |
</div> | |
<div class=t_div> | |
<label><input type=radio name=x_source onclick="div_show(1)" '.($_REQUEST['arc_down_url'] ? 'checked' : '').'>'.getMsg("ARC_DOWN").'</label> | |
<div id=div1 class="div-tool" style="display:none"><nobr>'.getMsg("ARC_DOWN_URL").'</nobr> <input name=arc_down_url type="text" size=40 value="'.htmlspecialcharsbx($arc_down_url).'"></div> | |
</div> | |
<div class=t_div> | |
<label><input type=radio name=x_source onclick="div_show(2)">'. getMsg("ARC_LOCAL").'</label> | |
<div id=div2 class="div-tool" style="display:none"><span style="color:#666">'.getMsg("ARC_LOCAL_WARN").'</span><br/><input type=file name="archive[]" size=40 multiple onchange="addFileField()"></div> | |
</div> | |
' | |
.(strlen($option) ? | |
'<div class=t_div> | |
<label><input type=radio name=x_source onclick="div_show(3)">'.getMsg("ARC_NAME").'</label> | |
<div id=div3 class="div-tool" style="display:none"> | |
<select name="arc_name">'.$option.'</select> | |
</div>'. | |
'</div>' | |
: '') | |
.($option === false ? '<div style="color:red">'.getMsg('NO_READ_PERMS').'</div>' : '') | |
.(count(getDumpList()) ? | |
'<div class=t_div>'. | |
'<label><input type=radio name=x_source onclick="div_show(4)">'.getMsg("ARC_SKIP").'</label> | |
<div id=div4 class="div-tool" style="display:none;color:#999999">'.getMsg('ARC_SKIP_DESC').'</div> | |
</div>' : '') | |
, | |
'BOTTOM' => | |
'<a href="/restore.php?Step=0&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a> '. | |
'<input type="button" id="start_button" value="'.getMsg("BUT_TEXT1").'" onClick="reloadPage(2)" '.($local_arc_name ? '' : 'disabled').'>' | |
); | |
html($ar); | |
} | |
elseif($Step == 2) | |
{ | |
if(!$bSelectDumpStep && !$bClearUnusedStep && !$bCloudDownloadStep) | |
{ | |
$tar = new CTarRestore; | |
$tar->path = $_SERVER['DOCUMENT_ROOT']; | |
$tar->ReadBlockCurrent = intval($_REQUEST['ReadBlockCurrent']); | |
$tar->EncryptKey = $_REQUEST['EncryptKey']; | |
$bottom = '<a href="/restore.php?Step=1&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a> '; | |
if ($rs = $tar->openRead($file1 = $file = $_SERVER['DOCUMENT_ROOT'].'/'.$arc_name)) | |
{ | |
$DataSize = intval($_REQUEST['DataSize']); | |
$skip = ''; | |
if(!$DataSize) // first step | |
{ | |
bx_unlink(RESTORE_FILE_LIST); | |
DeleteDirRec(RESTORE_FILE_DIR); | |
$Block = $tar->Block; | |
if (!$ArchiveSize = $tar->getDataSize($file)) | |
$ArchiveSize = filesize($file) * 2; // for standard gzip files | |
$DataSize = $ArchiveSize; | |
while(file_exists($file1 = $tar->getNextName($file1))) | |
$DataSize += $ArchiveSize; | |
$r = true; | |
SetCurrentProgress(0); | |
if ($n = CTar::getLastNum($file)) | |
{ | |
for($i=1;$i<=$n;$i++) | |
{ | |
if (!file_exists($file.'.'.$i)) | |
{ | |
$strErrMsg = getMsg('ERR_NO_PARTS').' <b>'.($n + 1).'</b>'; | |
$r = false; | |
break; | |
} | |
} | |
} | |
} | |
else | |
{ | |
$Block = intval($_REQUEST['Block']); | |
$skip = ' <input type=button value="'.getMsg('SKIP').'" onClick="document.forms.restore.skip.value=1;reloadPage(2)">'; | |
if ($r = $tar->SkipTo($Block)) | |
{ | |
if ($_REQUEST['skip']) | |
{ | |
while($tar->readHeader() === false); | |
$tar->SkipFile(); | |
} | |
while(($r = $tar->extractFile()) && haveTime()); | |
} | |
$strErrMsg = implode('<br>',$tar->err); | |
} | |
if ($r === 0) // Finish | |
$bClearUnusedStep = true; | |
else | |
{ | |
SetCurrentProgress(($tar->BlockHeader + $tar->ReadBlockCurrent) * 512,$DataSize, $red=false); | |
$hidden = '<input type="hidden" name="Block" value="'.$tar->BlockHeader.'">'. | |
'<input type="hidden" name="ReadBlockCurrent" value="'.$tar->ReadBlockCurrent.'">'. | |
'<input type="hidden" name="EncryptKey" value="'.htmlspecialcharsbx($tar->EncryptKey).'">'. | |
'<input type="hidden" name="DataSize" value="'.$DataSize.'">'. | |
'<input type="hidden" name="arc_name" value="'.htmlspecialcharsbx($arc_name).'">'; | |
if($r === false) // Error | |
{ | |
showMsg(getMsg("ERR_EXTRACT"), $status.$hidden.'<div style="color:red">'.$strErrMsg.'</div>', $bottom.$skip); | |
die(); | |
} | |
else | |
{ | |
showMsg(getMsg('TITLE_PROCESS1'),$status.$hidden,$bottom); | |
?><script>reloadPage(2, 1);</script><? | |
die(); | |
} | |
} | |
$tar->close(); | |
} | |
elseif ($tar->LastErrCode == 'ENC_KEY') | |
{ | |
$text = ($tar->EncryptKey ? '<div style="color:red">'.getMsg('WRONG_PASS').'</div>' : ''). | |
getMsg('FILE_IS_ENC'). | |
'<input type="password" size=30 name="EncryptKey" autocomplete="off">'. | |
'<input type="hidden" name="arc_name" value="'.htmlspecialcharsbx($arc_name).'">'. | |
'<input type="hidden" name="Step" value="2">'; | |
$bottom .= ' <input type="button" id="start_button" value="'.getMsg("BUT_TEXT1").'" onClick="reloadPage(2)">'; | |
showMsg(getMsg('TITLE_PROCESS1'),$text,$bottom); | |
die(); | |
} | |
else | |
{ | |
showMsg(getMsg("ERR_EXTRACT"), getMsg('TAR_ERR_FILE_OPEN').' '.implode('<br>',$tar->err),$bottom); | |
die(); | |
} | |
} | |
if ($bClearUnusedStep) | |
{ | |
if (file_exists(RESTORE_FILE_LIST) && $f = fopen(RESTORE_FILE_LIST, 'rb')) | |
{ | |
$modules = $_SERVER['DOCUMENT_ROOT'].'/bitrix/modules'; | |
$components = $_SERVER['DOCUMENT_ROOT'].'/bitrix/components/bitrix'; | |
fgets($f); // "die" line | |
$a = array(); | |
while(false !== $l = fgets($f)) | |
$a[trim($l)] = 1; | |
fclose($f); | |
$ds = new CDirRealScan; | |
$ds->startPath = $_REQUEST['nextPath']; | |
if (strpos($_REQUEST['nextPath'], $components) === 0) | |
$init_path = $components; | |
else | |
$init_path = $modules; | |
$res = $ds->Scan($init_path); | |
if ($res === true && $init_path == $modules) | |
{ | |
$ds->nextPath = $components; | |
$res = 'BREAK'; | |
} | |
if ($res === 'BREAK') | |
{ | |
$status = getMsg("SEARCHING_UNUSED"); | |
$hidden = '<input type="hidden" name="nextPath" value="'.$ds->nextPath.'">'. | |
'<input type="hidden" name="clear" value="1">'.GetHidden(array('dump_name', 'arc_name')); | |
$bottom = '<a href="javascript:reloadPage(1)">'.getMsg('BUT_TEXT_BACK').'</a> '; | |
showMsg(getMsg('TITLE_PROCESS1'),$status.$hidden,$bottom); | |
?><script>reloadPage(2, 1);</script><? | |
die(); | |
} | |
bx_unlink(RESTORE_FILE_LIST); | |
} | |
if (file_exists(RESTORE_FILE_DIR)) | |
$strWarning.= '<li>'.getMsg('WARN_CLEARED'); | |
if (file_exists($_SERVER['DOCUMENT_ROOT'].'/bitrix/backup/sites')) | |
$strWarning.= '<li>'.getMsg('WARN_SITES'); | |
$bSelectDumpStep = true; | |
} | |
if ($strWarning) | |
{ | |
$status = '<div style="color:red;text-align:center"><b>'.getMsg('WARNING').'</b></div> <ul style="color:red">'.$strWarning.'</ul>'; | |
$hidden = '<input type="hidden" name="source" value="dump">'.GetHidden(array('dump_name', 'arc_name')); | |
$bottom = '<a href="javascript:reloadPage(1)">'.getMsg('BUT_TEXT_BACK').'</a> '. | |
'<input type="button" value="'.getMsg("BUT_TEXT1").'" onClick="reloadPage(2)">'; | |
showMsg(getMsg('TITLE_PROCESS1'),$status.$hidden,$bottom); | |
die(); | |
} | |
if (file_exists(RESTORE_CLOUD_FILE_LIST)) | |
{ | |
$skip = $_REQUEST['skip']; | |
if ($skip) | |
{ | |
} | |
elseif ($rsFile = fopen(RESTORE_CLOUD_FILE_LIST, 'rb')) | |
{ | |
if ($start_position = intval($_REQUEST['position'])) | |
fseek($rsFile, $start_position); | |
if (is_array($_REQUEST['mirror_list']) && time() - intval($_REQUEST['init_time']) < 600) // раз в 10 минут снова измеряем зеркала | |
{ | |
$mirror_list = $_REQUEST['mirror_list']; | |
arsort($mirror_list); // выбираем самое быстрое зеркало | |
} | |
else | |
{ | |
$mirror_list = [ | |
'cdn.bitrix24.ru' => 999999, | |
'cdn.bitrix24.com' => 999999, | |
'cdn.bitrix24.de' => 999999, | |
'cdn-ru.bitrix24.ru' => 999999, | |
'cdn-ru.bitrix24.de' => 999999, | |
]; | |
$_REQUEST['init_time'] = $init_time = time(); | |
} | |
$mirror = key($mirror_list); | |
if (DEBUG) | |
{ | |
echo time() - intval($_REQUEST['init_time']); | |
echo '<pre>';print_r($mirror_list);echo '</pre>'; | |
} | |
$file_list = []; | |
if (is_array($_REQUEST['file_list'])) | |
{ | |
foreach($_REQUEST['file_list'] as $file => $str) | |
{ | |
if (!$f = unserialize($str)) | |
{ | |
$strErrMsg = 'Unserialize failure: '.$str; | |
break; | |
} | |
$file_list[$file] = $f; | |
$url = 'https://'.$mirror.'/'.$f['path']; | |
CMultiGet::startLoad($url, $file); | |
} | |
} | |
$concurrency = 20; | |
$num = 0; | |
while(!$strErrMsg) | |
{ | |
while (haveTime() && count(CMultiGet::$connections) < $concurrency && (false !== $line = fgets($rsFile))) | |
{ | |
$num++; | |
if (strpos($line, '<'.'?php') === 0) | |
continue; | |
if (!preg_match('#^(\d{4}-\d{2}-\d{2} [\d:]{8})[ \t]+(\d+)[ \t]+(.+)$#', trim($line), $regs)) | |
{ | |
$strErrMsg = 'File parse error '.RESTORE_CLOUD_FILE_LIST.' for line '.$num.': '.$line; | |
break; | |
} | |
$date = $regs[1]; | |
$size = $regs[2]; | |
$path = str_replace(' ', '%20', $regs[3]); | |
$save_path = preg_replace('#^[^/]+/#', '', $regs[3]); | |
if (preg_match('#^[^/]*(cache/|tmp/|test.txt)#', $save_path)) | |
continue; | |
$url = 'https://'.$mirror.'/'.$path; | |
$file = $_SERVER['DOCUMENT_ROOT'].'/upload/'.$save_path; | |
if (file_exists($file)) | |
{ | |
if (filesize($file) == $size) | |
continue; | |
if (filesize($file) > $size) | |
bx_unlink($file); | |
} | |
if (!CMultiGet::startLoad($url, $file)) | |
{ | |
$strErrMsg = nl2br(htmlspecialcharsbx(CMultiGet::$error)); | |
break; | |
} | |
$file_list[$file] = [ | |
'date' => $date, | |
'size' => $size, | |
'path' => $path, | |
]; | |
} | |
if (!CMultiGet::getPart()) | |
{ | |
debug(CMultiGet::$error); | |
$connection = CMultiGet::$connections[CMultiGet::$current]; | |
$url = $connection['url']; | |
CMultiGet::dropConnection(CMultiGet::$current); | |
foreach($mirror_list as $mirror => $speed) | |
{ | |
if (strpos($url, 'https://'.$mirror) === 0) | |
{ | |
unset($mirror_list[$mirror]); | |
CMultiGet::$bytes = 0; | |
$START_TIME = microtime(1); | |
break; | |
} | |
} | |
if (count($mirror_list)) | |
{ | |
$mirror = key($mirror_list); | |
continue; | |
} | |
$strErrMsg = nl2br(htmlspecialcharsbx(CMultiGet::$error)); | |
} | |
if (!haveTime()) | |
break; | |
} | |
if (!$strErrMsg && (!feof($rsFile) || count(CMultiGet::$connections))) | |
{ | |
$position = ftell($rsFile); | |
$size = filesize(RESTORE_CLOUD_FILE_LIST); | |
SetCurrentProgress($position, $size); | |
if (strlen($file) > 80) | |
$file = '...'.substr($file, -80); | |
$text = getMsg('ARC_DOWN_PROCESS').' <b>'.htmlspecialcharsbx($file).'</b>'. | |
$status. | |
GetHidden(array('source', 'dump_name', 'arc_name', 'init_time')).' | |
<input type="hidden" name="cloud_download" value="Y"> | |
<input type="hidden" name="position" value="'.$position.'">'; | |
foreach($file_list as $file => $f) | |
{ | |
if (!file_exists($file) || filesize($file) < $f['size']) | |
$text .= '<input type="hidden" name="file_list['.htmlspecialcharsbx($file).']" value="'.htmlspecialcharsbx(serialize($f)).'">'; | |
} | |
$mirror_list[$mirror] = round(CMultiGet::$bytes * 8/1024/1024/STEP_TIME, 2); // Mbit/s | |
foreach($mirror_list as $mirror => $speed) | |
{ | |
$text .= '<input type="hidden" name="mirror_list['.htmlspecialcharsbx($mirror).']" value="'.$speed.'">'; | |
} | |
$bottom = '<a href="javascript:reloadPage(1)">'.getMsg('BUT_TEXT_BACK').'</a>'. | |
' <input type=button value="'.getMsg('SKIP').'" onClick="document.forms.restore.skip.value=1;reloadPage(2)">'; | |
showMsg(getMsg('TITLE3'),$text,$bottom); | |
?><script>reloadPage(2, 1);</script><? | |
die(); | |
} | |
fclose($rsFile); | |
} | |
else | |
$strErrMsg = getMsg("LOADER_LOAD_CANT_OPEN_READ", ["#FILE#" => RESTORE_CLOUD_FILE_LIST]); | |
if (!$strErrMsg) | |
{ | |
bx_unlink(RESTORE_CLOUD_FILE_LIST) || $strErrMsg = getMsg('FINISH_ERR_DELL_TITLE').': '.RESTORE_CLOUD_FILE_LIST; | |
$bSelectDumpStep = true; | |
} | |
if ($strErrMsg) | |
{ | |
$ar = array( | |
'TITLE' => getMsg("TITLE3"), | |
'TEXT' => '<div style="color:red">'.$strErrMsg.'</div>', | |
'BOTTOM' => | |
'<input type="hidden" name="cloud_download" value="Y">'. | |
GetHidden(array('source', 'dump_name', 'arc_name')). | |
'<a href="javascript:reloadPage(1)">'.getMsg('BUT_TEXT_BACK').'</a> '. | |
'<input type="button" value="'.getMsg("DUMP_RETRY").'" onClick="reloadPage(2)"> ' | |
); | |
html($ar); | |
?><script>reloadPage(2, 300);</script><? | |
die(); | |
} | |
} | |
if ($bSelectDumpStep) | |
{ | |
if (file_exists($dbconn) && $strFile = file_get_contents($dbconn)) | |
{ | |
$bUTF_conf = preg_match('#^[ \t]*define\(.BX_UTF.+true\)#mi', $strFile); | |
if ($bUTF_conf && !$bUTF_serv) | |
$strErrMsg = getMsg('UTF8_ERROR1').'<br><br>'.$strErrMsg; | |
elseif (!$bUTF_conf && $bUTF_serv) | |
$strErrMsg = getMsg('UTF8_ERROR2').'<br><br>'.$strErrMsg; | |
} | |
if ($strErrMsg) | |
{ | |
$ar = array( | |
'TITLE' => getMsg("TITLE2"), | |
'TEXT' => '<div style="color:red">'.$strErrMsg.'</div>', | |
'BOTTOM' => | |
'<input type="hidden" name="source" value="dump">'.GetHidden(array('dump_name', 'arc_name')). | |
'<a href="javascript:reloadPage(1)">'.getMsg('BUT_TEXT_BACK').'</a> '. | |
'<input type="button" value="'.getMsg("DUMP_RETRY").'" onClick="reloadPage(2)"> ' | |
); | |
html($ar); | |
} | |
else | |
{ | |
if (!$_REQUEST['DBName']) | |
{ | |
$DBName = ''; | |
if (file_exists($dbconn) && $str = file_get_contents($dbconn)) | |
{ | |
$ar = explode("\n", $str); | |
foreach($ar as $l) | |
if (preg_match('#^[ \t]*\$(DBHost|DBLogin|DBPassword|DBName)[ \t]*=[ \t]*["\']([^"\']+)["\']#', $l)) | |
eval($l); | |
} | |
if ($DBName && !preg_match('#^\*+$#', $DBName)) | |
{ | |
$strWarning .= '<li>'.getMsg('DBCONN_WARN'); | |
$create_db = false; | |
} | |
else | |
{ | |
$DBHost = 'localhost'.(file_exists($_SERVER['DOCUMENT_ROOT'].'/../BitrixEnv.exe') ? ':31006' : ''); | |
$DBLogin = 'root'; | |
$DBPassword = ''; | |
$DBName = 'bitrix_'.(rand(11,99)); | |
$create_db = "Y"; | |
} | |
} | |
else | |
{ | |
$DBHost = $_REQUEST["DBHost"]; | |
$DBLogin = $_REQUEST["DBLogin"]; | |
$DBPassword = $_REQUEST["DBPassword"]; | |
$DBName = $_REQUEST["DBName"]; | |
$create_db = $_REQUEST["create_db"] == "Y"; | |
} | |
$arDName = getDumpList(); | |
$strDName = ''; | |
foreach($arDName as $db) | |
$strDName .= '<option value="'.htmlspecialcharsbx($db).'">'.htmlspecialcharsbx($db).'</option>'; | |
if(count($arDName)) | |
{ | |
$ar = array( | |
'TITLE' => getMsg("TITLE2"), | |
'TEXT' => | |
($strWarning ? '<div style="color:red;text-align:center"><b>'.getMsg('WARNING').'</b></div> <ul style="color:red">'.$strWarning.'</ul>' : ''). | |
'<input type="hidden" name="arc_name" value="'.htmlspecialcharsbx($arc_name).'">'. | |
(count($arDName)>1 ? getMsg("DB_SELECT").' <select name="dump_name">'.$strDName.'</select>' : '<input type=hidden name=dump_name value="'.htmlspecialcharsbx($arDName[0]).'">'). | |
'<div style="border:1px solid #aeb8d7;padding:5px;margin-top:4px;margin-bottom:4px;"> | |
<div style="text-align:center;color:#aeb8d7;margin:4px"><b>'.getMsg("DB_SETTINGS").'</b></div> | |
<table width=100% cellspacing=0 cellpadding=2 border=0 class="content-table"> | |
<tr><td align=right>'. getMsg("BASE_HOST").':</td><td><input autocomplete=off type="text" name="DBHost" value="'.htmlspecialcharsbx($DBHost).'"></td></tr> | |
<tr><td align=right>'. getMsg("USER_NAME").':</td><td><input autocomplete=off type="text" name="DBLogin" value="'.htmlspecialcharsbx($DBLogin).'"></td></tr> | |
<tr><td align=right>'. getMsg("USER_PASS").':</td><td><input type="password" autocomplete=off name="DBPassword" value="'.htmlspecialcharsbx($DBPassword).'"></td></tr> | |
<tr><td align=right>'. getMsg("BASE_NAME").':</td><td><input autocomplete=off type="text" name="DBName" value="'.htmlspecialcharsbx($DBName).'"></td></tr> | |
<tr><td align=right>'. getMsg("BASE_CREATE_DB").'</td><td><input type="checkbox" name="create_db" value="Y" '.($create_db ? 'checked' : '').'></td></tr> | |
</table> | |
</div>'. | |
( | |
file_exists($_SERVER['DOCUMENT_ROOT'].'/bitrix/backup/clouds') ? | |
'<div>'.getMsg("BASE_CLOUDS").' | |
<select name="LocalCloud"> | |
<option value="Y">'.getMsg("BASE_CLOUDS_Y").'</option> | |
<option value="">'.getMsg("BASE_CLOUDS_N").'</option> | |
</select> | |
</div>' | |
: | |
'' | |
) | |
, | |
'BOTTOM' => | |
'<a style="padding: 0 13px;" href="/restore.php?Step=1&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a> '. | |
'<input type="button" style="padding: 0 13px;" value="'.getMsg("DB_SKIP").'" onClick="reloadPage(4)"> '. | |
'<input type="button" style="padding: 0 13px;" value="'.getMsg("BASE_RESTORE").'" onClick="reloadPage(3)">' | |
); | |
html($ar); | |
} | |
else | |
showMsg(getMsg('FINISH'),GetHidden(array('dump_name', 'arc_name')).'<script>reloadPage(4);</script>'); | |
} | |
} | |
} | |
elseif($Step == 3) | |
{ | |
$d_pos = (double) $_REQUEST["d_pos"]; | |
if ($d_pos < 0) | |
$d_pos = 0; | |
if (!isset($_REQUEST['d_pos'])) // start | |
{ | |
if(!file_exists($dbconn)) | |
{ | |
if (!is_dir($dir = dirname($dbconn))) | |
mkdir($dir, 0777, true); | |
file_put_contents($dbconn, '<?'."\n". | |
'define("DBPersistent", false);'."\n". | |
'$DBType = "mysql";'."\n". | |
'$DBHost = "";'."\n". | |
'$DBLogin = "";'."\n". | |
'$DBPassword = "";'."\n". | |
'$DBName = "";'."\n". | |
"\n". | |
'$DBDebug = false;'."\n". | |
'$DBDebugToFile = false;'."\n". | |
'?>'); | |
} | |
if (file_exists($tmp = str_replace('dbconn.php','dbconn.restore.php',$dbconn))) | |
{ | |
bx_unlink($dbconn); | |
rename($tmp, $dbconn); | |
} | |
$arFile = file($dbconn); | |
foreach($arFile as $line) | |
{ | |
$line = str_replace("\r\n", "\n", $line); | |
if (preg_match('#^[ \t]*\$(DBHost|DBLogin|DBPassword|DBName)#',$line,$regs)) | |
{ | |
$key = $regs[1]; | |
$line = '$'.$key.' = "'.str_replace('$','\$',addslashes($_REQUEST[$key])).'";'."\n"; | |
} | |
$strFile .= $line; | |
} | |
if (defined('VMBITRIX') && !preg_match('#^[ \t]*define..BX_CRONTAB_SUPPORT#mi', $strFile)) | |
$strFile = '<'.'?define("BX_CRONTAB_SUPPORT", true);?'.'>'.$strFile; | |
file_put_contents($dbconn, $strFile); | |
if (file_exists($config = $_SERVER['DOCUMENT_ROOT']."/bitrix/.settings.php")) | |
{ | |
ob_start(); | |
$ar = include($config); | |
ob_end_clean(); | |
if (is_array($ar)) | |
{ | |
if (is_array($ar['connections']['value']['default'])) | |
{ | |
$ar['connections']['value']['default']['host'] = $_REQUEST['DBHost']; | |
$ar['connections']['value']['default']['database'] = $_REQUEST['DBName']; | |
$ar['connections']['value']['default']['login'] = $_REQUEST['DBLogin']; | |
$ar['connections']['value']['default']['password'] = $_REQUEST['DBPassword']; | |
$data = var_export($ar, true); | |
file_put_contents($config, "<"."?php\nreturn ".$data.";\n"); | |
} | |
} | |
else | |
rename($config, $_SERVER['DOCUMENT_ROOT']."/bitrix/.settings.restore.php"); // workaround for bug #47641 | |
} | |
SetCurrentProgress(0); | |
$r = true; | |
} | |
else | |
$r = $oDB->restore(); | |
$bottom = '<a href="/restore.php?Step=2&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a> '; | |
if($r && !$oDB->is_end()) | |
{ | |
$d_pos = $oDB->getPos(); | |
$oDB->close(); | |
$arc_name = $_REQUEST["arc_name"]; | |
$dump_name = preg_replace('#\.[0-9]+$#', '', $_SERVER['DOCUMENT_ROOT'].'/bitrix/backup/'.$_REQUEST['dump_name']); | |
$dump_size = 0; | |
while(file_exists($dump_name)) | |
{ | |
$dump_size += filesize($dump_name); | |
$dump_name = CDBRestore::getNextName($dump_name); | |
} | |
SetCurrentProgress($d_pos, $dump_size); | |
$text = | |
$status . ' | |
<input type="hidden" name="arc_name" value="'.htmlspecialcharsbx($arc_name).'"> | |
<input type="hidden" name="dump_name" value="'. htmlspecialcharsbx($_REQUEST["dump_name"]).'"> | |
<input type="hidden" name="check_site_path" value="Y"> | |
<input type="hidden" name="d_pos" value="'.$d_pos.'"> | |
<input type="hidden" name="DBLogin" value="'.htmlspecialcharsbx($_REQUEST["DBLogin"]).'"> | |
<input type="hidden" name="DBPassword" value="'. (strlen($_REQUEST["DBPassword"]) > 0 ? htmlspecialcharsbx($_REQUEST["DBPassword"]) : "").'"> | |
<input type="hidden" name="DBName" value="'. htmlspecialcharsbx($_REQUEST["DBName"]).'"> | |
<input type="hidden" name="DBHost" value="'. htmlspecialcharsbx($_REQUEST["DBHost"]).'"> | |
<input type="hidden" name="LocalCloud" value="'. ($_REQUEST["LocalCloud"] ? 'Y' : '').'"> | |
'; | |
showMsg(getMsg('TITLE_PROCESS2'),$text,$bottom); | |
?><script>reloadPage(3, 1);</script><? | |
} | |
else | |
{ | |
if($oDB->getError() != "") | |
showMsg(getMsg("ERR_DUMP_RESTORE"), '<div style="color:red">'.$oDB->getError().'</div>', $bottom); | |
else | |
{ | |
if (!$oDB->ft_index) | |
{ | |
$oDB->Query('UPDATE b_option SET VALUE="'.$oDB->escapeString(serialize(array())).'" WHERE MODULE_ID="main" AND NAME LIKE "~ft_%"'); | |
} | |
showMsg(getMsg('FINISH'),GetHidden(array('DBLogin','DBPassword','DBHost','DBName','dump_name', 'arc_name', 'check_site_path')).'<script>reloadPage(4);</script>'); | |
} | |
} | |
} | |
elseif($Step == 4) | |
{ | |
$strWarning .= CheckHtaccessAndWarn(); | |
if ($_REQUEST['check_site_path']) | |
{ | |
$oDB = new CDBRestore($_REQUEST["DBHost"], $_REQUEST["DBName"], $_REQUEST["DBLogin"], $_REQUEST["DBPassword"], $_REQUEST["dump_name"], $d_pos); | |
if ($oDB->Connect()) | |
{ | |
if ($rs = $oDB->Query('SELECT * FROM b_lang WHERE DOC_ROOT != "'.$oDB->escapeString($_SERVER['DOCUMENT_ROOT']).'" AND DOC_ROOT IS NOT NULL AND DOC_ROOT != ""')) | |
{ | |
if ($oDB->Fetch($rs)) | |
{ | |
$oDB->Query('UPDATE b_lang SET DOC_ROOT = "" '); | |
$strWarning .= '<li>'.getMsg('DOC_ROOT_WARN'); | |
} | |
} | |
$rs = $oDB->Query('SHOW TABLES LIKE "b_bitrixcloud_option"'); | |
if ($oDB->Fetch($rs)) | |
{ | |
$rs = $oDB->Query('SELECT * FROM b_bitrixcloud_option WHERE NAME="cdn_config_active" AND PARAM_VALUE=1'); | |
if ($oDB->Fetch($rs)) | |
{ | |
$rs = $oDB->Query('SELECT * FROM b_bitrixcloud_option WHERE NAME="cdn_config_domain"'); | |
if (($f = $oDB->Fetch($rs)) && $f['PARAM_VALUE'] != $_SERVER['HTTP_HOST']) | |
{ | |
$oDB->Query('UPDATE b_bitrixcloud_option SET PARAM_VALUE=0 WHERE NAME="cdn_config_active"'); | |
$oDB->Query('UPDATE b_bitrixcloud_option SET PARAM_VALUE='.(time() + 86400 * 3650).' WHERE NAME="cdn_config_expire_time"'); | |
$strWarning .= '<li>'.getMsg('CDN_WARN'); | |
} | |
} | |
} | |
if ($rs = $oDB->Query('SELECT * FROM b_module_to_module WHERE FROM_MODULE_ID="main" AND MESSAGE_ID="OnPageStart" AND TO_CLASS="Bitrix\\\\Security\\\\HostRestriction"')) | |
{ | |
if ($f = $oDB->Fetch($rs)) // host restriction is turned on | |
{ | |
$rs0 = $oDB->Query('SELECT * FROM b_option WHERE MODULE_ID="security" AND NAME="restriction_hosts_hosts"'); | |
if ($f0 = $oDB->Fetch($rs0)) | |
{ | |
if (strpos($f0['VALUE'], $_SERVER['HTTP_HOST']) === false) | |
{ | |
$oDB->Query('DELETE FROM b_module_to_module WHERE ID='.$f['ID']); | |
$strWarning .= '<li>'.getMsg('HOSTS_WARN'); | |
} | |
} | |
} | |
} | |
} | |
else | |
$strWarning .= '<li>'.$oDB->getError(); | |
} | |
$text = | |
($strWarning ? '<div style="color:red;padding:10px;text-align:center"><b>'.getMsg('WARNING').'</b></div> <ul style="color:red">'.$strWarning.'</ul>' : ''). | |
getMsg("FINISH_MSG").GetHidden(array('dump_name', 'arc_name')); | |
$bottom = '<a style="padding:0 13px;font-size:13px;" href="/restore.php?Step=2&source=dump&lang='.LANG.'">'.getMsg('BUT_TEXT_BACK').'</a> '. | |
'<input type=button style="padding:0 13px;font-size:13px;" value="'.getMsg('DELETE_FILES').'" onClick="reloadPage(5)">'; | |
showMsg(getMsg("FINISH"), $text, $bottom); | |
} | |
elseif($Step == 5) | |
{ | |
$ok = true; | |
$ok = bx_unlink($_SERVER['DOCUMENT_ROOT'].'/bitrixsetup.php') && $ok; | |
if ($_REQUEST['dump_name']) | |
{ | |
$ok = bx_unlink($_SERVER["DOCUMENT_ROOT"]."/bitrix/backup/".$_REQUEST["dump_name"]) && $ok; | |
$ok = bx_unlink($_SERVER["DOCUMENT_ROOT"]."/bitrix/backup/".str_replace('.sql','_after_connect.sql',$_REQUEST["dump_name"])) && $ok; | |
} | |
if($_REQUEST['arc_name'] && strpos($_REQUEST['arc_name'],'bitrix/') === false) | |
{ | |
$ok = bx_unlink($_SERVER["DOCUMENT_ROOT"]."/".$_REQUEST["arc_name"]) && $ok; | |
$i = 0; | |
while(file_exists($_SERVER['DOCUMENT_ROOT'].'/'.$_REQUEST['arc_name'].'.'.++$i)) | |
$ok = bx_unlink($_SERVER['DOCUMENT_ROOT'].'/'.$_REQUEST['arc_name'].'.'.$i) && $ok; | |
} | |
foreach(array('cache', 'stack_cache', 'managed_cache', 'resize_cache', 'tmp') as $dir) | |
{ | |
$ok = DeleteDirRec($_SERVER['DOCUMENT_ROOT'].'/bitrix/'.$dir) && $ok; | |
} | |
$ok = bx_unlink($_SERVER["DOCUMENT_ROOT"]."/restore.php") && $ok; | |
if (!$ok) | |
showMsg(getMsg("FINISH_ERR_DELL_TITLE"), '<span style="color:red">'.getMsg("FINISH_ERR_DELL").'</span>'); | |
else | |
{ | |
showMsg(getMsg("FINISH"), getMsg("FINISH_MSG"), '<input type=button onclick="document.location=\'/\'" value="'.getMsg("FINISH_BTN").'">'); | |
?><script>window.setTimeout(function(){document.location="/";},5000);</script><? | |
} | |
} | |
#################### END ############ | |
class CDBRestore | |
{ | |
var $type = ""; | |
var $DBHost =""; | |
var $DBName = ""; | |
var $DBLogin = ""; | |
var $DBPassword = ""; | |
var $DBdump = ""; | |
var $db_Conn = ""; | |
var $db_Error = ""; | |
var $f_end = false; | |
var $start; | |
var $d_pos; | |
var $_dFile; | |
var $mysqli; | |
public function __construct($DBHost, $DBName, $DBLogin, $DBPassword, $DBdump, $d_pos) | |
{ | |
$this->DBHost = $DBHost; | |
$this->DBLogin = $DBLogin; | |
$this->DBPassword = $DBPassword; | |
$this->DBName = $DBName; | |
$this->DBdump = $_SERVER["DOCUMENT_ROOT"]."/bitrix/backup/".$DBdump; | |
$this->d_pos = $d_pos; | |
$this->mysqli = function_exists('mysqli_connect'); | |
$this->ft_index = null; | |
} | |
function Query($sql) | |
{ | |
if ($this->ft_index === false && preg_match("#^CREATE TABLE.*FULLTEXT KEY#ms", $sql)) | |
{ | |
$sql = preg_replace("#[\r\n\s]*FULLTEXT KEY[^\r\n]*[\r\n]*#m", "", $sql); | |
$sql = str_replace("),)", "))", $sql); | |
} | |
$rs = $this->mysqli ? mysqli_query($this->db_Conn, $sql) : mysql_query($sql, $this->db_Conn); | |
if ($this->ft_index === null) | |
{ | |
if (preg_match("#^CREATE TABLE.*FULLTEXT KEY#ms", $sql)) | |
{ | |
$this->ft_index = (bool) $rs; | |
return $rs ? $rs : $this->Query($sql); | |
} | |
} | |
if (!$rs) | |
{ | |
$this->db_Error = "<font color=#ff0000>MySQL query error!</font><br>".($this->mysqli ? mysqli_error($this->db_Conn) : mysql_error()).'<br><br>'.htmlspecialcharsbx($sql); | |
return false; | |
} | |
return $rs; | |
} | |
function Connect() | |
{ | |
$this->db_Conn = $this->mysqli ? @mysqli_connect($this->DBHost, $this->DBLogin, $this->DBPassword) : @mysql_connect($this->DBHost, $this->DBLogin, $this->DBPassword); | |
if (!$this->db_Conn) | |
{ | |
$this->db_Error = "<font color=#ff0000>MySQL connect error!</font><br>".($this->mysqli ? mysqli_connect_error() : mysql_error()).'<br>'; | |
return false; | |
} | |
$this->Query('SET FOREIGN_KEY_CHECKS = 0'); | |
$dbExists = $this->mysqli ? @mysqli_select_db($this->db_Conn, $this->DBName) : @mysql_select_db($this->DBName, $this->db_Conn); | |
if(!$dbExists) | |
{ | |
if (@$_REQUEST["create_db"]=="Y") | |
{ | |
if(!@$this->Query("CREATE DATABASE `".$this->escapeString($this->DBName)."`")) | |
{ | |
$this->db_Error = getMsg("ERR_CREATE_DB").': '.($this->mysqli ? mysqli_error($this->db_Conn) : mysql_error()); | |
return false; | |
} | |
$dbExists = $this->mysqli ? @mysqli_select_db($this->db_Conn, $this->DBName) : @mysql_select_db($this->DBName, $this->db_Conn); | |
} | |
if(!$dbExists) | |
{ | |
$this->db_Error = "<font color=#ff0000>Error! mysql".($this->mysqli ? 'i' : '')."_select_db(".htmlspecialcharsbx($this->DBName).")</font><br>".($this->mysqli ? mysqli_error($this->db_Conn) : mysql_error())."<br>"; | |
return false; | |
} | |
} | |
$this->Query("SET SQL_MODE=''"); | |
$this->Query("SET innodb_strict_mode=0"); | |
$after_file = str_replace('.sql','_after_connect.sql',$this->DBdump); | |
if (file_exists($after_file)) | |
{ | |
$arSql = explode(';',file_get_contents($after_file)); | |
foreach($arSql as $sql) | |
{ | |
$sql = str_replace('<DATABASE>', $this->DBName, $sql); | |
if (trim($sql)) | |
$this->Query($sql); | |
} | |
} | |
return true; | |
} | |
function Fetch($rs) | |
{ | |
return $this->mysqli ? mysqli_fetch_assoc($rs) : mysql_fetch_assoc($rs); | |
} | |
function escapeString($str) | |
{ | |
return $this->mysqli ? mysqli_real_escape_string($this->db_Conn, $str) : mysql_real_escape_string($str, $this->db_Conn); | |
} | |
function readSql() | |
{ | |
$cache = ""; | |
while(CTar::substr($cache, -2, 1) != ";") | |
{ | |
$line = fgets($this->_dFile); | |
if (feof($this->_dFile) || $line === false) | |
{ | |
fclose($this->_dFile); | |
if (file_exists($next_part = self::getNextName($this->DBdump))) | |
{ | |
$this->DBdump = $next_part; | |
if (!$this->_dFile = fopen($this->DBdump, 'rb')) | |
{ | |
$this->db_Error = "Can't open file: ".$this->DBdump; | |
return false; | |
} | |
} | |
else | |
{ | |
$this->f_end = true; | |
break; | |
} | |
} | |
$cache .= $line; | |
} | |
if($this->f_end) | |
return false; | |
return $cache; | |
} | |
function restore() | |
{ | |
clearstatcache(); | |
while($this->d_pos > ($s = filesize($this->DBdump)) && file_exists($this->DBdump)) | |
{ | |
$this->d_pos -= $s; | |
$this->DBdump = self::getNextName($this->DBdump); | |
} | |
if (!$this->_dFile = fopen($this->DBdump, 'rb')) | |
{ | |
$this->db_Error = "Can't open file: ".$this->DBdump; | |
return false; | |
} | |
if($this->d_pos > 0) | |
fseek($this->_dFile, $this->d_pos); | |
while(haveTime() && ($sql = $this->readSql())) | |
{ | |
if (defined('VMBITRIX')) | |
{ | |
if (preg_match('#^CREATE TABLE#i',$sql)) | |
{ | |
$sql = preg_replace('#ENGINE=MyISAM#i','',$sql); | |
$sql = preg_replace('#TYPE=MyISAM#i','',$sql); | |
} | |
} | |
$rs = $this->Query($sql); | |
if(!$rs) | |
{ | |
if ($this->getErrorNum() != 1062) // Duplicate entry | |
return false; | |
if (preg_match('#^(INSERT[^\(]+VALUES[^\(]+)\((.+)\);?$#mis', $sql, $regs)) | |
{ | |
$insert = $regs[1]; | |
foreach(preg_split('#\),[^\(]\(#', $regs[2]) as $values) | |
{ | |
$rs = $this->Query($insert.'('.$values.')'); | |
if (!$rs && $this->getErrorNum() != 1062) | |
return false; | |
} | |
return true; | |
} | |
} | |
} | |
$this->Query('SET FOREIGN_KEY_CHECKS = 1'); | |
if ($this->LocalCloud && $this->f_end) | |
{ | |
$i = ''; | |
while(file_exists($_SERVER['DOCUMENT_ROOT'].'/upload/'.($name = 'clouds'.$i))) | |
$i++; | |
if (!file_exists($f = $_SERVER['DOCUMENT_ROOT'].'/upload')) | |
mkdir($f); | |
if (rename($_SERVER['DOCUMENT_ROOT'].'/bitrix/backup/clouds', $_SERVER['DOCUMENT_ROOT'].'/upload/'.$name)) | |
{ | |
$arFiles = scandir($_SERVER['DOCUMENT_ROOT'].'/upload/'.$name); | |
foreach($arFiles as $file) | |
{ | |
if ($id = intval($file)) | |
$this->Query('UPDATE b_file SET SUBDIR = CONCAT("'.$name.'/'.$id.'/", SUBDIR), HANDLER_ID=NULL WHERE HANDLER_ID ='.$id); | |
} | |
} | |
} | |
return true; | |
} | |
function getError() | |
{ | |
return $this->db_Error; | |
} | |
function getErrorNum() | |
{ | |
return $this->mysqli ? mysqli_errno($this->db_Conn) : mysql_errno(); | |
} | |
function getPos() | |
{ | |
if (is_resource($this->_dFile)) | |
{ | |
$res = ftell($this->_dFile); | |
$prev = preg_replace('#\.[0-9]+$#', '', $this->DBdump); | |
clearstatcache(); | |
while($this->DBdump != $prev) | |
{ | |
if (!file_exists($prev)) | |
return false; | |
$res += filesize($prev); | |
$prev = self::getNextName($prev); | |
} | |
return $res; | |
} | |
} | |
function close() | |
{ | |
unset($this->_dFile); | |
return true; | |
} | |
function is_end() | |
{ | |
return $this->f_end; | |
} | |
public static function getNextName($file) | |
{ | |
static $CACHE; | |
$c = &$CACHE[$file]; | |
if (!$c) | |
{ | |
$l = strrpos($file, '.'); | |
$num = CTar::substr($file,$l+1); | |
if (is_numeric($num)) | |
$file = CTar::substr($file,0,$l+1).++$num; | |
else | |
$file .= '.1'; | |
$c = $file; | |
} | |
return $c; | |
} | |
} | |
function getDumpList() | |
{ | |
$arDump = array(); | |
if (is_dir($back_dir = $_SERVER["DOCUMENT_ROOT"]."/bitrix/backup")) | |
{ | |
$handle = opendir($back_dir); | |
while (false !== ($file = readdir($handle))) | |
{ | |
if($file == "." || $file == "..") | |
continue; | |
if(is_dir($back_dir.'/'.$file)) | |
continue; | |
if (strpos($file,'_after_connect.sql')) | |
continue; | |
if(substr($file, strlen($file) - 3, 3) == "sql") | |
$arDump[] = $file; | |
} | |
} | |
return $arDump; | |
} | |
function getMsg($index, $ar = []) | |
{ | |
global $MESS; | |
$str = $MESS[$index]; | |
foreach($ar as $k => $v) | |
$str = str_replace($k, $v, $str); | |
return $str; | |
} | |
function getArcList() | |
{ | |
$arc = ""; | |
global $strErrMsg; | |
$handle = @opendir($_SERVER["DOCUMENT_ROOT"]); | |
if (!$handle) | |
return false; | |
while (false !== ($file = @readdir($handle))) | |
{ | |
if($file == "." || $file == "..") | |
continue; | |
if(is_dir($_SERVER["DOCUMENT_ROOT"]."/".$file)) | |
continue; | |
if(preg_match('#\.(tar|enc)(\.gz)?$#',$file)) | |
$arc .= "<option value=\"$file\"> ".$file; | |
if(substr($file, strlen($file) - 7, 7) == "tar.tar") | |
$strErrMsg = getMsg('ERR_TAR_TAR'); | |
} | |
return $arc; | |
} | |
function showMsg($title, $msg, $bottom='') | |
{ | |
$ar = array( | |
'TITLE' => $title, | |
'TEXT' => $msg, | |
'BOTTOM' => $bottom | |
); | |
html($ar); | |
} | |
function html($ar) | |
{ | |
$isCrm = getenv('BITRIX_ENV_TYPE') == 'crm'; | |
?> | |
<html> | |
<head> | |
<title><?=$ar['TITLE']?></title> | |
</head> | |
<body> | |
<style> | |
html, body { | |
padding: 0 10px; | |
margin: 0; | |
background: #2fc6f7; | |
position: relative; | |
} | |
p { | |
margin: 0 0 40px; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-size:13px; | |
} | |
.wrap { | |
min-height: 100vh; | |
position: relative; | |
} | |
.cloud { | |
background-size: contain; | |
position: absolute; | |
z-index: 1; | |
background-repeat: no-repeat; | |
background-position: center; | |
opacity: .8; | |
} | |
.cloud-fill { | |
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDEiIGhlaWdodD0iNjMiIHZpZXdCb3g9IjAgMCAxMDEgNjMiPiAgPHBhdGggZmlsbD0iI0U0RjhGRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNDc3LjM5MjY1MywyMTEuMTk3NTYyIEM0NzYuNDcwMzYyLDIwMS41NDc2MjIgNDY4LjM0NDA5NywxOTQgNDU4LjQ1MjIxNCwxOTQgQzQ1MC44MTI2NzksMTk0IDQ0NC4yMjc3NzcsMTk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: 14%; | |
left: 12%; | |
width: 80px; | |
height: 51px; | |
} | |
.cloud-3 { | |
top: 11%; | |
right: 14%; | |
width: 106px; | |
height: 67px; | |
} | |
.cloud-4 { | |
top: 33%; | |
right: 13%; | |
width: 80px; | |
height: 51px; | |
} | |
.cloud-5 { | |
bottom: 23%; | |
right: 12%; | |
width: 80px; | |
height: 51px; | |
} | |
.cloud-6 { | |
bottom: 23%; | |
left: 12%; | |
width: 80px; | |
height: 51px; | |
} | |
.cloud-7 { | |
top: 13%; | |
left: 6%; | |
width: 60px; | |
height: 31px; | |
opacity: 1; | |
} | |
.cloud-8 { | |
top: 43%; | |
right: 6%; | |
width: 86px; | |
height: 54px; | |
opacity: 1; | |
} | |
.header { | |
min-height: 220px; | |
max-width: 727px; | |
margin: 0 auto; | |
box-sizing: border-box; | |
position: relative; | |
z-index: 10; | |
} | |
.logo-link, | |
.buslogo-link{ | |
position: absolute; | |
top: 50%; | |
margin-top: -23px; | |
} | |
.logo { | |
width: 255px; | |
display: block; | |
height: 46px; | |
background-repeat: no-repeat; | |
/*background-size:cover;*/ | |
} | |
.wrap.en .logo, | |
.wrap.de .logo { background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODUiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAxODUgMzYiPiAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtLjAxMyAuMDIyKSI+ICAgIDxnIGZpbGw9IiNGRkZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxLjcwMSkiPiAgICAgIDxwYXRoIGQ9Ik0uNDg1MTExMDIzIDIuNjA5MTUwMDdMMTAuMjI4MTI5NCAyLjYwOTE1MDA3QzE2Ljk2MDY2NDYgMi42MDkxNTAwNyAxOS45NzExNDc4I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OCAxOTYuNzYxMzQ5LDE3LjE1NjgzMzIgMTk2Ljc2MTM0OSwxMi4wNTcxNTU2IEMxOTYuNzYxMzQ5LDYuOTU3NDc4MDMgMjAwLjg4ODU3OCwyLjgyNDgyMzM5IDIwNS45ODE1NiwyLjgyNDgyMzM5IEMyMTEuMDc0NTQyLDIuODI0ODIzMzkgMjE1LjIwMTc3MSw2Ljk1NzQ3ODAzIDIxNS4yMDE3NzEsMTIuMDU3MTU1NiBDMjE1LjIwMTc3MSwxNy4xNTY4MzMyIDIxMS4wNjU0MzEsMjEuMjg5NDg3OCAyMDUuOTgxNTYsMjEuMjg5NDg3OCBaIE0yMDYuOTkyODY4LDYuNDkyMjEyMjcgTDIwNC41ODc1OTUsNi40OTIyMTIyNyBMMjA0LjU4NzU5NSwxMy4xMDYyODQzIEwyMTAuOTc0MzIyLDEzLjEwNjI4NDMgTDIxMC45NzQzMjIsMTAuNzk4MjAxMiBMMjA2Ljk5Mjg2OCwxMC43OTgyMDEyIEwyMDYuOTkyODY4LDYuNDkyMjEyMjcgWiIvPiAgPC9nPjwvc3ZnPg==); } | |
.buslogo { | |
width: 255px; | |
display: block; | |
height: 46px; | |
background-repeat: no-repeat; | |
/*background-size:cover;*/ | |
} | |
.wrap.en .buslogo, | |
.wrap.de .buslogo { background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5OS42NTYiIGhlaWdodD0iMzMuNzUiIHZpZXdCb3g9IjAgMCA5OS42NTYgMzMuNzUiPiAgPGRlZnM+ICAgIDxzdHlsZT4gICAgICAuY2xzLTEgeyAgICAgICAgZmlsbDogI2ZmZjsgICAgICAgIGZpbGwtcnVsZTogZXZlbm9kZDsgICAgICB9ICAgIDwvc3R5bGU+ICA8L2RlZnM+ICA8cGF0aCBpZD0iQml0cml4X2NvcHkiIGRhdGEtbmFtZT0iQml0cml4IGNvcHkiIGNsYXNzPSJjbHMtMSIgZD0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zLjQzNSwwLDEsMC0zLjUwNy0zLjQxQTMuMzg2LDMuMzg2LDAsMCwwLDI2NC44LDkwLjlabTcuMzQ0LDI2LjQxN2g1LjcxNlYxMDcuOWgzLjQxYzAuNjczLDAsMS4zLjYyNCwxLjk2OSwyLjE2MWwyLjg4Miw3LjI1M2g2LjJsLTQuMTMtOC42OTRhNC44NzgsNC44NzgsMCwwLDAtMi42NDItMi43ODV2LTAuMWMxLjkyMS0xLjE1MiwyLjExMy00LjQxOCwzLjI2Ni02YTEuOTE5LDEuOTE5LDAsMCwxLDEuNTg1LS43MjEsMy44NTgsMy44NTgsMCwwLDEsMS4zLjE5MlY5NC4zNTVhOC4yLDguMiwwLDAsMC0yLjM1NC0uMzM2LDQuODA5LDQuODA5LDAsMCwwLTQuMTc4LDIuMDE3Yy0xLjg3NCwyLjczOC0xLjgyNiw3LjQ5My00LjY1OSw3LjQ5M2gtMi42NDJWOTQuNmgtNS43MTZ2MjIuNzE5Wm0zMi45ODgsMC40OGExNC4yMTQsMTQuMjE0LDAsMCwwLDcuNzgxLTIuMjA5bC0xLjY4MS0zLjkzOWExMC40ODgsMTAuNDg4LDAsMCwxLTUuMjgzLDEuNTM3Yy0zLjg5MSwwLTYuNDM3LTIuNTQ1LTYuNDM3LTcuMiwwLTQuMTc5LDIuNS03LjM0OSw2LjcyNS03LjM0OWE4Ljk0Nyw4Ljk0NywwLDAsMSw1LjUyNCwxLjc3N1Y5NS41NTZhMTEuNDQsMTEuNDQsMCwwLDAtNi4xLTEuNTM3LDExLjc0LDExLjc0LDAsMCwwLTEyLjAwNywxMi4xQzI5My42NDgsMTEyLjcsMjk3LjczLDExNy43OTQsMzA1LjEyNywxMTcuNzk0WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE4MS4wNjIgLTg0LjAzMSkiLz48L3N2Zz4=); } | |
.content { | |
z-index: 10; | |
position: relative; | |
margin-bottom: 20px; | |
} | |
.content-container { | |
z-index: 10; | |
max-width: 727px; | |
margin: 0 auto; | |
padding: 28px 25px 25px; | |
border-radius: 11px; | |
box-shadow: 0 4px 20px 0 rgba(6, 54, 70, .15); | |
box-sizing: border-box; | |
text-align: center; | |
background-color: #fff; | |
position: relative; | |
} | |
.content-block { | |
position: relative; | |
z-index: 10; | |
} | |
hr { | |
margin: 79px 0 45px; | |
border: none; | |
height: 1px; | |
background: #f2f2f2; | |
} | |
h1.content-header { | |
color: #2fc6f7; | |
font: 500 40px/45px "Helvetica Neue", Helvetica, Arial, sans-serif; | |
margin-bottom: 13px; | |
margin-top: 62px; | |
} | |
h2.content-header { | |
color: #2fc6f7; | |
font: 400 27px/27px "Helvetica Neue", Helvetica, Arial, sans-serif; | |
margin-bottom: 13px; | |
margin-top: 31px; | |
} | |
h3.content-header { | |
color: #000; | |
font: 400 30px/41px "Helvetica Neue", Helvetica, Arial, sans-serif; | |
margin-bottom: 40px; | |
margin-top: 46px; | |
} | |
.content-logo { | |
width: 100%; | |
height: 57px; | |
background-repeat: no-repeat; | |
background-position: center 0; | |
} | |
.wrap.de .content-logo, | |
.wrap.en .content-logo{ background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMzIiIGhlaWdodD0iNDUiIHZpZXdCb3g9IjAgMCAyMzIgNDUiPiAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSguMDk3IC4wMjIpIj4gICAgPGcgZmlsbD0iIzJGQzdGNyIgZmlsbC1ydWxlPSJub256ZXJvIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDIuNzAxKSI+ICAgICAgPHBhdGggZD0iTS43NjA1OTI0OTEgMy4wOTYyOTc4OUwxMi45NzU1MDY0IDMuMDk2Mjk3ODlDMjEuNDE2MTQ5MiAzLjA5NjI5Nzg5IDI1LjE5MDQyMDMgNy45MDIxMDAzNyAyNS4xOTA0MjAzIDEyLjc2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SBDMjcyLjMzOTQzNyw3LjM1NDEzNzUgMjY1Ljg0MDA5MywwLjg0NjI0OTU2NCAyNTcuODMyOTkzLDAuODQ2MjQ5NTY0IFogTTI1Ny44OTAxMDUsMjYuOTY5MzAwNiBDMjUxLjUwNDk4NSwyNi45NjkzMDA2IDI0Ni4zMzA2NCwyMS43ODgxNTI2IDI0Ni4zMzA2NCwxNS4zOTQ2Mzg4IEMyNDYuMzMwNjQsOS4wMDExMjQ5NiAyNTEuNTA0OTg1LDMuODE5OTc2OTIgMjU3Ljg5MDEwNSwzLjgxOTk3NjkyIEMyNjQuMjc1MjI1LDMuODE5OTc2OTIgMjY5LjQ0OTU3LDkuMDAxMTI0OTYgMjY5LjQ0OTU3LDE1LjM5NDYzODggQzI2OS40NDk1NywyMS43ODgxNTI2IDI2NC4yNjM4MDIsMjYuOTY5MzAwNiAyNTcuODkwMTA1LDI2Ljk2OTMwMDYgWiBNMjU5LjE1Nzk5MSw4LjQxNzgxNjkgTDI1Ni4xNDI0NzgsOC40MTc4MTY5IEwyNTYuMTQyNDc4LDE2LjcwOTk0MTIgTDI2NC4xNDk1NzgsMTYuNzA5OTQxMiBMMjY0LjE0OTU3OCwxMy44MTYyNzU4IEwyNTkuMTU3OTkxLDEzLjgxNjI3NTggTDI1OS4xNTc5OTEsOC40MTc4MTY5IFoiLz4gIDwvZz48L3N2Zz4=); } | |
.setup-btn, | |
.content-table input[type="submit"], | |
.content-table input[type="button"]{ | |
height: 45px; | |
line-height: 45px; | |
color: #fff; | |
background-color: #b5e00f; | |
padding: 0 45px; | |
text-transform: uppercase; | |
text-decoration: none; | |
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
vertical-align: middle; | |
border-radius: 25px; | |
transition: all 250ms ease; | |
display: inline-block; | |
font-size: 15px; | |
border: none; | |
cursor: pointer; | |
} | |
.setup-btn:hover { | |
background-color: #9bc40e; | |
} | |
.lnk { | |
color: #2fc6f7; | |
font: 15px/25px "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
border-bottom: 1px solid; | |
text-decoration: none; | |
transition: all 250ms ease; | |
} | |
.lnk:hover { | |
border-bottom-color: transparent; | |
} | |
.progressbar-container { | |
width: 70%; | |
margin: 55px auto; | |
} | |
.progressbar-track { | |
height: 19px; | |
background: #edf2f5; | |
border-radius: 9px; | |
overflow: hidden; | |
position: relative; | |
} | |
.progressbar-loader { | |
position: absolute; | |
left: 0; | |
top: 0; | |
bottom: 0; | |
border-radius: 9px; | |
background-image: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQECAgICAgICAgICAgMDAwMDAwMDAwP/2wBDAQEBAQEBAQEBAQECAgECAgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwP/wgARCAATAEsDAREAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAABwYFCAT/xAAcAQEBAQABBQAAAAAAAAAAAAAEBQMAAQIGCAn/2gAMAwEAAhADEAAAAQH3m+e3Sk+lztQmvQKA2wScZcdsfU7NfVzoilWHXPH8zHek3PFnUgpIYmWrJISGUtoMOmVeWoMHFvXlqDCx7txXiSEytSvm4pG6G2ExPpf/xAAjEAACAgEDAwUAAAAAAAAAAAAEBQIDAQAGNBITMhQWIjEz/9oACAEBAAEFAoxtLIYGVo0YIsjS9ysoBrUgODj93teqG1wsEH7taesK2gHHve56e4jrxG1udk0lHiI0Dy5GkqpwXh33TJuHIiqXfO6y8zC5bobh6s4Mfs/jD/sy8AeSy89f/8QAMBEAAQIEAwUFCQAAAAAAAAAAAQACAwQRMRITIRAyNEFxBRRhgcEiIzNCUpGh0eH/2gAIAQMBAT8B1cfEp0cQYGXDumjE4BTExSFlMt6KEAXjFuqbmcbRDFlLUzA51gpuOYpDflClKMdmFd+18MXp+1GmBCIbX2kwktBddRZkM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iXcPYXydtDpzP8AykWHscovL2tre+LBPanGvbA/qqn4/9k=); | |
background-position: 0 0; | |
background-size: auto 19px; | |
-webkit-animation: progressbar 2s infinite linear; | |
-moz-animation: progressbar 2s infinite linear; | |
-ms-animation: progressbar 2s infinite linear; | |
-o-animation: progressbar 2s infinite linear; | |
animation: progressbar 2s infinite linear; | |
} | |
@-webkit-keyframes progressbar { 0 {background-position: 0 0;} 100% {background-position: 75px 0;} } | |
@-moz-keyframes progressbar { 0 {background-position: 0 0;} 100% {background-position: 75px 0;} } | |
@-ms-keyframes progressbar { 0 {background-position: 0 0;} 100% {background-position: 75px 0;} } | |
@-o-keyframes progressbar { 0 {background-position: 0 0;} 100% {background-position: 75px 0;} } | |
@keyframes progressbar { 0 {background-position: 0 0;} 100% {background-position: 75px 0;} } | |
.progressbar-counter { | |
padding-top: 10px; | |
color: #000; | |
font: 300 28px/29px "Helvetica Neue", Helvetica, Arial, sans-serif; | |
text-align: center; | |
} | |
.lang { | |
vertical-align: middle; | |
text-align: left; | |
box-sizing: border-box; | |
color: #333; | |
font: 12px/22px "Helvetica Neue", Helvetica, Arial, sans-serif; | |
display: block; | |
text-decoration: none; | |
padding: 5px 5px 5px 35px; | |
} | |
.lang:after { | |
background: no-repeat center url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAzCAMAAACpFXjLAAAAk1BMVEX///8TLa4TLq4ULq8bQOccQOc4N2A4N2FAP2VAQGZNTYBOToBOToFXV4dXWIdYWIdYWIhZW4paW4paW4thYY9iYo9iYpCPJR6QJR6uJRKvJRKvJhO/v7/AngDAnwDAwMDBMyzBMy3BNC3CNC3nNRfnNhfnNhjp6O7p6e/p6fD9/f3+/v7/0gD/0wD/1AD///8wMDDKTuTrAAAAAXRSTlMAQObYZgAAARRJREFUeNqtkGFvgyAQhk+n1lW7OV2rRVmFKtoBdv//1+3ARKf2U7PnuDfh8UJyQmW5jAcLLlLK+9wVVPL+h5VAKnA8z8djG8MFxzdmwoEXH+/W+KbthGWUKIgQjRCibRvRYhEgbWtVY4QQJU7gt3HKmDOUhJwJRoltgA1BGIS71yDI8yIvMCDsjt2pS/ZypIJdlnwk6SHmhisvIHjvT/3n7TBtG7xlSZpk8ZXVnDNm3+iPtySaJ9I426dRxGvGasbz7R8rmHmcMyzETsx8y4cTK2CDuwJcb8H/CDosoA+E1oPWJgYMhULpAS/mhmGEVlorxKZGQekXtTEmbPhZ8YwoxILiGUHVAmqFVtMyRszLIdvlfgFLUlmfWPoXcwAAAABJRU5ErkJggg==); | |
content: ''; | |
display: block; | |
width:16px; | |
height:12px; | |
position: absolute; | |
top: 50%; | |
left: 12px; | |
margin-top: -6px; | |
} | |
.lang.ru:after{ background-position: 0 0;} | |
.lang.en:after{ background-position: 0 -13px;} | |
.lang.ua:after{ background-position: 0 -26px;} | |
.lang.de:after{ background-position: 0 -39px;} | |
/**/ | |
.select-container{ | |
border:2px solid #d5dde0; | |
height: 32px; | |
position: absolute; | |
right: 0; | |
bottom: 0; | |
width:50px; | |
border-radius: 2px; | |
} | |
.select-container > .select-block, | |
.selected-lang { | |
width:100%; | |
display: block; | |
height: 32px; | |
position: relative; | |
cursor: pointer; | |
} | |
.selected-lang:before{ | |
content: ''; | |
border:4px solid #fff; | |
border-top:4px solid #7e939b; | |
display: block; | |
position: absolute; | |
right: 8px; | |
top: 15px; | |
} | |
.selected-lang:after{ | |
left:11px; | |
} | |
.select-popup{ | |
display: none; | |
position: absolute; | |
top:100%; | |
z-index:100; | |
min-width:100%; | |
border-radius:2px; | |
padding:5px 0; | |
background-color: #fff; | |
box-shadow: 0 5px 5px rgba(0,0,0,.4); | |
} | |
.select-lang-item{ | |
height: 32px; | |
width:100%; | |
position: relative; | |
padding:0 10px; | |
box-sizing: border-box; | |
transition: 220ms all ease; | |
} | |
.select-lang-item:hover{ | |
background-color: #f3f3f3; | |
} | |
.sub-header{ | |
font-size:21px; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
text-align: left; | |
margin-bottom: 10px; | |
} | |
.select-version-container{ | |
padding: 10px 20px 20px; | |
text-align: left; | |
font-size:16px; | |
line-height:25px; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
.content-table { | |
text-align: left; | |
font-size:16px; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
width: 100%; | |
} | |
.input-license-container input, | |
.content-table input[type="text"], | |
.content-table input[type="password"], | |
.content-table select{ | |
/*width:100%;*/ | |
box-sizing: border-box; | |
border: 2px solid #e0e6e9; | |
border-radius:3px; | |
font-size:15px; | |
padding: 10px; | |
outline: none !important; | |
} | |
.input-license-container{ | |
padding-bottom:40px; | |
} | |
.div-tool | |
{ | |
border:1px solid #CCCCCC; | |
padding:10px; | |
margin: 10px; | |
} | |
.t_div | |
{ | |
padding:5px; | |
} | |
</style> | |
<script> | |
var frm; | |
function reloadPage(val, delay) | |
{ | |
frm = document.forms.restore; | |
frm.Step.value = val; | |
window.setTimeout(function() {frm.submit()}, delay == null ? 0 : delay * 1000); | |
} | |
function addFileField() | |
{ | |
var input = document.createElement('input'); | |
input.type = 'file'; | |
input.name = 'archive[]'; | |
input.size = 40; | |
input.onchange = addFileField; | |
input.multiple = true; | |
var div = document.getElementById('div2'); | |
div.appendChild(input); | |
} | |
function div_show(i) | |
{ | |
document.getElementById('start_button').disabled = i == 0; | |
for(j=0;j<=4;j++) | |
{ | |
if (ob = document.getElementById('div' + j)) | |
ob.style.display = i == j ? 'block' : 'none'; | |
} | |
arSources = [ 'bitrixcloud','download','upload','local','dump' ]; | |
document.forms.restore.source.value = arSources[i]; | |
if (i == 2) | |
document.forms.restore.action = '/restore.php?lang=<?=LANG?>&Step=2&source=' + arSources[i]; | |
} | |
function LoadFileList() | |
{ | |
xml = new XMLHttpRequest(); // forget IE6 | |
xml.onreadystatechange = function () | |
{ | |
if (xml.readyState == 4) | |
{ | |
str = xml.responseText; | |
document.getElementById('file_list').innerHTML = str; | |
document.getElementById('start_button').disabled = !/<select/.test(str); | |
} | |
} | |
xml.open('POST', '/restore.php', true); | |
query = 'LoadFileList=Y&lang=<?=LANG?>&bitrixcloud_backup=<?=htmlspecialcharsbx($_REQUEST['bitrixcloud_backup'])?>&license_key=' + document.getElementById('license_key').value; | |
xml.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
xml.send(query); | |
} | |
<? | |
if ($_REQUEST['arc_down_url']) | |
{ | |
?> | |
window.onload = div_show(1); | |
<? | |
} | |
elseif ($_REQUEST['bitrixcloud_backup']) | |
{ | |
?> | |
window.onload = function() { | |
div_show(0); | |
LoadFileList(); | |
} | |
<? | |
} | |
?> | |
</script> | |
<div class="wrap <?=LANG?>"> | |
<form name="restore" name="restore" action="restore.php" enctype="multipart/form-data" method="POST"> | |
<input type="hidden" name="lang" value="<?=LANG?>"> | |
<input type="hidden" name="source"> | |
<input type="hidden" name="skip"> | |
<input type="hidden" name="Step" value="<?=$Step?>"> | |
<header class="header"> | |
<?if ($isCrm):?> | |
<a href="" target="_blank" class="logo-link"><span class="logo <?=LANG?>"></span></a> | |
<?else:?> | |
<a href="" target="_blank" class="buslogo-link"><span class="buslogo <?=LANG?>"></span></a> | |
<?endif?> | |
</header> | |
<section class="content"> | |
<div class="content-container"> | |
<table class="content-table"> | |
<tr> | |
<td valign="middle"> | |
<table cellpadding=0 cellspacing=0 border=0 width=100%><tr> | |
<td align=left > | |
<h3 class="content-header" style="margin: 0;padding: 0;text-align: left;"><?=$ar['TITLE']?></h3> | |
<hr style="margin: 15px 0;"> | |
</td> | |
<td align=right> | |
<? | |
$arLang = array(); | |
foreach(array('en') as $l) | |
$arLang[] = LANG == $l ? "<span style='color:grey'>$l</span>" : "<a href='?lang=$l' style='color:black'>$l</a>"; | |
# echo implode(' | ',$arLang); | |
?> | |
</td> | |
</tr></table> | |
</td> | |
</tr> | |
<tr> | |
<td style="padding:10px;font-size:10pt" valign="<?=$ar['TEXT_ALIGN']?$ar['TEXT_ALIGN']:'top'?>"> | |
<?=$ar['TEXT']?> | |
</td> | |
</tr> | |
<tr> | |
<td style="font-size:10pt" align="center" valign="middle" height="40px"><?=$ar['BOTTOM']?></td> | |
</tr> | |
</table> | |
<div class="content-block"> | |
<div class="select-container" onclick="document.getElementById('lang-popup').style.display = document.getElementById('lang-popup').style.display == 'block' ? 'none' : 'block'"> | |
<label for="ss"><span class="selected-lang lang <?=LANG?>"></span></label> | |
<div class="select-popup" id="lang-popup"> | |
<? | |
foreach(array('en','de','ru') as $l) | |
{ | |
?> | |
<div class="select-lang-item"> | |
<a href="?lang=<?=$l?>" class="lang <?=$l?>"><?=$l?></a> | |
</div> | |
<? | |
} | |
?> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
<div class="cloud-layer"> | |
<div class="cloud cloud-1 cloud-fill"></div> | |
<div class="cloud cloud-2 cloud-border"></div> | |
<div class="cloud cloud-3 cloud-border"></div> | |
<div class="cloud cloud-4 cloud-border"></div> | |
<div class="cloud cloud-5 cloud-border"></div> | |
<div class="cloud cloud-6 cloud-border"></div> | |
</div> | |
</form> | |
</div> | |
</body></html> | |
<? | |
} | |
function SetCurrentProgress($cur,$total=0,$red=true) | |
{ | |
global $status; | |
if (!$total) | |
{ | |
$total=100; | |
$cur=0; | |
} | |
$val = intval($cur/$total*100); | |
if ($val > 100) | |
$val = 99; | |
$status = ' | |
<div class="progressbar-container"> | |
<div class="progressbar-track"> | |
<div class="progressbar-loader" style="width:'.$val.'%"></div> | |
</div> | |
<div class="progressbar-counter">'.$val.'%</div> | |
</div>'; | |
} | |
function LoadFile($strRealUrl, $strFilename, $arHeaders = array(), $customHost = '') | |
{ | |
global $proxyaddr, $proxyport, $strUserAgent, $replycode; | |
$ssl = preg_match('#^https://#i', $strRealUrl); | |
$iStartSize = 0; | |
if (file_exists($strFilename.".tmp")) | |
$iStartSize = filesize($strFilename.".tmp"); | |
$parsedurl = parse_url($strRealUrl); | |
$strOriginalFile = basename($parsedurl['path']); | |
SetCurrentStatus(getMsg("LOADER_LOAD_QUERY_DISTR", ["#DISTR#" => $strOriginalFile])); | |
$sockethandle = false; | |
do | |
{ | |
$lasturl = $strRealUrl; | |
$redirection = ""; | |
$parsedurl = parse_url($strRealUrl); | |
$useproxy = (($proxyaddr != "") && ($proxyport != "")); | |
if (!$useproxy) | |
{ | |
$host = $parsedurl["host"]; | |
$port = $parsedurl["port"]; | |
$hostname = $host; | |
} | |
else | |
{ | |
$host = $proxyaddr; | |
$port = $proxyport; | |
$hostname = $parsedurl["host"]; | |
} | |
if ($customHost) | |
$host = $customHost; | |
SetCurrentStatus(getMsg("LOADER_LOAD_CONN2HOST", ["#HOST#" => $host])); | |
$port = $port ? $port : ($ssl ? 443 : 80); | |
$context = stream_context_create( | |
array( | |
'ssl' => array( | |
'verify_peer' => false, | |
'allow_self_signed' => true, | |
) | |
) | |
); | |
$sockethandle = stream_socket_client(($ssl ? 'ssl://' : '').$host.':'.$port, $error_id, $error_msg, 10, STREAM_CLIENT_CONNECT, $context); | |
if (!$sockethandle) | |
{ | |
SetCurrentStatus(getMsg("LOADER_LOAD_NO_CONN2HOST", ["#HOST#" => $host])." [".$error_id."] ".$error_msg); | |
return false; | |
} | |
else | |
{ | |
debug("\n======\nConnected to ".($ssl ? 'ssl://' : '')."$host:$port\n"); | |
if (!$parsedurl["path"]) | |
$parsedurl["path"] = "/"; | |
$request = ""; | |
if (!$useproxy) | |
{ | |
$request .= "GET ".$parsedurl["path"].($parsedurl["query"] ? '?'.$parsedurl["query"] : '')." HTTP/1.0\r\n"; | |
$request .= "Host: $hostname\r\n"; | |
} | |
else | |
{ | |
$request .= "GET ".$strRealUrl." HTTP/1.0\r\n"; | |
$request .= "Host: $hostname\r\n"; | |
} | |
if ($strUserAgent != "") | |
$request .= "User-Agent: $strUserAgent\r\n"; | |
if ($iStartSize > 0) | |
$request .= "Range: bytes=".$iStartSize."-\r\n"; | |
foreach($arHeaders as $k => $v) | |
$request .= $k.': '.$v."\r\n"; | |
$request .= "\r\n"; | |
fwrite($sockethandle, $request); | |
$result = ""; | |
$replyheader = ""; | |
while (($result = fgets($sockethandle, 4096)) && $result!="\r\n") | |
$replyheader .= $result; | |
debug("\n======\n".$request."\n\n".$replyheader); | |
$ar_replyheader = explode("\r\n", $replyheader); | |
$replyproto = ""; | |
$replyversion = ""; | |
$replycode = 0; | |
$replymsg = ""; | |
if (preg_match("#([A-Z]{4})/([0-9.]{3}) ([0-9]{3})#", $ar_replyheader[0], $regs)) | |
{ | |
$replyproto = $regs[1]; | |
$replyversion = $regs[2]; | |
$replycode = IntVal($regs[3]); | |
$replymsg = substr($ar_replyheader[0], strpos($ar_replyheader[0], $replycode) + strlen($replycode) + 1, strlen($ar_replyheader[0]) - strpos($ar_replyheader[0], $replycode) + 1); | |
} | |
if ($replycode!=200 && $replycode!=206 && $replycode!=302 && $replycode!=301) | |
{ | |
if ($replycode==403) | |
SetCurrentStatus(getMsg("LOADER_LOAD_SERVER_ANSWER1", ["#ANS#" => $replycode." - ".$replymsg])); | |
else | |
SetCurrentStatus(getMsg("LOADER_LOAD_SERVER_ANSWER", ["#ANS#" => $replycode." - ".$replymsg])); | |
return false; | |
} | |
$strContentRange = ""; | |
$strAcceptRanges = ""; | |
$strLocationUrl = ""; | |
$iNewRealSize = 0; | |
foreach ($ar_replyheader as $i => $headerLine) | |
{ | |
if (strpos($headerLine, "Content-Range") !== false) | |
$strContentRange = trim(substr($headerLine, strpos($headerLine, ":") + 1, strlen($headerLine) - strpos($headerLine, ":") + 1)); | |
elseif (strpos($headerLine, "Location") === 0) | |
$strLocationUrl = trim(substr($headerLine, strpos($headerLine, ":") + 1, strlen($headerLine) - strpos($headerLine, ":") + 1)); | |
elseif (strpos($headerLine, "Content-Length") !== false) | |
$iNewRealSize = IntVal(Trim(substr($headerLine, strpos($headerLine, ":") + 1, strlen($headerLine) - strpos($headerLine, ":") + 1))); | |
elseif (strpos($headerLine, "Accept-Ranges") !== false) | |
$strAcceptRanges = Trim(substr($headerLine, strpos($headerLine, ":") + 1, strlen($headerLine) - strpos($headerLine, ":") + 1)); | |
} | |
if (strlen($strLocationUrl)>0) | |
{ | |
$redirection = $strLocationUrl; | |
$redirected = true; | |
if (!preg_match('#^https?://#', $redirection)) | |
$strRealUrl = dirname($lasturl)."/".$redirection; | |
else | |
$strRealUrl = $redirection; | |
$ssl = preg_match('#^https://#i', $strRealUrl); | |
} | |
if (!$strLocationUrl) // нет редиректа, загружаем файл | |
{ | |
if (strpos($strRealUrl, $strOriginalFile) === false) | |
{ | |
SetCurrentStatus(getMsg("LOADER_LOAD_CANT_REDIRECT", ["#URL#" => htmlspecialcharsbx($strRealUrl)])); | |
return false; | |
} | |
SetCurrentStatus(getMsg("LOADER_LOAD_LOAD_DISTR", ["#DISTR#" => $strRealUrl])); | |
$fh = fopen($strFilename.".tmp", "ab"); | |
if (!$fh) | |
{ | |
SetCurrentStatus(getMsg("ERROR_CANT_WRITE", ["#FILE#" => $strFilename.".tmp", '#SPACE#' => freeSpace()])); | |
return false; | |
} | |
$bFinished = True; | |
$downloadsize = (double) $iStartSize; | |
SetCurrentStatus(getMsg("LOADER_LOAD_LOADING")); | |
while (!feof($sockethandle)) | |
{ | |
if (!haveTime()) | |
{ | |
$bFinished = False; | |
break; | |
} | |
$result = fread($sockethandle, 40960); | |
$downloadsize += strlen($result); | |
if ($result=="") | |
break; | |
if (fwrite($fh, $result) === false) | |
{ | |
SetCurrentStatus(getMsg("ERROR_CANT_WRITE", ["#FILE#" => $strFilename.".tmp", '#SPACE#' => freeSpace()])); | |
return false; | |
} | |
} | |
SetCurrentProgress($downloadsize,$iNewRealSize); | |
fclose($fh); | |
fclose($sockethandle); | |
if ($bFinished) | |
{ | |
bx_unlink($strFilename); | |
if (rename($strFilename.".tmp", $strFilename)) | |
{ | |
SetCurrentStatus(getMsg("LOADER_LOAD_FILE_SAVED", ["#FILE#" => $strFilename, "#SIZE#" => $downloadsize])); | |
return 1; | |
} | |
else | |
{ | |
SetCurrentStatus(getMsg("LOADER_LOAD_ERR_RENAME", ["#FILE1#" => $strFilename.".tmp", "#FILE2#" => $strFilename])); | |
return false; | |
} | |
} | |
else | |
return 2; | |
} | |
fclose($sockethandle); | |
} | |
} | |
while (true); | |
} | |
function SetCurrentStatus($str) | |
{ | |
global $strLog; | |
$strLog .= $str."\n"; | |
} | |
class CTar | |
{ | |
var $gzip; | |
var $file; | |
var $err = array(); | |
var $LastErrCode; | |
var $res; | |
var $Block = 0; | |
var $BlockHeader; | |
var $path; | |
var $FileCount = 0; | |
var $DirCount = 0; | |
var $ReadBlockMax = 2000; | |
var $ReadBlockCurrent = 0; | |
var $ReadFileSize = 0; | |
var $header = null; | |
var $ArchiveSizeLimit; | |
const BX_EXTRA = 'BX0000'; | |
const BX_SIGNATURE = 'Bitrix Encrypted File'; | |
var $BufferSize; | |
var $Buffer; | |
var $dataSizeCache = array(); | |
var $EncryptKey; | |
var $prefix = ''; | |
############## | |
# READ | |
# { | |
function openRead($file) | |
{ | |
if (!isset($this->gzip) && (self::substr($file,-3)=='.gz' || self::substr($file,-4)=='.tgz')) | |
$this->gzip = true; | |
$this->BufferSize = 51200; | |
if ($this->open($file, 'r')) | |
{ | |
if ('' !== $str = $this->gzip ? gzread($this->res,512) : fread($this->res,512)) | |
{ | |
$data = unpack("a100empty/a90signature/a10version/a56tail/a256enc", $str); | |
if (trim($data['signature']) != self::BX_SIGNATURE) | |
{ | |
if (self::strlen($this->EncryptKey)) | |
$this->Error('Invalid encryption signature','ENC_SIGN'); | |
// Probably archive is not encrypted | |
$this->gzip ? gzseek($this->res, 0) : fseek($this->res, 0); | |
$this->EncryptKey = null; | |
return $this->res; | |
} | |
$version = trim($data['version']); | |
if (version_compare($version, '1.2', '>')) | |
return $this->Error('Unsupported archive version: '.$version, 'ENC_VER'); | |
$key = $this->getEncryptKey(); | |
$this->BlockHeader = $this->Block = 1; | |
if (!$key || self::substr($str, 0, 256) != self::decrypt($data['enc'], $key)) | |
return $this->Error('Invalid encryption key', 'ENC_KEY'); | |
} | |
} | |
return $this->res; | |
} | |
function readBlock($bIgnoreOpenNextError = false) | |
{ | |
if (!$this->Buffer) | |
{ | |
$str = $this->gzip ? gzread($this->res, $this->BufferSize) : fread($this->res, $this->BufferSize); | |
if ($str === '' && $this->openNext($bIgnoreOpenNextError)) | |
$str = $this->gzip ? gzread($this->res, $this->BufferSize) : fread($this->res, $this->BufferSize); | |
if ($str !== '' && $key = $this->getEncryptKey()) | |
$str = self::decrypt($str, $key); | |
$this->Buffer = $str; | |
} | |
$str = ''; | |
if ($this->Buffer) | |
{ | |
$str = self::substr($this->Buffer, 0, 512); | |
$this->Buffer = self::substr($this->Buffer, 512); | |
$this->Block++; | |
} | |
return $str; | |
} | |
function SkipFile() | |
{ | |
if ($this->Skip(ceil(intval($this->header['size'])/512))) | |
{ | |
$this->header = null; | |
return true; | |
} | |
return false; | |
} | |
function Skip($Block) | |
{ | |
if ($Block == 0) | |
return true; | |
$this->Block += $Block; | |
$toSkip = $Block * 512; | |
if (self::strlen($this->Buffer) > $toSkip) | |
{ | |
$this->Buffer = self::substr($this->Buffer, $toSkip); | |
return true; | |
} | |
$this->Buffer = ''; | |
$NewPos = $this->Block * 512; | |
if ($ArchiveSize = $this->getDataSize($file = self::getFirstName($this->file))) | |
{ | |
while($NewPos > $ArchiveSize) | |
{ | |
$file = $this->getNextName($file); | |
$NewPos -= $ArchiveSize; | |
} | |
} | |
if ($file != $this->file) | |
{ | |
$this->close(); | |
if (!$this->open($file, $this->mode)) | |
return false; | |
} | |
if (0 === ($this->gzip ? gzseek($this->res, $NewPos) : fseek($this->res, $NewPos))) | |
return true; | |
return $this->Error('File seek error (file: '.$this->file.', position: '.$NewPos.')'); | |
} | |
function SkipTo($Block) | |
{ | |
return $this->Skip($Block - $this->Block); | |
} | |
function readHeader($Long = false) | |
{ | |
$str = ''; | |
while(trim($str) == '') | |
{ | |
if (!($l = self::strlen($str = $this->readBlock($bIgnoreOpenNextError = true)))) | |
return 0; // finish | |
} | |
if (!$Long) | |
$this->BlockHeader = $this->Block - 1; | |
if ($l != 512) | |
return $this->Error('Wrong block size: '.self::strlen($str).' (block '.$this->Block.')'); | |
$data = unpack("a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1type/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155prefix", $str); | |
$chk = $data['devmajor'].$data['devminor']; | |
if (!is_numeric(trim($data['checksum'])) || $chk!='' && $chk!=0) | |
return $this->Error('Archive is corrupted, wrong block: '.($this->Block-1).', file: '.$this->file.', md5sum: '.md5_file($this->file)); | |
$header['filename'] = trim(trim($data['prefix'], "\x00").'/'.trim($data['filename'], "\x00"),'/'); | |
$header['mode'] = OctDec($data['mode']); | |
$header['uid'] = OctDec($data['uid']); | |
$header['gid'] = OctDec($data['gid']); | |
$header['size'] = OctDec($data['size']); | |
$header['mtime'] = OctDec($data['mtime']); | |
$header['type'] = trim($data['type'], "\x00"); | |
// $header['link'] = $data['link']; | |
if (self::strpos($header['filename'],'./') === 0) | |
$header['filename'] = self::substr($header['filename'], 2); | |
if ($header['type']=='L') // Long header | |
{ | |
$filename = ''; | |
$n = ceil($header['size']/512); | |
for ($i = 0; $i < $n; $i++) | |
$filename .= $this->readBlock(); | |
if (!is_array($header = $this->readHeader($Long = true))) | |
return $this->Error('Wrong long header, block: '.$this->Block); | |
$header['filename'] = self::substr($filename,0,self::strpos($filename,chr(0))); | |
} | |
if (self::strpos($header['filename'],'/') === 0) // trailing slash | |
$header['type'] = 5; // Directory | |
if ($header['type']=='5') | |
$header['size'] = ''; | |
if ($header['filename']=='') | |
return $this->Error('Filename is empty, wrong block: '.($this->Block-1)); | |
if (!$this->checkCRC($str, $data)) | |
return $this->Error('Checksum error on file: '.$header['filename']); | |
$this->header = $header; | |
return $header; | |
} | |
function checkCRC($str, $data) | |
{ | |
$checksum = $this->checksum($str); | |
$res = octdec($data['checksum']) == $checksum || $data['checksum']===0 && $checksum==256; | |
return $res; | |
} | |
function extractFile() | |
{ | |
if ($this->header === null) | |
{ | |
if(($header = $this->readHeader()) === false || $header === 0 || $header === true) | |
{ | |
if ($header === true && $this->SkipFile() === false) | |
return false; | |
return $header; | |
} | |
$this->lastPath = $f = $this->path.'/'.$header['filename']; | |
if ($this->ReadBlockCurrent == 0) | |
{ | |
if ($header['type']==5) // dir | |
{ | |
if(!file_exists($f) && !self::xmkdir($f)) | |
return $this->ErrorAndSkip('Can\'t create folder: '.$f); | |
//chmod($f, $header['mode']); | |
} | |
else // file | |
{ | |
if (!self::xmkdir($dirname = dirname($f))) | |
return $this->ErrorAndSkip('Can\'t create folder: '.$dirname); | |
elseif (($rs = fopen($f, 'wb'))===false) | |
return $this->ErrorAndSkip(getMsg('ERROR_CANT_WRITE', ['#FILE#' => $f, '#SPACE#' => freeSpace()])); | |
} | |
} | |
else | |
return $this->Skip($this->ReadBlockCurrent); | |
} | |
else // файл уже частично распакован, продолжаем на том же хите | |
{ | |
$header = $this->header; | |
$this->lastPath = $f = $this->path.'/'.$header['filename']; | |
} | |
if ($header['type'] != 5) // пишем контент в файл | |
{ | |
if (!$rs) | |
{ | |
if (($rs = fopen($f, 'ab'))===false) | |
return $this->ErrorAndSkip(getMsg('ERROR_CANT_WRITE', ['#FILE#' => $f, '#SPACE#' => freeSpace()])); | |
} | |
$i = 0; | |
$FileBlockCount = ceil($header['size'] / 512); | |
while(++$this->ReadBlockCurrent <= $FileBlockCount && ($contents = $this->readBlock())) | |
{ | |
if ($this->ReadBlockCurrent == $FileBlockCount && ($chunk = $header['size'] % 512)) | |
$contents = self::substr($contents, 0, $chunk); | |
$ret = fwrite($rs, $contents); | |
if ($ret === false || $ret === 0) | |
return $this->Error(getMsg('ERROR_CANT_WRITE', ['#FILE#' => $f, '#SPACE#' => freeSpace()])); | |
if ($this->ReadBlockMax && ++$i >= $this->ReadBlockMax) | |
{ | |
fclose($rs); | |
return true; // Break | |
} | |
} | |
fclose($rs); | |
if (($s = filesize($f)) != $header['size']) | |
return $this->Error('File size is wrong: '.$header['filename'].' (real: '.$s.' expected: '.$header['size'].')'); | |
//chmod($f, $header['mode']); | |
} | |
if ($this->header['type']==5) | |
$this->DirCount++; | |
else | |
$this->FileCount++; | |
$this->debug_header = $this->header; | |
$this->BlockHeader = $this->Block; | |
$this->ReadBlockCurrent = 0; | |
$this->header = null; | |
return true; | |
} | |
function openNext($bIgnoreOpenNextError) | |
{ | |
if (file_exists($file = $this->getNextName())) | |
{ | |
$this->close(); | |
return $this->open($file,$this->mode); | |
} | |
elseif (!$bIgnoreOpenNextError) | |
return $this->Error("File doesn't exist: ".$file); | |
return false; | |
} | |
public static function getLastNum($file) | |
{ | |
$file = self::getFirstName($file); | |
if (!file_exists($file)) | |
return false; | |
$f = fopen($file, 'rb'); | |
fseek($f, 12); | |
if (fread($f, 2) == 'LN') | |
$res = end(unpack('va',fread($f, 2))); | |
else | |
$res = false; | |
fclose($f); | |
return $res; | |
} | |
# } | |
############## | |
############## | |
# BASE | |
# { | |
function open($file, $mode='r') | |
{ | |
$this->file = $file; | |
$this->mode = $mode; | |
if (is_dir($file)) | |
return $this->Error('File is directory: '.$file); | |
if ($this->EncryptKey && !function_exists('mcrypt_encrypt') && !function_exists('openssl_encrypt')) | |
return $this->Error('Function mcrypt_encrypt/openssl_encrypt is not available'); | |
if ($mode == 'r' && !file_exists($file)) | |
return $this->Error('File does not exist: '.$file); | |
if ($this->gzip) | |
{ | |
if(!function_exists('gzopen')) | |
return $this->Error('Function "gzopen" is not available'); | |
else | |
{ | |
if ($mode == 'a' && !file_exists($file) && !$this->createEmptyGzipExtra($file)) | |
return false; | |
$this->res = gzopen($file,$mode."b"); | |
} | |
} | |
else | |
$this->res = fopen($file,$mode."b"); | |
return $this->res; | |
} | |
function close() | |
{ | |
if ($this->mode == 'a') | |
$this->flushBuffer(); | |
if ($this->gzip) | |
{ | |
gzclose($this->res); | |
if ($this->mode == 'a') | |
{ | |
// добавим фактический размер всех несжатых данных в extra поле | |
$f = fopen($this->file, 'rb+'); | |
fseek($f, 18); | |
fwrite($f, pack("V", $this->ArchiveSizeCurrent)); | |
fclose($f); | |
$this->dataSizeCache[$this->file] = $this->ArchiveSizeCurrent; | |
// сохраним номер последней части в первый архив для многотомных архивов | |
if (preg_match('#^(.+)\.([0-9]+)$#', $this->file, $regs)) | |
{ | |
$f = fopen($regs[1], 'rb+'); | |
fseek($f, 12); | |
fwrite($f, 'LN'.pack("v",$regs[2])); | |
fclose($f); | |
} | |
} | |
} | |
else | |
fclose($this->res); | |
clearstatcache(); | |
} | |
public function getNextName($file = '') | |
{ | |
if (!$file) | |
$file = $this->file; | |
static $CACHE; | |
$c = &$CACHE[$file]; | |
if (!$c) | |
{ | |
$l = strrpos($file, '.'); | |
$num = self::substr($file,$l+1); | |
if (is_numeric($num)) | |
$file = self::substr($file,0,$l+1).++$num; | |
else | |
$file .= '.1'; | |
$c = $file; | |
} | |
return $c; | |
} | |
function checksum($s) | |
{ | |
$chars = count_chars(self::substr($s,0,148).' '.self::substr($s,156,356)); | |
$sum = 0; | |
foreach($chars as $ch => $cnt) | |
$sum += $ch*$cnt; | |
return $sum; | |
} | |
public static function substr($s, $a, $b = null) | |
{ | |
if (function_exists('mb_orig_substr')) | |
return $b === null ? mb_orig_substr($s, $a) : mb_orig_substr($s, $a, $b); | |
return $b === null ? substr($s, $a) : substr($s, $a, $b); | |
} | |
public static function strlen($s) | |
{ | |
if (function_exists('mb_orig_strlen')) | |
return mb_orig_strlen($s); | |
return strlen($s); | |
} | |
public static function strpos($s, $a) | |
{ | |
if (function_exists('mb_orig_strpos')) | |
return mb_orig_strpos($s, $a); | |
return strpos($s, $a); | |
} | |
function getDataSize($file) | |
{ | |
$size = &$this->dataSizeCache[$file]; | |
if (!$size) | |
{ | |
if (!file_exists($file)) | |
$size = false; | |
else | |
{ | |
if (preg_match('#\.gz(\.[0-9]+)?$#',$file)) | |
{ | |
$f = fopen($file, "rb"); | |
fseek($f, 16); | |
if (fread($f, 2) == 'BX') | |
$size = end(unpack("V", fread($f, 4))); | |
else | |
{ | |
// $this->Error('Wrong GZIP Extra Field'); | |
$size = false; | |
} | |
fclose($f); | |
} | |
else | |
$size = filesize($file); | |
} | |
} | |
return $size; | |
} | |
function Error($str = '', $code = '') | |
{ | |
if ($code) | |
$this->LastErrCode = $code; | |
$this->err[] = $str; | |
return false; | |
} | |
function ErrorAndSkip($str = '', $code = '') | |
{ | |
$this->Error($str, $code); | |
$this->SkipFile(); | |
if ($this->readHeader() === 0) | |
$this->BlockHeader = $this->Block; | |
return false; | |
} | |
public static function xmkdir($dir) | |
{ | |
if (!file_exists($dir)) | |
{ | |
$upper_dir = dirname($dir); | |
if (!file_exists($upper_dir) && !self::xmkdir($upper_dir)) | |
return $this->Error('Can\'t create folder: '.$upper_dir); | |
return mkdir($dir); | |
} | |
return is_dir($dir); | |
} | |
function getEncryptKey() | |
{ | |
if (!$this->EncryptKey) | |
return false; | |
static $key; | |
if (!$key) | |
$key = md5($this->EncryptKey); | |
return $key; | |
} | |
function getFileInfo($f) | |
{ | |
$f = str_replace('\\', '/', $f); | |
$path = self::substr($f,self::strlen($this->path) + 1); | |
$ar = array(); | |
if (is_dir($f)) | |
{ | |
$ar['type'] = 5; | |
$path .= '/'; | |
} | |
else | |
$ar['type'] = 0; | |
if (!$info = stat($f)) | |
return $this->Error('Can\'t get file info: '.$f); | |
if ($info['size'] < 0) | |
return $this->Error('File is too large: '.$f); | |
$ar['mode'] = 0777 & $info['mode']; | |
$ar['uid'] = $info['uid']; | |
$ar['gid'] = $info['gid']; | |
$ar['size'] = $ar['type']==5 ? 0 : $info['size']; | |
$ar['mtime'] = $info['mtime']; | |
$ar['filename'] = $this->prefix.$path; | |
return $ar; | |
} | |
public static function getCheckword($key) | |
{ | |
return md5('BITRIXCLOUDSERVICE'.$key); | |
} | |
public static function getFirstName($file) | |
{ | |
return preg_replace('#\.[0-9]+$#','',$file); | |
} | |
public static function encrypt($data, $md5_key) | |
{ | |
if ($m = self::strlen($data)%8) | |
$data .= str_repeat("\x00", 8 - $m); | |
if (function_exists('openssl_encrypt')) | |
return openssl_encrypt($data, 'BF-ECB', $md5_key, OPENSSL_RAW_DATA | OPENSSL_NO_PADDING); | |
else | |
return mcrypt_encrypt(MCRYPT_BLOWFISH, $md5_key, $data, MCRYPT_MODE_ECB); | |
} | |
public static function decrypt($data, $md5_key) | |
{ | |
if (function_exists('openssl_encrypt')) | |
$val = openssl_decrypt($data, 'BF-ECB', $md5_key, OPENSSL_RAW_DATA | OPENSSL_NO_PADDING); | |
else | |
$val = mcrypt_decrypt(MCRYPT_BLOWFISH, $md5_key, $data, MCRYPT_MODE_ECB); | |
return $val; | |
} | |
# } | |
############## | |
} | |
class CTarRestore extends CTar | |
{ | |
function readHeader($Long = false) | |
{ | |
$header = parent::readHeader($Long); | |
if (!$Long && is_array($header)) | |
{ | |
$dr = str_replace(array('/','\\'),'',$_SERVER['DOCUMENT_ROOT']); | |
$f = str_replace(array('/','\\'),'',$this->path.'/'.$header['filename']); | |
if ($header['type'] != 5 && (self::strpos($f, $dr.'bitrixmodules') === 0 || self::strpos($f, $dr.'bitrixcomponentsbitrix') === 0)) | |
{ | |
if (!file_exists(RESTORE_FILE_LIST)) | |
{ | |
self::xmkdir($_SERVER['DOCUMENT_ROOT'].'/bitrix/tmp'); | |
file_put_contents(RESTORE_FILE_LIST, '<'.'?php die(); ?'.">\n"); | |
} | |
file_put_contents(RESTORE_FILE_LIST, addslashes(self::substr(str_replace('\\','/',$header['filename']), 7))."\n", 8); // strlen(bitrix/) = 7 | |
} | |
if ($f == $dr.'restore.php') | |
return true; | |
elseif ($f == $dr.'.htaccess') | |
{ | |
$header['filename'] .= '.restore'; | |
$this->header['filename'] = $header['filename']; | |
} | |
elseif ($f == $dr.'bitrixphp_interfacedbconn.php' && file_exists($_SERVER['DOCUMENT_ROOT'].'/bitrix/php_interface/dbconn.php')) | |
$header['filename'] = str_replace('dbconn.php','dbconn.restore.php',$header['filename']); | |
elseif (preg_match('#[^\x00-\x7f]#', $header['filename'])) // non ASCII character detected | |
{ | |
$this->header['filename'] = $header['filename'] = $this->DecodeFileName($header['filename']); | |
if ($this->header['filename'] === false) | |
return false; | |
} | |
} | |
return $header; | |
} | |
function DecodeFileName($str) | |
{ | |
if (!$this->EncCurrent) | |
{ | |
if (PHP_EOL == "\r\n") // win | |
{ | |
if (preg_match('#\.([0-9]+)$#', setlocale(LC_CTYPE, 0), $regs)) | |
$this->EncCurrent = 'cp'.$regs[1]; | |
else | |
$this->EncCurrent = 'cp1251'; | |
} | |
else | |
$this->EncCurrent = 'utf-8'; | |
if (preg_match("/[\xC0-\xDF][\x80-\xBF]{1}|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/", $str)) // 110xxxxx 10xxxxxx | 1110xxxx 10xxxxxx 10xxxxxx | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx | |
$this->EncRemote = 'utf-8'; | |
elseif (preg_match("/[\xC0-\xFF]/",$str)) | |
$this->EncRemote = 'cp1251'; | |
else | |
return $this->Error(getMsg('ERR_CANT_DETECT_ENC').' /'.$str); | |
} | |
if ($this->EncCurrent == $this->EncRemote) | |
return $str; | |
if (!function_exists('mb_convert_encoding')) | |
return $this->Error(getMsg('ERR_CANT_DECODE')); | |
return mb_convert_encoding($str, $this->EncCurrent, $this->EncRemote); | |
} | |
} | |
function haveTime() | |
{ | |
return microtime(true) - START_EXEC_TIME < STEP_TIME; | |
} | |
function img($name) | |
{ | |
if (file_exists($_SERVER['DOCUMENT_ROOT'].'/images/'.$name)) | |
return '/images/'.$name; | |
return 'https://www.1c-bitrix.ru/images/bitrix_setup/'.$name; | |
} | |
function bx_accelerator_reset() | |
{ | |
if(function_exists("accelerator_reset")) | |
accelerator_reset(); | |
elseif(function_exists("wincache_refresh_if_changed")) | |
wincache_refresh_if_changed(); | |
} | |
function DeleteDirRec($path) | |
{ | |
if (file_exists($path) && $dir = opendir($path)) | |
{ | |
while(($item = readdir($dir)) !== false) | |
{ | |
if ($item == '.' || $item == '..') | |
continue; | |
if (is_file($f = $path.'/'.$item)) | |
{ | |
if (!bx_unlink($f)) | |
return false; | |
} | |
else | |
{ | |
if (!DeleteDirRec($f)) | |
return false; | |
} | |
} | |
closedir($dir); | |
if (!rmdir($path)) | |
return false; | |
} | |
return true; | |
return true; | |
} | |
function CheckHtaccessAndWarn() | |
{ | |
$tmp = $_SERVER['DOCUMENT_ROOT'].'/.htaccess'; | |
$tmp1 = $tmp.'.restore'; | |
if (!file_exists($tmp1)) | |
return ''; | |
if (file_exists($tmp)) | |
{ | |
if (trim(file_get_contents($tmp)) == trim(file_get_contents($tmp1))) | |
{ | |
bx_unlink($tmp1); | |
return ''; | |
} | |
else | |
return '<li>'.getMsg('HTACCESS_RENAMED_WARN'); | |
} | |
else | |
{ | |
if (file_put_contents($tmp, | |
'Options -Indexes | |
ErrorDocument 404 /404.php | |
<IfModule mod_php5.c> | |
php_flag allow_call_time_pass_reference 1 | |
php_flag session.use_trans_sid off | |
#php_value display_errors 1 | |
#php_value mbstring.internal_encoding UTF-8 | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-l | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$ | |
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L] | |
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}] | |
</IfModule> | |
<IfModule mod_dir.c> | |
DirectoryIndex index.php index.html | |
</IfModule> | |
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresByType image/jpeg "access plus 3 day" | |
ExpiresByType image/gif "access plus 3 day" | |
</IfModule>')) | |
return '<li>'.getMsg('HTACCESS_WARN'); | |
else | |
return '<li>'.getMsg('HTACCESS_ERR_WARN'); | |
} | |
} | |
function GetHidden($ar) | |
{ | |
$str = ''; | |
foreach($ar as $k) | |
{ | |
if (is_array($_REQUEST[$k])) | |
{ | |
foreach($_REQUEST[$k] as $k0 => $v) | |
$str .= '<input type=hidden name="'.$k.'['.htmlspecialcharsbx($k0).']" value="'.htmlspecialcharsbx($_REQUEST[$k][$k0]).'">'; | |
} | |
else | |
$str .= '<input type=hidden name="'.$k.'" value="'.htmlspecialcharsbx($_REQUEST[$k]).'">'; | |
} | |
return $str; | |
} | |
class CDirScan | |
{ | |
var $DirCount = 0; | |
var $FileCount = 0; | |
var $err= array(); | |
var $bFound = false; | |
var $nextPath = ''; | |
var $startPath = ''; | |
var $arIncludeDir = false; | |
function __construct() | |
{ | |
} | |
function ProcessDirBefore($f) | |
{ | |
return true; | |
} | |
function ProcessDirAfter($f) | |
{ | |
return true; | |
} | |
function ProcessFile($f) | |
{ | |
return true; | |
} | |
function Skip($f) | |
{ | |
if ($this->startPath) | |
{ | |
if (strpos($this->startPath.'/', $f.'/') === 0) | |
{ | |
if ($this->startPath == $f) | |
unset($this->startPath); | |
return false; | |
} | |
else | |
return true; | |
} | |
return false; | |
} | |
function Scan($dir) | |
{ | |
$dir = str_replace('\\','/',$dir); | |
if ($this->Skip($dir)) | |
return; | |
$this->nextPath = $dir; | |
if (is_dir($dir)) | |
{ | |
############################# | |
# DIR | |
############################# | |
if (!$this->startPath) | |
{ | |
$r = $this->ProcessDirBefore($dir); | |
if ($r === false) | |
return false; | |
} | |
if (!($handle = opendir($dir))) | |
{ | |
$this->err[] = 'Error opening dir: '.$dir; | |
return false; | |
} | |
while (($item = readdir($handle)) !== false) | |
{ | |
if ($item == '.' || $item == '..' || false !== CTar::strpos($item,'\\')) | |
continue; | |
$f = $dir."/".$item; | |
$r = $this->Scan($f); | |
if ($r === false || $r === 'BREAK') | |
{ | |
closedir($handle); | |
return $r; | |
} | |
} | |
closedir($handle); | |
if (!$this->startPath) | |
{ | |
if ($this->ProcessDirAfter($dir) === false) | |
return false; | |
$this->DirCount++; | |
} | |
} | |
else | |
{ | |
############################# | |
# FILE | |
############################# | |
$r = $this->ProcessFile($dir); | |
if ($r === false) | |
return false; | |
elseif ($r === 'BREAK') | |
return $r; | |
$this->FileCount++; | |
} | |
return true; | |
} | |
} | |
class CDirRealScan extends CDirScan | |
{ | |
function Scan($dir) | |
{ | |
if (!$this->cut) | |
$this->cut = CTar::strlen($_SERVER['DOCUMENT_ROOT'].'/bitrix/'); | |
return parent::Scan($dir); | |
} | |
function ProcessFile($f) | |
{ | |
if (!haveTime()) | |
return 'BREAK'; | |
global $a; | |
if (!$a) | |
return; | |
$k = CTar::substr($f, $this->cut); | |
if (!isset($a[$k])) | |
{ | |
$to = RESTORE_FILE_DIR.'/'.$k; | |
CTar::xmkdir(dirname($to)); | |
rename($f, $to); | |
} | |
return true; | |
} | |
} | |
class CMultiGet | |
{ | |
static $error = ''; | |
static $free_connections = []; | |
static $connections = []; | |
static $current; | |
static $bytes = 0; | |
static function getConnection($connect_string) | |
{ | |
$new_connection = null; | |
foreach(self::$free_connections as $key => $connection) | |
{ | |
if ($connection['connect_string'] == $connect_string) | |
{ | |
if (!self::isAlive($connection['socket'])) // сервер закрыл соединение | |
{ | |
unset(self::$free_connections[$key]); | |
continue; | |
} | |
$new_connection = self::$free_connections[$key]; | |
unset(self::$free_connections[$key]); | |
break; | |
} | |
} | |
if (!$new_connection) | |
{ | |
if ($sock = stream_socket_client($connect_string, $errno, $errstr, 5)) | |
{ | |
stream_set_blocking($sock, false); | |
} | |
else | |
{ | |
self::$error = 'Can\'t connect to '.$connect_string.' ['.$errno.'] '.$errstr; | |
return false; | |
} | |
$new_connection = [ | |
'connect_string' => $connect_string, | |
'socket' => $sock, | |
'code' => 0, | |
'length' => 0, | |
'saved_length' => 0, | |
'microtime' => microtime(1), | |
]; | |
} | |
return $new_connection; | |
} | |
static function startLoad($url, $file) | |
{ | |
$u = parse_url($url); | |
if (!$u['port']) | |
$u['port'] = $u['scheme'] == 'https' ? 443 : 80; | |
$connect_string = ($u['scheme'] == 'https' ? 'ssl://' : 'tcp://').$u['host'].':'.$u['port']; | |
if (!$connection = self::getConnection($connect_string)) | |
return false; | |
$connection['state'] = 0; | |
$connection['url'] = $url; | |
$connection['file'] = $file; | |
$strReq = | |
'GET '.$u['path'].($u['query'] ? '?'.$u['query'] : '').' HTTP/1.0'."\r\n". | |
'Connection: keep-alive'."\r\n". | |
'Host: '.$u['host']."\r\n"; | |
if (file_exists($file)) | |
$strReq .= 'Range: bytes='.filesize($file).'-'."\r\n"; | |
$strReq .= "\r\n"; | |
if (!fwrite($connection['socket'], $strReq)) | |
{ | |
self::$error = 'Can\'t write to '.$connect_string; | |
return false; | |
} | |
self::$connections[] = $connection; | |
end(self::$connections); | |
debug('Connection #'.key(self::$connections).' request'."\n".$strReq); | |
return true; | |
} | |
static function getPart() | |
{ | |
if (!count(self::$connections)) | |
return true; | |
$arReadSock = []; | |
foreach(self::$connections as $key => $connection) | |
{ | |
if (self::isAlive($connection['socket'])) | |
$arReadSock[] = $connection['socket']; | |
} | |
$n = stream_select($arReadSock, $w = null, $e = null, 1); | |
if ($n === 0) | |
return true; | |
foreach($arReadSock as $sock) | |
{ | |
$key = null; | |
foreach(self::$connections as $key => $connection) | |
if ($connection['socket'] == $sock) | |
break; | |
self::$current = $key; | |
$file = self::$connections[$key]['file']; | |
$state =& self::$connections[$key]['state']; | |
$header = ''; | |
if ($state == 0) // начало загрузки, читаем заголовки | |
{ | |
if (false === $line = fgets($sock)) | |
continue; | |
if (!preg_match('#^HTTP/1.. ([0-9]+)#', trim($line), $regs)) | |
{ | |
self::$error = 'Invalid reply header: '.trim($line)."\n".'File: '.$file; | |
return false; | |
} | |
$header .= $line; | |
$state = $regs[1]; | |
if ($state == 416) // Requested Range Not Satisfiable | |
{ | |
// файл загружен, ничего не делаем | |
} | |
elseif (!preg_match('#^2\d{2}$#', $state)) | |
{ | |
self::$error = 'Wrong reply code: '.trim($line)."\n".'File: '.$file; | |
return false; | |
} | |
do | |
{ | |
$line = fgets($sock); | |
if (preg_match('#Content-length: (\d+)#i', $line, $regs)) | |
{ | |
self::$connections[$key]['length'] = $regs[1]; | |
} | |
$header .= $line; | |
} while ($line != "\r\n"); | |
debug('Connection #'.$key.' response'."\n".$header); | |
} | |
if (feof($sock) || $state == 416) | |
{ | |
self::freeConnection($key); | |
} | |
else | |
{ | |
$str = fread($sock, 1024 * 1024); | |
$dir = dirname($file); | |
if (!file_exists($dir)) | |
mkdir($dir, 0777, true); | |
$bytes = file_put_contents($file, $str, 8); | |
if ($bytes === false) | |
{ | |
self::$error = getMsg('ERROR_CANT_WRITE', ['#FILE#' => $file, '#SPACE#' => freeSpace()]); | |
return false; | |
} | |
self::$bytes += $bytes; | |
self::$connections[$key]['saved_length'] += $bytes; | |
if (self::$connections[$key]['saved_length'] >= self::$connections[$key]['length']) | |
{ | |
self::freeConnection($key); | |
} | |
} | |
} | |
return true; | |
} | |
static function isAlive($sock) | |
{ | |
return is_resource($sock) && get_resource_type($sock) == 'stream'; | |
} | |
static function freeConnection($key) | |
{ | |
$sock = self::$connections[$key]['socket']; | |
if (self::isAlive($sock)) | |
{ | |
self::$free_connections[] = [ | |
'connect_string' => self::$connections[$key]['connect_string'], | |
'microtime' => self::$connections[$key]['microtime'], | |
'socket' => $sock, | |
]; | |
unset(self::$connections[$key]); | |
} | |
} | |
static function dropConnection($key) | |
{ | |
$sock = self::$connections[$key]['socket']; | |
if (self::isAlive($sock)) | |
fclose($sock); | |
unset(self::$connections[$key]); | |
} | |
} | |
function bx_unlink($file) | |
{ | |
if (!file_exists($file)) | |
return true; | |
if (DEBUG) | |
return rename($file, $file.'.debug'); | |
return unlink($file); | |
} | |
function debug($str) | |
{ | |
if (!DEBUG) | |
return; | |
if (is_array($str)) | |
$str = print_r($str, 1); | |
file_put_contents($_SERVER['DOCUMENT_ROOT'].'/log.txt', date('[Y-m-d H:i:s] ').$str."\n", 8); | |
} | |
function freeSpace() | |
{ | |
$d = disk_free_space(__FILE__); | |
if ($d === false) | |
return 'N/A'; | |
return HumanSize($d); | |
} | |
function HumanSize($s) | |
{ | |
$i = 0; | |
$ar = array('b','kb','Mb','Gb'); | |
while($s > 1024) | |
{ | |
$s /= 1024; | |
$i++; | |
} | |
return round($s,2).''.$ar[$i]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment