diff --git a/README.md b/README.md index 68eca3e..0ad7448 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ В строке меню доступны запуск и остановка, выбор порта, выбор папки снимков и кнопка для открытия `/webconsole`. Путь и порт меняются при остановленной службе. При выборе папки EzServer копирует снимки в новый подкаталог `Files` и сохраняет прежнюю копию. По умолчанию SQLite и снимки находятся в `~/Library/Application Support/EzServerMac`. Для командной строки отдельную папку снимков можно задать абсолютным путём в `EZSERVER_IMAGES_PARENT`. -Web Console приложения использует Material Design 3 и входит в каждую сборку. Локальный вход выполняется под `Master Admin` с паролем `0000` по умолчанию. Для запуска с другим паролем задайте `EZSERVER_CONSOLE_PASSWORD`. В консоли доступны обзор API, путь снимков, сведения о защите и журнал входов и выходов текущего процесса. Политику для новых паролей можно изменить во вкладке «Безопасность». Настройки хранятся в SQLite. Порт и папка меняются из строки меню. Отдельный PHP-режим раздаёт оригинальные статические ресурсы из установщика. +Web Console приложения использует Material Design 3 и входит в каждую сборку. Локальный вход выполняется под `Master Admin` с паролем `0000` по умолчанию. Для запуска с другим паролем задайте `EZSERVER_CONSOLE_PASSWORD`. В консоли доступны обзор API, путь снимков, сведения о защите и журнал входов и выходов текущего процесса. Политику для новых паролей можно изменить во вкладке «Безопасность». Настройки хранятся в SQLite. Порт и папка меняются из строки меню. Если отдельному PHP-режиму указать каталог, извлечённый из установщика, он также раздаёт оригинальную Web Console. ## Импорт из EzDent @@ -42,7 +42,7 @@ Web Console приложения использует Material Design 3 и вх В оригинальном установщике PostgreSQL, File Manager, Patch Manager и PHP API поставляются отдельными компонентами Windows. В этой сборке реализованы нативное управление, SQLite, миграция локальной библиотеки EzDent, файловые операции и проверенные по исходникам информационные маршруты. Оригинальная авторизация Windows-клиента, его файловый протокол на 55001, обновления на 55011 и миграция схемы PostgreSQL пока не реализованы. -`server/prepare.sh` извлекает оригинальный PHP-компонент из локального установщика с помощью Python 3, 7-Zip и unshield. Для отдельного запуска оригинальных информационных маршрутов нужны nginx, PHP CLI и PHP-FPM одной версии с расширениями `intl`, `mbstring`, `session` и `pdo_sqlite`. Запускайте их командой `EZSERVER_PORT=55125 ./server/run.sh`. Если исполняемые файлы вне `PATH`, задайте их пути через `EZSERVER_NGINX`, `EZSERVER_PHP` и `EZSERVER_PHP_FPM`. HTTP доступен через loopback, а PHP-FPM получает запросы через локальный Unix-сокет. +Оригинальный PHP-компонент EzServer 4.1.6 и его зависимости находятся в `server/original`. Скрипт `server/prepare.sh` извлекает новую копию из локального установщика с помощью Python 3, 7-Zip и unshield. Для отдельного запуска оригинальных информационных маршрутов нужны nginx, PHP CLI и PHP-FPM одной версии с расширениями `intl`, `mbstring`, `session` и `pdo_sqlite`. Запускайте их командой `EZSERVER_PORT=55125 ./server/run.sh`. Если исполняемые файлы вне `PATH`, задайте их пути через `EZSERVER_NGINX`, `EZSERVER_PHP` и `EZSERVER_PHP_FPM`. HTTP доступен через loopback, а PHP-FPM получает запросы через локальный Unix-сокет. Этот запуск обслуживает оригинальные маршруты `GET /api/v1/auth/ping`, `GET /api/v1/info/versions` и `GET /api/v1/info/versionsByName`. Они также доступны с префиксом `/api/index.php/v1`. EzServer.app использует Swift и системную SQLite. File Manager и Patch Manager исключены из текущего объёма переноса. @@ -59,6 +59,6 @@ Web Console приложения использует Material Design 3 и вх Маршрут проверен на тестовой карточке, заранее добавленной в SQLite. Приложение в строке меню продолжает работать на Swift. -Одна сборка может содержать Swift-сервер и оригинальный PHP. Положите локальный установщик в `_source` либо укажите подготовленный каталог через `EZSERVER_RUNTIME`. Скрипт сборки извлекает PHP при необходимости и включает его в `EzServer.app`. Для сборки, которая должна обязательно включать PHP, используйте `EZSERVER_REQUIRE_PHP=1 ./scripts/build-server.sh`. +Обычная сборка включает оригинальный PHP из `server/original` и не требует Windows-установщика. Для проверки другой извлечённой копии укажите её каталог через `EZSERVER_RUNTIME`. Запуск PHP из готового приложения: `./EzServer.app/Contents/MacOS/EzServerMac --php`. Этот режим слушает loopback, по умолчанию порт 55005. Исполняемые файлы nginx, PHP и PHP-FPM берутся из системы. Запуск из строки меню использует Swift и порт 43112. diff --git a/context.md b/context.md index 88f4b10..7d8eae9 100644 --- a/context.md +++ b/context.md @@ -9,8 +9,8 @@ ## Репозитории и сборка - Сервер — `/Users/max/ezServer-MacOS`, ветка `main`, origin `ssh://git@git.anidev.ru:222/SantaSpeen/ezServer-MacOS.git`. Клиент — `/Users/max/ezDent-MacOS`, разрабатывается в отдельном чате. Проверять рабочий каталог перед командами. -- `./scripts/build-server.sh` собирает `dist/EzServer.app` и `dist/EzServerMac-universal.zip` и размещает подготовленный оригинальный PHP в ресурсах приложения. `EZSERVER_REQUIRE_PHP=1` требует наличия PHP в сборке. `EzServerMac --php` запускает его через системные nginx и PHP-FPM. -- Локальный установщик — `_source/EzServer V4.1.6 Setup.exe`. `server/prepare.sh` извлекает PHP-компонент через 7-Zip, unshield и Python 3 в `.build/ezserver-macos/runtime`. Установщик и извлечённые файлы локальные и игнорируются Git. +- `./scripts/build-server.sh` собирает `dist/EzServer.app` и `dist/EzServerMac-universal.zip` и размещает оригинальный PHP из `server/original` в ресурсах приложения. `EzServerMac --php` запускает его через системные nginx и PHP-FPM. +- Локальный установщик — `_source/EzServer V4.1.6 Setup.exe`. `server/prepare.sh` извлекает PHP-компонент через 7-Zip, unshield и Python 3 в `.build/ezserver-macos/runtime`. Установщик и временная распаковка игнорируются Git. Оригинальные PHP-файлы и их зависимости из 4.1.6 заведены в Git в `server/original`. ## Что работает сейчас @@ -20,7 +20,7 @@ ## Где смотреть в оригинале -Относительно извлечённого `www/ezwebserver/src`: +Относительно `server/original/www/ezwebserver/src`: - Панель приложения на Material Design 3 находится в `Packaging/webconsole` и собирается с приложением. Она использует оригинальный AES-вход (Master Admin / 0000 по умолчанию), версии, путь снимков, сведения о защите и журнал сеанса. DB Server Setting в панели отсутствует. PHP-режим раздаёт оригинальные статические ресурсы из `webapps/webconsole` установщика. - `public/api/index.php` — точка входа, `application/config/routes.php` — маршруты. Версия API в комплекте — 3.0.6. diff --git a/scripts/build-server.sh b/scripts/build-server.sh index 69fb9da..b889d9e 100755 --- a/scripts/build-server.sh +++ b/scripts/build-server.sh @@ -10,17 +10,11 @@ build_for_arch() { swift build -c release --arch "$arch" --scratch-path "$scratch" --show-bin-path } -runtime="${EZSERVER_RUNTIME:-$PWD/.build/ezserver-macos/runtime}" -installer="$PWD/_source/EzServer V4.1.6 Setup.exe" -if [[ ! -e "$runtime" && -f "$installer" ]]; then - EZSERVER_RUNTIME="$runtime" ./server/prepare.sh "$installer" -fi -if [[ -e "$runtime" || "${EZSERVER_REQUIRE_PHP:-0}" == 1 ]]; then - if [[ ! -f "$runtime/www/ezwebserver/src/public/api/index.php" || - ! -f "$runtime/www/ezwebserver/src/vendor/autoload.php" ]]; then - printf 'Original PHP runtime missing or incomplete: %s\n' "$runtime" >&2 - exit 1 - fi +runtime="${EZSERVER_RUNTIME:-$PWD/server/original}" +if [[ ! -f "$runtime/www/ezwebserver/src/public/api/index.php" || + ! -f "$runtime/www/ezwebserver/src/vendor/autoload.php" ]]; then + printf 'Original PHP runtime missing or incomplete: %s\n' "$runtime" >&2 + exit 1 fi arm64_bin="$(build_for_arch arm64)" @@ -36,18 +30,16 @@ xcrun lipo "$binary" -verify_arch arm64 x86_64 cp Packaging/Info.plist "$app/Contents/Info.plist" cp README.md "$app/Contents/Resources/README.md" ditto Packaging/webconsole "$app/Contents/Resources/webconsole" -if [[ -d "$runtime" ]]; then - php_resources="$app/Contents/Resources/php" - mkdir -p "$php_resources" - cp server/{run.sh,router.php,nginx.conf.in,php-fpm.conf.in,init-sqlite.php,patients.sqlite.sql,sqlite-database.php,sqlite-rest.php} \ - "$php_resources/" - mkdir "$php_resources/runtime" - ditto "$runtime/www" "$php_resources/runtime/www" - cp "$runtime/index.html" "$php_resources/runtime/index.html" - application="$php_resources/runtime/www/ezwebserver/src/application" - rm -rf "$application/logs" "$application/cache/sessions" - mkdir -p "$application/logs" "$application/cache/sessions" -fi +php_resources="$app/Contents/Resources/php" +mkdir -p "$php_resources" +cp server/{run.sh,router.php,nginx.conf.in,php-fpm.conf.in,init-sqlite.php,patients.sqlite.sql,sqlite-database.php,sqlite-rest.php} \ + "$php_resources/" +mkdir "$php_resources/runtime" +ditto "$runtime/www" "$php_resources/runtime/www" +cp "$runtime/index.html" "$php_resources/runtime/index.html" +application="$php_resources/runtime/www/ezwebserver/src/application" +rm -rf "$application/logs" "$application/cache/sessions" +mkdir -p "$application/logs" "$application/cache/sessions" codesign --force --sign - "$app" codesign --verify --deep --strict "$app" ditto -c -k --keepParent "$app" "$stage/EzServerMac-universal.zip" diff --git a/server/original/.gitattributes b/server/original/.gitattributes new file mode 100644 index 0000000..fa1385d --- /dev/null +++ b/server/original/.gitattributes @@ -0,0 +1 @@ +* -text diff --git a/server/original/index.html b/server/original/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/server/original/index.html @@ -0,0 +1,11 @@ + + +
+Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/.htaccess b/server/original/www/ezwebserver/src/application/.htaccess new file mode 100644 index 0000000..6c63ed4 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/.htaccess @@ -0,0 +1,6 @@ +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/config/memcached.php b/server/original/www/ezwebserver/src/application/config/memcached.php new file mode 100644 index 0000000..6fe7d7b --- /dev/null +++ b/server/original/www/ezwebserver/src/application/config/memcached.php @@ -0,0 +1,7 @@ + array("\x68\x6f\163\164\156\x61\x6d\x65" => "\61\62\x37\56\60\56\60\x2e\61", "\x70\x6f\162\164" => "\61\x31\x32\x31\x31", "\x77\x65\151\147\150\164" => "\x31")); diff --git a/server/original/www/ezwebserver/src/application/config/migration.php b/server/original/www/ezwebserver/src/application/config/migration.php new file mode 100644 index 0000000..6ff626c --- /dev/null +++ b/server/original/www/ezwebserver/src/application/config/migration.php @@ -0,0 +1,7 @@ + array("\141\160\160\x6c\151\143\x61\164\151\157\x6e\57\155\141\x63\55\x62\151\x6e\150\145\x78\x34\60", "\x61\x70\160\154\x69\143\x61\x74\x69\x6f\x6e\x2f\x6d\141\x63\x2d\142\151\156\x68\145\170", "\141\x70\x70\x6c\x69\143\x61\x74\151\x6f\156\x2f\170\x2d\142\151\x6e\150\x65\x78\64\x30", "\x61\160\160\154\151\143\x61\x74\151\x6f\156\57\x78\55\155\141\x63\55\x62\x69\x6e\x68\x65\170\64\x30"), "\143\x70\x74" => "\x61\160\160\154\x69\143\141\164\x69\157\156\x2f\155\141\x63\x2d\x63\157\x6d\160\x61\143\x74\160\x72\157", "\x63\163\166" => array("\164\x65\170\x74\x2f\x78\x2d\x63\x6f\x6d\155\141\x2d\163\145\160\x61\x72\141\x74\145\x64\x2d\166\141\154\165\x65\x73", "\164\145\170\164\x2f\x63\x6f\155\155\x61\x2d\x73\x65\x70\x61\162\141\164\145\x64\55\166\141\x6c\x75\x65\x73", "\x61\x70\160\x6c\x69\143\x61\164\151\157\x6e\57\157\x63\164\145\x74\x2d\163\164\x72\145\x61\155", "\141\x70\x70\x6c\151\x63\141\x74\x69\x6f\x6e\57\x76\156\144\56\x6d\163\x2d\x65\170\143\x65\x6c", "\x61\x70\160\x6c\151\143\141\x74\151\157\156\x2f\x78\x2d\143\x73\x76", "\x74\x65\170\164\57\x78\x2d\x63\x73\166", "\164\x65\x78\x74\x2f\143\163\x76", "\141\x70\160\154\x69\x63\141\164\151\x6f\x6e\57\x63\163\x76", "\141\160\160\154\x69\x63\x61\x74\x69\x6f\x6e\57\x65\170\143\x65\x6c", "\141\160\160\154\151\143\x61\x74\151\157\x6e\57\166\156\x64\x2e\155\x73\x65\170\x63\x65\154", "\164\145\x78\x74\x2f\160\x6c\141\x69\x6e"), "\x62\x69\156" => array("\141\160\160\x6c\151\x63\141\164\x69\x6f\156\57\x6d\x61\143\142\x69\156\x61\162\x79", "\141\x70\x70\x6c\151\x63\141\164\151\157\x6e\57\x6d\x61\x63\55\x62\x69\x6e\141\162\171", "\x61\x70\x70\154\151\143\x61\x74\x69\x6f\x6e\x2f\x6f\143\x74\x65\164\55\x73\x74\x72\x65\x61\155", "\x61\160\160\154\x69\143\141\x74\x69\157\156\57\x78\x2d\142\x69\x6e\x61\162\x79", "\141\x70\x70\154\x69\x63\141\x74\x69\157\x6e\57\170\55\155\141\x63\142\151\156\141\162\x79"), "\x64\x6d\163" => "\141\x70\x70\154\x69\x63\141\x74\151\157\x6e\x2f\x6f\143\164\145\164\x2d\163\164\162\x65\x61\x6d", "\154\150\x61" => "\x61\160\160\x6c\x69\x63\141\x74\151\157\x6e\57\157\x63\164\x65\x74\x2d\163\x74\x72\x65\x61\x6d", "\x6c\x7a\x68" => "\141\160\x70\x6c\x69\x63\x61\x74\151\x6f\156\x2f\x6f\143\164\x65\x74\55\x73\164\162\145\141\155", "\145\170\x65" => array("\x61\160\x70\154\151\x63\141\x74\151\157\x6e\57\157\x63\x74\145\x74\55\x73\x74\x72\145\x61\x6d", "\141\x70\x70\154\x69\143\141\164\x69\157\156\x2f\x78\x2d\x6d\163\144\x6f\167\x6e\154\x6f\141\x64"), "\143\x6c\x61\163\x73" => "\141\160\x70\x6c\x69\143\141\164\x69\x6f\x6e\57\x6f\143\164\145\164\55\x73\x74\162\145\141\155", "\x70\x73\144" => array("\x61\x70\x70\x6c\151\143\141\164\151\157\156\x2f\x78\x2d\160\150\157\164\157\163\x68\157\x70", "\x69\155\x61\147\x65\x2f\166\156\144\56\x61\144\157\x62\x65\56\160\x68\157\164\x6f\163\150\157\x70"), "\163\157" => "\141\x70\160\x6c\x69\143\x61\164\x69\x6f\x6e\57\x6f\x63\x74\145\164\55\163\x74\x72\145\141\155", "\163\x65\141" => "\x61\160\160\154\151\143\141\164\x69\x6f\x6e\57\x6f\143\164\x65\164\x2d\163\164\x72\145\141\x6d", "\144\154\x6c" => "\141\160\x70\x6c\151\143\141\164\151\x6f\x6e\57\157\x63\164\x65\164\55\163\x74\162\x65\141\x6d", "\x6f\144\141" => "\141\160\160\x6c\x69\143\141\164\x69\x6f\x6e\x2f\x6f\x64\x61", "\160\144\x66" => array("\x61\160\x70\154\x69\143\141\x74\x69\x6f\x6e\x2f\x70\144\x66", "\141\160\160\x6c\151\x63\141\164\x69\x6f\x6e\x2f\146\157\x72\x63\x65\55\x64\x6f\167\x6e\154\x6f\141\144", "\x61\160\160\154\x69\x63\x61\164\151\157\156\57\x78\x2d\144\157\167\156\154\x6f\x61\x64", "\142\x69\156\141\162\x79\x2f\x6f\x63\164\x65\x74\55\x73\164\x72\145\141\x6d"), "\x61\x69" => array("\141\x70\160\154\151\143\x61\164\151\157\x6e\57\x70\144\146", "\x61\160\x70\154\x69\143\x61\164\x69\157\156\57\x70\157\163\x74\163\143\162\x69\160\164"), "\145\x70\x73" => "\141\x70\x70\x6c\151\x63\x61\x74\x69\157\x6e\57\160\x6f\x73\164\x73\143\162\x69\x70\x74", "\x70\163" => "\x61\160\x70\x6c\x69\x63\x61\164\151\157\x6e\57\x70\157\163\x74\163\143\162\151\160\x74", "\x73\x6d\151" => "\141\x70\160\154\151\x63\141\x74\151\157\x6e\57\x73\155\151\x6c", "\x73\x6d\x69\154" => "\x61\x70\160\154\151\143\x61\x74\151\157\156\x2f\163\x6d\151\x6c", "\155\x69\x66" => "\141\x70\x70\154\x69\x63\x61\x74\151\157\156\57\x76\156\144\x2e\x6d\151\x66", "\x78\x6c\x73" => array("\141\160\160\154\151\143\x61\x74\x69\x6f\156\57\x76\x6e\x64\x2e\x6d\163\55\x65\x78\143\x65\x6c", "\141\160\160\154\x69\143\141\x74\x69\x6f\156\x2f\x6d\x73\145\x78\143\x65\x6c", "\x61\160\160\154\x69\x63\x61\164\151\157\156\x2f\170\55\x6d\163\145\x78\x63\x65\154", "\141\160\160\154\151\143\141\164\x69\157\x6e\57\x78\x2d\155\x73\x2d\145\170\143\145\x6c", "\141\160\160\x6c\151\x63\x61\x74\151\x6f\x6e\57\170\55\145\x78\x63\x65\x6c", "\141\160\160\154\x69\x63\x61\x74\x69\157\156\x2f\x78\x2d\144\157\163\x5f\155\x73\x5f\145\x78\x63\x65\154", "\141\160\160\154\x69\143\x61\x74\x69\x6f\156\57\170\154\163", "\x61\x70\160\x6c\151\143\141\164\151\157\x6e\x2f\170\x2d\170\154\163", "\141\x70\x70\x6c\151\143\141\164\x69\x6f\x6e\x2f\x65\170\143\x65\x6c", "\x61\x70\x70\x6c\151\x63\x61\x74\151\x6f\156\57\x64\x6f\167\x6e\154\x6f\x61\144", "\141\x70\x70\x6c\151\143\141\164\x69\x6f\x6e\x2f\166\x6e\x64\x2e\155\x73\x2d\x6f\146\x66\151\143\145", "\141\x70\160\x6c\x69\x63\x61\164\151\x6f\156\57\x6d\163\x77\x6f\x72\x64"), "\x70\160\164" => array("\141\x70\160\154\151\143\x61\x74\151\x6f\x6e\x2f\x70\157\167\145\x72\160\157\151\156\x74", "\x61\160\160\154\151\x63\141\x74\151\x6f\x6e\57\x76\x6e\x64\56\x6d\x73\x2d\160\x6f\167\145\162\x70\157\151\x6e\x74", "\x61\160\160\154\x69\x63\141\164\151\x6f\156\x2f\x76\156\x64\x2e\x6d\x73\55\157\x66\146\x69\x63\x65", "\141\x70\x70\x6c\151\x63\x61\x74\x69\x6f\x6e\x2f\x6d\163\x77\x6f\x72\x64"), "\160\x70\164\x78" => array("\x61\160\x70\x6c\151\x63\x61\x74\x69\157\156\57\166\156\144\56\x6f\160\145\x6e\x78\x6d\x6c\x66\157\162\x6d\141\x74\x73\x2d\157\x66\x66\151\x63\145\x64\157\x63\x75\155\x65\156\x74\x2e\x70\x72\x65\163\x65\x6e\164\141\164\151\x6f\156\x6d\x6c\56\x70\162\145\163\x65\x6e\164\141\x74\x69\x6f\156", "\141\x70\160\154\x69\x63\x61\x74\x69\x6f\x6e\x2f\x78\55\172\151\160", "\141\160\160\x6c\x69\143\x61\x74\151\x6f\156\x2f\x7a\x69\x70"), "\x77\x62\x78\x6d\x6c" => "\141\160\x70\x6c\151\x63\x61\x74\x69\x6f\x6e\57\x77\142\x78\155\x6c", "\x77\155\x6c\x63" => "\141\160\x70\154\151\143\141\x74\x69\x6f\x6e\x2f\167\155\154\143", "\144\143\x72" => "\141\x70\x70\154\151\143\x61\164\x69\157\x6e\x2f\x78\55\x64\x69\162\x65\x63\164\x6f\162", "\144\151\x72" => "\x61\x70\160\x6c\x69\143\x61\x74\x69\x6f\x6e\57\x78\55\x64\x69\x72\x65\143\164\x6f\x72", "\144\x78\162" => "\x61\x70\x70\154\151\143\x61\x74\151\x6f\x6e\x2f\x78\55\x64\x69\x72\145\x63\x74\157\x72", "\x64\166\151" => "\141\160\160\154\x69\x63\141\x74\x69\x6f\156\x2f\x78\55\144\x76\x69", "\147\x74\141\x72" => "\141\x70\x70\x6c\x69\143\141\x74\x69\157\156\57\x78\55\147\164\141\x72", "\147\172" => "\x61\160\x70\x6c\x69\x63\141\x74\151\x6f\156\x2f\x78\x2d\x67\x7a\x69\x70", "\147\x7a\x69\x70" => "\141\x70\160\154\151\143\x61\x74\151\x6f\156\57\x78\55\x67\172\151\x70", "\x70\x68\160" => array("\141\160\x70\154\151\x63\x61\164\151\157\x6e\57\x78\x2d\x68\x74\x74\x70\x64\x2d\160\x68\x70", "\x61\x70\160\x6c\x69\x63\x61\164\151\157\156\57\x70\150\x70", "\x61\x70\x70\x6c\151\143\x61\164\x69\157\x6e\x2f\170\x2d\x70\150\160", "\x74\145\170\x74\57\160\150\160", "\164\x65\x78\x74\57\170\55\160\150\160", "\141\x70\160\x6c\151\143\141\164\151\157\156\x2f\170\55\x68\x74\164\160\144\x2d\160\x68\160\x2d\x73\x6f\x75\x72\143\x65"), "\x70\150\x70\64" => "\141\160\160\154\151\x63\141\164\x69\157\156\x2f\x78\x2d\150\164\x74\x70\x64\55\160\x68\x70", "\160\x68\160\x33" => "\141\160\160\x6c\x69\x63\141\164\151\157\x6e\57\x78\x2d\x68\164\164\x70\144\x2d\x70\x68\x70", "\160\150\x74\x6d\x6c" => "\141\160\x70\x6c\x69\x63\141\x74\151\157\x6e\57\x78\x2d\x68\x74\164\160\x64\55\160\x68\x70", "\160\x68\x70\163" => "\141\160\x70\154\151\x63\141\x74\x69\x6f\156\57\170\x2d\x68\x74\x74\x70\144\55\160\150\x70\55\x73\157\x75\x72\143\x65", "\x6a\x73" => array("\141\160\160\154\151\x63\141\164\x69\157\x6e\57\x78\x2d\x6a\141\x76\x61\163\x63\x72\151\160\x74", "\x74\145\170\164\57\x70\154\141\x69\156"), "\163\x77\146" => "\141\160\x70\154\151\143\x61\x74\x69\x6f\156\x2f\170\x2d\x73\x68\157\143\153\x77\141\166\x65\55\146\x6c\x61\163\150", "\x73\x69\164" => "\x61\160\160\x6c\151\143\x61\164\151\x6f\156\57\170\x2d\163\164\165\146\146\x69\x74", "\164\x61\x72" => "\x61\160\160\x6c\x69\x63\x61\164\x69\157\156\57\x78\x2d\164\x61\x72", "\164\x67\x7a" => array("\x61\x70\x70\x6c\151\x63\x61\x74\151\157\x6e\57\170\x2d\x74\141\x72", "\141\160\160\154\x69\x63\x61\164\x69\x6f\x6e\x2f\x78\55\147\x7a\x69\160\55\x63\x6f\155\x70\x72\145\163\163\x65\x64"), "\172" => "\141\160\x70\154\151\x63\x61\x74\x69\157\156\57\x78\55\143\x6f\x6d\160\x72\x65\163\x73", "\170\x68\x74\155\x6c" => "\x61\x70\160\x6c\x69\x63\x61\x74\x69\x6f\156\57\170\150\164\x6d\x6c\53\170\x6d\x6c", "\x78\x68\x74" => "\141\x70\x70\154\151\143\x61\164\x69\x6f\156\x2f\x78\150\164\155\x6c\53\170\155\154", "\172\x69\x70" => array("\141\x70\x70\x6c\151\x63\141\x74\151\x6f\x6e\x2f\170\55\172\151\x70", "\x61\160\160\154\x69\143\x61\x74\x69\x6f\156\57\x7a\151\160", "\141\x70\x70\154\x69\143\141\164\x69\157\156\x2f\x78\55\172\151\x70\55\143\x6f\155\x70\x72\x65\163\163\145\144", "\141\x70\160\x6c\x69\x63\141\x74\x69\x6f\156\57\x73\55\143\x6f\x6d\160\x72\145\x73\163\145\144", "\x6d\165\154\164\x69\x70\141\162\x74\x2f\170\55\172\x69\160"), "\x72\141\162" => array("\141\160\x70\x6c\x69\143\x61\164\x69\x6f\156\x2f\170\55\162\x61\x72", "\x61\160\160\x6c\x69\x63\x61\164\x69\157\156\57\x72\141\x72", "\141\160\x70\x6c\151\x63\141\164\151\157\156\x2f\x78\x2d\162\141\162\55\x63\x6f\155\160\162\x65\163\x73\145\144"), "\x6d\151\144" => "\x61\x75\144\x69\x6f\x2f\x6d\x69\x64\151", "\155\151\144\x69" => "\x61\x75\x64\x69\x6f\x2f\155\x69\144\151", "\x6d\x70\x67\141" => "\x61\x75\144\x69\x6f\57\x6d\x70\x65\147", "\155\x70\62" => "\141\165\x64\151\157\x2f\x6d\160\x65\147", "\x6d\160\x33" => array("\x61\165\144\151\x6f\x2f\155\160\x65\x67", "\141\x75\144\x69\x6f\x2f\155\x70\147", "\141\x75\x64\x69\157\x2f\x6d\x70\145\x67\x33", "\x61\x75\144\151\157\x2f\155\x70\x33"), "\x61\x69\146" => array("\141\x75\x64\151\x6f\57\170\x2d\x61\x69\x66\x66", "\x61\165\144\x69\157\x2f\141\151\146\x66"), "\141\151\x66\146" => array("\x61\165\144\x69\157\x2f\170\x2d\x61\x69\146\146", "\141\x75\x64\x69\x6f\57\x61\x69\x66\146"), "\x61\x69\x66\x63" => "\141\165\x64\x69\x6f\57\170\x2d\x61\151\x66\146", "\162\x61\x6d" => "\x61\165\144\151\157\x2f\x78\55\x70\x6e\x2d\162\145\x61\154\x61\x75\x64\x69\157", "\x72\155" => "\x61\165\x64\x69\157\x2f\x78\x2d\160\156\x2d\162\x65\x61\154\x61\x75\x64\x69\x6f", "\162\x70\x6d" => "\x61\165\x64\151\157\x2f\x78\x2d\160\x6e\55\x72\145\x61\154\141\x75\x64\151\157\x2d\x70\x6c\165\147\151\156", "\162\x61" => "\x61\x75\144\x69\x6f\x2f\x78\x2d\x72\145\141\154\x61\x75\x64\151\x6f", "\x72\x76" => "\x76\x69\x64\x65\157\57\x76\x6e\144\56\x72\x6e\x2d\162\x65\x61\x6c\166\151\144\x65\157", "\167\x61\x76" => array("\141\165\x64\x69\157\x2f\170\55\167\x61\166", "\141\x75\144\x69\x6f\57\167\x61\166\145", "\x61\165\x64\x69\157\x2f\x77\x61\166"), "\142\155\160" => array("\x69\155\x61\x67\x65\57\x62\155\160", "\151\155\x61\147\145\57\x78\x2d\142\155\160", "\x69\155\x61\x67\x65\x2f\170\55\142\151\164\x6d\141\x70", "\x69\x6d\x61\147\x65\x2f\170\55\x78\x62\x69\164\155\x61\x70", "\x69\x6d\141\147\145\57\170\x2d\167\x69\x6e\55\142\151\x74\x6d\x61\160", "\x69\155\x61\147\x65\57\170\x2d\x77\151\156\144\157\167\163\x2d\x62\x6d\x70", "\x69\x6d\141\x67\145\x2f\x6d\x73\55\x62\x6d\x70", "\x69\x6d\141\147\x65\x2f\170\x2d\155\x73\x2d\142\155\160", "\141\x70\x70\x6c\x69\x63\x61\164\x69\157\156\x2f\x62\x6d\x70", "\141\160\x70\x6c\151\x63\x61\164\151\157\156\57\x78\x2d\142\x6d\160", "\x61\160\x70\154\x69\143\141\164\151\x6f\x6e\57\x78\55\167\x69\156\x2d\x62\x69\164\155\x61\x70"), "\147\151\x66" => "\151\155\x61\x67\145\x2f\x67\151\x66", "\x6a\x70\145\147" => array("\x69\155\141\x67\145\x2f\x6a\x70\145\147", "\x69\x6d\141\x67\x65\57\160\152\160\145\x67"), "\x6a\x70\147" => array("\151\155\x61\147\x65\57\152\160\x65\x67", "\x69\155\141\147\x65\x2f\x70\152\x70\145\x67"), "\x6a\160\145" => array("\x69\x6d\x61\147\145\x2f\152\x70\145\x67", "\x69\x6d\x61\x67\145\x2f\160\x6a\160\x65\147"), "\x6a\x70\x32" => array("\151\x6d\141\147\145\57\x6a\160\x32", "\166\x69\x64\x65\x6f\x2f\155\152\x32", "\151\155\x61\x67\x65\x2f\152\160\170", "\x69\155\141\x67\x65\57\152\160\x6d"), "\x6a\62\x6b" => array("\151\155\141\x67\x65\57\152\x70\62", "\x76\151\x64\145\x6f\x2f\x6d\152\62", "\151\155\141\x67\x65\57\x6a\160\x78", "\x69\155\141\x67\145\57\x6a\160\x6d"), "\152\160\146" => array("\x69\x6d\141\x67\x65\57\x6a\160\62", "\166\x69\x64\x65\x6f\x2f\155\152\62", "\x69\155\141\x67\145\57\152\x70\x78", "\x69\x6d\x61\x67\145\x2f\152\x70\155"), "\x6a\x70\147\62" => array("\151\155\x61\x67\x65\57\152\160\62", "\166\x69\144\x65\x6f\x2f\155\x6a\x32", "\151\x6d\x61\x67\x65\57\152\x70\x78", "\151\x6d\x61\x67\x65\x2f\152\x70\155"), "\x6a\x70\x78" => array("\x69\x6d\x61\x67\145\57\152\160\62", "\166\151\x64\x65\157\57\155\x6a\62", "\151\155\141\x67\x65\57\x6a\x70\170", "\x69\155\x61\x67\145\x2f\152\x70\x6d"), "\152\x70\155" => array("\151\155\141\x67\x65\57\x6a\160\62", "\x76\151\144\x65\x6f\x2f\x6d\x6a\x32", "\151\x6d\141\147\145\57\152\x70\170", "\x69\x6d\141\147\145\x2f\x6a\160\x6d"), "\155\152\x32" => array("\151\x6d\141\x67\145\57\x6a\x70\62", "\166\x69\x64\x65\157\57\155\152\62", "\x69\x6d\x61\147\145\57\152\x70\x78", "\x69\x6d\x61\x67\x65\57\152\160\155"), "\x6d\x6a\160\x32" => array("\151\x6d\x61\x67\145\x2f\152\x70\62", "\x76\x69\x64\145\157\57\x6d\152\x32", "\151\155\x61\x67\145\x2f\x6a\x70\x78", "\x69\x6d\x61\147\x65\57\x6a\x70\155"), "\x70\156\147" => array("\151\x6d\x61\x67\145\57\160\156\147", "\x69\x6d\x61\x67\145\57\170\x2d\x70\156\x67"), "\164\151\x66\x66" => "\x69\x6d\x61\x67\x65\x2f\x74\x69\146\146", "\164\151\146" => "\x69\x6d\141\x67\x65\x2f\x74\151\x66\x66", "\143\x73\163" => array("\x74\x65\170\164\x2f\143\x73\163", "\x74\145\170\164\57\x70\x6c\141\x69\156"), "\x68\x74\155\x6c" => array("\x74\x65\x78\164\x2f\150\164\x6d\x6c", "\x74\145\170\x74\x2f\160\x6c\x61\x69\156"), "\150\x74\155" => array("\164\x65\x78\164\x2f\x68\164\x6d\154", "\164\145\170\x74\57\160\154\x61\x69\x6e"), "\163\150\164\155\154" => array("\x74\x65\x78\164\57\x68\x74\155\154", "\x74\x65\170\164\57\160\154\x61\x69\156"), "\164\170\x74" => "\x74\x65\x78\164\x2f\160\x6c\x61\x69\x6e", "\x74\145\x78\164" => "\x74\145\170\164\x2f\160\x6c\x61\x69\x6e", "\154\x6f\147" => array("\x74\145\x78\x74\57\x70\154\141\151\156", "\x74\x65\170\164\57\x78\55\154\x6f\147"), "\162\164\170" => "\x74\145\x78\164\x2f\162\x69\143\x68\x74\x65\170\x74", "\x72\x74\x66" => "\164\x65\x78\164\x2f\162\164\x66", "\x78\155\x6c" => array("\141\160\160\154\151\x63\141\x74\x69\x6f\x6e\x2f\170\155\x6c", "\164\x65\x78\x74\x2f\170\x6d\154", "\164\145\x78\x74\x2f\160\154\x61\x69\156"), "\170\x73\x6c" => array("\141\160\x70\x6c\x69\143\141\x74\151\x6f\156\x2f\170\155\154", "\x74\145\170\164\57\170\163\154", "\164\x65\170\164\57\x78\x6d\154"), "\155\x70\145\147" => "\x76\151\144\145\x6f\57\x6d\x70\145\147", "\155\160\x67" => "\x76\151\x64\145\157\57\x6d\x70\145\147", "\x6d\x70\x65" => "\166\151\144\x65\157\57\155\160\x65\x67", "\161\164" => "\166\x69\144\145\157\57\161\165\x69\143\x6b\x74\151\x6d\x65", "\155\157\x76" => "\166\151\x64\x65\157\57\161\x75\151\143\153\164\151\155\x65", "\141\x76\151" => array("\166\x69\144\x65\157\x2f\x78\x2d\155\x73\166\x69\x64\145\157", "\166\151\144\x65\157\57\x6d\163\x76\151\x64\145\157", "\x76\151\144\145\x6f\x2f\x61\x76\x69", "\x61\x70\160\x6c\x69\x63\141\164\x69\157\x6e\x2f\170\x2d\x74\162\157\146\146\55\x6d\163\x76\151\x64\x65\157"), "\x6d\x6f\166\x69\x65" => "\166\151\x64\145\x6f\x2f\170\x2d\x73\147\x69\55\x6d\157\x76\x69\x65", "\144\157\x63" => array("\141\x70\160\154\x69\143\x61\x74\x69\x6f\156\x2f\155\x73\x77\157\x72\144", "\x61\160\160\x6c\x69\x63\x61\164\x69\x6f\x6e\57\166\156\x64\x2e\155\163\x2d\x6f\x66\x66\x69\x63\145"), "\144\x6f\143\170" => array("\x61\x70\x70\x6c\x69\x63\x61\164\x69\x6f\x6e\57\166\x6e\x64\56\157\160\x65\156\170\155\x6c\146\x6f\x72\x6d\141\x74\x73\55\x6f\x66\x66\151\x63\x65\x64\157\143\x75\155\x65\x6e\x74\56\167\x6f\x72\144\160\x72\x6f\x63\145\163\x73\x69\156\147\x6d\x6c\56\144\157\143\x75\155\145\x6e\164", "\x61\160\160\x6c\151\x63\x61\164\151\x6f\156\57\172\151\x70", "\141\160\x70\154\x69\143\x61\x74\x69\x6f\x6e\57\x6d\x73\x77\157\x72\144", "\x61\x70\160\x6c\151\x63\x61\x74\x69\157\x6e\57\x78\55\x7a\151\x70"), "\x64\x6f\164" => array("\x61\x70\x70\x6c\151\143\x61\x74\151\157\156\57\x6d\x73\167\x6f\x72\x64", "\x61\160\160\154\x69\143\141\164\x69\157\x6e\x2f\x76\x6e\144\x2e\155\x73\x2d\157\146\146\151\143\x65"), "\x64\157\164\x78" => array("\141\160\160\x6c\x69\143\141\164\x69\x6f\x6e\57\x76\x6e\x64\x2e\157\160\145\x6e\170\x6d\154\x66\157\x72\x6d\x61\164\x73\x2d\x6f\x66\x66\x69\143\145\x64\x6f\x63\x75\x6d\x65\x6e\164\x2e\x77\x6f\162\144\x70\x72\x6f\x63\x65\163\x73\x69\156\x67\x6d\154\56\x64\157\x63\165\x6d\x65\156\x74", "\x61\x70\x70\154\151\x63\x61\x74\x69\x6f\156\57\172\151\x70", "\141\160\160\154\x69\143\x61\164\151\x6f\156\57\155\163\167\157\x72\x64"), "\x78\154\163\x78" => array("\141\160\160\154\151\143\141\x74\151\x6f\x6e\57\166\156\x64\x2e\157\160\145\x6e\x78\155\154\x66\x6f\162\155\141\x74\163\x2d\x6f\146\x66\x69\143\x65\144\x6f\143\x75\x6d\145\x6e\164\x2e\163\160\162\145\x61\144\x73\x68\145\145\164\155\x6c\x2e\163\150\145\145\x74", "\x61\x70\x70\x6c\151\x63\x61\164\151\157\156\57\x7a\151\x70", "\141\x70\x70\x6c\x69\143\141\x74\151\x6f\156\x2f\x76\x6e\144\x2e\x6d\163\55\x65\x78\x63\x65\154", "\141\x70\160\154\151\x63\x61\164\151\x6f\156\x2f\x6d\x73\167\157\x72\x64", "\141\x70\160\154\151\143\x61\x74\x69\x6f\x6e\57\x78\x2d\x7a\x69\160"), "\x77\x6f\162\x64" => array("\x61\x70\x70\x6c\x69\x63\x61\164\x69\x6f\x6e\57\155\x73\x77\x6f\x72\144", "\141\160\x70\154\x69\x63\x61\x74\151\157\x6e\x2f\157\143\164\x65\x74\55\163\x74\x72\145\x61\155"), "\170\x6c" => "\x61\x70\160\x6c\151\143\141\x74\x69\157\x6e\57\x65\x78\x63\x65\154", "\x65\x6d\x6c" => "\x6d\x65\163\x73\x61\x67\x65\57\162\146\143\70\62\62", "\x6a\x73\x6f\156" => array("\141\x70\x70\x6c\x69\143\x61\164\x69\157\x6e\57\152\x73\x6f\156", "\164\x65\x78\x74\57\152\163\157\x6e"), "\x70\x65\x6d" => array("\x61\160\160\154\151\143\141\164\151\157\x6e\x2f\x78\x2d\x78\65\x30\71\x2d\x75\x73\x65\x72\x2d\x63\145\162\x74", "\141\160\x70\x6c\x69\x63\141\x74\151\157\x6e\x2f\170\x2d\x70\145\x6d\55\146\x69\154\x65", "\141\160\160\154\x69\143\x61\164\151\x6f\156\57\x6f\143\164\x65\x74\55\x73\x74\162\x65\x61\155"), "\x70\x31\x30" => array("\141\x70\x70\154\x69\143\x61\x74\x69\157\x6e\57\x78\x2d\160\x6b\x63\x73\x31\60", "\141\x70\x70\x6c\x69\143\x61\164\151\157\156\x2f\160\153\x63\x73\x31\x30"), "\160\x31\x32" => "\x61\x70\x70\x6c\x69\143\141\x74\151\157\156\57\x78\x2d\x70\x6b\x63\x73\61\62", "\160\67\x61" => "\x61\x70\160\x6c\151\143\x61\164\x69\157\156\x2f\x78\55\x70\x6b\x63\x73\67\x2d\x73\151\x67\156\141\x74\x75\162\145", "\160\x37\143" => array("\141\160\x70\x6c\x69\143\x61\x74\x69\157\x6e\x2f\x70\x6b\x63\163\67\x2d\155\151\155\145", "\x61\x70\x70\154\151\143\x61\x74\151\157\x6e\x2f\x78\55\160\x6b\x63\x73\x37\55\x6d\151\x6d\x65"), "\160\x37\155" => array("\141\x70\x70\x6c\151\x63\141\164\x69\x6f\x6e\57\x70\x6b\143\163\x37\55\155\x69\155\x65", "\141\160\160\x6c\151\x63\x61\x74\151\x6f\x6e\x2f\170\55\x70\x6b\x63\163\x37\x2d\155\151\x6d\145"), "\160\x37\162" => "\141\x70\x70\154\x69\143\141\164\151\157\x6e\x2f\170\x2d\x70\x6b\143\x73\x37\x2d\143\145\x72\164\x72\145\161\x72\x65\163\160", "\160\67\163" => "\141\160\x70\x6c\x69\x63\x61\164\x69\x6f\156\x2f\x70\x6b\x63\x73\67\x2d\163\151\x67\x6e\x61\164\165\x72\145", "\143\162\164" => array("\x61\x70\x70\154\x69\143\141\164\151\157\x6e\x2f\170\55\170\x35\x30\x39\x2d\143\141\55\143\145\x72\x74", "\141\160\160\x6c\151\143\x61\x74\151\157\x6e\x2f\x78\x2d\170\65\60\71\x2d\x75\x73\x65\162\x2d\143\145\x72\x74", "\x61\160\160\154\151\143\x61\x74\151\157\x6e\x2f\160\153\151\170\55\143\145\x72\164"), "\143\x72\x6c" => array("\x61\160\x70\154\151\143\x61\x74\151\157\156\57\160\153\151\170\55\x63\x72\154", "\141\x70\x70\154\151\143\141\x74\151\x6f\156\x2f\160\x6b\x63\x73\x2d\143\162\154"), "\x64\145\162" => "\x61\160\x70\x6c\x69\143\141\164\x69\157\x6e\x2f\x78\55\170\x35\60\x39\55\x63\141\55\143\x65\162\x74", "\x6b\x64\x62" => "\x61\160\x70\x6c\151\x63\x61\x74\x69\157\x6e\x2f\157\x63\164\145\x74\x2d\163\164\162\145\x61\x6d", "\x70\x67\160" => "\x61\160\x70\154\x69\x63\141\x74\x69\157\156\57\x70\x67\x70", "\147\160\147" => "\x61\x70\x70\x6c\x69\143\141\x74\151\x6f\x6e\57\147\160\x67\x2d\x6b\145\171\x73", "\163\163\x74" => "\x61\x70\x70\154\x69\x63\x61\x74\151\x6f\156\x2f\x6f\x63\x74\145\164\x2d\x73\x74\x72\145\141\155", "\x63\x73\162" => "\x61\x70\160\x6c\x69\143\x61\164\x69\157\x6e\57\x6f\143\x74\145\x74\x2d\163\x74\x72\145\141\155", "\162\x73\x61" => "\141\160\160\154\151\143\141\164\x69\x6f\156\57\170\x2d\160\x6b\143\163\x37", "\143\145\x72" => array("\x61\160\x70\154\x69\x63\141\164\151\157\x6e\x2f\160\153\x69\170\55\143\x65\x72\164", "\x61\160\160\x6c\151\143\x61\164\x69\x6f\156\x2f\170\55\x78\x35\x30\x39\55\143\141\55\143\145\162\x74"), "\63\147\62" => "\166\151\144\x65\157\57\63\x67\160\x70\x32", "\x33\x67\160" => array("\166\151\144\145\x6f\57\x33\147\x70", "\x76\151\x64\145\x6f\x2f\63\147\160\x70"), "\x6d\x70\64" => "\166\x69\x64\x65\x6f\x2f\155\160\64", "\x6d\x34\x61" => "\141\165\144\151\157\x2f\170\55\x6d\x34\141", "\x66\x34\166" => array("\166\x69\x64\145\x6f\57\155\160\x34", "\x76\151\144\145\x6f\57\170\55\146\x34\x76"), "\x66\x6c\x76" => "\x76\x69\x64\x65\157\x2f\x78\x2d\146\154\x76", "\x77\145\142\x6d" => "\x76\x69\x64\x65\x6f\57\x77\x65\x62\155", "\x61\x61\143" => "\141\x75\144\x69\157\57\x78\55\x61\x63\143", "\155\x34\x75" => "\141\x70\160\x6c\x69\x63\141\164\x69\157\x6e\x2f\x76\x6e\144\56\x6d\160\145\x67\x75\x72\154", "\155\63\x75" => "\164\x65\x78\x74\x2f\x70\x6c\x61\151\x6e", "\x78\x73\x70\x66" => "\141\x70\x70\154\151\x63\x61\164\151\157\156\x2f\x78\163\160\146\x2b\170\x6d\x6c", "\x76\154\143" => "\x61\x70\x70\154\x69\x63\x61\164\151\157\x6e\57\x76\x69\x64\x65\x6f\154\x61\x6e", "\x77\x6d\x76" => array("\166\x69\144\x65\157\x2f\x78\x2d\x6d\x73\55\x77\x6d\x76", "\x76\151\144\145\x6f\x2f\170\55\x6d\x73\x2d\x61\163\146"), "\141\x75" => "\141\165\x64\x69\x6f\57\x78\55\141\165", "\x61\143\63" => "\x61\x75\x64\x69\x6f\57\141\x63\63", "\146\154\x61\x63" => "\x61\165\x64\x69\x6f\57\170\x2d\146\154\x61\x63", "\157\147\x67" => array("\141\165\144\x69\x6f\57\157\x67\147", "\x76\151\x64\x65\x6f\x2f\157\147\x67", "\141\160\160\154\x69\x63\x61\164\x69\157\156\x2f\x6f\x67\147"), "\153\155\172" => array("\141\160\160\x6c\x69\143\x61\164\151\x6f\x6e\57\166\156\144\56\147\x6f\157\147\154\145\x2d\x65\x61\x72\x74\x68\x2e\153\x6d\x7a", "\141\160\160\154\151\143\141\x74\151\x6f\156\57\172\x69\160", "\x61\x70\x70\x6c\151\x63\x61\x74\x69\157\x6e\57\170\x2d\172\151\160"), "\153\x6d\154" => array("\141\160\160\x6c\151\143\x61\164\x69\157\156\57\166\x6e\144\56\x67\x6f\x6f\x67\x6c\145\x2d\145\x61\162\x74\x68\x2e\x6b\155\x6c\53\x78\155\x6c", "\141\x70\x70\154\x69\143\141\164\x69\157\x6e\x2f\170\155\154", "\x74\145\170\x74\x2f\x78\x6d\154"), "\151\x63\163" => "\164\145\x78\164\x2f\x63\x61\x6c\145\x6e\x64\x61\162", "\x69\143\141\154" => "\x74\x65\x78\164\x2f\x63\x61\x6c\x65\156\x64\x61\x72", "\x7a\x73\150" => "\164\145\170\164\x2f\170\55\x73\143\162\151\x70\164\x7a\x73\x68", "\x37\x7a\x69\x70" => array("\x61\160\x70\154\x69\143\141\164\x69\x6f\x6e\x2f\x78\x2d\x63\x6f\155\160\162\145\163\163\145\144", "\141\x70\160\x6c\151\x63\x61\x74\x69\x6f\156\x2f\170\x2d\x7a\151\x70\55\x63\157\x6d\160\162\145\163\163\x65\x64", "\x61\160\160\x6c\x69\143\x61\164\151\x6f\156\x2f\172\x69\160", "\155\x75\154\164\x69\160\x61\162\x74\57\x78\55\172\x69\160"), "\x63\144\162" => array("\x61\160\x70\x6c\151\143\141\164\x69\x6f\156\57\143\x64\162", "\x61\160\x70\x6c\x69\143\141\164\x69\157\156\57\x63\x6f\162\x65\x6c\144\x72\x61\167", "\x61\160\160\154\x69\143\x61\x74\151\157\156\57\x78\55\x63\144\162", "\141\160\160\x6c\x69\x63\x61\164\x69\x6f\156\x2f\x78\x2d\x63\x6f\162\145\154\144\162\x61\167", "\151\155\x61\147\x65\57\143\x64\162", "\x69\155\141\147\x65\x2f\x78\x2d\x63\144\x72", "\x7a\172\55\x61\x70\x70\154\x69\x63\x61\164\151\x6f\156\x2f\x7a\x7a\55\167\151\156\x61\x73\163\157\x63\55\x63\144\x72"), "\167\155\x61" => array("\x61\x75\144\151\157\x2f\x78\x2d\x6d\x73\55\167\x6d\x61", "\166\151\x64\145\157\57\x78\x2d\155\163\x2d\141\x73\x66"), "\152\x61\x72" => array("\x61\160\160\154\x69\143\x61\164\151\x6f\156\57\152\141\166\141\55\x61\162\143\150\151\166\x65", "\141\x70\x70\154\x69\143\x61\164\x69\157\156\x2f\x78\x2d\x6a\141\x76\141\55\141\x70\x70\x6c\x69\143\141\164\x69\157\156", "\141\x70\x70\154\x69\x63\141\164\x69\157\x6e\57\x78\55\x6a\x61\x72", "\x61\x70\x70\154\151\x63\x61\164\x69\157\x6e\x2f\170\55\x63\157\155\x70\162\145\163\x73\x65\144"), "\x73\166\x67" => array("\151\x6d\141\147\x65\57\x73\166\x67\x2b\170\155\154", "\141\160\x70\x6c\x69\143\141\x74\x69\157\x6e\x2f\x78\155\x6c", "\x74\145\x78\164\57\x78\x6d\154"), "\x76\x63\146" => "\x74\145\x78\164\x2f\170\55\x76\x63\x61\162\x64", "\x73\162\164" => array("\164\x65\x78\164\x2f\x73\162\x74", "\164\145\170\x74\x2f\160\154\141\x69\156"), "\166\164\x74" => array("\x74\x65\x78\164\x2f\166\x74\164", "\164\x65\x78\x74\x2f\160\x6c\x61\151\156"), "\151\x63\x6f" => array("\151\x6d\x61\147\145\57\x78\x2d\x69\143\x6f\x6e", "\151\155\141\x67\x65\x2f\170\55\151\x63\157", "\x69\x6d\x61\x67\145\57\166\x6e\x64\x2e\155\151\143\x72\157\x73\157\146\x74\x2e\151\x63\157\x6e"), "\157\144\143" => "\141\x70\160\154\151\143\x61\164\x69\157\x6e\x2f\x76\x6e\144\56\x6f\141\x73\151\x73\56\157\x70\x65\x6e\144\157\143\165\155\x65\156\164\x2e\143\x68\x61\162\164", "\x6f\164\x63" => "\x61\160\x70\x6c\x69\143\x61\x74\x69\157\156\x2f\x76\156\144\56\157\x61\x73\151\x73\56\x6f\x70\145\x6e\x64\x6f\x63\165\x6d\145\156\164\x2e\x63\x68\x61\x72\164\x2d\164\145\x6d\160\x6c\141\x74\145", "\157\x64\x66" => "\x61\160\x70\x6c\x69\143\141\164\x69\x6f\156\57\166\x6e\x64\x2e\x6f\141\163\151\x73\x2e\x6f\160\x65\x6e\144\x6f\143\165\155\x65\156\164\56\x66\x6f\x72\x6d\165\x6c\x61", "\157\164\146" => "\141\x70\x70\x6c\151\x63\x61\164\151\157\156\x2f\x76\x6e\x64\56\x6f\141\163\x69\x73\56\x6f\160\145\x6e\144\157\x63\x75\x6d\x65\156\x74\56\146\x6f\162\x6d\165\154\x61\x2d\164\x65\x6d\x70\154\x61\x74\145", "\x6f\144\147" => "\141\160\x70\x6c\x69\x63\x61\x74\151\x6f\x6e\x2f\166\x6e\144\x2e\157\x61\x73\151\x73\x2e\157\x70\145\x6e\x64\157\x63\x75\155\145\156\x74\56\x67\162\x61\160\150\x69\x63\x73", "\x6f\164\x67" => "\x61\x70\160\x6c\x69\x63\x61\164\151\x6f\x6e\57\166\x6e\144\x2e\x6f\141\163\151\x73\x2e\157\x70\145\156\144\157\143\165\155\145\156\164\x2e\147\162\141\160\x68\x69\143\x73\x2d\164\145\155\x70\x6c\x61\164\x65", "\x6f\x64\151" => "\141\160\160\x6c\x69\143\x61\x74\151\x6f\x6e\x2f\166\x6e\x64\56\x6f\141\x73\151\x73\56\x6f\160\145\x6e\144\x6f\143\165\x6d\x65\156\164\x2e\151\x6d\141\147\x65", "\x6f\164\x69" => "\x61\160\x70\154\151\143\x61\164\x69\x6f\x6e\57\166\156\144\x2e\x6f\x61\x73\x69\163\56\x6f\x70\x65\x6e\144\x6f\143\165\155\x65\156\x74\x2e\x69\155\141\x67\145\55\164\x65\x6d\160\x6c\141\164\145", "\x6f\x64\160" => "\x61\x70\160\154\151\143\141\x74\151\x6f\x6e\57\x76\156\x64\x2e\x6f\x61\x73\151\x73\x2e\157\x70\145\156\x64\157\x63\165\x6d\145\x6e\x74\x2e\x70\162\x65\x73\145\x6e\x74\141\164\151\157\156", "\157\164\160" => "\141\160\160\154\151\143\x61\164\151\157\156\57\166\x6e\144\56\157\141\x73\151\163\56\157\x70\145\x6e\144\x6f\143\165\x6d\x65\x6e\x74\56\x70\x72\x65\x73\145\x6e\164\141\164\151\x6f\156\x2d\164\x65\155\160\x6c\x61\164\x65", "\157\144\163" => "\x61\x70\160\154\x69\143\x61\164\151\157\x6e\57\166\156\144\56\x6f\x61\163\151\x73\56\157\160\x65\x6e\x64\x6f\x63\165\155\145\x6e\164\56\163\x70\162\x65\141\144\x73\150\145\x65\164", "\157\164\x73" => "\141\160\x70\x6c\151\x63\x61\x74\x69\157\156\57\166\156\x64\x2e\x6f\x61\x73\x69\x73\56\157\x70\x65\x6e\144\x6f\143\165\155\x65\x6e\x74\x2e\x73\160\162\x65\141\x64\163\150\145\x65\164\x2d\164\x65\155\x70\x6c\141\x74\x65", "\x6f\144\x74" => "\141\x70\160\x6c\151\x63\x61\164\x69\x6f\x6e\x2f\x76\x6e\144\x2e\x6f\141\x73\151\163\x2e\x6f\160\145\x6e\x64\157\x63\165\155\x65\156\x74\x2e\x74\x65\170\x74", "\157\144\x6d" => "\141\160\160\x6c\151\143\x61\x74\x69\x6f\156\57\166\156\x64\x2e\x6f\x61\163\x69\163\x2e\157\x70\x65\x6e\144\157\143\165\155\x65\156\x74\x2e\x74\145\170\x74\x2d\155\x61\163\x74\145\x72", "\157\x74\164" => "\x61\x70\160\154\151\x63\141\x74\151\157\x6e\x2f\x76\156\x64\56\157\x61\163\151\x73\x2e\157\160\x65\x6e\144\157\143\165\155\145\x6e\164\56\164\145\170\x74\x2d\164\x65\x6d\160\x6c\x61\x74\145", "\x6f\164\x68" => "\141\x70\x70\x6c\151\x63\141\164\x69\x6f\x6e\57\x76\x6e\144\56\157\x61\x73\x69\163\56\157\x70\x65\156\144\x6f\x63\x75\x6d\x65\156\x74\x2e\x74\145\170\164\x2d\x77\145\142"); diff --git a/server/original/www/ezwebserver/src/application/config/profiler.php b/server/original/www/ezwebserver/src/application/config/profiler.php new file mode 100644 index 0000000..3033864 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/config/profiler.php @@ -0,0 +1,7 @@ + "\61\x32\63\x34"]; $config["\162\x65\x73\x74\x5f\x69\x70\137\167\150\x69\164\145\x6c\x69\x73\x74\137\145\x6e\x61\142\x6c\x65\x64"] = FALSE; $config["\x72\x65\x73\x74\x5f\x69\x70\137\x77\150\151\x74\145\x6c\151\x73\x74"] = ''; $config["\x72\x65\163\164\x5f\151\x70\137\142\154\141\143\x6b\154\x69\163\164\x5f\x65\156\141\x62\154\x65\x64"] = FALSE; $config["\x72\145\163\x74\137\x69\x70\x5f\142\154\141\143\x6b\154\x69\x73\164"] = ''; $config["\x72\x65\163\x74\137\x64\141\164\141\x62\141\x73\145\x5f\147\x72\x6f\165\160"] = "\144\x65\146\141\x75\x6c\164"; $config["\x72\x65\163\164\x5f\153\x65\171\x73\137\x74\x61\x62\x6c\x65"] = "\153\145\171\x73"; $config["\x72\145\163\164\x5f\145\156\x61\x62\154\145\137\x6b\x65\171\163"] = FALSE; $config["\162\x65\x73\x74\x5f\x6b\145\171\137\143\x6f\x6c\x75\155\156"] = "\x6b\145\x79"; $config["\x72\x65\163\164\137\154\x69\x6d\151\x74\x73\137\x6d\145\164\150\x6f\x64"] = "\122\x4f\125\x54\105\x44\137\x55\x52\x4c"; $config["\162\x65\163\164\x5f\x6b\145\x79\x5f\x6c\x65\156\147\164\150"] = 40; $config["\x72\x65\x73\164\x5f\153\145\x79\137\x6e\141\155\x65"] = "\130\x2d\x41\120\111\55\x4b\x45\131"; $config["\x72\x65\x73\x74\137\145\x6e\x61\142\154\145\137\154\x6f\x67\147\x69\x6e\147"] = FALSE; $config["\162\145\x73\x74\x5f\x6c\x6f\x67\163\137\x74\x61\x62\x6c\x65"] = "\154\x6f\x67\x73"; $config["\162\145\163\164\x5f\x65\x6e\141\x62\x6c\x65\x5f\x61\143\x63\x65\163\163"] = FALSE; $config["\162\x65\x73\164\x5f\141\143\143\x65\x73\x73\137\164\x61\x62\154\145"] = "\141\x63\143\x65\x73\163"; $config["\162\x65\x73\x74\137\154\157\x67\163\x5f\x6a\x73\x6f\x6e\137\x70\x61\x72\141\x6d\x73"] = FALSE; $config["\x72\x65\x73\164\137\145\x6e\141\142\154\145\137\x6c\151\155\x69\x74\163"] = FALSE; $config["\x72\x65\163\x74\137\154\151\155\151\x74\x73\x5f\164\x61\x62\154\145"] = "\154\151\x6d\x69\x74\163"; $config["\x72\x65\x73\x74\137\x69\x67\156\x6f\x72\x65\137\x68\164\x74\160\137\141\143\143\145\x70\164"] = FALSE; $config["\x72\145\163\x74\x5f\141\x6a\x61\170\137\x6f\156\154\x79"] = FALSE; $config["\162\145\x73\x74\x5f\154\141\x6e\147\x75\141\147\x65"] = "\145\x6e\147\154\x69\163\150"; $config["\x63\150\145\x63\153\x5f\143\157\x72\163"] = FALSE; $config["\x61\x6c\154\157\x77\145\144\x5f\x63\157\x72\x73\137\x68\x65\141\144\145\162\x73"] = ["\117\x72\x69\147\151\x6e", "\x58\x2d\122\145\161\165\145\163\164\x65\144\55\127\x69\x74\150", "\x43\x6f\x6e\x74\145\x6e\164\x2d\x54\x79\x70\x65", "\x41\143\143\x65\160\164", "\x41\143\143\x65\x73\x73\55\103\x6f\x6e\x74\x72\x6f\x6c\55\122\145\161\165\x65\163\x74\55\115\x65\x74\150\157\x64"]; $config["\x61\x6c\x6c\157\167\145\144\137\143\x6f\x72\163\x5f\155\145\x74\x68\x6f\144\x73"] = ["\107\x45\x54", "\x50\x4f\123\x54", "\117\120\x54\x49\117\116\123", "\120\125\124", "\x50\x41\x54\103\x48", "\104\105\114\x45\124\105"]; $config["\x61\154\x6c\x6f\167\137\141\x6e\x79\x5f\143\x6f\x72\163\137\x64\x6f\155\141\151\x6e"] = FALSE; $config["\141\x6c\x6c\157\x77\x65\x64\x5f\x63\157\162\x73\137\157\x72\x69\147\x69\x6e\x73"] = []; diff --git a/server/original/www/ezwebserver/src/application/config/routes.php b/server/original/www/ezwebserver/src/application/config/routes.php new file mode 100644 index 0000000..1027270 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/config/routes.php @@ -0,0 +1,7 @@ + array("\x67\x72\x69\156\56\147\151\x66", "\61\x39", "\x31\71", "\x67\x72\x69\156"), "\x3a\154\x6f\x6c\x3a" => array("\154\x6f\x6c\x2e\x67\x69\146", "\x31\71", "\x31\x39", "\x4c\117\x4c"), "\72\143\150\145\145\163\x65\72" => array("\143\x68\145\x65\163\145\x2e\147\151\146", "\x31\x39", "\x31\71", "\x63\x68\x65\145\163\145"), "\72\x29" => array("\163\155\151\154\x65\x2e\147\x69\x66", "\x31\x39", "\x31\x39", "\163\155\151\x6c\x65"), "\x3b\x2d\51" => array("\167\151\x6e\153\x2e\147\151\146", "\61\71", "\61\71", "\x77\151\156\x6b"), "\x3b\51" => array("\167\151\156\153\x2e\147\x69\x66", "\61\x39", "\61\71", "\x77\x69\156\x6b"), "\72\163\x6d\151\162\x6b\72" => array("\x73\155\151\162\x6b\x2e\x67\x69\146", "\x31\x39", "\x31\71", "\x73\155\151\162\x6b"), "\72\162\x6f\x6c\x6c\72" => array("\162\x6f\154\x6c\145\171\145\x73\56\147\151\146", "\x31\x39", "\61\71", "\x72\x6f\154\x6c\145\x79\145\x73"), "\x3a\x2d\x53" => array("\x63\157\156\146\165\x73\145\144\56\147\151\x66", "\x31\x39", "\61\71", "\x63\x6f\x6e\x66\165\x73\145\144"), "\x3a\167\x6f\x77\72" => array("\x73\165\162\x70\162\151\x73\145\x2e\147\151\146", "\61\71", "\61\x39", "\163\165\x72\x70\162\x69\163\x65\x64"), "\x3a\x62\165\147\72" => array("\142\x69\147\x73\x75\x72\x70\x72\x69\163\x65\x2e\147\x69\146", "\x31\x39", "\x31\x39", "\142\x69\x67\x20\163\x75\x72\160\162\151\163\x65"), "\72\x2d\x50" => array("\164\157\x6e\147\x75\x65\137\x6c\x61\x75\x67\x68\x2e\147\x69\x66", "\x31\71", "\61\71", "\164\157\156\x67\x75\x65\x20\x6c\x61\x75\147\150"), "\x25\55\x50" => array("\x74\x6f\x6e\147\x75\145\137\162\157\x6c\x6c\145\171\145\x2e\147\x69\x66", "\x31\71", "\x31\x39", "\x74\157\156\x67\x75\145\x20\x72\157\154\x6c\145\x79\145"), "\x3b\55\120" => array("\164\x6f\x6e\x67\x75\x65\x5f\167\151\156\153\56\x67\151\146", "\x31\71", "\61\71", "\164\157\x6e\147\165\x65\x20\167\151\x6e\153"), "\72\x50" => array("\162\141\x73\160\x62\145\x72\162\x79\56\x67\x69\146", "\x31\x39", "\x31\x39", "\x72\x61\x73\160\x62\145\x72\162\171"), "\x3a\x62\x6c\x61\156\153\72" => array("\142\x6c\141\x6e\153\x2e\x67\151\146", "\61\71", "\61\71", "\x62\x6c\141\x6e\x6b\40\163\x74\141\x72\x65"), "\x3a\x6c\157\156\147\72" => array("\x6c\x6f\156\147\146\141\143\x65\x2e\x67\x69\146", "\61\x39", "\61\x39", "\154\157\x6e\147\40\146\x61\x63\x65"), "\x3a\157\150\x68\x3a" => array("\x6f\x68\x68\56\147\x69\146", "\61\x39", "\61\71", "\157\150\x68"), "\72\147\x72\x72\x72\x3a" => array("\147\x72\x72\162\56\147\x69\146", "\x31\x39", "\61\71", "\x67\162\x72\x72"), "\x3a\147\x75\x6c\160\72" => array("\x67\165\x6c\160\x2e\x67\151\146", "\61\x39", "\61\x39", "\x67\x75\154\160"), "\x38\x2d\57" => array("\x6f\150\x6f\x68\56\147\151\146", "\x31\71", "\61\x39", "\157\x68\x20\157\150"), "\x3a\144\x6f\167\156\x3a" => array("\x64\157\167\x6e\145\162\56\147\151\146", "\x31\71", "\x31\x39", "\144\157\167\x6e\145\x72"), "\x3a\x72\x65\x64\72" => array("\145\155\x62\x61\162\x72\141\163\x73\x65\x64\56\x67\151\146", "\61\x39", "\61\x39", "\162\145\x64\40\x66\x61\143\x65"), "\x3a\163\151\143\153\x3a" => array("\x73\x69\143\153\x2e\x67\x69\146", "\61\71", "\x31\71", "\163\x69\143\153"), "\x3a\x73\x68\165\x74\x3a" => array("\163\150\x75\x74\145\171\x65\x2e\x67\151\146", "\61\x39", "\x31\71", "\x73\x68\x75\x74\x20\x65\171\145"), "\72\55\x2f" => array("\x68\x6d\155\56\x67\151\x66", "\61\71", "\61\71", "\x68\x6d\155\155"), "\76\72\x28" => array("\x6d\141\x64\56\147\151\x66", "\x31\71", "\61\x39", "\x6d\141\144"), "\72\x6d\141\144\x3a" => array("\155\141\x64\56\x67\x69\146", "\x31\71", "\61\x39", "\155\x61\x64"), "\x3e\x3a\x2d\50" => array("\141\x6e\x67\162\171\56\147\x69\146", "\x31\71", "\61\71", "\x61\156\147\162\171"), "\72\x61\156\x67\x72\171\x3a" => array("\141\156\147\162\x79\x2e\147\151\146", "\61\x39", "\61\x39", "\141\x6e\147\162\171"), "\x3a\x7a\x69\x70\x3a" => array("\172\151\x70\x2e\x67\151\146", "\61\71", "\61\71", "\x7a\151\x70\160\x65\x72"), "\72\153\x69\163\x73\x3a" => array("\x6b\x69\x73\x73\x2e\x67\151\x66", "\61\x39", "\x31\71", "\153\151\x73\163"), "\x3a\141\150\150\150\72" => array("\163\x68\x6f\x63\x6b\x2e\147\151\146", "\61\71", "\x31\x39", "\163\150\x6f\x63\153"), "\x3a\x63\157\157\x6c\163\155\151\x6c\145\72" => array("\x73\x68\141\x64\x65\137\163\x6d\x69\154\145\x2e\x67\x69\146", "\61\x39", "\61\71", "\x63\x6f\x6f\x6c\x20\163\155\x69\154\x65"), "\x3a\143\x6f\x6f\x6c\x73\155\x69\x72\x6b\x3a" => array("\x73\150\x61\x64\x65\x5f\x73\x6d\x69\x72\x6b\56\147\151\146", "\61\71", "\x31\71", "\x63\157\157\x6c\x20\163\155\x69\162\153"), "\72\x63\157\157\154\147\x72\x69\x6e\x3a" => array("\163\150\x61\144\x65\137\x67\162\x69\x6e\56\147\x69\146", "\x31\x39", "\61\71", "\x63\157\x6f\154\40\x67\162\151\156"), "\72\143\x6f\x6f\x6c\x68\x6d\155\72" => array("\163\150\141\x64\x65\137\x68\155\x6d\x2e\147\x69\146", "\61\71", "\x31\x39", "\143\157\x6f\154\40\150\155\x6d"), "\x3a\143\x6f\x6f\x6c\x6d\x61\144\72" => array("\x73\150\141\144\145\137\x6d\x61\x64\x2e\147\x69\146", "\x31\x39", "\61\x39", "\143\157\x6f\154\40\x6d\x61\144"), "\x3a\143\x6f\157\154\x63\x68\145\145\163\145\72" => array("\163\150\141\x64\145\137\143\x68\x65\x65\163\145\56\x67\151\146", "\x31\71", "\61\71", "\x63\x6f\157\154\x20\143\x68\x65\x65\x73\145"), "\72\166\141\x6d\160\151\x72\145\72" => array("\166\141\155\x70\151\162\145\56\x67\x69\x66", "\61\71", "\61\x39", "\x76\x61\x6d\x70\151\x72\x65"), "\x3a\163\x6e\141\x6b\145\x3a" => array("\x73\156\141\x6b\145\x2e\147\x69\146", "\x31\71", "\x31\71", "\163\156\141\x6b\145"), "\x3a\145\170\143\154\141\151\x6d\72" => array("\145\x78\x63\154\x61\151\155\56\x67\151\x66", "\61\71", "\x31\71", "\145\170\x63\154\141\151\x6d"), "\x3a\161\165\x65\163\x74\151\157\x6e\x3a" => array("\161\x75\145\x73\x74\151\157\x6e\x2e\147\151\146", "\x31\x39", "\61\71", "\x71\x75\145\x73\x74\151\157\156")); diff --git a/server/original/www/ezwebserver/src/application/config/testing/config.ini b/server/original/www/ezwebserver/src/application/config/testing/config.ini new file mode 100644 index 0000000..c0ae6ca --- /dev/null +++ b/server/original/www/ezwebserver/src/application/config/testing/config.ini @@ -0,0 +1,9 @@ +[EzWebServer] +fm_top_dir = "{APPPATH}\dummy_files" +sub_dirs = "" +link_base_dirs = "" +iosenseor_file_path = "{APPPATH}\dummy_files\EzSensor" + +[TestSection] +key1 = "value1" +key2 = "true" diff --git a/server/original/www/ezwebserver/src/application/config/testing/config.php b/server/original/www/ezwebserver/src/application/config/testing/config.php new file mode 100644 index 0000000..515c6d5 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/config/testing/config.php @@ -0,0 +1,7 @@ + "\127\151\156\144\157\167\163\x20\61\x30", "\x77\151\x6e\144\x6f\167\x73\x20\x6e\164\40\x36\56\63" => "\127\x69\156\x64\157\167\x73\40\70\56\61", "\167\151\156\144\x6f\x77\x73\x20\156\x74\x20\x36\56\62" => "\127\x69\156\x64\157\x77\x73\x20\70", "\x77\151\156\144\157\x77\x73\40\x6e\164\40\66\x2e\61" => "\127\x69\x6e\144\x6f\167\163\40\x37", "\167\151\156\144\x6f\167\x73\x20\x6e\x74\x20\x36\x2e\x30" => "\x57\151\x6e\x64\x6f\x77\163\x20\x56\151\x73\164\x61", "\x77\x69\156\x64\157\167\163\x20\156\164\x20\x35\x2e\62" => "\127\151\156\x64\x6f\167\x73\x20\62\60\60\x33", "\167\151\156\144\x6f\167\163\x20\156\164\40\65\x2e\x31" => "\127\x69\x6e\x64\157\x77\163\x20\130\x50", "\167\151\156\x64\x6f\167\163\x20\x6e\164\x20\65\x2e\x30" => "\127\151\156\x64\157\167\x73\x20\62\60\x30\60", "\167\151\x6e\144\x6f\x77\163\40\x6e\x74\x20\64\x2e\x30" => "\x57\x69\156\144\157\x77\163\40\116\x54\x20\64\56\60", "\167\151\156\156\164\x34\56\60" => "\x57\x69\156\x64\x6f\x77\163\40\116\124\x20\64\x2e\x30", "\167\151\156\x6e\164\x20\x34\x2e\60" => "\127\151\156\x64\x6f\x77\x73\40\116\124", "\167\151\x6e\156\164" => "\127\151\x6e\x64\157\167\x73\40\116\x54", "\x77\151\156\x64\157\167\163\40\x39\x38" => "\127\x69\156\x64\157\x77\x73\40\x39\70", "\x77\151\x6e\71\x38" => "\127\x69\156\x64\x6f\x77\163\x20\71\70", "\167\x69\156\x64\x6f\167\163\40\x39\65" => "\127\151\x6e\x64\157\167\163\40\71\x35", "\167\151\x6e\x39\x35" => "\127\x69\x6e\x64\157\167\x73\40\71\x35", "\x77\151\156\x64\157\167\163\x20\160\x68\x6f\156\x65" => "\127\151\x6e\144\x6f\167\163\x20\120\x68\157\156\145", "\167\151\x6e\144\x6f\x77\x73" => "\125\156\x6b\x6e\157\167\x6e\x20\127\x69\x6e\x64\157\x77\x73\40\x4f\x53", "\141\x6e\x64\x72\157\x69\144" => "\101\x6e\x64\x72\157\x69\144", "\142\x6c\x61\143\x6b\142\145\162\162\171" => "\x42\154\141\x63\x6b\102\x65\162\162\x79", "\x69\x70\x68\x6f\x6e\145" => "\x69\x4f\123", "\151\160\x61\x64" => "\151\x4f\123", "\x69\x70\x6f\x64" => "\x69\117\x53", "\x6f\163\40\x78" => "\115\x61\x63\x20\117\123\40\x58", "\x70\x70\x63\x20\155\141\x63" => "\x50\x6f\167\x65\x72\x20\x50\x43\x20\x4d\141\143", "\x66\x72\x65\x65\142\163\144" => "\106\x72\145\x65\x42\123\x44", "\160\x70\x63" => "\115\x61\x63\x69\x6e\164\157\163\x68", "\154\151\156\165\x78" => "\114\151\x6e\x75\170", "\144\x65\142\x69\141\x6e" => "\104\x65\x62\x69\x61\156", "\x73\x75\x6e\157\x73" => "\123\165\156\x20\123\x6f\154\x61\x72\151\x73", "\x62\x65\x6f\x73" => "\x42\145\117\123", "\x61\160\x61\x63\x68\145\142\x65\156\x63\150" => "\101\x70\141\143\150\x65\x42\x65\156\x63\150", "\141\x69\170" => "\x41\x49\130", "\151\x72\x69\x78" => "\x49\x72\151\170", "\157\x73\x66" => "\104\x45\103\x20\117\x53\x46", "\x68\x70\x2d\x75\x78" => "\x48\120\x2d\x55\x58", "\156\x65\x74\142\x73\x64" => "\116\x65\164\x42\x53\x44", "\142\x73\144\x69" => "\102\123\x44\x69", "\157\160\x65\x6e\x62\163\x64" => "\x4f\160\x65\x6e\x42\123\x44", "\x67\x6e\x75" => "\107\116\x55\x2f\x4c\151\x6e\x75\x78", "\165\x6e\x69\x78" => "\125\156\153\x6e\x6f\167\x6e\40\125\x6e\x69\x78\x20\x4f\123", "\x73\x79\155\x62\x69\x61\156" => "\123\171\x6d\142\151\141\156\40\x4f\123"); $browsers = array("\117\x50\x52" => "\117\160\x65\162\x61", "\x46\x6c\157\x63\153" => "\x46\154\x6f\143\x6b", "\105\x64\147\145" => "\123\160\141\x72\x74\x61\156", "\103\150\162\x6f\x6d\x65" => "\x43\150\x72\x6f\x6d\x65", "\117\160\145\x72\141\x2e\52\77\126\145\162\163\x69\x6f\156" => "\x4f\x70\x65\162\x61", "\x4f\x70\145\x72\x61" => "\117\160\145\x72\141", "\x4d\123\111\105" => "\x49\156\164\145\162\x6e\x65\x74\40\x45\170\x70\x6c\x6f\162\x65\x72", "\111\x6e\164\x65\162\156\x65\164\x20\x45\x78\160\x6c\157\x72\x65\x72" => "\x49\x6e\x74\145\x72\156\145\164\40\105\x78\160\x6c\157\162\145\x72", "\124\162\x69\x64\x65\x6e\x74\x2e\52\x20\162\166" => "\x49\x6e\164\x65\x72\156\145\164\40\105\x78\160\x6c\157\x72\145\x72", "\x53\150\x69\x69\162\141" => "\x53\x68\151\x69\162\x61", "\x46\151\x72\x65\146\x6f\170" => "\106\151\162\x65\x66\157\x78", "\103\x68\x69\155\x65\162\x61" => "\x43\x68\x69\155\x65\162\x61", "\120\x68\157\x65\156\x69\x78" => "\x50\x68\x6f\x65\x6e\x69\x78", "\106\x69\162\x65\x62\x69\x72\x64" => "\106\x69\x72\x65\x62\x69\162\144", "\103\x61\x6d\151\156\x6f" => "\103\141\155\x69\156\x6f", "\x4e\x65\164\x73\x63\x61\160\x65" => "\x4e\145\164\163\143\x61\160\145", "\117\155\156\x69\x57\x65\142" => "\x4f\x6d\156\151\127\145\x62", "\123\x61\146\141\162\151" => "\x53\x61\146\x61\162\x69", "\115\157\x7a\x69\154\154\141" => "\x4d\x6f\x7a\151\154\x6c\x61", "\x4b\x6f\x6e\161\x75\145\162\x6f\x72" => "\x4b\x6f\x6e\161\x75\x65\x72\157\x72", "\x69\143\141\x62" => "\x69\103\141\x62", "\x4c\171\x6e\x78" => "\x4c\171\x6e\x78", "\114\x69\x6e\x6b\x73" => "\114\x69\x6e\153\x73", "\x68\157\164\x6a\141\x76\141" => "\x48\157\164\112\141\x76\141", "\x61\155\x61\x79\x61" => "\x41\x6d\x61\171\141", "\111\x42\162\x6f\x77\163\145" => "\111\x42\162\157\x77\x73\145", "\115\141\x78\164\x68\x6f\156" => "\x4d\x61\170\x74\x68\157\156", "\x55\142\165\156\164\165" => "\x55\142\165\156\164\x75\x20\127\145\142\x20\x42\162\x6f\167\x73\145\x72"); $mobiles = array("\155\157\x62\151\x6c\x65\x65\x78\160\154\157\x72\x65\x72" => "\115\157\x62\x69\x6c\145\x20\x45\170\x70\x6c\x6f\162\145\162", "\160\x61\154\x6d\163\157\165\162\x63\x65" => "\x50\141\154\x6d", "\x70\x61\154\155\163\143\x61\160\x65" => "\x50\x61\x6c\155\163\x63\141\x70\x65", "\155\x6f\164\x6f\x72\157\154\141" => "\x4d\x6f\x74\x6f\x72\x6f\x6c\x61", "\x6e\x6f\x6b\x69\141" => "\116\157\x6b\x69\141", "\160\x61\x6c\x6d" => "\120\141\154\155", "\x69\160\150\x6f\x6e\x65" => "\101\x70\160\154\145\x20\x69\x50\x68\x6f\x6e\x65", "\151\160\141\144" => "\151\x50\x61\144", "\x69\160\x6f\144" => "\101\160\160\154\145\40\x69\120\x6f\x64\40\124\157\165\x63\x68", "\x73\157\156\x79" => "\123\157\x6e\x79\40\x45\x72\x69\143\x73\x73\x6f\x6e", "\145\x72\x69\x63\163\163\157\x6e" => "\123\157\x6e\x79\x20\105\x72\151\x63\x73\163\157\x6e", "\142\154\141\x63\x6b\x62\145\x72\x72\x79" => "\102\x6c\141\143\153\102\x65\162\162\x79", "\143\x6f\x63\x6f\x6f\x6e" => "\117\62\x20\103\157\143\157\x6f\156", "\x62\x6c\x61\x7a\x65\162" => "\x54\x72\x65\x6f", "\x6c\147" => "\x4c\x47", "\x61\155\157\151" => "\x41\155\x6f\x69", "\170\144\x61" => "\x58\104\x41", "\x6d\x64\x61" => "\x4d\104\101", "\x76\x61\162\151\157" => "\x56\x61\x72\151\x6f", "\x68\x74\x63" => "\110\x54\x43", "\163\x61\155\x73\x75\156\x67" => "\123\x61\x6d\163\x75\x6e\147", "\x73\150\x61\x72\160" => "\x53\150\141\162\x70", "\163\x69\145\55" => "\123\151\x65\x6d\x65\156\163", "\x61\x6c\143\x61\x74\x65\x6c" => "\101\154\x63\141\164\x65\x6c", "\x62\145\156\161" => "\102\x65\x6e\121", "\x69\160\141\x71" => "\x48\x50\40\x69\x50\141\x71", "\x6d\x6f\x74\x2d" => "\115\157\x74\x6f\x72\x6f\154\141", "\x70\154\141\171\x73\x74\x61\164\x69\x6f\156\40\160\157\x72\164\141\x62\154\x65" => "\x50\154\141\x79\x53\164\141\x74\x69\x6f\x6e\40\x50\157\x72\164\141\142\154\x65", "\160\154\141\171\x73\164\141\164\151\157\x6e\40\63" => "\x50\154\141\x79\123\x74\x61\164\x69\157\x6e\x20\x33", "\160\x6c\x61\x79\x73\164\x61\x74\x69\157\156\40\166\151\x74\141" => "\120\x6c\x61\x79\123\x74\x61\164\151\157\156\x20\126\x69\164\x61", "\x68\x69\160\164\x6f\160" => "\104\141\156\x67\x65\x72\x20\110\151\x70\x74\157\160", "\156\145\x63\x2d" => "\x4e\x45\103", "\x70\x61\156\141\x73\157\156\151\143" => "\x50\141\x6e\141\x73\157\x6e\x69\x63", "\x70\150\151\154\151\x70\163" => "\120\150\x69\154\x69\160\x73", "\x73\x61\147\145\155" => "\x53\x61\x67\x65\155", "\163\141\x6e\x79\157" => "\123\x61\156\x79\x6f", "\x73\160\x76" => "\x53\x50\x56", "\172\x74\145" => "\x5a\124\x45", "\163\145\x6e\144\x6f" => "\x53\145\x6e\x64\157", "\156\x69\156\x74\145\156\x64\157\40\x64\x73\151" => "\116\x69\x6e\x74\x65\156\144\157\40\104\123\x69", "\156\x69\x6e\164\x65\x6e\144\157\40\x64\163" => "\x4e\x69\x6e\x74\x65\x6e\144\157\40\x44\123", "\156\151\156\164\145\x6e\144\157\x20\x33\x64\x73" => "\x4e\x69\156\x74\145\156\x64\157\40\x33\x44\123", "\167\x69\x69" => "\x4e\151\156\x74\x65\156\x64\157\x20\127\151\151", "\157\160\145\156\40\167\x65\142" => "\117\x70\145\x6e\40\x57\145\142", "\157\x70\x65\x6e\x77\145\142" => "\x4f\x70\x65\x6e\x57\145\142", "\141\156\144\162\157\151\x64" => "\x41\x6e\144\162\x6f\x69\x64", "\163\171\155\x62\x69\141\x6e" => "\x53\x79\x6d\x62\151\141\156", "\x53\171\155\142\x69\141\156\x4f\x53" => "\x53\171\155\142\151\x61\x6e\117\123", "\145\154\141\x69\156\145" => "\x50\141\x6c\x6d", "\163\145\162\151\x65\163\x36\60" => "\123\171\x6d\x62\151\x61\x6e\40\x53\x36\x30", "\167\151\156\x64\x6f\167\163\x20\143\145" => "\x57\x69\x6e\144\157\x77\x73\40\x43\x45", "\157\142\x69\x67\x6f" => "\117\x62\151\x67\x6f", "\x6e\145\164\146\x72\157\156\x74" => "\x4e\145\164\146\x72\x6f\156\164\x20\102\162\x6f\167\x73\145\162", "\x6f\160\x65\x6e\167\x61\x76\145" => "\x4f\x70\145\156\167\141\x76\x65\40\102\162\x6f\x77\163\145\x72", "\x6d\157\x62\151\x6c\145\x78\160\x6c\x6f\162\x65\x72" => "\115\x6f\x62\151\154\x65\x20\105\x78\160\154\157\162\x65\x72", "\157\160\x65\162\x61\x6d\x69\x6e\151" => "\x4f\160\x65\162\x61\x20\115\x69\156\x69", "\x6f\x70\145\x72\141\x20\x6d\151\x6e\x69" => "\117\x70\x65\x72\x61\x20\x4d\x69\x6e\151", "\x6f\160\x65\x72\x61\x20\155\157\x62\x69" => "\x4f\160\145\x72\x61\x20\115\x6f\x62\x69\154\x65", "\146\x65\156\156\145\x63" => "\x46\151\162\x65\x66\157\x78\x20\115\157\142\151\x6c\x65", "\x64\x69\x67\x69\164\141\154\x20\160\x61\x74\150\163" => "\x44\x69\147\x69\x74\x61\x6c\x20\120\x61\x74\150\163", "\x61\x76\x61\x6e\x74\x67\x6f" => "\x41\x76\x61\x6e\164\x47\x6f", "\x78\151\x69\x6e\157" => "\130\151\x69\156\157", "\156\x6f\x76\141\162\x72\141" => "\x4e\157\166\141\162\x72\x61\x20\124\x72\141\156\163\143\157\x64\145\162", "\x76\x6f\x64\x61\x66\x6f\x6e\145" => "\126\x6f\x64\141\146\157\156\145", "\144\x6f\x63\x6f\x6d\x6f" => "\116\x54\124\x20\x44\157\x43\157\115\157", "\157\x32" => "\x4f\62", "\155\157\x62\151\154\x65" => "\107\145\x6e\145\162\x69\x63\x20\115\157\x62\151\154\145", "\167\151\x72\x65\x6c\x65\x73\x73" => "\x47\145\156\145\162\x69\143\40\x4d\x6f\x62\151\x6c\145", "\152\62\155\145" => "\x47\145\x6e\x65\162\x69\143\x20\115\157\x62\x69\x6c\x65", "\x6d\x69\x64\160" => "\x47\x65\156\145\x72\151\143\40\115\157\142\x69\x6c\x65", "\x63\154\x64\x63" => "\x47\145\x6e\145\162\151\x63\x20\115\157\142\151\154\x65", "\x75\x70\x2e\x6c\x69\156\x6b" => "\x47\x65\156\x65\162\x69\143\40\115\x6f\x62\x69\154\x65", "\165\x70\x2e\x62\162\x6f\x77\163\145\162" => "\107\145\156\145\x72\151\143\x20\115\157\142\151\154\x65", "\x73\x6d\141\162\x74\160\150\157\x6e\145" => "\x47\145\x6e\145\x72\151\x63\x20\x4d\x6f\142\x69\x6c\145", "\143\x65\154\154\x70\x68\x6f\156\145" => "\107\145\156\145\162\151\x63\x20\115\x6f\x62\151\x6c\x65"); $robots = array("\147\157\x6f\147\154\145\142\157\x74" => "\107\157\157\x67\154\x65\x62\157\164", "\155\x73\x6e\142\x6f\x74" => "\x4d\x53\x4e\102\x6f\x74", "\x62\x61\151\x64\165\x73\160\151\x64\145\162" => "\x42\x61\x69\144\x75\163\160\151\x64\145\162", "\142\151\x6e\147\142\157\164" => "\x42\151\x6e\x67", "\x73\154\x75\162\x70" => "\111\156\153\x74\x6f\x6d\x69\x20\123\154\x75\x72\x70", "\x79\x61\x68\x6f\x6f" => "\x59\x61\x68\157\x6f", "\x61\163\153\x20\152\x65\145\166\x65\x73" => "\x41\x73\153\x20\112\145\x65\166\145\163", "\146\141\163\164\x63\x72\x61\167\x6c\x65\162" => "\106\141\163\164\103\162\x61\167\x6c\x65\162", "\x69\x6e\146\157\163\x65\x65\153" => "\111\x6e\146\157\x53\145\x65\x6b\40\x52\157\142\157\x74\40\x31\x2e\60", "\x6c\171\143\157\163" => "\114\171\143\157\x73", "\x79\141\156\144\x65\170" => "\131\x61\x6e\x64\145\170\102\x6f\164", "\x6d\145\x64\x69\141\160\141\x72\164\x6e\145\162\163\x2d\x67\x6f\x6f\147\154\145" => "\x4d\145\144\151\x61\x50\x61\162\x74\156\145\x72\163\40\107\157\157\x67\x6c\145", "\x43\x52\101\132\x59\127\x45\102\103\x52\101\x57\114\x45\x52" => "\103\x72\141\172\x79\x20\127\145\142\x63\162\141\167\x6c\x65\x72", "\x61\144\163\x62\x6f\x74\55\x67\x6f\x6f\147\x6c\145" => "\101\x64\x73\102\x6f\164\x20\107\x6f\157\147\x6c\145", "\x66\145\x65\144\146\x65\x74\143\x68\145\162\x2d\x67\157\x6f\x67\x6c\x65" => "\106\x65\145\x64\x66\x65\x74\x63\150\145\x72\x20\x47\x6f\157\x67\x6c\x65", "\x63\x75\x72\151\x6f\165\x73\40\147\x65\x6f\x72\x67\145" => "\103\165\x72\x69\157\165\163\40\107\145\157\x72\x67\x65", "\151\x61\137\x61\162\143\x68\151\x76\x65\162" => "\x41\x6c\145\x78\x61\x20\103\x72\x61\x77\x6c\x65\162", "\115\x4a\x31\x32\x62\x6f\x74" => "\115\141\x6a\x65\163\164\151\x63\55\61\x32", "\x55\160\x74\151\155\x65\x62\157\x74" => "\125\x70\164\x69\155\x65\142\x6f\x74"); diff --git a/server/original/www/ezwebserver/src/application/config/version.ini b/server/original/www/ezwebserver/src/application/config/version.ini new file mode 100644 index 0000000..b97baaa --- /dev/null +++ b/server/original/www/ezwebserver/src/application/config/version.ini @@ -0,0 +1,5 @@ +[EzWebServer] +major_version = "3" +minor_version = "0" +build_version = "6" +stage_version = "0" diff --git a/server/original/www/ezwebserver/src/application/config/vterror.php b/server/original/www/ezwebserver/src/application/config/vterror.php new file mode 100644 index 0000000..01216f4 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/config/vterror.php @@ -0,0 +1,7 @@ + VERR_COMMON_SUCCESS, "\145\x72\162\x6f\162\x4d\x65\163\163\141\x67\x65" => "\123\x75\x63\143\145\x73\x73"); $errorMsgs[VERR_COMMON_PERMMITTED] = array("\145\162\x72\x6f\162\103\157\x64\x65" => VERR_COMMON_PERMMITTED, "\145\162\x72\x6f\162\x4d\x65\163\x73\x61\147\145" => "\x4f\x70\x65\162\x61\164\x69\x6f\x6e\40\x6e\157\x74\40\160\x65\x72\x6d\151\164\164\x65\x64"); $errorMsgs[VERR_COMMON_NOFILE] = array("\x65\x72\162\x6f\162\x43\x6f\x64\x65" => VERR_COMMON_NOFILE, "\x65\162\162\157\162\x4d\x65\x73\x73\x61\x67\x65" => "\x4e\157\40\x73\165\143\150\x20\x66\x69\x6c\x65\40\157\x72\x20\x64\151\162\145\x63\164\157\162\171\40\145\x78\x69\x73\x74\163"); $errorMsgs[VERR_COMMON_PROCESS] = array("\x65\162\x72\x6f\162\x43\x6f\x64\145" => VERR_COMMON_PROCESS, "\145\162\x72\157\x72\115\145\x73\x73\x61\147\145" => "\116\x6f\x20\163\165\143\x68\40\x70\162\x6f\x63\x65\163\x73"); $errorMsgs[VERR_COMMON_INTERRUPTED] = array("\145\x72\x72\157\162\x43\157\x64\145" => VERR_COMMON_INTERRUPTED, "\x65\x72\x72\157\162\x4d\x65\x73\x73\x61\147\145" => "\111\x6e\x74\145\162\162\165\160\x74\145\144\40\163\171\163\164\x65\x6d\40\143\141\x6c\x6c"); $errorMsgs[VERR_COMMON_IO] = array("\145\x72\x72\x6f\x72\x43\x6f\x64\x65" => VERR_COMMON_IO, "\x65\162\162\157\x72\x4d\145\163\163\141\147\145" => "\111\57\117\x20\145\x72\x72\157\162"); $errorMsgs[VERR_COMMON_NODEVICE] = array("\x65\162\x72\157\x72\x43\x6f\144\x65" => VERR_COMMON_NODEVICE, "\x65\x72\x72\157\162\x4d\145\163\x73\x61\x67\145" => "\x4e\157\x20\163\x75\x63\150\40\144\145\x76\x69\x63\145\40\157\x72\x20\x61\144\144\162\x65\x73\163"); $errorMsgs[VERR_COMMON_LONG] = array("\145\162\162\157\162\103\x6f\x64\x65" => VERR_COMMON_LONG, "\145\x72\x72\157\x72\x4d\145\163\163\141\147\145" => "\x41\x72\147\x75\155\145\x6e\x74\40\x6c\151\163\164\40\164\x6f\x6f\x20\x6c\157\156\x67"); $errorMsgs[VERR_COMMON_NOEXEC] = array("\x65\162\162\x6f\x72\x43\x6f\x64\145" => VERR_COMMON_NOEXEC, "\x65\x72\162\x6f\x72\x4d\145\163\163\141\147\x65" => "\x45\x78\145\143\x20\146\x6f\162\155\x61\164\x20\x65\x72\162\x6f\x72"); $errorMsgs[VERR_COMMON_BADFILE] = array("\145\x72\x72\x6f\x72\x43\157\x64\x65" => VERR_COMMON_BADFILE, "\145\162\x72\x6f\162\115\145\x73\x73\141\x67\145" => "\x42\141\x64\x20\x66\x69\154\x65\40\156\x75\x6d\x62\145\x72"); $errorMsgs[VERR_COMMON_CHILD] = array("\145\162\x72\x6f\162\103\x6f\144\145" => VERR_COMMON_CHILD, "\x65\162\x72\157\162\x4d\145\163\163\141\x67\x65" => "\x4e\157\40\143\x68\x69\154\144\x20\x70\x72\157\143\x65\163\x73\145\x73"); $errorMsgs[VERR_COMMON_AGAIN] = array("\x65\x72\x72\x6f\162\103\157\144\x65" => VERR_COMMON_AGAIN, "\145\x72\162\x6f\162\x4d\145\163\x73\x61\147\x65" => "\124\162\x79\40\x61\x67\141\x69\156"); $errorMsgs[VERR_COMMON_NOMEMORY] = array("\145\x72\x72\x6f\162\103\x6f\144\145" => VERR_COMMON_NOMEMORY, "\145\x72\162\x6f\x72\115\145\x73\163\141\x67\x65" => "\117\165\x74\40\x6f\146\x20\155\x65\x6d\x6f\162\171"); $errorMsgs[VERR_COMMON_ACCESS] = array("\145\x72\x72\157\x72\103\157\144\x65" => VERR_COMMON_ACCESS, "\145\162\x72\157\162\x4d\145\163\x73\141\147\x65" => "\120\145\162\155\x69\x73\163\151\x6f\156\x20\x64\x65\156\x69\x65\x64"); $errorMsgs[VERR_COMMON_FAULT] = array("\x65\162\x72\x6f\x72\x43\157\144\145" => VERR_COMMON_FAULT, "\x65\162\x72\x6f\x72\x4d\145\x73\x73\x61\147\x65" => "\102\141\x64\40\x61\x64\x64\x72\145\163\163"); $errorMsgs[VERR_COMMON_NOTBLOCK] = array("\x65\x72\162\x6f\x72\x43\x6f\144\x65" => VERR_COMMON_NOTBLOCK, "\145\x72\162\x6f\162\115\x65\163\x73\141\x67\x65" => "\x42\x6c\157\143\x6b\40\x64\x65\166\151\143\145\40\162\145\x71\x75\151\x72\x65\x64"); $errorMsgs[VERR_COMMON_BUSY] = array("\x65\162\x72\157\x72\x43\x6f\x64\x65" => VERR_COMMON_BUSY, "\145\x72\162\x6f\162\115\x65\x73\x73\x61\147\x65" => "\104\145\166\x69\143\x65\x20\x6f\x72\x20\162\145\163\157\x75\x72\x63\145\x20\142\165\163\x79"); $errorMsgs[VERR_COMMON_INVALID_FUNCTION] = array("\145\x72\x72\157\162\103\157\x64\x65" => VERR_COMMON_INVALID_FUNCTION, "\145\162\162\157\x72\115\145\163\x73\x61\147\145" => "\x49\x6e\143\157\162\x72\145\x63\164\x20\146\x75\156\x63\x74\151\x6f\x6e"); $errorMsgs[VERR_COMMON_XDEVICE] = array("\x65\x72\x72\157\x72\103\x6f\x64\145" => VERR_COMMON_XDEVICE, "\145\162\162\x6f\x72\115\145\163\x73\141\147\145" => "\x43\162\157\163\x73\x2d\144\x65\166\151\143\145\40\x6c\151\156\x6b"); $errorMsgs[VERR_COMMON_NOTDIR] = array("\145\x72\x72\157\162\x43\x6f\144\145" => VERR_COMMON_NOTDIR, "\x65\x72\x72\x6f\162\115\x65\x73\163\x61\147\x65" => "\116\x6f\164\x20\141\40\x64\151\x72\145\x63\x74\x6f\162\171"); $errorMsgs[VERR_COMMON_INVALID] = array("\145\162\162\157\162\x43\157\144\x65" => VERR_COMMON_INVALID, "\x65\x72\162\x6f\x72\x4d\145\163\163\x61\x67\x65" => "\x49\156\166\x61\154\151\144\40\x61\x72\x67\165\155\x65\156\164"); $errorMsgs[VERR_COMMON_FILE_OVERFLOW] = array("\x65\162\x72\157\x72\103\157\144\145" => VERR_COMMON_FILE_OVERFLOW, "\x65\x72\162\x6f\162\115\145\163\163\x61\147\145" => "\106\151\x6c\x65\40\x74\141\142\x6c\145\40\x6f\x76\x65\162\146\154\x6f\x77"); $errorMsgs[VERR_COMMON_MANY_FILE] = array("\x65\162\162\x6f\x72\103\x6f\144\145" => VERR_COMMON_MANY_FILE, "\145\x72\162\157\162\x4d\145\163\x73\x61\147\x65" => "\124\157\x6f\x20\x6d\x61\156\171\40\x6f\160\x65\156\40\x66\x69\154\x65\163"); $errorMsgs[VERR_COMMON_TYPEWRITER] = array("\145\162\x72\157\x72\103\157\x64\145" => VERR_COMMON_TYPEWRITER, "\145\162\162\x6f\x72\115\145\x73\x73\141\x67\145" => "\x4e\157\x74\40\141\x20\164\x79\160\x65\x77\162\151\164\x65\162"); $errorMsgs[VERR_COMMON_TEXT_BUSY] = array("\x65\x72\162\157\x72\x43\x6f\144\145" => VERR_COMMON_TEXT_BUSY, "\x65\162\x72\x6f\162\x4d\x65\163\163\x61\x67\145" => "\x54\145\170\164\40\x66\151\154\x65\40\x62\165\163\x79"); $errorMsgs[VERR_COMMON_FILE_BIG] = array("\145\162\162\157\x72\x43\x6f\144\145" => VERR_COMMON_FILE_BIG, "\145\x72\162\x6f\x72\115\145\163\x73\141\147\145" => "\x46\151\x6c\x65\x20\x74\x6f\157\x20\154\x61\162\147\145"); $errorMsgs[VERR_COMMON_NOSPACE] = array("\x65\x72\162\157\162\x43\157\144\145" => VERR_COMMON_NOSPACE, "\145\162\162\157\162\115\x65\163\163\141\x67\145" => "\116\157\40\163\x70\x61\x63\x65\40\x6c\x65\146\x74\40\x6f\x6e\40\144\145\x76\x69\x63\x65"); $errorMsgs[VERR_COMMON_ILLSEEK] = array("\145\x72\162\157\162\103\157\144\x65" => VERR_COMMON_ILLSEEK, "\145\162\x72\x6f\x72\115\145\163\x73\141\147\x65" => "\111\154\154\x65\147\x61\x6c\40\x73\x65\x65\153"); $errorMsgs[VERR_COMMON_READONLY] = array("\145\x72\162\157\x72\103\157\x64\x65" => VERR_COMMON_READONLY, "\x65\162\162\157\162\115\145\x73\x73\x61\147\x65" => "\122\145\141\144\x2d\157\156\x6c\x79\x20\146\x69\x6c\145\40\163\171\163\164\145\x6d"); $errorMsgs[VERR_COMMON_LINK] = array("\x65\162\x72\157\x72\103\157\144\145" => VERR_COMMON_LINK, "\x65\x72\x72\157\162\115\x65\x73\163\141\x67\145" => "\124\157\157\x20\155\x61\156\x79\x20\x6c\151\156\x6b\163"); $errorMsgs[VERR_COMMON_PIPE] = array("\x65\x72\x72\x6f\162\x43\x6f\144\x65" => VERR_COMMON_PIPE, "\x65\x72\162\157\162\x4d\x65\x73\163\x61\147\145" => "\x42\162\x6f\x6b\145\156\x20\160\x69\160\x65"); $errorMsgs[VERR_COMMON_DOMAIN] = array("\145\162\162\157\162\103\x6f\144\145" => VERR_COMMON_DOMAIN, "\145\162\162\157\x72\x4d\x65\163\x73\141\x67\145" => "\x4d\x61\164\x68\40\141\x72\147\x75\x6d\145\x6e\164\x20\157\165\164\x20\x6f\x66\40\144\x6f\155\x61\151\x6e\x20\x6f\146\40\x66\165\x6e\x63\x74\151\x6f\x6e"); $errorMsgs[VERR_COMMON_MATH] = array("\145\162\162\x6f\162\x43\x6f\x64\145" => VERR_COMMON_MATH, "\x65\x72\x72\x6f\162\x4d\145\163\163\x61\x67\x65" => "\x4d\141\x74\150\x20\162\145\x73\x75\x6c\164\40\156\x6f\164\40\x72\145\160\x72\145\x73\x65\x6e\x74\141\x62\154\x65"); $errorMsgs[VERR_COMMON_BFONT] = array("\145\162\162\157\x72\103\x6f\144\145" => VERR_COMMON_BFONT, "\145\x72\162\x6f\162\115\x65\163\x73\x61\147\x65" => "\x42\141\x64\40\146\x6f\x6e\x74\40\x66\x69\154\x65\x20\146\157\162\x6d\141\164"); $errorMsgs[VERR_COMMON_NOSTR] = array("\x65\x72\x72\x6f\162\x43\x6f\144\x65" => VERR_COMMON_NOSTR, "\145\162\162\157\162\115\145\x73\x73\141\147\x65" => "\x44\x65\166\x69\x63\x65\x20\156\x6f\164\x20\141\40\163\164\x72\145\x61\x6d"); $errorMsgs[VERR_COMMON_NODATA] = array("\x65\162\x72\x6f\162\x43\157\x64\x65" => VERR_COMMON_NODATA, "\x65\162\162\157\162\x4d\x65\x73\163\141\x67\x65" => "\x4e\157\x20\163\165\143\150\40\x64\141\x74\141\x20\x65\170\x69\163\x74\163"); $errorMsgs[VERR_COMMON_TIME] = array("\x65\x72\x72\x6f\162\x43\157\x64\x65" => VERR_COMMON_TIME, "\x65\x72\162\x6f\162\115\145\163\x73\141\147\145" => "\124\151\155\x65\162\x20\x65\170\x70\151\x72\x65\144"); $errorMsgs[VERR_COMMON_NOSTREAM] = array("\x65\162\x72\x6f\x72\103\157\144\x65" => VERR_COMMON_NOSTREAM, "\x65\x72\x72\157\x72\115\145\x73\x73\x61\x67\145" => "\117\165\164\40\x6f\146\x20\x73\x74\162\x65\141\x6d\163\x20\162\x65\163\157\x75\162\x63\x65\163"); $errorMsgs[VERR_COMMON_NONETWORK] = array("\145\x72\x72\x6f\162\103\x6f\144\145" => VERR_COMMON_NONETWORK, "\x65\x72\162\157\x72\115\145\163\x73\141\147\x65" => "\115\141\143\150\x69\x6e\145\40\x69\163\40\156\157\x74\x20\157\156\x20\164\x68\x65\40\x6e\x65\164\x77\x6f\x72\x6b"); $errorMsgs[VERR_COMMON_NOPACKAGE] = array("\145\162\162\157\162\x43\157\144\145" => VERR_COMMON_NOPACKAGE, "\145\162\x72\157\162\115\145\x73\x73\141\147\145" => "\x50\141\x63\153\141\x67\145\40\x6e\157\164\40\x69\156\163\x74\x61\x6c\x6c\145\144"); $errorMsgs[VERR_COMMON_REMOTE] = array("\x65\x72\162\x6f\x72\103\157\x64\145" => VERR_COMMON_REMOTE, "\x65\162\x72\x6f\162\x4d\145\163\163\141\147\x65" => "\117\x62\152\x65\143\164\x20\151\x73\40\x72\x65\155\x6f\x74\x65"); $errorMsgs[VERR_COMMON_NOLINK] = array("\145\162\x72\x6f\x72\x43\x6f\x64\145" => VERR_COMMON_NOLINK, "\145\162\162\x6f\162\x4d\x65\163\x73\x61\x67\145" => "\114\x69\x6e\x6b\40\x68\141\163\x20\142\145\x65\156\x20\163\x65\166\145\162\145\144"); $errorMsgs[VERR_COMMON_ADVERTISE] = array("\145\162\162\157\162\103\x6f\144\145" => VERR_COMMON_ADVERTISE, "\x65\162\x72\x6f\162\115\x65\x73\x73\141\x67\145" => "\x41\144\x76\145\x72\x74\151\x73\x65\x20\x65\162\x72\157\x72"); $errorMsgs[VERR_COMMON_SRMOUNT] = array("\x65\162\162\x6f\x72\103\157\144\145" => VERR_COMMON_SRMOUNT, "\x65\162\162\x6f\162\115\x65\x73\x73\x61\x67\145" => "\123\162\x6d\157\x75\156\x74\40\145\x72\x72\x6f\162"); $errorMsgs[VERR_COMMON_COMMUNICATION] = array("\x65\x72\x72\x6f\162\103\x6f\144\145" => VERR_COMMON_COMMUNICATION, "\145\162\x72\x6f\162\115\145\163\163\141\147\x65" => "\103\157\155\x6d\x75\x6e\x69\x63\141\164\151\157\x6e\x20\x65\162\x72\157\x72\40\157\156\x20\163\145\156\x64"); $errorMsgs[VERR_COMMON_PROTOCOL] = array("\145\162\162\157\162\x43\157\144\x65" => VERR_COMMON_PROTOCOL, "\x65\x72\x72\x6f\162\115\145\x73\163\x61\x67\145" => "\120\x72\157\x74\157\x63\x6f\154\x20\145\x72\x72\157\162"); $errorMsgs[VERR_COMMON_MULTIHOP] = array("\x65\162\x72\157\x72\x43\157\144\x65" => VERR_COMMON_MULTIHOP, "\145\x72\x72\157\x72\115\x65\163\163\141\x67\x65" => "\115\165\154\164\151\x68\157\x70\x20\x61\x74\x74\145\x6d\x70\164\x65\x64"); $errorMsgs[VERR_COMMON_BADMSG] = array("\145\162\162\157\162\x43\157\x64\x65" => VERR_COMMON_BADMSG, "\145\162\x72\157\162\115\x65\x73\x73\x61\x67\x65" => "\x4e\157\x74\40\x61\40\x64\141\x74\141\x20\155\x65\x73\163\141\147\x65"); $errorMsgs[VERR_COMMON_OVERFLOW] = array("\145\x72\162\157\x72\x43\x6f\144\145" => VERR_COMMON_OVERFLOW, "\x65\162\x72\x6f\162\x4d\145\x73\x73\141\147\x65" => "\x56\x61\x6c\x75\x65\40\164\x6f\157\40\x6c\x61\162\147\145\40\x66\157\162\x20\x64\145\146\x69\156\145\x64\x20\x64\141\164\141\40\x74\171\160\145"); $errorMsgs[VERR_COMMON_NOTUNIQUE] = array("\145\162\162\157\162\103\x6f\144\145" => VERR_COMMON_NOTUNIQUE, "\145\x72\162\x6f\162\x4d\x65\163\x73\x61\147\x65" => "\x4e\x61\155\x65\40\x6e\x6f\x74\40\165\156\151\x71\165\x65\40\157\156\40\156\x65\164\x77\x6f\x72\153"); $errorMsgs[VERR_COMMON_FILEDSECRIPTOR] = array("\x65\162\162\157\162\x43\x6f\144\x65" => VERR_COMMON_FILEDSECRIPTOR, "\x65\162\162\x6f\x72\115\x65\x73\163\141\147\x65" => "\x46\x69\154\x65\x20\144\145\x73\x63\162\151\160\x74\x6f\162\x20\x69\x6e\40\142\141\144\x20\163\164\x61\164\145"); $errorMsgs[VERR_COMMON_REMOTE_CHANGED] = array("\x65\162\x72\157\162\103\x6f\x64\x65" => VERR_COMMON_REMOTE_CHANGED, "\145\x72\x72\x6f\162\x4d\x65\x73\163\141\147\145" => "\122\x65\155\157\164\145\x20\x61\144\144\x72\145\163\x73\40\x63\150\141\156\147\145\144"); $errorMsgs[VERR_COMMON_LIBACCESS] = array("\145\x72\x72\x6f\162\x43\157\144\145" => VERR_COMMON_LIBACCESS, "\x65\x72\162\157\162\115\145\x73\163\x61\x67\x65" => "\103\141\x6e\156\157\x74\40\x61\143\143\145\x73\x73\x20\141\40\156\145\145\x64\145\144\x20\x73\x68\141\162\x65\144\40\x6c\x69\x62\162\141\x72\x79"); $errorMsgs[VERR_COMMON_LIBBAD] = array("\145\162\162\x6f\x72\103\x6f\144\145" => VERR_COMMON_LIBBAD, "\x65\162\162\157\162\115\145\x73\x73\141\147\145" => "\x41\x63\x63\x65\163\163\x69\x6e\x67\40\x61\x20\x63\x6f\162\x72\165\160\x74\145\x64\40\163\150\x61\162\x65\x64\x20\x6c\x69\142\x72\141\x72\171"); $errorMsgs[VERR_COMMON_LIBSECTION] = array("\x65\162\x72\157\162\103\x6f\144\145" => VERR_COMMON_LIBSECTION, "\145\162\162\157\x72\115\145\163\x73\x61\147\x65" => "\x2e\x6c\x69\x62\40\x73\145\143\164\x69\x6f\x6e\x20\151\156\x20\x61\56\157\x75\x74\40\143\x6f\162\x72\165\x70\164\145\x64"); $errorMsgs[VERR_COMMON_LIBMAX] = array("\145\x72\162\157\162\x43\x6f\144\145" => VERR_COMMON_LIBMAX, "\x65\x72\x72\157\x72\115\x65\x73\163\x61\x67\x65" => "\101\164\x74\x65\155\x70\164\151\x6e\147\x20\x74\157\40\x6c\151\x6e\153\40\x69\x6e\40\x74\157\157\x20\155\141\x6e\x79\40\163\x68\x61\x72\x65\x64\40\154\x69\x62\x72\x61\162\x69\x65\163"); $errorMsgs[VERR_COMMON_LIBEXEC] = array("\145\x72\162\x6f\162\103\x6f\144\x65" => VERR_COMMON_LIBEXEC, "\145\x72\162\x6f\x72\x4d\145\x73\163\141\147\145" => "\x43\x61\156\x6e\x6f\x74\40\x65\170\145\143\x20\x61\x20\x73\x68\x61\162\145\x64\40\x6c\x69\142\x72\141\162\x79\x20\144\151\x72\x65\x63\x74\154\x79"); $errorMsgs[VERR_COMMON_ILSEQUENCE] = array("\145\162\x72\157\162\x43\x6f\144\145" => VERR_COMMON_ILSEQUENCE, "\145\x72\162\157\x72\x4d\x65\163\x73\x61\x67\145" => "\111\x6c\154\145\x67\141\154\x20\x62\x79\x74\x65\x20\x73\145\x71\165\x65\156\x63\x65"); $errorMsgs[VERR_COMMON_RESTART] = array("\x65\162\162\157\x72\103\157\x64\145" => VERR_COMMON_RESTART, "\145\x72\162\x6f\x72\115\145\x73\163\x61\x67\145" => "\111\x6e\x74\x65\162\162\x75\160\x74\145\144\x20\163\171\163\164\145\155\x20\143\141\x6c\x6c\x20\x73\150\x6f\x75\x6c\x64\40\x62\x65\40\162\x65\163\x74\141\x72\x74\145\x64"); $errorMsgs[VERR_COMMON_STREAMPIPE] = array("\x65\x72\x72\x6f\x72\x43\157\x64\145" => VERR_COMMON_STREAMPIPE, "\145\162\x72\157\162\115\145\x73\163\x61\147\x65" => "\123\164\162\x65\x61\155\163\x20\160\151\160\x65\x20\145\162\x72\x6f\162"); $errorMsgs[VERR_COMMON_USERS] = array("\145\x72\x72\x6f\x72\103\x6f\144\x65" => VERR_COMMON_USERS, "\145\162\162\157\162\115\x65\x73\163\141\147\145" => "\124\x6f\157\40\155\141\156\171\x20\x75\x73\145\162\x73"); $errorMsgs[VERR_COMMON_NOTSOCKET] = array("\x65\x72\162\157\x72\103\x6f\x64\145" => VERR_COMMON_NOTSOCKET, "\145\x72\x72\157\162\115\145\x73\163\141\x67\145" => "\123\157\x63\x6b\x65\x74\40\157\x70\145\162\141\x74\x69\x6f\156\40\157\x6e\40\156\157\x6e\55\163\157\x63\x6b\x65\164"); $errorMsgs[VERR_COMMON_MSGSIZE] = array("\145\162\x72\x6f\162\103\157\144\x65" => VERR_COMMON_MSGSIZE, "\145\162\162\157\162\x4d\x65\x73\163\x61\x67\x65" => "\115\x65\x73\x73\141\x67\145\40\x74\157\157\x20\x6c\x6f\x6e\x67"); $errorMsgs[VERR_COMMON_PROTOTYPE] = array("\145\162\x72\157\162\103\x6f\144\x65" => VERR_COMMON_PROTOTYPE, "\145\x72\162\x6f\162\x4d\145\163\x73\141\147\145" => "\x50\x72\x6f\x74\157\143\157\154\x20\x77\162\157\156\x67\x20\164\x79\x70\x65\40\146\157\x72\40\x73\x6f\x63\153\145\164"); $errorMsgs[VERR_COMMON_NOPROTOCOL] = array("\145\162\x72\157\162\x43\x6f\x64\x65" => VERR_COMMON_NOPROTOCOL, "\145\162\162\157\162\115\145\x73\x73\x61\147\145" => "\120\162\x6f\x74\157\143\x6f\154\x20\x6e\157\x74\x20\141\x76\141\151\154\x61\142\154\x65"); $errorMsgs[VERR_COMMON_PROTONOSUPPORT] = array("\x65\162\x72\157\162\103\157\x64\x65" => VERR_COMMON_PROTONOSUPPORT, "\x65\x72\x72\x6f\162\115\145\x73\163\x61\147\x65" => "\x50\x72\x6f\164\157\x63\x6f\154\40\x6e\157\164\x20\163\165\x70\x70\x6f\x72\x74\145\x64"); $errorMsgs[VERR_COMMON_SOCKET_NOSUPPORT] = array("\145\x72\x72\x6f\162\x43\157\144\145" => VERR_COMMON_SOCKET_NOSUPPORT, "\x65\x72\162\157\x72\115\145\163\x73\x61\147\x65" => "\x53\x6f\x63\x6b\145\164\40\164\171\x70\x65\x20\156\x6f\x74\40\x73\165\160\x70\x6f\x72\x74\145\x64"); $errorMsgs[VERR_COMMON_OPERATION_NOTSUPPORT] = array("\145\x72\x72\157\162\103\x6f\x64\x65" => VERR_COMMON_OPERATION_NOTSUPPORT, "\145\x72\162\x6f\x72\115\145\163\163\141\147\145" => "\117\160\x65\x72\141\164\x69\157\x6e\40\x6e\x6f\164\x20\163\165\160\160\x6f\162\x74\145\144\40\157\x6e\x20\164\x72\141\x6e\x73\160\x6f\162\164\40\145\156\x64\x70\x6f\151\x6e\x74"); $errorMsgs[VERR_COMMON_PROTOCOL_NOSUPPORT] = array("\x65\162\x72\157\162\103\x6f\144\x65" => VERR_COMMON_PROTOCOL_NOSUPPORT, "\145\162\162\157\x72\115\145\x73\163\x61\147\x65" => "\120\x72\157\164\x6f\143\157\154\x20\x66\x61\x6d\151\154\x79\x20\x6e\x6f\164\40\163\x75\x70\x70\157\162\x74\145\x64"); $errorMsgs[VERR_COMMON_ADDRESS_NOSUPPORT] = array("\x65\162\x72\157\x72\103\157\144\x65" => VERR_COMMON_ADDRESS_NOSUPPORT, "\x65\x72\x72\157\x72\115\145\163\x73\141\147\145" => "\101\144\x64\x72\x65\x73\163\x20\x66\x61\x6d\x69\x6c\171\x20\156\x6f\x74\40\163\x75\x70\x70\x6f\x72\x74\x65\x64\40\142\171\40\x70\162\157\164\157\x63\x6f\154"); $errorMsgs[VERR_COMMON_ADDRESS_INUSE] = array("\145\x72\x72\157\x72\x43\157\144\x65" => VERR_COMMON_ADDRESS_INUSE, "\145\x72\x72\157\162\x4d\x65\x73\163\141\x67\x65" => "\x41\x64\x64\162\x65\163\163\40\141\x6c\x72\145\x61\144\171\x20\151\x6e\40\x75\163\x65"); $errorMsgs[VERR_COMMON_ADDRESS_NOTAVAIL] = array("\x65\162\x72\157\162\x43\x6f\x64\x65" => VERR_COMMON_ADDRESS_NOTAVAIL, "\x65\162\x72\x6f\162\115\x65\x73\x73\x61\147\x65" => "\x43\141\x6e\156\157\x74\40\141\163\163\151\147\156\40\162\x65\x71\165\x65\x73\x74\145\x64\x20\x61\x64\x64\x72\x65\163\163"); $errorMsgs[VERR_COMMON_NETWORK_DOWN] = array("\x65\x72\x72\157\x72\103\x6f\x64\145" => VERR_COMMON_NETWORK_DOWN, "\x65\162\x72\x6f\162\x4d\x65\163\163\x61\147\145" => "\x4e\x65\x74\x77\x6f\x72\153\x20\x69\x73\x20\x64\x6f\x77\156"); $errorMsgs[VERR_COMMON_NETWORK_UNREACH] = array("\145\x72\162\x6f\162\x43\157\x64\145" => VERR_COMMON_NETWORK_UNREACH, "\145\x72\162\x6f\162\x4d\x65\x73\x73\141\147\145" => "\x4e\145\164\167\x6f\x72\153\x20\151\163\40\165\156\162\x65\x61\x63\x68\141\x62\154\145"); $errorMsgs[VERR_COMMON_NETWORK_RESET] = array("\x65\162\162\157\162\103\x6f\x64\x65" => VERR_COMMON_NETWORK_RESET, "\x65\x72\162\x6f\162\115\x65\x73\163\x61\147\145" => "\116\145\164\167\157\162\153\40\144\162\157\x70\160\x65\x64\x20\x63\157\x6e\x6e\x65\x63\164\x69\157\x6e\x20\x62\x65\x63\x61\x75\163\x65\x20\x6f\146\40\x72\x65\163\x65\164"); $errorMsgs[VERR_COMMON_CONNECTION_BORTED] = array("\x65\162\x72\157\162\103\157\x64\145" => VERR_COMMON_CONNECTION_BORTED, "\145\x72\x72\x6f\x72\x4d\145\x73\163\x61\x67\145" => "\x53\x6f\146\164\x77\x61\162\145\x20\x63\x61\x75\x73\x65\x64\40\143\157\x6e\156\x65\x63\164\151\157\x6e\x20\141\x62\x6f\x72\164"); $errorMsgs[VERR_COMMON_NOBUFFER] = array("\x65\x72\162\157\x72\103\157\x64\145" => VERR_COMMON_NOBUFFER, "\145\162\x72\x6f\x72\115\x65\163\x73\141\147\145" => "\116\157\40\142\x75\146\x66\145\x72\40\163\160\141\143\x65\40\x61\166\x61\151\154\x61\142\154\145"); $errorMsgs[VERR_COMMON_NOTCONNECTION] = array("\x65\162\162\157\x72\103\x6f\x64\145" => VERR_COMMON_NOTCONNECTION, "\145\x72\162\x6f\162\115\x65\x73\163\141\147\145" => "\124\162\141\x6e\163\160\x6f\162\x74\40\x65\x6e\144\160\157\151\x6e\x74\x20\151\x73\40\x6e\157\164\x20\x63\x6f\x6e\x6e\145\143\x74\x65\x64"); $errorMsgs[VERR_COMMON_SHUTDOWN] = array("\x65\x72\162\157\x72\x43\x6f\144\x65" => VERR_COMMON_SHUTDOWN, "\145\162\x72\157\x72\115\145\163\163\x61\x67\145" => "\103\x61\x6e\x6e\157\164\x20\163\145\156\x64\x20\x61\146\x74\x65\162\x20\164\x72\141\x6e\x73\160\x6f\162\164\x20\145\x6e\144\x70\157\151\156\164\x20\163\x68\x75\x74\x64\x6f\x77\x6e"); $errorMsgs[VERR_COMMON_REFERENCE] = array("\x65\x72\162\157\x72\103\x6f\x64\145" => VERR_COMMON_REFERENCE, "\x65\x72\162\157\162\x4d\145\163\163\x61\147\x65" => "\x54\x6f\x6f\40\x6d\x61\156\x79\x20\162\x65\146\145\162\145\156\143\145\163\72\x20\x63\141\x6e\156\157\164\40\x73\160\x6c\x69\x63\145"); $errorMsgs[VERR_COMMON_TIMEOUT] = array("\145\162\x72\x6f\x72\103\x6f\x64\x65" => VERR_COMMON_TIMEOUT, "\x65\x72\x72\157\162\115\x65\163\163\x61\147\x65" => "\x43\x6f\156\156\x65\143\164\151\x6f\x6e\40\164\x69\x6d\x65\144\x20\157\165\x74"); $errorMsgs[VERR_COMMON_CONNECTION_REFUSE] = array("\145\162\162\x6f\x72\103\157\x64\x65" => VERR_COMMON_CONNECTION_REFUSE, "\145\162\x72\157\162\x4d\x65\163\163\x61\147\x65" => "\x43\x6f\156\156\145\143\x74\x69\157\x6e\x20\162\x65\146\x75\x73\145\144"); $errorMsgs[VERR_COMMON_HOSTDOWN] = array("\x65\162\x72\x6f\x72\103\x6f\144\x65" => VERR_COMMON_HOSTDOWN, "\145\162\x72\x6f\x72\115\x65\163\163\141\x67\x65" => "\110\157\163\x74\40\x69\x73\x20\144\157\167\156"); $errorMsgs[VERR_COMMON_HOSTUNREACH] = array("\145\162\x72\157\162\103\157\144\145" => VERR_COMMON_HOSTUNREACH, "\x65\162\162\x6f\x72\115\x65\163\x73\x61\147\x65" => "\x4e\157\40\162\157\x75\x74\x65\x20\x74\157\x20\150\x6f\x73\164"); $errorMsgs[VERR_COMMON_ALREADY] = array("\145\162\x72\157\162\103\157\144\x65" => VERR_COMMON_ALREADY, "\145\162\162\157\162\115\x65\x73\163\141\x67\145" => "\x4f\160\145\x72\141\164\x69\x6f\156\40\141\x6c\162\145\141\x64\171\40\x69\156\40\160\162\157\x67\162\145\163\x73"); $errorMsgs[VERR_COMMON_INPROGRESS] = array("\145\x72\162\x6f\162\103\x6f\x64\x65" => VERR_COMMON_INPROGRESS, "\x65\x72\x72\157\162\x4d\x65\163\x73\x61\147\x65" => "\x4f\160\x65\x72\141\x74\x69\157\x6e\40\156\x6f\x77\40\x69\x6e\40\160\x72\157\x67\162\x65\x73\x73"); $errorMsgs[VERR_COMMON_STRUCTURE_CLEAN] = array("\145\x72\x72\157\x72\103\157\144\145" => VERR_COMMON_STRUCTURE_CLEAN, "\x65\x72\x72\157\162\x4d\145\x73\163\x61\147\145" => "\x53\x74\x72\165\x63\164\165\x72\x65\40\x6e\x65\x65\x64\x73\40\143\x6c\x65\141\156\151\x6e\147"); $errorMsgs[VERR_COMMON_NAMED] = array("\x65\162\x72\157\x72\103\x6f\x64\x65" => VERR_COMMON_NAMED, "\x65\162\162\x6f\x72\115\x65\163\163\141\147\145" => "\111\x73\x20\x61\x20\x6e\x61\155\x65\x64\40\164\171\160\145\x20\x66\151\154\145"); $errorMsgs[VERR_COMMON_LICENSE] = array("\x65\x72\x72\x6f\x72\103\157\x64\x65" => VERR_COMMON_LICENSE, "\145\162\162\157\x72\x4d\x65\x73\x73\x61\147\x65" => "\111\x6e\x76\141\154\151\x64\x20\x6c\151\143\x65\x6e\163\x65\56"); $errorMsgs[VERR_COMMON_OVERLAP] = array("\145\162\162\157\162\103\157\x64\x65" => VERR_COMMON_OVERLAP, "\x65\162\x72\157\162\x4d\145\163\163\141\147\145" => "\117\x76\145\x72\154\141\160\x20\104\x61\x74\x61"); $errorMsgs[VERR_COMMON_LOCKFAILED] = array("\145\162\162\x6f\162\103\157\144\145" => VERR_COMMON_LOCKFAILED, "\145\162\x72\157\x72\115\145\163\x73\x61\x67\145" => "\x54\x72\171\x6c\x6f\143\x6b\40\x66\x61\x69\154\145\144\x20\167\150\x69\x6c\x65\x20\x6f\x70\x65\156\x69\x6e\x67\x20\x64\145\x76\151\143\145"); $errorMsgs[VERR_COMMON_RANGE] = array("\145\x72\162\157\x72\x43\157\144\145" => VERR_COMMON_RANGE, "\x65\162\x72\157\162\x4d\145\163\163\141\147\145" => "\x4f\165\164\40\157\146\x20\x72\141\x6e\x67\145\40\126\141\154\165\145"); $errorMsgs[VERR_COMMON_TYPE_CONVERSION] = array("\145\162\x72\x6f\162\x43\x6f\144\145" => VERR_COMMON_TYPE_CONVERSION, "\x65\x72\162\157\162\x4d\x65\163\x73\141\147\x65" => "\x44\x61\164\141\x20\164\x79\160\145\40\143\x6f\x6e\x76\145\x72\163\151\157\156\x20\145\162\162\x6f\162"); $errorMsgs[VERR_COMMON_REJECTED] = array("\145\162\x72\x6f\162\x43\x6f\x64\x65" => VERR_COMMON_REJECTED, "\145\162\x72\x6f\x72\115\x65\163\163\141\147\145" => "\x52\x65\152\x65\143\164\145\144"); $errorMsgs[VERR_COMMON_USER_CANCELED] = array("\x65\162\162\x6f\x72\103\157\x64\x65" => VERR_COMMON_USER_CANCELED, "\x65\162\162\157\x72\x4d\145\163\163\141\147\145" => "\x55\163\x65\x72\x20\x63\x61\x6e\x63\145\154\145\x64"); $errorMsgs[VERR_COMMON_SOCKET_SUCCESS] = array("\x65\x72\x72\x6f\x72\x43\x6f\144\145" => VERR_COMMON_SOCKET_SUCCESS, "\145\x72\162\x6f\162\x4d\145\x73\163\x61\x67\145" => "\123\x75\x63\143\145\x73\163"); $errorMsgs[VERR_COMMON_SOCKET_REFUSED] = array("\145\x72\x72\157\162\x43\157\144\x65" => VERR_COMMON_SOCKET_REFUSED, "\145\x72\162\x6f\162\115\145\x73\163\x61\x67\145" => "\x54\150\x65\40\x63\157\x6e\x6e\x65\143\x74\x69\157\156\40\167\141\163\40\x72\x65\146\165\x73\145\x64\40\142\171\x20\164\x68\145\40\x70\145\x65\x72\x2e"); $errorMsgs[VERR_COMMON_SOCKET_REMOTE_HOST_CLOSED] = array("\145\162\162\x6f\x72\x43\x6f\x64\145" => VERR_COMMON_SOCKET_REMOTE_HOST_CLOSED, "\145\162\162\157\x72\115\145\x73\163\141\x67\145" => "\x54\x68\145\40\162\145\155\x6f\164\145\40\x68\x6f\163\x74\x20\143\154\157\163\145\144\x20\164\150\145\x20\x63\157\x6e\x6e\x65\x63\164\151\x6f\x6e\x2e"); $errorMsgs[VERR_COMMON_SOCKET_HOST_NOT_FOUND] = array("\145\x72\162\x6f\x72\x43\x6f\x64\145" => VERR_COMMON_SOCKET_HOST_NOT_FOUND, "\x65\x72\x72\x6f\162\115\145\x73\x73\x61\147\145" => "\x54\x68\145\40\x68\157\163\164\x20\x61\x64\x64\162\x65\x73\163\40\x77\x61\x73\x20\156\x6f\x74\x20\146\x6f\x75\x6e\x64\x2e"); $errorMsgs[VERR_COMMON_SOCKET_ACCESS] = array("\x65\x72\x72\157\x72\103\157\x64\145" => VERR_COMMON_SOCKET_ACCESS, "\145\162\x72\157\162\x4d\145\x73\163\141\x67\145" => "\124\150\x65\x20\x73\157\x63\x6b\145\x74\x20\x6f\160\145\162\141\x74\151\x6f\156\40\x66\141\151\154\145\144\x20\142\x65\143\141\165\x73\145\x20\x74\x68\x65\40\x61\160\x70\154\x69\143\141\x74\x69\x6f\x6e\x20\x6c\x61\x63\153\x65\x64\x20\x74\150\145\x20\162\145\x71\x75\151\162\x65\144\40\160\x72\151\166\x69\154\145\147\145\x73\x2e"); $errorMsgs[VERR_COMMON_SOCKET_RESOURCE] = array("\x65\x72\x72\x6f\162\103\157\144\x65" => VERR_COMMON_SOCKET_RESOURCE, "\145\162\x72\x6f\x72\x4d\x65\x73\x73\141\147\x65" => "\x54\150\145\40\154\157\x63\141\154\40\163\x79\x73\x74\x65\155\x20\162\141\x6e\x20\x6f\x75\164\40\x6f\146\x20\162\x65\163\x6f\x75\x72\x63\x65\x73\x2e"); $errorMsgs[VERR_COMMON_SOCKET_TIMEOUT] = array("\x65\162\162\x6f\162\x43\x6f\x64\x65" => VERR_COMMON_SOCKET_TIMEOUT, "\x65\162\162\x6f\x72\115\x65\163\x73\x61\x67\x65" => "\124\150\145\40\123\x6f\x63\x6b\x65\164\40\x6f\x70\145\x72\x61\164\x69\157\x6e\40\164\x69\155\145\x64\x20\157\x75\x74\x2e"); $errorMsgs[VERR_COMMON_SOCKET_DATAGRAM_TOO_LARGE] = array("\x65\162\x72\x6f\x72\x43\x6f\x64\x65" => VERR_COMMON_SOCKET_DATAGRAM_TOO_LARGE, "\x65\162\162\x6f\162\115\x65\163\x73\x61\147\x65" => "\124\x68\x65\40\144\141\x74\141\x67\162\x61\x6d\40\167\x61\163\x20\154\141\162\x67\x65\x72\40\x74\150\x61\x6e\40\164\150\x65\x20\x6f\160\x65\162\141\164\151\156\147\x20\x73\171\x73\x74\145\155\x27\163\40\x6c\151\x6d\x69\x74\x2e"); $errorMsgs[VERR_COMMON_SOCKET_NETWORK] = array("\x65\162\162\x6f\162\x43\x6f\x64\x65" => VERR_COMMON_SOCKET_NETWORK, "\x65\x72\x72\x6f\162\x4d\x65\163\163\141\147\x65" => "\101\156\x20\145\x72\162\x6f\162\40\157\143\x63\165\x72\162\145\x64\x20\167\x69\164\150\x20\164\x68\145\x20\156\145\x74\x77\x6f\x72\x6b\x2e"); $errorMsgs[VERR_COMMON_SOCKET_ADDRESS_IN_USER] = array("\145\x72\x72\x6f\x72\x43\157\144\145" => VERR_COMMON_SOCKET_ADDRESS_IN_USER, "\145\162\x72\157\x72\115\x65\x73\x73\x61\147\x65" => "\124\x68\x65\x20\141\144\144\x72\145\x73\x73\40\163\160\x65\143\x69\146\151\145\x64\x20\x74\157\40\x62\151\156\144\x28\51\40\x69\163\40\141\x6c\x72\x65\x61\144\x79\40\151\156\40\x75\163\x65\x20\141\x6e\144\40\167\141\x73\x20\x73\x65\164\40\164\x6f\40\142\145\x20\x65\x78\143\x6c\x75\x73\151\166\x65\x2e"); $errorMsgs[VERR_COMMON_SOCKET_ADDRESS_NOT_AVAILABLE] = array("\x65\x72\x72\x6f\162\103\157\x64\145" => VERR_COMMON_SOCKET_ADDRESS_NOT_AVAILABLE, "\x65\162\x72\x6f\162\115\x65\x73\163\141\147\145" => "\124\150\145\x20\141\x64\144\162\x65\163\163\40\x73\160\x65\x63\151\146\151\x65\144\40\164\x6f\40\142\x69\x6e\144\50\x29\40\144\x6f\x65\163\x20\x6e\157\164\x20\x62\x65\x6c\x6f\156\x67\x20\x74\157\x20\164\x68\145\40\x68\157\x73\164\x2e"); $errorMsgs[VERR_COMMON_SOCKET_UNSUPPORTED_OPERATION] = array("\145\x72\162\x6f\x72\x43\157\144\145" => VERR_COMMON_SOCKET_UNSUPPORTED_OPERATION, "\145\162\x72\x6f\162\115\x65\x73\x73\x61\x67\145" => "\124\x68\x65\40\162\x65\161\165\145\x73\x74\145\x64\40\x73\x6f\143\x6b\x65\164\40\x6f\x70\145\x72\x61\x74\x69\157\x6e\x20\x69\163\40\156\157\164\40\163\x75\160\x70\157\162\x74\x65\144\x20\x62\x79\x20\164\x68\x65\40\x6c\157\x63\141\x6c\40\x6f\x70\145\162\x61\x74\x69\156\x67\x20\x73\x79\x73\164\145\155\x2e"); $errorMsgs[VERR_COMMON_SOCKET_PROXY_AUTHENTICATION_REQUIRED] = array("\x65\x72\x72\157\x72\103\157\x64\x65" => VERR_COMMON_SOCKET_PROXY_AUTHENTICATION_REQUIRED, "\145\x72\x72\157\x72\x4d\x65\163\x73\x61\147\145" => "\124\x68\x65\40\x73\x6f\143\x6b\x65\164\x20\151\x73\40\165\163\x69\156\x67\40\141\x20\x70\x72\x6f\x78\171\x2c\40\x61\x6e\144\40\164\150\145\40\x70\x72\x6f\x78\x79\x20\x72\145\x71\165\x69\162\145\163\40\x61\x75\x74\x68\x65\156\x74\x69\143\141\x74\151\157\156\56"); $errorMsgs[VERR_COMMON_SOCKET_SSL_HANDSHAKE_FAILED] = array("\145\162\x72\x6f\162\x43\x6f\144\x65" => VERR_COMMON_SOCKET_SSL_HANDSHAKE_FAILED, "\145\x72\162\x6f\162\x4d\x65\x73\x73\x61\147\x65" => "\x54\150\145\x20\x53\x53\x4c\x2f\124\x4c\x53\40\x68\x61\x6e\144\163\150\141\153\145\x20\x66\x61\151\x6c\x65\x64\54\x20\163\157\40\x74\x68\145\x20\x63\x6f\156\156\x65\143\x74\151\157\x6e\x20\x77\x61\163\40\143\154\157\163\x65\x64\56"); $errorMsgs[VERR_COMMON_SOCKET_UNFINISHED_OPERATION] = array("\145\x72\x72\x6f\x72\103\x6f\x64\145" => VERR_COMMON_SOCKET_UNFINISHED_OPERATION, "\x65\162\162\157\x72\115\145\x73\163\x61\x67\145" => "\124\150\145\40\x6c\141\163\x74\x20\x6f\160\145\162\141\164\x69\157\x6e\40\141\x74\x74\145\155\x70\x74\x65\144\x20\150\141\163\x20\x6e\157\x74\40\146\x69\x6e\x69\x73\x68\145\144\x20\x79\145\164\x2e"); $errorMsgs[VERR_COMMON_SOCKET_PROXY_CONNECTION_REFUSER] = array("\x65\x72\x72\157\x72\x43\x6f\144\145" => VERR_COMMON_SOCKET_PROXY_CONNECTION_REFUSER, "\145\162\x72\x6f\162\x4d\145\x73\x73\x61\147\x65" => "\103\x6f\165\x6c\x64\x20\x6e\157\164\x20\143\x6f\156\164\141\143\164\40\x74\x68\145\40\160\x72\157\170\x79\x20\x73\x65\162\166\145\x72\40\142\x65\143\x61\165\163\x65\x20\x74\x68\145\40\x63\x6f\x6e\x6e\x65\143\164\x69\157\x6e\40\x74\157\40\164\150\x61\164\x20\163\145\x72\x76\145\162\40\x77\141\163\40\x64\x65\x6e\x69\x65\144\56"); $errorMsgs[VERR_COMMON_SOCKET_PROXY_CONNECTION_CLOSED] = array("\145\x72\162\x6f\162\103\157\144\145" => VERR_COMMON_SOCKET_PROXY_CONNECTION_CLOSED, "\145\x72\x72\157\x72\x4d\145\163\163\141\147\x65" => "\x54\150\145\x20\143\x6f\x6e\x6e\145\143\164\x69\x6f\156\x20\164\157\x20\x74\x68\145\x20\x70\162\157\170\171\x20\x73\x65\162\x76\x65\x72\x20\x77\x61\x73\40\x63\x6c\x6f\163\x65\x64\40\x75\x6e\145\170\x70\145\143\164\145\144\154\x79\x2e"); $errorMsgs[VERR_COMMON_SOCKE_PROXY_CONNETION_TIMEOUT] = array("\x65\x72\x72\x6f\x72\103\x6f\x64\145" => VERR_COMMON_SOCKE_PROXY_CONNETION_TIMEOUT, "\145\162\x72\x6f\162\x4d\145\163\163\x61\x67\x65" => "\124\150\x65\40\x63\x6f\156\156\145\x63\x74\151\157\x6e\40\164\x6f\40\x74\150\x65\40\x70\162\x6f\170\x79\40\x73\145\162\166\x65\162\x20\164\x69\x6d\x65\144\x20\x6f\165\164\40\157\162\x20\x74\150\x65\40\160\162\157\170\171\40\x73\145\x72\166\145\x72\40\163\x74\157\160\x70\x65\144\40\162\x65\163\x70\x6f\x6e\x64\x69\x6e\x67\40\x69\156\40\x74\150\145\40\141\x75\164\150\145\x6e\164\x69\x63\141\164\151\157\x6e\40\x70\x68\x61\x73\x65\56"); $errorMsgs[VERR_COMMON_SOCKET_PROXY_NOT_FOUND] = array("\145\x72\162\157\x72\103\157\x64\x65" => VERR_COMMON_SOCKET_PROXY_NOT_FOUND, "\x65\x72\x72\157\x72\x4d\x65\163\x73\x61\147\x65" => "\x54\x68\145\40\x70\x72\157\x78\171\x20\141\144\x64\162\145\x73\163\40\x73\145\x74\x20\x77\x69\164\150\40\x73\x65\164\x50\162\157\170\171\x28\x29\40\x28\x6f\x72\x20\164\150\x65\40\x61\160\160\x6c\x69\143\x61\x74\x69\x6f\156\40\x70\162\x6f\x78\x79\51\40\167\x61\163\x20\156\x6f\x74\40\146\157\x75\156\144\56"); $errorMsgs[VERR_COMMON_SOCKET_PROXY_PROTOCOL] = array("\x65\162\162\157\x72\103\x6f\x64\x65" => VERR_COMMON_SOCKET_PROXY_PROTOCOL, "\145\162\x72\x6f\162\x4d\x65\x73\163\141\x67\145" => "\x54\x68\x65\x20\x63\x6f\x6e\156\145\143\164\151\157\x6e\40\156\145\x67\157\164\x69\x61\164\151\x6f\156\x20\167\151\164\x68\40\164\150\145\x20\x70\x72\157\x78\171\x20\x73\x65\x72\166\x65\162\40\x62\145\x63\x61\x75\x73\145\x20\164\x68\145\40\162\x65\163\x70\x6f\x6e\x73\x65\40\x66\162\x6f\155\40\164\x68\145\40\x70\162\x6f\170\171\40\x73\x65\162\166\x65\x72\40\143\157\165\154\x64\40\156\157\164\40\x62\x65\x20\x75\156\144\145\x72\x73\164\x6f\x6f\144\x2e"); $errorMsgs[VERR_COMMON_SOCKET_UNKNOWN] = array("\145\x72\x72\x6f\162\103\157\144\x65" => VERR_COMMON_SOCKET_UNKNOWN, "\x65\162\x72\157\x72\115\145\163\163\x61\147\145" => "\x41\116\40\165\156\151\x64\145\x6e\164\151\146\x69\145\144\x20\145\162\162\157\x72\40\157\x63\x63\165\x72\162\x65\x64\x2e"); $errorMsgs[VERR_COMMON_SAME_ID] = array("\x65\x72\x72\157\x72\x43\x6f\x64\x65" => VERR_COMMON_SAME_ID, "\145\x72\x72\x6f\162\x4d\x65\x73\x73\x61\147\145" => "\124\150\x65\x20\x73\141\x6d\145\x20\111\104\x20\141\154\x72\x65\141\x64\x79\40\x65\x78\151\163\x74\163"); $errorMsgs[VERR_E2_SUCCESS] = array("\x65\162\x72\x6f\x72\103\x6f\x64\x65" => VERR_E2_SUCCESS, "\x65\x72\x72\157\162\115\x65\x73\163\141\x67\x65" => "\x53\x75\143\143\x65\163\163"); $errorMsgs[VERR_E2_GETSCREEN] = array("\x65\x72\162\x6f\162\103\x6f\x64\x65" => VERR_E2_GETSCREEN, "\x65\x72\x72\x6f\x72\x4d\145\x73\163\141\147\x65" => "\x41\x6e\40\145\x72\x72\x6f\x72\x20\x6f\x63\143\x75\162\162\145\144\40\147\145\164\164\151\x6e\147\x20\x74\150\145\40\x63\x75\x72\x72\145\x6e\164\40\x73\143\162\x65\145\x6e\40\156\x61\155\145\x2e\x20\x4e\x6f\40\x63\x75\162\x72\145\156\164\x20\163\x63\162\x65\145\x6e\x2e"); $errorMsgs[VERR_E2_LOADVALUE] = array("\x65\x72\x72\x6f\x72\x43\157\x64\145" => VERR_E2_LOADVALUE, "\145\x72\x72\157\x72\x4d\145\163\x73\141\x67\145" => "\x43\157\x75\154\x64\x20\x6e\157\x74\x20\x6c\x6f\141\x64\x20\x76\141\x6c\x75\x65\x2e"); $errorMsgs[VERR_E2_SAVEVALUE] = array("\x65\162\x72\x6f\x72\x43\x6f\x64\x65" => VERR_E2_SAVEVALUE, "\x65\162\x72\x6f\x72\x4d\x65\163\163\141\147\x65" => "\103\x6f\165\x6c\x64\40\156\157\164\40\163\141\x76\145\40\x76\141\154\x75\x65\x2e"); $errorMsgs[VERR_E2_WINDOW_HANDLE] = array("\145\x72\x72\157\x72\x43\x6f\x64\x65" => VERR_E2_WINDOW_HANDLE, "\x65\x72\162\157\x72\115\x65\x73\163\141\x67\x65" => "\x45\x72\162\157\162\54\x20\143\x6f\x75\154\144\40\x6e\157\x74\40\x67\145\x74\40\x74\150\x65\40\x61\x70\x70\154\x69\143\x61\164\151\157\156\x27\x73\x20\x77\151\156\x64\x6f\x77\x20\150\141\156\144\154\145\56"); $errorMsgs[VERR_E2_DISPLAY] = array("\x65\162\x72\157\x72\x43\157\x64\145" => VERR_E2_DISPLAY, "\145\x72\162\157\162\x4d\145\x73\163\x61\x67\x65" => "\x54\x68\x65\162\x65\40\151\x73\40\x6e\157\40\x73\x63\x72\x65\x65\x6e\x20\x63\165\x72\x72\x65\156\164\x6c\x79\40\144\x69\x73\x70\154\x61\x79\145\x64\56"); $errorMsgs[VERR_E2_TABLEDATA] = array("\x65\162\162\157\162\103\157\144\x65" => VERR_E2_TABLEDATA, "\145\x72\162\157\x72\115\145\163\x73\141\x67\x65" => "\x49\x6e\166\141\154\x69\x64\x20\x74\x61\x62\154\x65\x20\x64\x61\164\x61\x2e"); $errorMsgs[VERR_E2_EXIT] = array("\x65\x72\162\x6f\162\x43\157\x64\145" => VERR_E2_EXIT, "\x65\x72\x72\157\x72\x4d\145\x73\x73\141\x67\x65" => "\x54\150\x65\40\x61\160\x70\x6c\x69\143\141\164\151\x6f\x6e\40\x74\x65\162\155\151\x6e\141\164\x65\144"); $errorMsgs[VERR_E2_FUNCTION_INTER] = array("\x65\162\162\x6f\x72\103\157\144\145" => VERR_E2_FUNCTION_INTER, "\145\162\x72\157\162\115\145\x73\163\x61\x67\x65" => "\101\156\40\x69\156\164\x65\162\x6e\141\154\40\145\x72\162\x6f\x72\x20\157\x63\x63\165\162\162\x65\144\x20\x72\x65\x73\157\x6c\166\151\x6e\x67\x20\x74\x68\145\x20\x73\x70\x65\x63\151\146\151\x65\144\40\x66\165\x6e\x63\x74\151\157\156\x2e"); $errorMsgs[VERR_E2_FUNCTION_RUNTIME] = array("\x65\162\162\157\162\x43\x6f\x64\145" => VERR_E2_FUNCTION_RUNTIME, "\x65\162\162\157\x72\115\145\x73\x73\x61\147\x65" => "\x41\40\x72\165\156\x74\151\155\145\40\x65\x72\162\157\x72\40\157\143\x63\165\x72\162\145\144\x20\167\x68\x69\x6c\x65\x20\x63\x61\154\x6c\151\156\x67\x20\164\150\145\40\146\165\x6e\143\164\151\157\x6e\x2e"); $errorMsgs[VERR_E2_FUNCTION_ALLOC] = array("\x65\x72\x72\157\x72\x43\157\144\145" => VERR_E2_FUNCTION_ALLOC, "\145\x72\x72\157\162\115\x65\163\x73\141\x67\145" => "\x41\x20\155\x65\155\x6f\162\x79\40\x61\x6c\154\157\x63\141\164\151\x6f\156\40\145\162\x72\x6f\162\40\157\143\143\x75\x72\162\x65\144\40\167\150\151\154\x65\x20\x63\x61\x6c\154\151\156\147\40\x74\x68\x65\40\146\165\x6e\143\164\151\x6f\156\x2e"); $errorMsgs[VERR_E2_PRINT_PAPER] = array("\x65\162\162\x6f\x72\x43\157\x64\x65" => VERR_E2_PRINT_PAPER, "\145\162\x72\x6f\x72\x4d\145\163\163\141\x67\145" => "\x54\x68\x65\x20\x70\162\x69\x6e\x74\145\x72\x20\151\x73\x20\157\165\x74\40\x6f\146\x20\x70\141\x70\x65\162\56"); $errorMsgs[VERR_E2_PRINT_FULL] = array("\x65\162\x72\x6f\162\103\x6f\x64\x65" => VERR_E2_PRINT_FULL, "\145\162\x72\157\162\x4d\x65\x73\163\141\147\145" => "\x54\150\145\40\x70\162\151\156\164\x65\162\40\x71\165\x65\165\x65\40\x69\163\40\x66\165\154\154\56"); $errorMsgs[VERR_E2_PRINT_DELETE] = array("\x65\x72\x72\157\162\103\x6f\144\x65" => VERR_E2_PRINT_DELETE, "\145\162\x72\x6f\x72\x4d\145\x73\x73\141\x67\145" => "\x59\x6f\x75\162\40\146\x69\x6c\145\40\x77\141\151\164\x69\156\x67\40\164\157\40\x62\145\40\x70\162\x69\x6e\164\x65\x64\40\x77\141\163\40\x64\x65\154\145\164\x65\x64\56"); $errorMsgs[VERR_E2_PRINT_PAUSE] = array("\145\x72\162\157\162\103\157\x64\145" => VERR_E2_PRINT_PAUSE, "\x65\162\162\157\162\115\145\x73\163\141\x67\145" => "\x54\150\145\40\163\160\x65\143\151\x66\151\145\144\x20\x70\x72\151\x6e\x74\x65\x72\40\x6f\x72\40\x64\151\x73\153\x20\x64\145\x76\x69\x63\x65\x20\x68\x61\163\x20\142\x65\145\x6e\40\x70\x61\165\x73\x65\x64\56"); $errorMsgs[VERR_E2_O2] = array("\145\162\x72\157\x72\103\157\x64\145" => VERR_E2_O2, "\x65\162\162\157\162\x4d\x65\163\x73\141\147\x65" => "\x49\x6e\x76\141\x6c\151\x64\x20\117\162\x74\150\157\x64\157\156\164\151\x63\40\101\156\141\x6c\171\163\x69\x73\x20\120\162\x6f\147\162\141\155\x2e"); $errorMsgs[VERR_E2_ID] = array("\x65\x72\162\x6f\x72\103\157\144\x65" => VERR_E2_ID, "\145\x72\162\157\162\x4d\x65\x73\163\x61\147\x65" => "\111\156\x76\x61\x6c\x69\x64\x20\125\163\145\162\40\x49\x44"); $errorMsgs[VERR_E2_PASSWORD] = array("\145\162\x72\x6f\162\103\x6f\x64\145" => VERR_E2_PASSWORD, "\x65\162\x72\157\162\115\x65\163\163\x61\147\145" => "\111\x6e\x76\141\x6c\x69\144\x20\x50\141\163\163\x77\157\x72\x64"); $errorMsgs[VERR_E2_OLD_PASSWORD_NOT_ALLOWED] = array("\x65\x72\162\157\162\x43\x6f\144\145" => VERR_E2_OLD_PASSWORD_NOT_ALLOWED, "\x65\x72\162\157\162\x4d\145\163\163\x61\147\145" => "\x4f\154\144\40\160\141\x73\163\x77\157\162\x64\40\151\163\x20\156\157\x74\40\x61\x6c\x6c\157\x77\x65\144\56"); $errorMsgs[VERR_E2_PATIENT_NO] = array("\x65\162\162\157\162\103\157\144\145" => VERR_E2_PATIENT_NO, "\x65\162\x72\157\162\x4d\145\x73\163\141\x67\145" => "\x54\x68\145\x72\145\x20\151\163\x20\x6e\157\40\160\141\164\x69\145\156\x74\40\144\141\x74\x61"); $errorMsgs[VERR_E2_PATIENT_SET] = array("\145\162\x72\157\162\x43\x6f\x64\x65" => VERR_E2_PATIENT_SET, "\145\x72\162\157\x72\115\x65\x73\x73\x61\x67\145" => "\103\x6f\165\154\x64\40\156\157\164\40\163\145\164\x20\164\x68\145\x20\x73\160\x65\143\151\146\x69\x65\144\40\160\x61\164\x69\145\156\x74\x20\144\x61\x74\x61"); $errorMsgs[VERR_E2_PATIENT_DELETE] = array("\145\162\x72\157\162\103\157\x64\x65" => VERR_E2_PATIENT_DELETE, "\x65\x72\162\157\x72\115\x65\163\163\x61\x67\145" => "\103\157\x75\x6c\144\40\x6e\x6f\164\x20\144\145\154\x65\164\145\40\x74\x68\x65\x20\163\x70\x65\143\x69\x66\151\145\x64\40\160\141\164\151\x65\x6e\164\x20\144\x61\x74\x61"); $errorMsgs[VERR_E2_PATIENT_INVALID] = array("\x65\162\x72\157\x72\103\157\144\x65" => VERR_E2_PATIENT_INVALID, "\145\162\162\x6f\162\x4d\x65\x73\x73\x61\147\145" => "\111\x6e\x76\141\x6c\151\144\x20\160\141\164\151\x65\156\x74\40\x64\x61\164\141"); $errorMsgs[VERR_E2_PATIENT_SUPPORT] = array("\x65\162\162\x6f\162\103\x6f\x64\145" => VERR_E2_PATIENT_SUPPORT, "\x65\162\162\157\162\115\x65\x73\163\141\x67\x65" => "\x44\141\164\141\x20\x6f\146\40\164\x68\151\163\x20\164\x79\160\x65\40\x69\x73\40\x6e\x6f\x74\40\163\x75\160\160\x6f\162\164\145\x64"); $errorMsgs[VERR_E2_PATIENT_OVERLAPP] = array("\x65\162\x72\157\x72\103\x6f\144\145" => VERR_E2_PATIENT_OVERLAPP, "\x65\162\162\x6f\x72\x4d\145\x73\163\x61\147\x65" => "\124\x68\145\x20\143\150\x61\x72\x74\x20\156\x75\155\x62\x65\162\x20\x69\x73\40\157\166\x65\162\154\x61\160\160\x65\x64"); $errorMsgs[VERR_E2_IMAGE_NO] = array("\x65\x72\x72\x6f\162\x43\x6f\144\x65" => VERR_E2_IMAGE_NO, "\x65\162\x72\x6f\162\x4d\145\x73\x73\141\x67\x65" => "\124\x68\145\x72\x65\40\x69\163\40\156\157\40\151\x6d\x61\x67\145\40\x64\141\164\x61"); $errorMsgs[VERR_E2_IMAGE_SET] = array("\145\x72\162\157\162\x43\157\x64\x65" => VERR_E2_IMAGE_SET, "\x65\x72\162\x6f\162\115\145\x73\x73\141\147\145" => "\103\x6f\165\154\144\x20\156\157\164\x20\x73\145\164\x20\x74\x68\x65\x20\163\x70\145\143\x69\146\x69\x65\144\x20\151\155\x61\147\145\x20\144\141\x74\141"); $errorMsgs[VERR_E2_IMAGE_DELETE] = array("\145\162\x72\157\162\x43\157\144\x65" => VERR_E2_IMAGE_DELETE, "\145\x72\x72\x6f\x72\115\x65\x73\x73\141\x67\145" => "\103\157\165\x6c\144\x20\156\x6f\x74\x20\x64\x65\154\x65\x74\145\40\x74\x68\145\40\x73\x70\145\x63\x69\x66\151\145\144\x20\x49\155\141\147\x65\40\144\141\164\141"); $errorMsgs[VERR_E2_IMAGE_INVAILD] = array("\x65\x72\x72\x6f\162\x43\157\x64\x65" => VERR_E2_IMAGE_INVAILD, "\145\x72\162\x6f\x72\x4d\x65\163\x73\141\147\x65" => "\111\x6e\x76\141\x6c\x69\x64\x20\x49\155\141\147\145\x20\144\x61\x74\x61"); $errorMsgs[VERR_E2_IMAGE_SUPPORT] = array("\145\x72\162\157\x72\103\157\144\145" => VERR_E2_IMAGE_SUPPORT, "\145\162\x72\157\162\115\145\163\x73\x61\x67\x65" => "\111\x6d\141\147\x65\x20\157\146\40\164\150\151\x73\40\x74\x79\x70\x65\x20\x69\x73\x20\156\x6f\x74\40\163\x75\160\x70\157\162\164\145\x64"); $errorMsgs[VERR_E2_IMAGE_BUFFER] = array("\145\162\162\x6f\x72\103\x6f\144\x65" => VERR_E2_IMAGE_BUFFER, "\145\x72\162\x6f\x72\115\x65\163\163\x61\x67\145" => "\101\40\x62\165\x66\146\x65\162\40\151\163\x20\x74\157\40\163\155\x61\154\x6c\x20\164\x6f\40\x68\x6f\154\144\x20\141\x6c\154\40\157\x66\40\x74\x68\145\40\x64\x61\x74\x61"); $errorMsgs[VERR_E2_IMAGE_2BIG] = array("\145\162\162\157\x72\103\157\x64\145" => VERR_E2_IMAGE_2BIG, "\145\162\x72\157\x72\115\145\163\x73\141\x67\x65" => "\111\155\x61\x67\145\40\x66\x69\x6c\x65\40\163\x69\172\145\40\x74\157\x6f\40\x62\151\x67\56"); $errorMsgs[VERR_E2_IMAGE_TAG] = array("\145\162\162\157\x72\x43\x6f\144\x65" => VERR_E2_IMAGE_TAG, "\x65\x72\x72\157\x72\x4d\145\x73\163\x61\147\145" => "\x54\x68\145\x72\145\x20\x69\x73\40\x6e\157\x74\40\111\x6d\x61\147\145\x20\x54\x61\147\x20\x66\x69\x6c\x65"); $errorMsgs[VERR_E2_IMAGE_THUMNAIL] = array("\x65\x72\162\x6f\x72\103\157\144\145" => VERR_E2_IMAGE_THUMNAIL, "\145\162\162\157\x72\115\x65\163\163\141\x67\x65" => "\124\x68\145\162\x65\40\151\x73\40\156\x6f\164\40\111\155\x61\x67\145\x20\124\x68\165\x6d\142\x6e\x61\x69\x6c\x20\x66\x69\x6c\145"); $errorMsgs[VERR_E2_IMAGE_IN_GROUP] = array("\145\x72\162\157\x72\x43\157\144\x65" => VERR_E2_IMAGE_IN_GROUP, "\145\162\162\157\x72\115\145\x73\x73\141\147\145" => "\x54\x68\x65\x20\x69\x6d\141\147\x65\x20\151\163\x20\151\x6e\40\x61\40\147\x72\x6f\165\x70\56"); $errorMsgs[VERR_E2_VIEW_LINE] = array("\x65\x72\x72\x6f\162\x43\157\x64\x65" => VERR_E2_VIEW_LINE, "\x65\x72\162\x6f\162\x4d\x65\163\163\141\147\x65" => "\x43\157\165\x6c\144\40\156\x6f\164\40\x64\x72\x61\167\x20\114\x69\x6e\145\56"); $errorMsgs[VERR_E2_VIEW_FIGURE] = array("\145\x72\162\157\162\103\157\x64\145" => VERR_E2_VIEW_FIGURE, "\145\162\162\157\x72\x4d\x65\x73\163\x61\x67\x65" => "\103\x6f\165\154\x64\x20\156\x6f\x74\x20\x64\x72\x61\x77\40\x66\151\x67\x75\x72\145\56"); $errorMsgs[VERR_E2_VIEW_TEXT] = array("\x65\162\x72\x6f\x72\x43\157\144\145" => VERR_E2_VIEW_TEXT, "\145\162\162\157\162\115\x65\163\x73\141\147\x65" => "\x43\157\165\x6c\144\x20\156\157\164\x20\x64\162\141\167\40\164\x65\x78\x74\56"); $errorMsgs[VERR_E2_VIEW_MEASURE] = array("\x65\x72\162\x6f\x72\x43\157\144\145" => VERR_E2_VIEW_MEASURE, "\x65\x72\x72\x6f\x72\115\x65\163\x73\x61\147\x65" => "\x43\x6f\165\154\144\40\x6e\x6f\x74\x20\166\x69\x65\x77\40\122\x75\x6c\x65\x72\x20\x6f\x72\x20\x50\x72\x6f\164\162\x61\x63\164\157\x72\56"); $errorMsgs[VERR_E2_VIEW_INVERT] = array("\x65\162\162\x6f\162\x43\157\x64\x65" => VERR_E2_VIEW_INVERT, "\x65\x72\x72\157\x72\x4d\145\x73\x73\x61\x67\145" => "\103\157\x75\x6c\x64\x20\x6e\x6f\164\40\151\x6e\166\x65\162\164\x20\166\x69\x65\x77\56"); $errorMsgs[VERR_E2_VIEW_BRIGHTNESS] = array("\x65\x72\x72\157\162\103\x6f\x64\145" => VERR_E2_VIEW_BRIGHTNESS, "\145\162\162\x6f\162\x4d\145\163\x73\141\147\x65" => "\103\x6f\165\x6c\144\40\x6e\x6f\x74\40\142\x72\151\147\150\x74\x6e\145\163\x73\x20\x76\x69\x65\167\x2e"); $errorMsgs[VERR_E2_VIEW_CONTRAST] = array("\x65\162\x72\157\x72\103\157\x64\145" => VERR_E2_VIEW_CONTRAST, "\x65\162\162\157\162\115\x65\163\x73\141\x67\x65" => "\103\157\x75\x6c\x64\40\x6e\x6f\x74\x20\143\x6f\x6e\x74\x72\x61\x73\164\x20\x76\151\x65\167\x2e"); $errorMsgs[VERR_E2_VIEW_GAMMA] = array("\145\162\162\x6f\x72\103\157\144\x65" => VERR_E2_VIEW_GAMMA, "\x65\162\162\x6f\162\115\x65\163\163\x61\147\145" => "\x43\x6f\x75\x6c\x64\40\156\x6f\x74\x20\x63\157\x6e\x74\x72\x6f\x6c\x20\x76\x69\145\167\x27\163\40\147\141\x6d\x6d\x61\x2e"); $errorMsgs[VERR_E2_VIEW_FILM] = array("\x65\162\162\157\162\103\x6f\x64\145" => VERR_E2_VIEW_FILM, "\x65\162\x72\157\162\115\x65\x73\163\141\147\145" => "\x43\157\165\154\x64\x20\x6e\157\x74\x20\x66\151\154\x6d\x20\x65\x66\x66\x65\143\164\40\x76\151\145\x77\56"); $errorMsgs[VERR_E2_VIEW_EXPAND] = array("\x65\162\x72\x6f\162\x43\x6f\x64\x65" => VERR_E2_VIEW_EXPAND, "\145\x72\x72\157\162\115\145\x73\x73\141\147\x65" => "\x43\x6f\165\154\x64\40\156\x6f\164\40\x65\170\160\141\156\x64\57\x72\145\x64\x75\143\x65\40\x76\151\x65\167\x2e"); $errorMsgs[VERR_E2_VIEW_DRAG] = array("\x65\x72\x72\x6f\162\103\x6f\x64\145" => VERR_E2_VIEW_DRAG, "\x65\162\x72\157\162\x4d\145\163\163\x61\147\145" => "\x43\x6f\x75\x6c\x64\40\156\x6f\164\40\144\162\x61\147\40\166\x69\x65\x77\56"); $errorMsgs[VERR_E2_VIEW_MAGNIFY] = array("\145\x72\162\x6f\162\x43\x6f\144\x65" => VERR_E2_VIEW_MAGNIFY, "\145\x72\x72\157\x72\x4d\x65\x73\163\x61\x67\145" => "\x43\157\165\154\144\x20\x6e\x6f\x74\x20\144\162\x61\167\x20\x6d\141\x67\156\x69\146\x79\x2e"); $errorMsgs[VERR_E2_VIEW_PROFILE] = array("\145\162\162\x6f\162\103\x6f\144\145" => VERR_E2_VIEW_PROFILE, "\145\162\x72\x6f\162\115\x65\163\163\x61\147\145" => "\103\157\165\154\144\40\156\157\164\x20\x76\x69\145\x77\x20\160\162\x6f\x66\x69\x6c\145\56"); $errorMsgs[VERR_E2_VIEW_CAPTURE] = array("\x65\x72\162\157\x72\103\157\144\145" => VERR_E2_VIEW_CAPTURE, "\145\x72\x72\x6f\162\115\145\163\x73\141\147\145" => "\x43\x6f\165\154\x64\40\x6e\157\x74\x20\x63\x61\x70\x74\165\162\x65\56"); $errorMsgs[VERR_E2_VIEW_IMPLANT] = array("\145\162\x72\157\x72\x43\x6f\x64\145" => VERR_E2_VIEW_IMPLANT, "\145\162\x72\x6f\x72\x4d\145\163\163\x61\x67\x65" => "\x54\x68\145\162\x65\x20\151\163\x20\x6e\157\x74\40\x74\x68\145\40\163\x70\145\x63\x69\x66\x69\145\x64\x20\151\155\x70\154\141\x6e\164\x20\144\141\164\141"); $errorMsgs[VERR_E2_VIEW_CROWN] = array("\x65\162\162\157\x72\x43\x6f\x64\x65" => VERR_E2_VIEW_CROWN, "\x65\162\162\x6f\162\115\145\x73\163\x61\147\145" => "\x54\x68\145\x72\x65\40\151\x73\40\156\157\164\x20\x74\150\x65\40\163\160\x65\143\x69\146\x69\x65\x64\40\x63\x72\157\167\x6e\40\144\x61\164\x61"); $errorMsgs[VERR_E2_VIEW_WHITTENING] = array("\x65\162\x72\157\162\103\157\x64\145" => VERR_E2_VIEW_WHITTENING, "\145\x72\162\157\x72\115\145\x73\x73\x61\x67\145" => "\x43\157\x75\x6c\144\40\x6e\157\x74\x20\x77\150\x69\164\x65\x6e\x69\156\147\x2e"); $errorMsgs[VERR_E2_VIEW_CANAL] = array("\145\x72\162\157\x72\103\x6f\x64\145" => VERR_E2_VIEW_CANAL, "\145\162\162\157\162\x4d\x65\x73\x73\141\x67\x65" => "\103\157\165\x6c\144\40\156\x6f\164\x20\144\x72\141\167\x20\x63\141\156\141\x6c\x2e"); $errorMsgs[VERR_E2_VIEW_ROTATE] = array("\x65\162\162\x6f\x72\103\157\x64\145" => VERR_E2_VIEW_ROTATE, "\x65\x72\x72\157\162\115\145\x73\x73\141\147\x65" => "\103\157\x75\154\144\x20\x6e\x6f\x74\40\162\157\x74\141\164\145\x20\166\151\145\167"); $errorMsgs[VERR_E2_VIEW_DELETE] = array("\145\162\x72\157\162\103\x6f\144\x65" => VERR_E2_VIEW_DELETE, "\145\x72\x72\157\162\115\145\163\x73\x61\147\145" => "\103\x6f\165\154\144\x20\156\157\x74\40\144\x65\x6c\x65\164\x65\40\144\x72\141\x77\x6e\40\x74\x68\x69\x6e\147\163"); $errorMsgs[VERR_E2_VIEW_LAYOUT_SET] = array("\x65\x72\162\x6f\x72\x43\157\x64\145" => VERR_E2_VIEW_LAYOUT_SET, "\x65\162\162\x6f\x72\115\x65\x73\163\141\147\145" => "\x43\x6f\165\x6c\x64\x20\156\157\164\x20\x73\145\x74\40\x6c\x61\x79\x6f\x75\x74\56"); $errorMsgs[VERR_E2_VIEW_LAYOUT_LOAD] = array("\145\162\162\157\x72\103\x6f\144\x65" => VERR_E2_VIEW_LAYOUT_LOAD, "\x65\162\x72\x6f\162\x4d\145\x73\x73\141\147\145" => "\x43\x6f\165\x6c\144\40\156\x6f\x74\x20\x6c\x6f\x61\144\x20\x74\150\145\40\163\160\145\143\151\x66\151\145\x64\x20\x6d\x6f\144\141\x6c\151\164\x79\x27\163\40\154\x61\x79\x6f\165\x74\x2e"); $errorMsgs[VERR_E2_ACQ_NOMODALITY] = array("\x65\x72\x72\x6f\x72\x43\157\144\x65" => VERR_E2_ACQ_NOMODALITY, "\145\162\162\157\162\x4d\x65\x73\x73\x61\147\x65" => "\x53\x65\154\145\x63\x74\145\144\x20\115\x6f\144\141\x6c\151\x74\171\x20\x6e\x6f\x74\x20\146\157\165\x6e\x64\56"); $errorMsgs[VERR_E2_ACQ_CONSOLESW] = array("\145\x72\162\x6f\x72\103\157\x64\145" => VERR_E2_ACQ_CONSOLESW, "\x65\x72\162\157\x72\x4d\x65\163\x73\141\147\145" => "\x49\x6e\x76\x61\154\151\x64\x20\103\141\x70\x74\165\x72\145\40\123\x57\40\x50\141\x74\x68"); $errorMsgs[VERR_E2_ACQ_LOAD] = array("\x65\x72\162\157\x72\x43\x6f\x64\145" => VERR_E2_ACQ_LOAD, "\x65\162\162\x6f\162\x4d\x65\x73\163\141\147\145" => "\103\157\x75\x6c\x64\x20\x6e\x6f\164\x20\x6c\157\x61\x64\x20\x41\x63\x71\165\x69\x73\x69\x74\151\157\156\x20\111\155\141\x67\x65"); $errorMsgs[VERR_E2_IMG_SET] = array("\x65\162\162\157\x72\103\157\144\x65" => VERR_E2_IMG_SET, "\x65\162\162\x6f\162\x4d\145\x73\x73\141\147\x65" => "\143\157\x75\154\x64\x20\x6e\x6f\x74\x20\x73\x65\x74\x20\x74\x68\145\40\163\x70\145\x63\x69\x66\x69\145\144\40\115\x6f\144\141\154\151\x74\171\40\144\x61\x74\x61"); $errorMsgs[VERR_E2_IMG_DELETE] = array("\x65\162\x72\x6f\x72\x43\x6f\144\145" => VERR_E2_IMG_DELETE, "\x65\162\162\157\162\x4d\x65\163\x73\141\x67\x65" => "\143\x6f\165\x6c\144\x20\x6e\157\x74\40\x64\x65\154\x65\164\145\40\164\x68\x65\40\x73\x70\x65\143\x69\146\x69\145\x64\40\x4d\157\144\x61\154\x69\164\171\40\x64\141\164\141"); $errorMsgs[VERR_E2_ACQ_INVALID] = array("\145\162\x72\157\x72\103\157\x64\x65" => VERR_E2_ACQ_INVALID, "\145\x72\x72\157\x72\115\145\163\163\x61\147\145" => "\111\156\x76\141\x6c\x69\x64\40\115\x6f\144\141\154\151\x74\171\40\x54\171\160\x65"); $errorMsgs[VERR_E2_ACQ_SUPPORT] = array("\145\162\162\x6f\162\103\157\144\145" => VERR_E2_ACQ_SUPPORT, "\145\x72\x72\157\162\x4d\145\x73\163\141\147\x65" => "\124\x68\145\x20\115\157\x64\x61\154\x69\x74\x79\x20\x69\x73\40\156\157\164\40\x73\x75\x70\x70\157\x72\x74\x65\144"); $errorMsgs[VERR_E2_ACQ_LIB] = array("\145\x72\162\x6f\162\103\x6f\x64\145" => VERR_E2_ACQ_LIB, "\x65\x72\162\157\162\115\x65\163\x73\x61\x67\x65" => "\126\x69\144\x65\x6f\x20\x6f\162\40\111\155\141\x67\145\x20\x4c\111\x42\40\146\141\151\154\x65\x64"); $errorMsgs[VERR_E2_ACQ_ORDER] = array("\145\x72\x72\157\x72\103\157\144\x65" => VERR_E2_ACQ_ORDER, "\145\162\x72\157\162\115\x65\163\x73\x61\x67\x65" => "\x43\x6f\x75\154\144\40\156\x6f\x74\40\x63\x68\141\156\x67\x65\x20\141\143\161\x75\x69\x73\x69\164\x69\157\156\x27\163\40\157\162\x64\x65\x72"); $errorMsgs[VERR_E2_ACQ_STILL] = array("\x65\162\162\157\x72\103\x6f\x64\x65" => VERR_E2_ACQ_STILL, "\145\162\x72\x6f\162\115\145\163\163\x61\147\145" => "\x43\x6f\x75\154\144\40\156\x6f\164\40\x73\x74\x69\x6c\154\x20\x49\x4f\40\143\x61\155\145\x72\141\x20\x76\x69\x65\x77\x2e"); $errorMsgs[VERR_E2_REP_SAVE] = array("\x65\x72\162\157\x72\x43\x6f\144\x65" => VERR_E2_REP_SAVE, "\145\x72\162\x6f\x72\115\145\163\x73\x61\x67\x65" => "\103\157\165\154\144\40\156\x6f\164\40\x73\141\x76\x65\x20\164\150\x65\40\x72\145\160\157\162\164"); $errorMsgs[VERR_E2_REP_OPEN] = array("\145\162\162\157\162\x43\x6f\144\145" => VERR_E2_REP_OPEN, "\145\x72\x72\x6f\162\x4d\x65\163\x73\x61\x67\145" => "\x43\x6f\165\154\x64\40\156\157\x74\40\154\157\x61\144\40\x74\150\145\40\163\x70\x65\143\151\x66\x69\145\x64\40\x72\x65\x70\157\162\164"); $errorMsgs[VERR_E2_REP_IMAGE_PROOCESSING] = array("\x65\162\162\x6f\162\103\x6f\x64\145" => VERR_E2_REP_IMAGE_PROOCESSING, "\145\162\162\x6f\x72\x4d\x65\x73\x73\x61\147\x65" => "\103\157\165\x6c\x64\40\x6e\157\x74\x20\x69\155\141\x67\145\x20\x70\x72\x6f\143\x65\163\x73\151\156\x67\40\164\x68\145\x20\162\x65\x70\x6f\x72\x74"); $errorMsgs[VERR_E2_SET_CONFIG] = array("\x65\x72\162\x6f\x72\x43\157\x64\x65" => VERR_E2_SET_CONFIG, "\145\x72\162\157\x72\115\145\x73\x73\141\147\x65" => "\x54\x68\x65\40\103\157\156\x66\x69\x67\x20\146\x69\x6c\x65\40\143\x6f\156\x74\x61\x69\x6e\x73\40\151\156\x76\141\x6c\x69\x64\x20\x64\141\164\141\x2e"); $errorMsgs[VERR_E2_SET_PATH] = array("\x65\x72\162\157\x72\x43\157\144\x65" => VERR_E2_SET_PATH, "\x65\x72\162\x6f\162\115\x65\x73\163\141\x67\x65" => "\x49\156\166\x61\x6c\151\x64\40\160\162\x6f\147\162\141\155\x20\160\141\x74\x68\56"); $errorMsgs[VERR_E2_GAL_SAME_NAME] = array("\x65\x72\162\x6f\x72\103\157\x64\x65" => VERR_E2_GAL_SAME_NAME, "\145\x72\x72\x6f\162\115\x65\x73\x73\x61\147\145" => "\x54\x68\145\x20\x73\141\x6d\x65\x20\156\x61\x6d\x65\x20\141\154\162\x65\141\x64\x79\x20\145\x78\x69\163\x74\163"); $errorMsgs[VERR_E2_OVERITE_CANCEL] = array("\x65\x72\x72\x6f\162\x43\157\144\145" => VERR_E2_OVERITE_CANCEL, "\x65\x72\x72\x6f\162\x4d\x65\163\163\x61\x67\145" => "\x4f\166\x65\162\167\x72\151\x74\x69\156\x67\40\x77\141\163\x20\143\141\x6e\x63\145\154\154\x65\144"); $errorMsgs[VERR_E3_COM_OPEN_FILE] = array("\x65\x72\x72\157\x72\103\x6f\144\145" => VERR_E3_COM_OPEN_FILE, "\145\x72\162\157\x72\x4d\145\163\x73\x61\147\x65" => "\x46\x61\x69\x6c\145\144\x20\x74\157\40\157\160\145\156\40\x66\x69\154\145"); $errorMsgs[VERR_E3_COM_OPEN_ZIP] = array("\x65\x72\162\x6f\x72\103\x6f\144\145" => VERR_E3_COM_OPEN_ZIP, "\145\162\162\x6f\162\x4d\x65\x73\163\x61\x67\x65" => "\106\x61\151\x6c\x65\144\x20\x74\x6f\x20\x6f\x70\x65\156\40\141\40\132\151\x70\x20\x66\151\154\x65\x2e"); $errorMsgs[VERR_E3_COM_UPLOAD] = array("\145\x72\162\x6f\x72\103\x6f\x64\x65" => VERR_E3_COM_UPLOAD, "\x65\162\162\157\162\115\x65\x73\163\x61\147\145" => "\106\141\151\154\x65\x64\x20\164\157\x20\165\x70\x6c\157\141\144\x20\141\x20\x66\x69\154\x65\x2e"); $errorMsgs[VERR_E3_COM_DOWNLOAD] = array("\x65\162\x72\157\162\103\157\x64\x65" => VERR_E3_COM_DOWNLOAD, "\x65\162\162\157\x72\x4d\145\x73\x73\x61\147\145" => "\x46\141\151\154\x65\144\x20\164\x6f\x20\144\157\167\x6e\x6c\x6f\x61\x64\40\141\x20\146\151\x6c\145\x2e"); $errorMsgs[VERR_E3_COM_INVALID_FORMAT] = array("\x65\x72\162\x6f\x72\x43\x6f\144\x65" => VERR_E3_COM_INVALID_FORMAT, "\145\162\162\x6f\x72\x4d\x65\x73\x73\x61\x67\x65" => "\x49\156\166\x61\154\x69\144\40\146\x69\154\x65\40\146\157\x72\155\x61\x74\56"); $errorMsgs[VERR_E3_COM_CANCELED_BY_USER] = array("\145\162\x72\157\162\103\157\x64\145" => VERR_E3_COM_CANCELED_BY_USER, "\145\162\162\157\x72\x4d\x65\163\163\141\147\x65" => "\103\x61\x6e\143\x65\154\145\x64\40\x62\171\40\165\x73\145\x72"); $errorMsgs[VERR_E3_COM_SAME_FILE] = array("\x65\162\162\x6f\x72\x43\157\144\145" => VERR_E3_COM_SAME_FILE, "\145\x72\x72\157\162\x4d\x65\163\163\x61\147\x65" => "\x54\x68\145\x20\x73\x6f\165\x72\x63\x65\x20\141\x6e\144\40\144\x65\163\164\151\x6e\141\x74\151\157\x6e\x20\x66\151\x6c\x65\x73\40\x61\162\145\40\164\150\x65\40\x73\x61\x6d\x65\x20\x66\x69\154\145\56"); $errorMsgs[VERR_E3_SEG_UNKNOWN] = array("\145\162\x72\x6f\x72\x43\x6f\x64\145" => VERR_E3_SEG_UNKNOWN, "\x65\162\162\x6f\162\115\145\163\163\141\x67\145" => "\125\156\x6b\x6e\157\167\156\40\145\162\162\157\162\40\151\156\x20\163\x65\147\155\x65\x6e\164\x61\x74\151\x6f\156"); $errorMsgs[VERR_E3_SEG_IMPORT_DIFF_UID] = array("\145\162\x72\x6f\162\x43\157\144\145" => VERR_E3_SEG_IMPORT_DIFF_UID, "\145\x72\162\157\x72\115\x65\163\163\141\147\x65" => "\125\111\x44\x20\144\x6f\145\x73\x6e\47\164\x20\x6d\x61\164\143\150\56"); $errorMsgs[VERR_E3_SEG_IMPORT_NO_INFO_FILE] = array("\145\x72\162\x6f\162\x43\x6f\x64\x65" => VERR_E3_SEG_IMPORT_NO_INFO_FILE, "\x65\x72\x72\x6f\162\x4d\x65\163\163\x61\147\145" => "\x54\x68\145\40\x7a\x69\x70\40\146\x69\154\x65\x20\x68\141\x73\x20\156\x6f\x20\151\x6e\146\x6f\x20\146\151\x6c\x65\x2e"); $errorMsgs[VERR_E3_ORTHO_ADD_TREATMENT] = array("\x65\162\x72\x6f\162\103\157\x64\145" => VERR_E3_ORTHO_ADD_TREATMENT, "\x65\162\x72\x6f\162\x4d\145\x73\163\141\147\145" => "\106\x61\x69\154\x20\x74\x6f\40\x61\144\x64\x20\141\40\164\162\145\x61\x74\x6d\x65\x6e\164\x2e"); $errorMsgs[VERR_E3_ORTHO_IMPORT_3D_PHOTO] = array("\x65\x72\162\157\162\x43\x6f\x64\x65" => VERR_E3_ORTHO_IMPORT_3D_PHOTO, "\145\162\162\157\x72\x4d\x65\x73\163\141\147\x65" => "\124\150\x65\x72\145\40\x69\x73\40\x6e\157\40\63\104\x20\x50\x68\x6f\164\157\x20\141\166\141\151\154\141\142\154\145\x2e\x20\120\154\x65\141\x73\145\x20\x74\162\171\x20\141\x67\141\151\x6e\40\141\x66\x74\x65\x72\x20\x69\x6d\160\x6f\162\164\151\x6e\x67\40\x33\104\x20\120\150\157\x74\x6f\x20\x64\141\x74\x61\x2e"); $errorMsgs[VERR_E3_ORTHO_LOAD_MESH_OF_3D_PHOTO] = array("\x65\162\162\x6f\x72\x43\x6f\x64\x65" => VERR_E3_ORTHO_LOAD_MESH_OF_3D_PHOTO, "\145\162\162\x6f\162\115\x65\163\x73\x61\147\145" => "\106\x61\x69\154\x65\144\x20\164\x6f\x20\157\x70\x65\156\40\x33\104\40\x50\150\157\164\157\x20\104\141\164\x61\56"); $errorMsgs[VERR_E3_ORTHO_CALIBRATION] = array("\145\x72\x72\x6f\162\x43\x6f\144\x65" => VERR_E3_ORTHO_CALIBRATION, "\x65\x72\x72\157\162\115\145\163\163\x61\x67\x65" => "\x53\x6f\x66\x74\40\x74\151\x73\163\165\145\x20\143\x61\x6c\151\142\x72\141\x74\x69\157\x6e\40\x70\157\151\x6e\x74\x73\40\x64\157\x20\x6e\x6f\164\x20\x65\170\151\163\164\x2e\x20\120\154\145\x61\x73\145\40\164\x72\171\40\x61\147\x61\x69\156\x20\x61\146\164\x65\x72\40\163\x6f\146\164\40\x74\x69\163\163\165\145\x20\x63\141\x6c\x69\x62\162\x61\x74\151\x6f\x6e\56"); $errorMsgs[VERR_E3_ORTHO_REGISTRATION_3D_PHOTO] = array("\145\162\x72\x6f\x72\103\x6f\x64\145" => VERR_E3_ORTHO_REGISTRATION_3D_PHOTO, "\x65\162\162\157\162\115\x65\x73\x73\141\x67\145" => "\x54\150\x65\x20\63\x44\40\x50\x68\x6f\164\x6f\x20\x64\x61\x74\x61\40\150\x61\163\40\x6e\x6f\164\x20\x62\145\x65\x6e\40\x72\x65\147\151\x73\x74\145\162\145\x64\40\x79\x65\164\x2e"); $errorMsgs[VERR_E3_ENDO_ROOTCANAL_POINT_NOT_ENOUGH] = array("\x65\162\x72\157\x72\x43\157\144\x65" => VERR_E3_ENDO_ROOTCANAL_POINT_NOT_ENOUGH, "\145\x72\162\157\x72\x4d\145\163\x73\x61\147\x65" => "\x54\x68\x65\40\162\x6f\157\x74\40\x63\x61\156\141\x6c\40\160\157\x69\156\x74\40\x69\x73\x20\x6e\x6f\164\40\145\x6e\x6f\x75\147\150\x2e"); $errorMsgs[VERR_O3_CON_XMLPARSE] = array("\145\x72\x72\x6f\162\x43\x6f\x64\145" => VERR_O3_CON_XMLPARSE, "\145\x72\162\157\x72\x4d\145\163\163\141\147\x65" => "\x43\157\x75\154\144\40\x6e\157\164\x20\160\x61\x72\163\x65\40\130\115\x4c\40\144\141\x74\x61"); $errorMsgs[VERR_DB_SUCCESS] = array("\145\162\162\x6f\x72\x43\157\144\x65" => VERR_DB_SUCCESS, "\145\x72\x72\x6f\162\115\x65\163\x73\x61\147\x65" => "\x53\x75\143\143\x65\x73\x73\146\165\x6c\x20\x72\145\x73\x75\154\x74"); $errorMsgs[VERR_DB_ERROR] = array("\145\162\162\157\x72\103\x6f\x64\x65" => VERR_DB_ERROR, "\145\x72\x72\x6f\x72\115\x65\x73\163\141\x67\145" => "\123\121\x4c\x20\x65\x72\x72\x6f\x72\x20\157\x72\x20\155\x69\163\x73\151\156\147\x20\x64\x61\164\x61\x62\x61\163\145"); $errorMsgs[VERR_DB_CONNECT_ERROR] = array("\x65\x72\162\x6f\x72\x43\x6f\x64\145" => VERR_DB_CONNECT_ERROR, "\x65\162\162\157\x72\x4d\x65\163\x73\x61\147\145" => "\103\157\x6e\x6e\145\143\164\x69\x6f\x6e\40\146\141\151\154\x65\x64"); $errorMsgs[VERR_DB_CONNECT_NEXIST] = array("\145\x72\x72\157\162\x43\157\144\145" => VERR_DB_CONNECT_NEXIST, "\x65\162\162\x6f\162\115\145\x73\x73\x61\x67\145" => "\x43\157\x6e\156\x65\143\164\x69\x6f\156\40\144\157\145\163\x20\x6e\157\x74\40\x65\x78\x69\163\x74"); $errorMsgs[VERR_DB_INTERNAL] = array("\145\162\x72\x6f\x72\x43\157\x64\x65" => VERR_DB_INTERNAL, "\x65\162\x72\157\x72\115\145\x73\x73\141\147\x65" => "\111\156\164\145\162\x6e\x61\154\40\x6c\x6f\x67\x69\143\40\x65\162\x72\157\162\x20\x69\156\x20\104\102"); $errorMsgs[VERR_DB_PERMISSION] = array("\145\162\x72\157\162\x43\x6f\x64\x65" => VERR_DB_PERMISSION, "\x65\162\162\x6f\162\115\145\x73\163\141\147\145" => "\x41\x63\143\x65\x73\x73\40\160\145\x72\x6d\151\x73\163\151\157\x6e\x20\x64\x65\x6e\x69\x65\x64"); $errorMsgs[VERR_DB_ABORT] = array("\145\162\162\x6f\x72\x43\157\144\145" => VERR_DB_ABORT, "\x65\162\162\x6f\162\115\x65\163\x73\x61\x67\145" => "\x43\141\154\x6c\x62\x61\143\x6b\40\x72\x6f\x75\x74\x69\x6e\145\x20\162\145\x71\165\x65\x73\164\x65\x64\x20\x61\x6e\40\141\x62\x6f\162\x74"); $errorMsgs[VERR_DB_BUSY] = array("\x65\x72\x72\x6f\x72\x43\x6f\x64\145" => VERR_DB_BUSY, "\145\162\162\157\x72\x4d\x65\163\163\141\x67\x65" => "\124\150\145\40\x64\x61\164\x61\x62\141\x73\x65\x20\x66\151\154\x65\x20\x69\163\x20\x6c\x6f\x63\153\145\x64"); $errorMsgs[VERR_DB_LOCKED] = array("\145\162\x72\157\162\103\x6f\144\145" => VERR_DB_LOCKED, "\145\162\x72\157\x72\x4d\145\x73\163\141\147\145" => "\101\40\x74\x61\142\x6c\145\x20\x69\x6e\40\x74\x68\145\x20\x64\x61\x74\141\142\x61\163\145\x20\151\163\x20\154\157\x63\x6b\x65\x64"); $errorMsgs[VERR_DB_MALLOC] = array("\x65\162\162\x6f\x72\x43\157\144\x65" => VERR_DB_MALLOC, "\x65\162\x72\x6f\162\x4d\x65\x73\x73\141\147\x65" => "\115\145\x6d\157\162\x79\40\141\154\x6c\x6f\143\141\x74\151\157\156\40\146\x61\x69\154\145\144"); $errorMsgs[VERR_DB_READONLY] = array("\145\x72\x72\157\x72\x43\x6f\x64\145" => VERR_DB_READONLY, "\145\x72\162\157\162\x4d\x65\x73\163\141\x67\145" => "\x41\164\x74\145\155\160\x74\x20\164\157\x20\x77\x72\x69\x74\x65\40\141\x20\x72\x65\x61\x64\157\x6e\x6c\x79\x20\144\x61\x74\141\x62\x61\163\x65"); $errorMsgs[VERR_DB_INTERRUPT] = array("\145\162\x72\x6f\162\x43\157\x64\x65" => VERR_DB_INTERRUPT, "\145\x72\162\x6f\162\115\x65\163\x73\141\x67\x65" => "\117\160\145\x72\x61\x74\151\x6f\x6e\x20\164\x65\162\x6d\x69\156\141\x74\x65\x64\40\142\x79\x20\151\x6e\x74\x65\x72\162\x75\160\x74\x28\51"); $errorMsgs[VERR_DB_IO] = array("\145\162\x72\x6f\x72\103\x6f\144\x65" => VERR_DB_IO, "\x65\162\162\157\162\x4d\145\163\x73\141\x67\x65" => "\123\x6f\x6d\x65\40\153\x69\x6e\x64\x20\157\146\40\144\x69\163\153\40\x49\x2f\x4f\x20\x65\x72\162\157\x72\x20\157\143\x63\x75\162\x72\x65\144"); $errorMsgs[VERR_DB_FOUND] = array("\145\x72\x72\x6f\x72\103\x6f\144\145" => VERR_DB_FOUND, "\145\162\x72\x6f\x72\x4d\145\x73\x73\141\147\x65" => "\x54\x68\x65\x20\x64\141\164\x61\142\141\163\145\40\144\151\x73\153\40\x69\x6d\x61\x67\x65\40\x69\x73\40\155\141\154\x66\x6f\162\x6d\x65\x64"); $errorMsgs[VERR_DB_FULL] = array("\145\x72\x72\157\x72\x43\157\144\145" => VERR_DB_FULL, "\145\162\x72\157\x72\115\x65\x73\163\x61\147\145" => "\x55\156\x6b\x6e\x6f\167\x6e\40\x6f\x70\x63\157\x64\145\40\x69\x6e\40\146\151\154\145\137\x63\x6f\156\x74\x72\x6f\154\x28\x29"); $errorMsgs[VERR_DB_INSERTION] = array("\145\x72\x72\x6f\162\103\x6f\x64\145" => VERR_DB_INSERTION, "\145\x72\162\x6f\x72\115\145\x73\x73\141\x67\145" => "\111\x6e\163\145\162\x74\151\157\x6e\40\146\141\x69\154\x65\144\x20\142\145\x63\141\x75\x73\145\40\144\141\x74\141\142\141\163\x65\40\151\163\x20\146\165\x6c\154"); $errorMsgs[VERR_DB_PROTOCOL] = array("\x65\x72\x72\157\x72\103\157\x64\145" => VERR_DB_PROTOCOL, "\145\x72\x72\x6f\162\x4d\145\163\x73\x61\147\145" => "\x55\156\x61\x62\x6c\145\x20\x74\x6f\40\x6f\160\145\156\40\164\x68\145\40\144\141\164\141\142\141\x73\x65\40\x66\x69\x6c\x65"); $errorMsgs[VERR_DB_EMPTY] = array("\145\162\x72\x6f\x72\x43\157\144\x65" => VERR_DB_EMPTY, "\145\x72\x72\x6f\x72\x4d\x65\x73\x73\141\x67\145" => "\x44\141\x74\141\142\141\163\x65\x20\151\163\40\x65\x6d\160\164\171"); $errorMsgs[VERR_DB_SCHEMA] = array("\x65\x72\162\157\x72\x43\157\x64\x65" => VERR_DB_SCHEMA, "\x65\162\x72\x6f\162\115\x65\x73\x73\x61\x67\145" => "\124\150\x65\40\x64\x61\164\141\x62\x61\x73\145\x20\163\143\150\145\x6d\x61\x20\x63\150\x61\x6e\147\x65\144"); $errorMsgs[VERR_DB_TOOBIG] = array("\x65\162\162\x6f\162\103\157\144\145" => VERR_DB_TOOBIG, "\145\x72\x72\x6f\x72\115\x65\x73\x73\141\x67\x65" => "\123\x74\x72\151\156\147\40\157\x72\x20\102\x4c\117\102\40\x65\170\x63\145\x65\x64\x73\40\x73\x69\172\x65\40\154\151\x6d\151\164"); $errorMsgs[VERR_DB_CONSTRAINT] = array("\145\x72\162\x6f\x72\103\x6f\144\x65" => VERR_DB_CONSTRAINT, "\x65\x72\162\x6f\x72\x4d\145\163\163\x61\x67\145" => "\101\142\x6f\x72\x74\x20\x64\x75\x65\40\164\x6f\40\x63\x6f\156\x73\x74\x72\141\151\156\x74\x20\166\151\x6f\154\x61\x74\151\x6f\x6e"); $errorMsgs[VERR_DB_MISMATCH] = array("\145\x72\162\x6f\x72\103\x6f\144\x65" => VERR_DB_MISMATCH, "\145\162\x72\x6f\162\115\x65\x73\x73\141\147\x65" => "\x44\141\x74\x61\40\x74\x79\160\145\x20\155\151\x73\x6d\141\x74\x63\x68"); $errorMsgs[VERR_DB_MISUSE] = array("\145\162\x72\157\162\103\x6f\144\x65" => VERR_DB_MISUSE, "\145\x72\x72\157\x72\x4d\x65\x73\x73\141\147\145" => "\x4c\151\142\x72\x61\x72\171\40\x75\163\145\144\40\151\x6e\143\x6f\x72\x72\x65\x63\x74\154\x79"); $errorMsgs[VERR_DB_OS_SUPPORT] = array("\x65\162\162\x6f\x72\x43\157\x64\x65" => VERR_DB_OS_SUPPORT, "\x65\162\x72\157\x72\x4d\145\x73\163\141\x67\x65" => "\125\163\x65\163\x20\x4f\123\40\x66\x65\141\164\x75\162\145\163\x20\x6e\157\x74\40\163\165\160\160\x6f\x72\164\145\144\x20\157\156\40\150\x6f\163\164"); $errorMsgs[VERR_DB_AUTHOR] = array("\x65\162\x72\x6f\162\x43\157\144\145" => VERR_DB_AUTHOR, "\145\162\162\x6f\162\x4d\x65\163\x73\141\147\x65" => "\101\165\x74\150\157\162\x69\x7a\x61\x74\x69\x6f\156\40\x64\x65\156\x69\145\144"); $errorMsgs[VERR_DB_FORMAT] = array("\x65\x72\162\157\162\x43\x6f\144\145" => VERR_DB_FORMAT, "\x65\x72\162\x6f\x72\115\x65\163\163\x61\x67\x65" => "\x41\165\x78\151\154\x69\x61\x72\171\x20\x64\x61\164\x61\x62\141\x73\x65\40\x66\x6f\x72\155\x61\x74\x20\x65\x72\162\157\162"); $errorMsgs[VERR_DB_RANGE] = array("\145\x72\162\157\162\103\157\x64\x65" => VERR_DB_RANGE, "\145\162\162\x6f\162\115\145\x73\x73\x61\147\x65" => "\120\141\162\141\x6d\145\x74\145\x72\x20\151\163\x20\157\165\164\x20\157\146\x20\162\141\156\x67\145"); $errorMsgs[VERR_DB_ROW] = array("\145\x72\162\x6f\162\103\x6f\144\145" => VERR_DB_ROW, "\x65\x72\162\157\162\115\x65\163\x73\141\147\x65" => "\x6e\x65\170\164\x28\51\x20\150\141\x73\40\x61\156\157\x74\x68\145\162\40\162\157\x77\x20\162\x65\141\x64\x79"); $errorMsgs[VERR_DB_DONE] = array("\x65\x72\162\157\162\103\157\x64\x65" => VERR_DB_DONE, "\x65\162\x72\157\x72\x4d\x65\x73\163\x61\147\145" => "\156\x65\170\x74\50\51\40\150\x61\163\x20\x66\151\156\x69\163\150\145\144\40\x65\170\145\x63\x75\164\x69\156\147"); $errorMsgs[VERR_DB_OVERLAP] = array("\x65\x72\162\x6f\x72\103\x6f\144\x65" => VERR_DB_OVERLAP, "\145\162\162\157\162\115\145\163\163\141\x67\x65" => "\x4f\166\145\x72\x6c\141\160\40\x44\102\x20\104\x61\x74\x61"); $errorMsgs[VERR_DB_FCONNRELEASE] = array("\x65\x72\162\157\162\x43\x6f\x64\145" => VERR_DB_FCONNRELEASE, "\145\162\162\x6f\x72\115\x65\163\x73\x61\147\145" => "\106\141\x69\x6c\x65\x64\x20\x74\x6f\x20\162\145\154\x65\141\x73\x65\x20\143\157\156\x6e\x65\x63\164\x69\x6f\x6e"); $errorMsgs[VERR_DB_ALEADYINIT] = array("\x65\162\x72\157\162\103\157\144\x65" => VERR_DB_ALEADYINIT, "\x65\162\162\x6f\x72\115\145\x73\163\x61\147\x65" => "\103\x6f\156\156\145\x63\164\151\x6f\156\x20\151\x73\x20\x61\x6c\162\145\x61\144\171\40\x69\x6e\151\x74\151\141\154\151\172\145\x64"); $errorMsgs[VERR_DB_OVERMAXCONNECTION] = array("\145\162\162\157\x72\x43\x6f\144\x65" => VERR_DB_OVERMAXCONNECTION, "\145\162\162\x6f\x72\115\145\163\163\x61\x67\x65" => "\105\x78\143\145\x65\144\x65\x64\x20\164\150\145\40\155\x61\170\151\155\165\x6d\40\x6e\165\x6d\x62\145\162\x20\x6f\146\40\143\157\x6e\156\x65\x63\164\x69\157\156\163"); $errorMsgs[VERR_DB_ALRRELECONNECTION] = array("\x65\x72\x72\x6f\162\x43\157\x64\145" => VERR_DB_ALRRELECONNECTION, "\x65\162\162\x6f\162\115\x65\x73\163\x61\x67\145" => "\x63\157\x6e\156\145\143\164\x69\157\156\x20\x61\154\x72\145\x61\x64\x79\x20\151\163\x20\162\145\154\x65\141\163\145\x64\56"); $errorMsgs[VERR_DB_STILLREFERENCED] = array("\x65\x72\x72\x6f\162\x43\x6f\x64\x65" => VERR_DB_STILLREFERENCED, "\145\162\162\x6f\162\x4d\x65\x73\x73\x61\x67\x65" => "\123\x74\x69\x6c\x6c\x20\162\145\x66\x65\x72\145\156\x63\145\x64\x20\x74\141\x62\154\x65"); $errorMsgs[VERR_DB_INVALIDDATA] = array("\x65\x72\x72\157\x72\x43\x6f\x64\x65" => VERR_DB_INVALIDDATA, "\145\162\x72\x6f\x72\x4d\145\x73\x73\141\x67\x65" => "\x55\156\x61\x62\154\145\x20\x74\157\x20\x64\x65\x61\x6c\40\167\x69\x74\x68\x20\164\x68\145\x20\151\x6e\x76\141\x6c\x69\144\40\144\141\x74\x61\40\146\162\157\x6d\40\x74\150\145\x20\x44\x42"); $errorMsgs[VERR_DB_NOSUPPORTDRIVER] = array("\145\162\x72\157\x72\x43\x6f\x64\145" => VERR_DB_NOSUPPORTDRIVER, "\x65\x72\x72\157\x72\x4d\145\163\x73\141\147\145" => "\x55\156\x73\x75\x70\160\157\x72\x74\145\144\40\x44\102\40\104\x72\x69\166\145\162"); $errorMsgs[VERR_DB_NOSUCHDATA] = array("\145\162\162\x6f\162\103\x6f\144\x65" => VERR_DB_NOSUCHDATA, "\145\162\162\157\162\x4d\x65\163\163\141\x67\145" => "\x4e\x6f\x20\163\165\x63\150\x20\x64\141\164\x61\40\151\x6e\x20\104\102"); $errorMsgs[VERR_DB_PATIDTOIMG] = array("\145\x72\162\x6f\162\x43\x6f\144\x65" => VERR_DB_PATIDTOIMG, "\x65\x72\x72\157\162\x4d\145\163\163\x61\147\145" => "\x53\165\143\x63\145\x65\144\x65\x64\40\164\x6f\x20\162\145\x66\145\x72\145\156\x63\x65\40\103\x68\x61\162\x74\40\156\165\x6d\142\x65\162\40\x74\x6f\x20\151\155\x61\x67\145\x20\x74\x61\x62\154\x65\x28\105\x7a\63\104\x20\x70\x6c\165\x73\51"); $errorMsgs[VERR_DB_EMPTYHOST] = array("\x65\x72\x72\x6f\x72\103\157\144\x65" => VERR_DB_EMPTYHOST, "\145\162\x72\x6f\162\x4d\x65\x73\163\141\x67\145" => "\x48\157\163\164\x20\x6e\x61\x6d\145\40\151\163\x20\x65\155\x70\164\171"); $errorMsgs[VERR_DB_OPEN_ERROR] = array("\145\x72\162\x6f\162\103\157\x64\x65" => VERR_DB_OPEN_ERROR, "\x65\x72\x72\157\x72\x4d\x65\163\163\x61\x67\x65" => "\x4f\160\x65\156\x20\x64\x61\164\x61\x62\x61\163\145\x20\146\141\151\154\x65\144"); $errorMsgs[VERR_DB_QUERY_EXEC_ERROR] = array("\145\162\162\x6f\162\103\x6f\144\x65" => VERR_DB_QUERY_EXEC_ERROR, "\145\162\162\157\162\x4d\145\x73\x73\141\x67\145" => "\x51\165\145\162\171\40\145\170\x65\143\165\x74\151\157\156\x20\x66\x61\x69\x6c\x65\x64"); $errorMsgs[VERR_DB_NORESULTDATA] = array("\145\x72\162\157\x72\x43\157\x64\145" => VERR_DB_NORESULTDATA, "\x65\162\x72\157\162\115\x65\x73\x73\x61\147\x65" => "\x54\x68\x65\40\x72\x65\x73\x75\x6c\x74\151\x6e\x67\40\x76\x61\154\165\x65\x20\151\x73\40\x6e\x6f\x74\x20\x70\162\x65\163\145\x6e\x74"); $errorMsgs[VERR_DB_NOSUCHTABLE] = array("\x65\x72\162\157\x72\103\x6f\x64\145" => VERR_DB_NOSUCHTABLE, "\x65\162\x72\x6f\x72\115\145\163\x73\141\x67\x65" => "\116\157\40\163\x75\x63\150\x20\164\x61\142\x6c\145\x20\151\x6e\40\104\102"); $errorMsgs[VERR_DB_VERSION] = array("\x65\162\x72\x6f\162\x43\x6f\144\145" => VERR_DB_VERSION, "\x65\162\162\157\162\x4d\x65\163\x73\141\x67\145" => "\x44\x61\164\x61\x62\141\163\x65\40\166\x65\162\163\x69\157\156\40\145\162\x72\x6f\162"); $errorMsgs[VERR_INI_SUCCESS] = array("\145\162\162\157\162\103\157\144\x65" => VERR_INI_SUCCESS, "\x65\x72\x72\x6f\162\x4d\145\163\x73\x61\147\145" => "\111\116\x49\x20\x66\165\156\x63\x74\x69\x6f\156\40\x6f\x70\145\x72\x61\x74\x69\x6f\156\x20\x69\x73\x20\163\165\143\x63\145\x65\144\145\144"); $errorMsgs[VERR_INI_NOPEN] = array("\x65\162\x72\x6f\162\x43\x6f\144\145" => VERR_INI_NOPEN, "\x65\162\162\157\162\x4d\145\x73\x73\141\147\x65" => "\x43\157\165\x6c\x64\40\x6e\x6f\x74\40\x6f\x70\145\156\x20\x49\116\x49\x20\146\x69\154\145"); $errorMsgs[VERR_INI_INIT_FAILED] = array("\x65\162\x72\157\x72\x43\157\144\145" => VERR_INI_INIT_FAILED, "\145\162\162\x6f\162\x4d\145\163\163\x61\147\145" => "\x49\x6e\x69\164\151\141\154\x69\x7a\141\164\x69\x6f\156\40\x6f\146\x20\x49\116\111\x20\x6f\142\x6a\145\x63\x74\x20\x66\141\x69\154\145\144"); $errorMsgs[VERR_INI_INVALID_SECTION] = array("\145\162\x72\x6f\162\x43\157\144\145" => VERR_INI_INVALID_SECTION, "\145\x72\x72\x6f\162\115\145\163\163\x61\x67\145" => "\x49\x6e\x76\x61\x6c\151\x64\x20\x73\145\x63\x74\151\157\x6e\40\x61\x72\147\165\155\x65\156\164"); $errorMsgs[VERR_INI_INVALID_KEY] = array("\145\162\162\x6f\x72\103\x6f\144\145" => VERR_INI_INVALID_KEY, "\145\x72\162\x6f\x72\x4d\145\163\163\x61\147\145" => "\x49\156\166\x61\x6c\x69\x64\40\x6b\x65\x79\x20\x61\162\x67\165\155\145\x6e\x74"); $errorMsgs[VERR_INI_INVALID_PATH] = array("\x65\162\162\157\162\x43\157\144\145" => VERR_INI_INVALID_PATH, "\x65\162\162\x6f\x72\x4d\145\163\163\141\147\x65" => "\x49\x6e\166\x61\154\151\144\40\111\x4e\x49\x20\x66\x69\x6c\x65\x20\x70\x61\164\x68"); $errorMsgs[VERR_INI_FAILED] = array("\145\162\x72\157\162\x43\x6f\144\x65" => VERR_INI_FAILED, "\145\x72\162\157\162\x4d\145\163\x73\141\147\x65" => "\111\116\x49\x20\146\165\x6e\143\164\151\x6f\156\40\x6f\x70\145\162\x61\x74\151\x6f\x6e\40\146\x61\x69\154\145\144"); $errorMsgs[VERR_CRYPT_SUCCESS] = array("\145\x72\162\x6f\x72\x43\x6f\x64\x65" => VERR_CRYPT_SUCCESS, "\145\x72\162\x6f\x72\x4d\x65\x73\163\x61\x67\145" => "\x43\162\171\x70\x74\x20\146\165\156\x63\x74\151\157\156\40\x6f\x70\145\x72\141\x74\151\157\x6e\x20\163\165\x63\x63\145\145\144\x65\x64"); $errorMsgs[VERR_CRYPT_INIT_FAILED] = array("\145\162\162\x6f\x72\x43\157\x64\145" => VERR_CRYPT_INIT_FAILED, "\x65\x72\162\x6f\162\x4d\145\163\163\141\147\145" => "\x43\162\171\x70\164\x6f\x20\x6f\142\x6a\145\143\x74\163\40\x69\156\x69\x74\x69\x61\154\x69\x7a\141\164\x69\157\156\x20\x66\x61\151\x6c\x65\144"); $errorMsgs[VERR_CRYPT_NEED_KEY_SETTING] = array("\145\x72\x72\157\162\x43\x6f\x64\x65" => VERR_CRYPT_NEED_KEY_SETTING, "\145\162\162\x6f\x72\115\145\163\x73\141\x67\x65" => "\x4d\x75\x73\x74\x20\x73\145\x74\x20\153\145\171\x20\x76\141\x6c\x75\145"); $errorMsgs[VERR_CRYPT_UNKNOWN_VERSION] = array("\x65\x72\x72\x6f\x72\103\157\144\145" => VERR_CRYPT_UNKNOWN_VERSION, "\x65\162\x72\x6f\x72\x4d\145\x73\x73\141\147\x65" => "\x55\x6e\x6b\x6e\x6f\x77\156\40\123\151\155\160\154\x65\x43\162\x79\x70\164\x20\166\145\162\163\151\157\x6e"); $errorMsgs[VERR_CRYPT_WRONG_KEY] = array("\145\x72\162\157\x72\103\157\x64\145" => VERR_CRYPT_WRONG_KEY, "\145\162\x72\x6f\162\x4d\145\163\x73\141\147\x65" => "\x57\x72\157\x6e\147\x20\153\145\x79"); $errorMsgs[VERR_CRYPT_UNKNOWN_ERROR] = array("\145\x72\x72\157\162\103\x6f\x64\x65" => VERR_CRYPT_UNKNOWN_ERROR, "\145\x72\x72\157\162\115\x65\163\163\x61\x67\x65" => "\x55\x6e\x6b\156\157\x77\x6e\40\123\x69\x6d\160\154\145\103\x72\x79\160\x74\x20\145\x72\x72\157\162"); $errorMsgs[VERR_QSSLOADER_SUCCESS] = array("\x65\162\162\x6f\x72\x43\157\x64\145" => VERR_QSSLOADER_SUCCESS, "\x65\x72\162\x6f\x72\x4d\x65\163\x73\141\x67\x65" => "\121\x53\x53\x20\x4c\x6f\141\x64\145\x72\x20\101\x50\111\x20\x6f\x70\x65\162\141\164\151\157\x6e\x20\x73\x75\x63\x63\145\145\144\145\144"); $errorMsgs[VERR_QSSLOADER_DIRNOTFOUND] = array("\145\x72\162\x6f\162\x43\157\144\145" => VERR_QSSLOADER_DIRNOTFOUND, "\145\162\162\157\162\x4d\x65\163\x73\x61\147\145" => "\x43\141\x6e\x6e\157\x74\x20\x66\151\156\x64\x20\164\150\145\x20\x64\151\162\x65\x63\x74\x6f\x72\x79"); $errorMsgs[VERR_QSSLOADER_FILENOTFOUND] = array("\x65\162\162\157\x72\x43\x6f\x64\145" => VERR_QSSLOADER_FILENOTFOUND, "\x65\x72\x72\157\x72\115\x65\x73\x73\141\147\145" => "\103\x61\156\156\157\x74\40\146\151\x6e\144\x20\x51\x53\123\x20\x6f\x72\x20\130\x4d\x4c\x20\146\151\x6c\145"); $errorMsgs[VERR_QSSLOADER_XML_PARSE] = array("\145\162\x72\157\x72\103\x6f\x64\x65" => VERR_QSSLOADER_XML_PARSE, "\x65\162\x72\157\162\x4d\145\163\163\141\x67\x65" => "\130\115\x4c\40\x70\x61\x72\x73\151\156\147\40\145\x72\162\x6f\x72"); $errorMsgs[VERR_QSSLOADER_QINI_PARSE] = array("\x65\162\x72\x6f\x72\x43\157\144\x65" => VERR_QSSLOADER_QINI_PARSE, "\145\162\162\x6f\x72\x4d\x65\x73\x73\x61\x67\x65" => "\111\116\111\40\160\141\x72\x73\x69\156\x67\x20\x65\162\x72\x6f\x72"); $errorMsgs[VERR_QSSLOADER_OUTOFMEMORY] = array("\x65\x72\162\157\x72\x43\157\144\x65" => VERR_QSSLOADER_OUTOFMEMORY, "\x65\x72\162\x6f\162\115\145\163\163\x61\x67\x65" => "\x49\156\163\x75\x66\146\151\x63\151\145\x6e\x74\x20\x6d\x65\x6d\x6f\x72\171"); $errorMsgs[VERR_QSSLOADER_INVALIDARGUMENT] = array("\x65\162\x72\157\x72\x43\x6f\x64\145" => VERR_QSSLOADER_INVALIDARGUMENT, "\x65\162\162\x6f\x72\x4d\x65\163\163\141\x67\145" => "\x50\141\x73\163\x65\x64\40\151\156\166\141\154\x69\144\x20\x61\162\147\165\155\x65\156\x74"); $errorMsgs[VERR_QSSLOADER_NOSUITABLEQSS] = array("\145\x72\x72\x6f\x72\x43\157\x64\x65" => VERR_QSSLOADER_NOSUITABLEQSS, "\x65\162\x72\157\162\x4d\145\x73\x73\x61\147\145" => "\103\141\156\156\x6f\x74\x20\146\151\156\x64\40\x73\x75\x69\x74\x61\x62\x6c\145\40\121\x53\x53\40\146\151\x6c\145"); $errorMsgs[VERR_QSSLOADER_QSSWASNOTLOADED] = array("\x65\162\x72\157\x72\103\157\x64\x65" => VERR_QSSLOADER_QSSWASNOTLOADED, "\145\x72\162\157\162\115\x65\163\x73\x61\147\x65" => "\121\123\123\x20\x69\156\151\x74\151\141\154\x69\x7a\141\164\x69\157\x6e\x20\167\141\x73\x20\156\x6f\164\40\143\x6f\155\x70\x6c\145\164\x65\x64"); $errorMsgs[VERR_QSSLOADER_VALIABLENOTFOUND] = array("\x65\x72\x72\x6f\162\103\157\144\x65" => VERR_QSSLOADER_VALIABLENOTFOUND, "\145\x72\162\x6f\162\115\145\x73\163\141\147\x65" => "\103\x61\x6e\156\x6f\164\x20\146\151\x6e\x64\x20\164\x68\x65\40\x76\141\x72\151\x61\x62\x6c\145"); $errorMsgs[VERR_QSSLOADER_INVALIDSKIN] = array("\145\162\162\x6f\162\103\x6f\x64\145" => VERR_QSSLOADER_INVALIDSKIN, "\x65\x72\162\157\x72\x4d\145\x73\x73\x61\147\145" => "\125\x6e\x73\165\x70\160\x6f\x72\164\x65\x64\40\163\x6b\151\x6e\40\156\x61\155\x65"); $errorMsgs[VERR_QSSLOADER_INVALIDOS] = array("\145\x72\x72\x6f\x72\103\157\x64\x65" => VERR_QSSLOADER_INVALIDOS, "\x65\162\162\157\162\x4d\x65\x73\163\x61\x67\x65" => "\125\156\163\x75\160\x70\x6f\x72\164\x65\144\x20\x4f\123\40\x6e\141\x6d\145"); $errorMsgs[VERR_EMAIL_LIBLICENSE] = array("\145\x72\162\x6f\x72\x43\157\x64\145" => VERR_EMAIL_LIBLICENSE, "\x65\162\162\x6f\x72\115\x65\163\x73\x61\147\x65" => "\114\151\x63\x65\156\163\145\x20\x65\162\162\157\162\x20\x6f\x66\x20\x65\155\x61\151\154\x20\154\151\142\162\x61\162\171"); $errorMsgs[VERR_EMAIL_CONNECTION_FAILURE] = array("\145\x72\162\x6f\x72\103\x6f\144\x65" => VERR_EMAIL_CONNECTION_FAILURE, "\145\162\x72\x6f\x72\115\145\x73\x73\141\147\x65" => "\x43\157\x6e\x6e\145\143\x74\x69\157\156\x20\164\157\40\123\x4d\x54\120\40\x73\x65\x72\166\145\x72\x20\146\141\x69\x6c\145\x64"); $errorMsgs[VERR_EMAIL_AUTHENTICATION] = array("\x65\x72\x72\157\162\103\x6f\144\145" => VERR_EMAIL_AUTHENTICATION, "\145\162\x72\157\x72\115\x65\x73\x73\x61\x67\x65" => "\103\x61\x6e\156\157\x74\40\154\x6f\x67\x69\x6e\x20\x74\157\x20\123\115\124\x50\x20\x73\x65\x72\166\x65\162"); $errorMsgs[VERR_EMAIL_ATTACHFILE] = array("\x65\162\x72\x6f\162\x43\x6f\x64\145" => VERR_EMAIL_ATTACHFILE, "\x65\162\x72\x6f\x72\115\x65\x73\x73\141\147\145" => "\106\141\151\154\145\144\40\164\x6f\40\141\x74\164\141\x63\x68\40\146\x69\x6c\145\163"); $errorMsgs[VERR_EMAIL_SENDING] = array("\x65\162\162\157\162\103\x6f\x64\145" => VERR_EMAIL_SENDING, "\x65\162\162\157\x72\115\145\x73\x73\141\x67\145" => "\101\x6e\40\x65\162\162\157\162\x20\x6f\143\x63\165\x72\x72\145\144\x20\x77\150\151\x6c\145\x20\x73\x65\x6e\x64\x69\156\147\40\x74\x68\145\40\x65\155\x61\151\154"); $errorMsgs[VERR_EMAIL_ADDRESS] = array("\x65\162\x72\x6f\162\x43\x6f\x64\x65" => VERR_EMAIL_ADDRESS, "\145\162\162\157\x72\115\145\163\x73\141\x67\145" => "\102\x61\x64\x20\144\x65\163\x74\x69\156\141\x74\x69\x6f\156\40\155\x61\x69\x6c\x62\x6f\170\40\141\x64\x64\162\145\163\x73"); $errorMsgs[VERR_EMAIL_DENSYS_ADDRESS] = array("\145\x72\162\x6f\162\103\157\144\145" => VERR_EMAIL_DENSYS_ADDRESS, "\x65\162\162\x6f\162\x4d\145\163\163\x61\147\x65" => "\x42\141\x64\40\144\145\x73\x74\151\x6e\x61\x74\151\x6f\156\x20\x73\x79\x73\x74\145\x6d\x20\x61\x64\x64\162\145\x73\163"); $errorMsgs[VERR_EMAIL_DENADDRESS_SYNTAX] = array("\x65\x72\162\157\x72\103\x6f\144\145" => VERR_EMAIL_DENADDRESS_SYNTAX, "\x65\x72\x72\x6f\x72\x4d\145\163\x73\141\x67\145" => "\102\x61\144\x20\144\145\x73\x74\x69\x6e\x61\164\151\157\156\x20\x6d\141\x69\x6c\x62\x6f\x78\40\x61\x64\x64\x72\145\x73\163\x20\163\x79\x6e\x74\x61\170"); $errorMsgs[VERR_EMAIL_ADDRESS_AMBIGUOS] = array("\145\162\x72\x6f\162\x43\x6f\x64\145" => VERR_EMAIL_ADDRESS_AMBIGUOS, "\145\162\x72\157\162\115\x65\x73\x73\141\147\145" => "\x44\x65\163\164\151\x6e\x61\x74\151\x6f\156\40\x6d\141\x69\154\x62\x6f\x78\x20\x61\x64\x64\162\x65\x73\163\x20\141\x6d\142\151\x67\x75\x6f\165\x73"); $errorMsgs[VERR_EMAIL_ADDRESS_VALID] = array("\x65\162\x72\x6f\x72\x43\157\144\145" => VERR_EMAIL_ADDRESS_VALID, "\x65\162\x72\157\162\115\145\163\163\x61\147\x65" => "\x44\145\163\164\x69\156\141\x74\151\x6f\x6e\x20\155\x61\151\x6c\142\157\x78\40\x61\x64\144\162\145\163\163\40\x76\141\154\151\144"); $errorMsgs[VERR_EMAIL_MAILBOX_MOVE] = array("\145\x72\x72\157\162\103\x6f\144\x65" => VERR_EMAIL_MAILBOX_MOVE, "\145\x72\x72\x6f\162\115\145\163\x73\x61\x67\145" => "\x4d\141\151\154\x62\x6f\x78\x20\x68\141\163\40\155\x6f\x76\x65\x64"); $errorMsgs[VERR_EMAIL_SENADDRESS_SYNTAX] = array("\x65\x72\162\x6f\x72\x43\157\144\145" => VERR_EMAIL_SENADDRESS_SYNTAX, "\x65\162\x72\x6f\x72\115\x65\x73\x73\x61\147\145" => "\102\x61\144\40\163\x65\x6e\x64\145\x72\47\x73\40\x6d\141\151\154\142\x6f\170\40\141\144\144\x72\145\x73\x73\40\x73\x79\x6e\x74\x61\170"); $errorMsgs[VERR_EMAIL_SENSYS_ADDRESS] = array("\x65\162\x72\x6f\162\103\x6f\144\145" => VERR_EMAIL_SENSYS_ADDRESS, "\x65\x72\x72\157\x72\115\145\163\163\141\x67\x65" => "\102\141\x64\40\x73\x65\156\144\x65\162\x27\163\40\x73\171\x73\x74\145\x6d\x20\x61\144\144\x72\145\x73\x73"); $errorMsgs[VERR_EMAIL_OTHER_MAILBOX] = array("\145\x72\162\157\x72\x43\157\x64\x65" => VERR_EMAIL_OTHER_MAILBOX, "\x65\x72\x72\157\x72\x4d\x65\x73\x73\141\147\145" => "\117\x74\150\145\162\x20\157\162\x20\x75\156\144\x65\x66\x69\156\x65\x64\x20\155\141\x69\154\142\157\x78\x20\x73\x74\141\164\165\x73"); $errorMsgs[VERR_EMAIL_MAILBOX_DISABLED] = array("\145\162\162\x6f\162\x43\x6f\x64\x65" => VERR_EMAIL_MAILBOX_DISABLED, "\145\x72\162\157\162\x4d\145\x73\x73\x61\147\145" => "\x4d\141\151\x6c\x62\157\x78\x20\x64\151\163\x61\142\x6c\145\x64\x2c\x20\156\157\164\40\x61\143\143\x65\160\x74\x69\156\x67\40\x6d\x65\163\163\141\147\x65\163"); $errorMsgs[VERR_EMAIL_MAILBOX_FULL] = array("\x65\162\162\x6f\x72\103\157\x64\145" => VERR_EMAIL_MAILBOX_FULL, "\145\x72\162\157\x72\115\145\163\163\x61\147\145" => "\115\141\151\x6c\x62\157\x78\x20\x66\x75\154\x6c"); $errorMsgs[VERR_EMAIL_MSSG_LENGTH] = array("\145\x72\162\157\x72\103\x6f\144\x65" => VERR_EMAIL_MSSG_LENGTH, "\x65\162\x72\157\162\115\x65\163\x73\x61\147\x65" => "\x4d\145\x73\x73\x61\147\x65\x20\x6c\145\x6e\x67\164\x68\40\145\x78\x63\145\x65\144\163\40\141\144\x6d\151\156\x69\163\x74\162\141\164\x69\x76\145\40\x6c\x69\x6d\151\164\56"); $errorMsgs[VERR_EMAIL_MAILING_NEXPAN] = array("\x65\162\162\x6f\x72\x43\x6f\x64\145" => VERR_EMAIL_MAILING_NEXPAN, "\145\x72\x72\157\x72\x4d\145\163\163\141\147\145" => "\115\x61\x69\154\x69\x6e\147\x20\x6c\151\163\x74\40\145\x78\160\141\156\163\151\x6f\156\x20\x70\162\157\x62\154\x65\155"); $errorMsgs[VERR_EMAIL_SYS_NNETWORK_MSSG] = array("\145\x72\162\x6f\x72\x43\157\x64\x65" => VERR_EMAIL_SYS_NNETWORK_MSSG, "\145\x72\x72\157\x72\x4d\x65\163\x73\x61\147\145" => "\123\x79\x73\164\x65\155\40\x6e\157\164\40\x61\143\143\x65\x70\x74\x69\x6e\147\x20\x6e\145\x74\x77\x6f\x72\153\x20\x6d\x65\163\x73\x61\147\145\163"); $errorMsgs[VERR_EMAIL_SYS_NFEATURE] = array("\145\162\162\x6f\162\103\157\144\x65" => VERR_EMAIL_SYS_NFEATURE, "\x65\x72\162\157\x72\115\x65\x73\x73\141\x67\x65" => "\x53\x79\163\x74\145\155\x20\x6e\x6f\x74\x20\143\141\160\141\142\154\x65\x20\157\146\x20\x73\x65\154\145\x63\x74\x65\144\40\x66\145\141\x74\165\162\x65\x73"); $errorMsgs[VERR_EMAIL_MSSG_BIG] = array("\x65\x72\162\x6f\162\x43\157\x64\145" => VERR_EMAIL_MSSG_BIG, "\x65\x72\162\x6f\162\115\x65\x73\163\x61\x67\145" => "\x4d\145\x73\x73\141\x67\x65\40\x74\157\x6f\x20\x62\x69\x67\40\146\x6f\162\40\x73\171\163\x74\145\x6d"); $errorMsgs[VERR_EMAIL_NANSWER_HOST] = array("\145\x72\162\x6f\162\x43\157\144\x65" => VERR_EMAIL_NANSWER_HOST, "\x65\x72\162\x6f\x72\x4d\x65\163\163\x61\x67\145" => "\x4e\157\x20\x61\x6e\163\167\x65\x72\40\x66\x72\x6f\155\x20\x68\157\x73\164"); $errorMsgs[VERR_EMAIL_NETWORK_CONGESTION] = array("\145\162\x72\157\x72\x43\157\144\x65" => VERR_EMAIL_NETWORK_CONGESTION, "\145\x72\162\x6f\x72\x4d\145\163\163\141\147\145" => "\116\x65\x74\167\x6f\x72\153\40\143\x6f\156\147\x65\x73\164\151\x6f\x6e"); $errorMsgs[VERR_EMAIL_TIME_EXPIRED] = array("\145\x72\162\x6f\162\x43\157\x64\145" => VERR_EMAIL_TIME_EXPIRED, "\x65\x72\162\157\x72\115\145\x73\163\141\147\145" => "\104\x65\x6c\x69\166\145\162\x79\x20\x74\151\155\145\x20\x65\x78\160\151\x72\x65\x64"); $errorMsgs[VERR_EMAIL_UNDEFIN_PROTOCOL] = array("\145\162\x72\157\x72\103\157\x64\145" => VERR_EMAIL_UNDEFIN_PROTOCOL, "\145\x72\162\x6f\x72\115\145\163\x73\x61\147\145" => "\117\164\150\145\x72\x20\x6f\x72\x20\165\156\x64\145\146\x69\x6e\145\x64\x20\160\x72\157\164\x6f\143\x6f\154\x20\x73\164\141\x74\x75\163"); $errorMsgs[VERR_EMAIL_COMMAND] = array("\145\162\162\157\162\x43\x6f\144\145" => VERR_EMAIL_COMMAND, "\145\x72\162\x6f\162\115\145\163\163\x61\x67\145" => "\111\x6e\166\x61\154\151\144\x20\x63\x6f\x6d\155\141\156\x64"); $errorMsgs[VERR_EMAIL_SYNTAX] = array("\145\162\x72\x6f\162\x43\x6f\144\145" => VERR_EMAIL_SYNTAX, "\145\162\162\157\x72\x4d\x65\x73\163\x61\x67\145" => "\123\x79\156\164\141\x78\x20\x65\x72\x72\157\162"); $errorMsgs[VERR_EMAIL_RECIPIENT] = array("\x65\x72\162\x6f\162\x43\157\x64\145" => VERR_EMAIL_RECIPIENT, "\x65\162\162\157\x72\115\x65\163\163\x61\x67\x65" => "\124\x6f\x6f\x20\x6d\141\x6e\x79\x20\162\145\143\x69\160\x69\145\156\x74\163"); $errorMsgs[VERR_EMAIL_POROTOCOL] = array("\x65\x72\162\157\x72\103\x6f\144\x65" => VERR_EMAIL_POROTOCOL, "\145\162\x72\x6f\x72\x4d\145\x73\x73\141\147\x65" => "\x57\x72\x6f\156\147\x20\x70\162\x6f\x74\157\x63\157\154\x20\x76\x65\x72\163\x69\x6f\x6e"); $errorMsgs[VERR_EMAIL_MEDIA] = array("\145\162\162\157\162\103\x6f\144\145" => VERR_EMAIL_MEDIA, "\145\x72\162\x6f\162\115\x65\x73\x73\x61\x67\x65" => "\x4f\164\x68\145\162\x20\157\162\x20\165\156\x64\145\146\x69\156\145\x64\40\x6d\x65\x64\x69\141\x20\x65\x72\162\x6f\162"); $errorMsgs[VERR_EMAIL_CONVERSION] = array("\x65\x72\x72\x6f\162\x43\157\x64\145" => VERR_EMAIL_CONVERSION, "\145\162\162\x6f\162\x4d\145\163\163\141\147\145" => "\103\157\156\x76\x65\162\x73\x69\157\156\40\146\141\151\154\145\x64"); $errorMsgs[VERR_EMAIL_NDELIVERY] = array("\145\x72\x72\157\162\103\157\x64\145" => VERR_EMAIL_NDELIVERY, "\145\x72\162\x6f\162\115\x65\x73\x73\x61\147\x65" => "\104\x65\x6c\x69\166\145\x72\171\40\x6e\x6f\164\40\x61\x75\164\x68\x6f\x72\x69\172\x65\x64\54\x20\x6d\145\163\x73\141\x67\145\40\x72\145\146\x75\163\145\x64"); $errorMsgs[VERR_EMAIL_INTEGRITY] = array("\x65\x72\x72\x6f\162\103\x6f\144\145" => VERR_EMAIL_INTEGRITY, "\x65\162\x72\x6f\x72\x4d\145\x73\163\141\x67\145" => "\115\x65\163\163\x61\x67\145\x20\x69\156\164\x65\x67\x72\x69\x74\x79\40\x66\141\x69\154\165\162\x65"); $errorMsgs[VERR_IMAGE_SUCCESS] = array("\145\x72\162\157\162\x43\x6f\144\x65" => VERR_IMAGE_SUCCESS, "\x65\162\x72\157\x72\x4d\x65\x73\x73\x61\x67\x65" => "\111\155\141\x67\145\x20\160\141\x72\x73\151\156\x67\40\x73\165\x63\x63\x65\163\163"); $errorMsgs[VERR_IMAGE_SUPPORT] = array("\x65\162\x72\157\162\x43\x6f\x64\x65" => VERR_IMAGE_SUPPORT, "\145\162\162\157\162\x4d\x65\163\x73\141\147\x65" => "\124\150\145\40\151\155\x61\x67\x65\40\164\x79\160\x65\x20\151\x73\x20\x6e\x6f\x74\40\163\x75\160\x70\x6f\x72\164"); $errorMsgs[VERR_IMAGE_LOAD] = array("\x65\162\x72\x6f\162\103\157\144\145" => VERR_IMAGE_LOAD, "\x65\162\x72\157\x72\x4d\145\x73\163\x61\147\x65" => "\124\x68\145\40\151\155\x61\147\x65\x20\151\163\x20\x6e\x6f\164\x20\x6c\x6f\141\x64"); $errorMsgs[VERR_IMAGE_SAVE] = array("\145\162\x72\x6f\x72\x43\157\x64\x65" => VERR_IMAGE_SAVE, "\x65\x72\x72\x6f\x72\x4d\x65\x73\163\141\147\x65" => "\x54\x68\x65\40\x69\x6d\141\147\145\40\x69\x73\x20\x6e\157\164\x20\x73\x61\x76\x65"); $errorMsgs[VERR_IMAGE_INVALID] = array("\x65\x72\x72\x6f\162\x43\x6f\x64\x65" => VERR_IMAGE_INVALID, "\145\x72\x72\157\x72\x4d\x65\163\163\x61\147\x65" => "\111\156\166\x61\154\151\x64\40\111\x6d\x61\147\x65\x20\164\171\x70\x65"); $errorMsgs[VERR_IMAGE_DAMAGED] = array("\145\x72\162\x6f\x72\x43\x6f\x64\x65" => VERR_IMAGE_DAMAGED, "\145\x72\162\x6f\x72\115\x65\x73\163\x61\147\145" => "\111\155\141\147\x65\40\x69\x73\40\144\x61\155\141\x67\x65\x64"); $errorMsgs[VERR_IMAGE_MEMORY] = array("\x65\x72\162\x6f\x72\x43\157\x64\145" => VERR_IMAGE_MEMORY, "\145\x72\x72\157\x72\x4d\x65\x73\x73\x61\147\145" => "\x54\x68\145\x72\145\40\x77\x61\163\40\x6e\157\x74\40\x65\x6e\157\165\x67\x68\x20\155\145\x6d\157\162\x79\x20\164\157\40\143\157\x6d\x70\154\x65\164\145\x20\164\x68\x65\x20\x6f\160\145\162\141\164\x69\x6f\x6e\x2e"); $errorMsgs[VERR_OPEN_SUCCESS] = array("\x65\x72\x72\x6f\x72\103\157\x64\145" => VERR_OPEN_SUCCESS, "\145\x72\162\x6f\x72\115\x65\163\163\x61\147\145" => "\x66\151\154\x65\x20\x6f\x70\x65\156\40\x73\x75\143\x63\x65\163\x73"); $errorMsgs[VERR_OPEN_FAILED] = array("\145\x72\x72\x6f\162\x43\157\144\x65" => VERR_OPEN_FAILED, "\x65\162\162\x6f\x72\x4d\145\163\163\x61\147\x65" => "\106\x61\151\x6c\145\x64\x20\164\x6f\40\x6f\160\145\x6e\40\146\151\x6c\145"); $errorMsgs[VERR_OPEN_PATH] = array("\145\162\x72\x6f\x72\x43\157\144\145" => VERR_OPEN_PATH, "\145\x72\162\x6f\x72\115\x65\x73\x73\141\147\x65" => "\164\x68\x65\40\x70\141\164\150\40\144\157\x65\x73\x20\x6e\x6f\x74"); $errorMsgs[VERR_OPEN_TYPE] = array("\x65\162\x72\157\x72\x43\157\144\145" => VERR_OPEN_TYPE, "\x65\162\162\x6f\162\x4d\x65\x73\x73\141\x67\145" => "\x74\171\x70\x65\x20\x69\x73\40\x69\156\x76\141\x6c\151\x64"); $errorMsgs[VERR_OPEN_SIZE] = array("\x65\162\162\157\162\x43\157\x64\145" => VERR_OPEN_SIZE, "\145\x72\162\157\162\x4d\145\x73\x73\x61\147\145" => "\146\151\x6c\x65\x20\163\x69\x7a\145\x20\x69\163\40\164\x6f\157\x20\x62\151\x67"); $errorMsgs[VERR_SAVE_SUCCESS] = array("\x65\x72\x72\157\162\103\157\144\145" => VERR_SAVE_SUCCESS, "\145\x72\162\157\x72\115\145\x73\163\141\147\145" => "\x66\151\154\145\40\163\x61\166\x65\x20\163\x75\x63\x63\145\x73\x73"); $errorMsgs[VERR_SAVE_FAILED] = array("\x65\162\162\157\162\103\157\x64\x65" => VERR_SAVE_FAILED, "\145\162\x72\157\x72\115\x65\163\163\x61\147\145" => "\x46\x61\151\154\x65\144\x20\164\157\40\163\141\166\145\40\x66\151\x6c\x65\x2e"); $errorMsgs[VERR_SAVE_NPATH] = array("\145\x72\x72\x6f\x72\103\x6f\144\x65" => VERR_SAVE_NPATH, "\145\x72\162\157\162\115\145\163\x73\x61\147\145" => "\164\x68\145\40\x70\141\164\x68\x20\144\x6f\145\x73\x20\156\157\x74"); $errorMsgs[VERR_SAVE_TYPE] = array("\x65\162\x72\157\x72\x43\157\144\145" => VERR_SAVE_TYPE, "\x65\162\162\157\162\x4d\145\163\x73\x61\147\x65" => "\164\171\160\x65\x20\151\x73\40\x69\x6e\x76\141\x6c\x69\x64"); $errorMsgs[VERR_SAVE_SPACE] = array("\x65\162\x72\x6f\x72\x43\x6f\144\x65" => VERR_SAVE_SPACE, "\x65\162\x72\157\162\x4d\x65\x73\163\x61\147\145" => "\x4e\117\40\123\160\141\143\145\40\164\157\40\x73\x61\166\x65"); $errorMsgs[VERR_SAVE_SIZE] = array("\145\x72\162\x6f\x72\x43\x6f\144\x65" => VERR_SAVE_SIZE, "\145\162\162\157\162\115\145\x73\x73\x61\147\x65" => "\x66\151\154\145\40\x73\151\x7a\145\x20\151\163\x20\x74\x6f\x6f\x20\x62\151\147"); $errorMsgs[VERR_VK_SUCCESS] = array("\145\x72\x72\157\x72\103\x6f\144\x65" => VERR_VK_SUCCESS, "\145\162\162\x6f\162\115\145\x73\x73\141\147\x65" => "\113\145\x79\x20\x69\156\160\165\164\x20\x73\x75\143\x63\x65\163\x73"); $errorMsgs[VERR_VK_INVALID] = array("\145\162\162\x6f\x72\103\157\x64\145" => VERR_VK_INVALID, "\x65\x72\162\157\162\115\145\163\163\x61\147\145" => "\113\x65\x79\x20\151\163\x20\x49\x6e\x76\x61\x6c\151\144"); $errorMsgs[VERR_LICENSE_NOKEY] = array("\145\162\162\157\x72\x43\x6f\x64\x65" => VERR_LICENSE_NOKEY, "\145\x72\162\157\x72\x4d\145\x73\x73\141\147\145" => "\x52\x65\x71\165\151\162\145\144\x20\x6b\145\171\40\x6e\x6f\x74\x20\141\x76\141\151\154\141\142\x6c\145"); $errorMsgs[VERR_LICENSE_KEYEXPIRED] = array("\x65\x72\162\157\162\x43\157\144\x65" => VERR_LICENSE_KEYEXPIRED, "\145\162\162\157\x72\x4d\145\x73\163\141\x67\145" => "\x4b\x65\171\40\150\141\163\x20\x65\170\x70\x69\x72\x65\x64"); $errorMsgs[VERR_LICENSE_KEYREVOKED] = array("\145\162\x72\x6f\x72\103\x6f\144\145" => VERR_LICENSE_KEYREVOKED, "\x65\162\162\x6f\162\x4d\x65\x73\x73\x61\x67\145" => "\x4b\145\x79\40\x68\x61\163\x20\x62\x65\x65\156\40\x72\145\x76\x6f\153\x65\x64"); $errorMsgs[VERR_LICENSE_KEYREJECTED] = array("\x65\162\162\x6f\162\103\157\x64\145" => VERR_LICENSE_KEYREJECTED, "\x65\x72\162\157\x72\x4d\x65\x73\x73\141\147\145" => "\113\x65\x79\x20\167\141\163\40\162\x65\x6a\145\x63\164\x65\x64\x20\142\171\40\x73\x65\162\166\151\143\145"); $errorMsgs[VERR_UTILITY_CONVERT_SUCCESS] = array("\x65\162\x72\x6f\x72\x43\157\x64\145" => VERR_UTILITY_CONVERT_SUCCESS, "\145\162\x72\x6f\x72\x4d\x65\x73\x73\x61\x67\x65" => ''); $errorMsgs[VERR_UTILITY_CONVERT_FILEOPEN_FAIL] = array("\x65\x72\162\x6f\x72\x43\x6f\x64\x65" => VERR_UTILITY_CONVERT_FILEOPEN_FAIL, "\x65\162\x72\157\162\115\145\163\163\x61\x67\x65" => ''); $errorMsgs[VERR_DELIVERER_ERROR] = array("\145\x72\x72\157\162\x43\x6f\144\x65" => VERR_DELIVERER_ERROR, "\x65\x72\162\157\162\115\145\163\163\141\147\145" => "\x46\151\154\x65\104\x65\x6c\151\x76\x65\162\145\162\x20\x64\151\x64\40\x6e\157\164\x20\167\x6f\162\x6b\40\160\162\157\160\x65\x72\x6c\171\56"); $errorMsgs[VERR_DELIVERER_LESS_MAXCACHESIZE] = array("\145\x72\x72\157\x72\103\x6f\x64\x65" => VERR_DELIVERER_LESS_MAXCACHESIZE, "\145\x72\x72\x6f\x72\115\145\x73\163\141\147\145" => "\x4d\141\x78\151\x6d\x75\155\40\143\x61\143\x68\x65\x20\163\x69\172\145\40\x6d\x75\x73\x74\40\142\145\40\x6c\141\x72\147\x65\162\x20\x74\x68\x61\156\x20\x6d\x69\156\151\155\x75\x6d\x20\x73\x69\172\x65"); $errorMsgs[VERR_DELIVERER_LESS_MINIMUM_MAXCACHESIZE] = array("\145\162\162\x6f\x72\x43\x6f\x64\x65" => VERR_DELIVERER_LESS_MINIMUM_MAXCACHESIZE, "\145\x72\162\x6f\x72\x4d\x65\x73\x73\x61\x67\145" => "\x43\x61\143\x68\x65\40\163\x70\x61\x63\145\x20\151\x73\40\147\x65\x74\164\x69\x6e\x67\40\154\157\167"); $errorMsgs[VERR_DELIVERER_CACHE_DB_QUERY] = array("\145\x72\162\x6f\x72\x43\x6f\x64\x65" => VERR_DELIVERER_CACHE_DB_QUERY, "\x65\162\x72\x6f\x72\115\145\163\163\141\147\145" => "\121\165\x65\x72\171\40\145\170\145\x63\165\164\151\x6f\156\40\145\x72\162\157\162"); $errorMsgs[VERR_DELIVERER_CACHE_DB_OPEN] = array("\145\162\x72\x6f\162\103\157\144\145" => VERR_DELIVERER_CACHE_DB_OPEN, "\x65\x72\162\157\162\x4d\x65\163\163\x61\147\x65" => "\104\x61\x74\141\142\x61\x73\145\x28\x43\x61\143\150\145\x54\141\x62\154\145\51\x20\x6f\x70\x65\156\x20\145\x72\x72\157\162"); $errorMsgs[VERR_DELIVERER_CACHE_FILE_SYSTEM] = array("\x65\x72\162\157\x72\103\157\144\x65" => VERR_DELIVERER_CACHE_FILE_SYSTEM, "\x65\x72\x72\x6f\162\x4d\x65\163\163\141\147\x65" => "\103\141\143\x68\145\40\x45\162\x72\157\x72\40\50\145\56\x67\x2e\40\103\162\x65\x61\164\151\x6e\x67\40\x63\141\143\150\145\40\x64\151\x72\x65\x63\164\157\x72\171\x29"); $errorMsgs[VERR_FILE_DELIVERER_CACHE_WARNING] = array("\x65\162\162\157\162\103\157\144\x65" => VERR_FILE_DELIVERER_CACHE_WARNING, "\x65\162\x72\157\x72\115\x65\x73\163\141\147\x65" => "\106\x69\x6c\145\x44\145\154\151\166\145\162\x65\x72\x20\x77\x61\162\156\x69\x6e\x67"); $errorMsgs[VERR_DELIVERER_NETWORK_CONNECTION] = array("\x65\x72\x72\x6f\162\x43\157\144\x65" => VERR_DELIVERER_NETWORK_CONNECTION, "\x65\162\162\x6f\x72\115\145\x73\x73\141\x67\x65" => "\x43\157\156\156\x65\x63\164\x69\157\x6e\40\x65\x72\162\x6f\x72"); $errorMsgs[VERR_DELIVERER_NETWORK] = array("\145\x72\162\157\x72\x43\x6f\144\145" => VERR_DELIVERER_NETWORK, "\145\162\162\x6f\162\x4d\145\163\x73\x61\x67\145" => "\106\151\154\x65\115\x61\x6e\x61\x67\x65\162\x20\x65\162\x72\x6f\x72"); $errorMsgs[VERR_DELIVERER_NETWORK_DB_ERROR] = array("\x65\x72\162\157\x72\103\157\x64\145" => VERR_DELIVERER_NETWORK_DB_ERROR, "\145\162\162\157\x72\115\x65\x73\x73\x61\x67\145" => "\104\x61\x74\x61\142\x61\x73\145\x20\x65\162\x72\x6f\162\40\x69\x6e\40\x46\151\154\x65\115\x61\x6e\x61\x67\x65\x72"); $errorMsgs[VERR_DELIVERER_NETWORK_PROTOCOL_VERSION] = array("\145\x72\x72\x6f\162\103\157\144\x65" => VERR_DELIVERER_NETWORK_PROTOCOL_VERSION, "\145\162\162\x6f\x72\115\x65\x73\x73\x61\x67\145" => "\x53\x65\162\x76\x65\x72\x20\x70\x72\x6f\x74\x6f\x63\157\154\x20\x76\x65\x72\x73\x69\157\x6e\x20\x65\x72\x72\157\x72"); $errorMsgs[VERR_DELIVERER_FILEMANAGER_DISK_ERROR] = array("\145\x72\162\157\162\103\x6f\144\x65" => VERR_DELIVERER_FILEMANAGER_DISK_ERROR, "\x65\x72\x72\157\x72\115\x65\163\163\x61\147\145" => "\x46\x69\154\145\x4d\141\x6e\x61\147\145\x72\40\104\x69\x73\x6b\x20\145\x72\x72\157\x72"); $errorMsgs[VERR_DELIVERER_FILEMANAGER_FILE_EXISTS] = array("\145\x72\162\157\x72\103\157\144\145" => VERR_DELIVERER_FILEMANAGER_FILE_EXISTS, "\145\162\162\157\162\115\145\163\163\141\x67\x65" => "\x46\151\154\145\40\x61\x6c\x72\x65\141\x64\171\40\x65\170\151\163\164\163\x2e"); $errorMsgs[VERR_DELIVERER_COMMUNICATOR] = array("\145\x72\x72\x6f\x72\x43\x6f\144\x65" => VERR_DELIVERER_COMMUNICATOR, "\145\162\x72\x6f\162\x4d\x65\x73\163\141\147\145" => "\x43\157\155\x6d\x75\x6e\x69\x63\141\164\x6f\x72\40\145\162\x72\x6f\x72"); $errorMsgs[VERR_DELIVERER_SETTING] = array("\145\162\162\157\x72\103\x6f\144\145" => VERR_DELIVERER_SETTING, "\x65\x72\162\x6f\162\115\x65\163\x73\141\147\x65" => "\x43\x61\156\156\x6f\x74\40\154\157\x61\x64\x20\x74\150\x65\x20\x73\145\162\166\145\162\x20\143\x6f\x6e\146\151\147\165\x72\x61\164\x69\157\156\40\x66\x69\154\x65"); $errorMsgs[VERR_VTEZBRIDGE_REMOVEFILE] = array("\145\162\162\x6f\x72\103\157\x64\145" => VERR_VTEZBRIDGE_REMOVEFILE, "\145\x72\x72\x6f\162\115\145\x73\x73\x61\147\x65" => "\x46\141\x69\x6c\145\x64\x20\x74\x6f\x20\x72\145\155\x6f\166\145\x20\x66\x69\x6c\145"); $errorMsgs[VERR_VTEZBRIDGE_REMOVEDIR] = array("\x65\x72\x72\x6f\162\x43\x6f\144\145" => VERR_VTEZBRIDGE_REMOVEDIR, "\145\162\162\157\162\115\x65\163\163\x61\x67\x65" => "\106\x61\x69\x6c\145\144\x20\164\157\x20\x72\x65\x6d\x6f\x76\145\x20\x64\x69\x72\x65\x63\x74\x6f\162\x79"); $errorMsgs[VERR_VTEZBRIDGE_COPYFILE] = array("\x65\x72\162\x6f\162\x43\157\x64\145" => VERR_VTEZBRIDGE_COPYFILE, "\x65\x72\x72\157\x72\115\145\x73\163\141\x67\145" => "\106\x61\151\154\145\144\40\x74\x6f\x20\143\157\160\171\x20\x66\151\154\x65"); $errorMsgs[VERR_VTEZBRIDGE_MAKEDIR] = array("\145\x72\x72\x6f\x72\103\x6f\144\145" => VERR_VTEZBRIDGE_MAKEDIR, "\x65\x72\x72\x6f\x72\x4d\x65\x73\163\141\147\145" => "\106\x61\151\x6c\145\144\40\x74\x6f\40\x6d\141\x6b\145\40\144\151\162\145\143\164\x6f\162\171"); $errorMsgs[VERR_VTEZBRIDGE_UNCOMPRESS] = array("\x65\162\162\157\x72\x43\157\144\145" => VERR_VTEZBRIDGE_UNCOMPRESS, "\x65\x72\x72\157\x72\115\145\163\163\141\x67\145" => "\x46\x61\x69\x6c\145\x64\40\x74\157\x20\x75\x6e\x63\x6f\x6d\x70\x72\x65\163\x73\x20\x66\x69\x6c\145"); $errorMsgs[VERR_VTEZBRIDGE_COMPRESS] = array("\145\162\162\157\162\x43\157\x64\x65" => VERR_VTEZBRIDGE_COMPRESS, "\145\x72\x72\x6f\162\115\x65\x73\163\x61\x67\145" => "\x46\x61\x69\154\x65\144\x20\x74\x6f\x20\x63\x6f\x6d\160\x72\x65\163\163\40\x66\151\154\x65"); $errorMsgs[VERR_VTEZBRIDGE_WRITETAG] = array("\145\x72\x72\x6f\162\x43\157\144\145" => VERR_VTEZBRIDGE_WRITETAG, "\x65\x72\x72\157\x72\115\x65\x73\x73\141\147\x65" => "\x46\141\151\x6c\145\x64\40\164\157\x20\167\x72\151\164\x65\40\x74\x61\x67\x20\146\151\154\145"); $errorMsgs[VERR_VTEZBRIDGE_MISSINGATTRIBUTE] = array("\x65\x72\x72\x6f\162\x43\157\144\x65" => VERR_VTEZBRIDGE_MISSINGATTRIBUTE, "\x65\162\x72\157\162\x4d\145\x73\x73\x61\147\145" => "\115\x69\x73\x73\x69\x6e\x67\40\141\164\164\162\151\x62\x75\164\145\40\x76\141\154\x75\x65"); $errorMsgs[VERR_VTEZBRIDGE_WRONGATTRIBUTE] = array("\145\x72\x72\x6f\162\103\x6f\x64\145" => VERR_VTEZBRIDGE_WRONGATTRIBUTE, "\145\162\x72\157\162\x4d\145\163\163\x61\147\x65" => "\x57\162\x6f\156\x67\x20\141\x74\164\x72\151\142\x75\164\145\x20\x76\141\x6c\165\145"); $errorMsgs[VERR_VTEZBRIDGE_FILESUPPORTED] = array("\x65\162\162\157\x72\103\157\144\145" => VERR_VTEZBRIDGE_FILESUPPORTED, "\145\162\162\x6f\162\x4d\145\x73\163\141\x67\145" => "\106\x69\154\x65\40\164\x79\x70\x65\40\151\x73\x20\156\157\x74\x20\x73\165\x70\x70\157\162\164\145\x64"); $errorMsgs[VERR_VTEZBRIDGE_READTAG] = array("\x65\x72\162\x6f\x72\103\x6f\144\x65" => VERR_VTEZBRIDGE_READTAG, "\x65\162\x72\157\x72\115\x65\163\163\x61\147\x65" => "\106\x61\151\154\145\x64\x20\x74\157\40\x72\x65\x61\144\40\x74\141\x67\40\146\151\x6c\145"); $errorMsgs[VERR_MESSENGER_INVALID_LOGIN_INFO] = array("\145\x72\162\157\x72\103\x6f\x64\145" => VERR_MESSENGER_INVALID_LOGIN_INFO, "\x65\162\162\x6f\x72\115\145\x73\x73\141\147\x65" => ''); $errorMsgs[VERR_MESSENGER_NO_DELETE_GROUP] = array("\145\x72\x72\x6f\162\x43\157\144\x65" => VERR_MESSENGER_NO_DELETE_GROUP, "\145\162\162\157\x72\x4d\x65\163\x73\141\x67\145" => ''); $errorMsgs[VERR_MESSENGER_NO_RENAME_GROUP] = array("\145\162\162\157\x72\x43\157\x64\145" => VERR_MESSENGER_NO_RENAME_GROUP, "\145\x72\x72\x6f\x72\115\x65\163\x73\141\x67\145" => ''); $errorMsgs[VERR_VATECHHUB_ACC_SESSION_EXPIRED] = array("\x65\x72\162\157\x72\103\x6f\144\145" => VERR_VATECHHUB_ACC_SESSION_EXPIRED, "\x65\x72\x72\x6f\162\x4d\x65\x73\x73\141\147\x65" => "\101\x63\x63\157\x75\156\x74\40\x69\163\40\145\x78\160\151\x72\145\x64"); $errorMsgs[VERR_AUTH_MIN] = array("\x65\162\162\157\162\x43\157\144\145" => VERR_AUTH_MIN, "\x65\x72\162\157\162\115\x65\x73\x73\141\x67\x65" => ''); $errorMsgs[VERR_AUTH_UNAUTHENTICATED] = array("\x65\162\x72\x6f\x72\x43\x6f\x64\x65" => VERR_AUTH_UNAUTHENTICATED, "\x65\162\x72\157\162\115\145\x73\163\141\147\145" => "\111\156\166\x61\x6c\x69\x64\40\165\x73\145\x72\40\x6e\x61\155\145\x20\157\x72\40\160\141\163\x73\x77\x6f\162\x64"); $errorMsgs[VERR_AUTH_ACCOUNT_LOCKED] = array("\x65\x72\x72\x6f\162\103\x6f\x64\x65" => VERR_AUTH_ACCOUNT_LOCKED, "\145\x72\162\157\162\115\145\x73\163\x61\147\145" => "\x54\x68\x65\40\x61\143\x63\157\165\x6e\164\40\x69\x73\x20\154\x6f\143\x6b\x65\x64\56"); $errorMsgs[VERR_AUTH_INVALID_PASSWORD_FORMAT] = array("\145\162\x72\x6f\162\103\157\144\145" => VERR_AUTH_INVALID_PASSWORD_FORMAT, "\x65\162\162\157\162\x4d\x65\x73\x73\x61\147\x65" => "\111\x6e\x76\141\154\x69\144\x20\160\x61\163\x73\x77\x6f\x72\144\40\146\157\x72\155\141\164\56"); $errorMsgs[VERR_AUTH_PASSWORD_EXPIRING] = array("\145\162\x72\x6f\x72\x43\157\144\145" => VERR_AUTH_PASSWORD_EXPIRING, "\x65\162\162\x6f\162\x4d\x65\163\x73\141\x67\145" => "\120\x61\x73\x73\x77\157\162\x64\x20\x77\x69\154\154\40\x62\145\40\145\x78\160\151\162\x65\144\x20\x73\157\x6f\156\56"); $errorMsgs[VERR_AUTH_PASSWORD_EXPIRED] = array("\145\x72\162\157\x72\x43\x6f\x64\x65" => VERR_AUTH_PASSWORD_EXPIRED, "\145\162\x72\157\x72\115\145\x73\x73\x61\147\x65" => "\x50\141\x73\163\167\x6f\x72\x64\x20\151\x73\x20\x65\170\160\151\162\x65\x64\56"); $errorMsgs[VERR_AUTH_ACCESS_BLOCKED] = array("\x65\x72\x72\157\162\x43\157\144\145" => VERR_AUTH_ACCESS_BLOCKED, "\x65\162\162\x6f\x72\115\145\x73\x73\x61\147\x65" => "\x4e\157\x74\x20\x61\x6c\154\x6f\167\x20\164\x6f\40\x61\x63\x63\145\x73\163\x2e"); $errorMsgs[VERR_AUTH_JWT_MIN] = array("\145\162\x72\x6f\x72\x43\x6f\144\x65" => VERR_AUTH_JWT_MIN, "\x65\162\162\157\x72\x4d\x65\163\x73\141\x67\x65" => ''); $errorMsgs[VERR_AUTH_JWT_UNKNOWN] = array("\145\162\x72\157\162\103\x6f\x64\x65" => VERR_AUTH_JWT_UNKNOWN, "\x65\162\x72\157\x72\x4d\x65\163\163\x61\147\x65" => "\125\x6e\153\x6e\157\167\156\40\145\162\x72\x6f\162"); $errorMsgs[VERR_AUTH_JWT_INVALID_ARGUMENT] = array("\145\x72\x72\x6f\162\103\157\144\x65" => VERR_AUTH_JWT_INVALID_ARGUMENT, "\x65\162\x72\157\x72\x4d\145\x73\x73\x61\147\145" => "\x4b\145\x79\x20\155\x61\x79\40\156\157\164\40\x62\145\x20\145\155\160\164\171"); $errorMsgs[VERR_AUTH_JWT_UNEXPECTED_VALUE] = array("\x65\x72\162\157\x72\x43\x6f\x64\x65" => VERR_AUTH_JWT_UNEXPECTED_VALUE, "\x65\x72\162\x6f\162\x4d\145\x73\x73\141\x67\x65" => "\x55\x6e\x65\x78\160\145\x63\x74\x65\144\40\x76\x61\154\165\145\x73"); $errorMsgs[VERR_AUTH_JWT_TOKEN_EXPIRED] = array("\x65\x72\162\x6f\x72\103\x6f\144\x65" => VERR_AUTH_JWT_TOKEN_EXPIRED, "\x65\x72\x72\x6f\162\x4d\x65\x73\163\x61\147\145" => "\101\x75\164\x68\x20\x74\x6f\x6b\145\x6e\x20\150\141\163\x20\x65\x78\160\x69\162\x65\144"); $errorMsgs[VERR_AUTH_JWT_BEFORE_VALID] = array("\x65\162\x72\x6f\x72\103\157\144\x65" => VERR_AUTH_JWT_BEFORE_VALID, "\x65\x72\x72\157\162\x4d\145\163\x73\141\x67\x65" => "\x43\141\156\156\x6f\164\40\x68\141\x6e\x64\x6c\x65\x20\x74\x6f\x6b\x65\x6e\x20\x70\162\x69\157\162\40\x74\157\x20\147\151\166\145\156\x20\144\141\x74\145\164\x69\x6d\x65"); $errorMsgs[VERR_AUTH_JWT_SIGNATURE_INVALID] = array("\145\162\x72\x6f\162\x43\x6f\x64\145" => VERR_AUTH_JWT_SIGNATURE_INVALID, "\145\x72\x72\157\162\115\x65\x73\x73\141\147\145" => "\123\x69\147\156\x61\x74\165\x72\145\40\x76\x65\x72\151\x66\x69\x63\141\x74\x69\x6f\x6e\x20\146\x61\x69\154\x65\x64"); $errorMsgs[VERR_AUTH_JWT_DOMAIN_ERROR] = array("\x65\x72\162\157\x72\103\x6f\144\145" => VERR_AUTH_JWT_DOMAIN_ERROR, "\145\x72\x72\x6f\x72\115\145\163\x73\141\147\x65" => "\x44\x6f\x6d\141\151\156\40\x65\162\x72\157\x72"); $errorMsgs[VERR_AUTH_JWT_TOKEN_INACTIVE] = array("\145\162\x72\x6f\x72\x43\x6f\144\145" => VERR_AUTH_JWT_TOKEN_INACTIVE, "\x65\x72\162\157\162\115\x65\163\163\141\x67\x65" => "\x4a\127\124\40\164\x6f\153\145\156\x20\151\x73\x20\x69\156\141\x63\x74\x69\x76\x65\x2e"); $errorMsgs[VERR_AUTH_JWT_MAX] = array("\x65\162\x72\x6f\x72\103\x6f\x64\x65" => VERR_AUTH_JWT_MAX, "\x65\162\x72\x6f\162\115\x65\x73\163\141\x67\145" => ''); $errorMsgs[VERR_AUTH_MAX] = array("\x65\x72\162\x6f\x72\103\157\144\145" => VERR_AUTH_MAX, "\x65\162\x72\157\162\x4d\x65\x73\x73\x61\147\x65" => ''); $errorMsgs[VERR_PHP_MIN] = array("\145\x72\x72\x6f\x72\103\157\x64\x65" => VERR_PHP_MIN, "\145\x72\162\x6f\x72\115\x65\x73\163\x61\x67\x65" => ''); $errorMsgs[VERR_PHP_ERROR] = array("\x65\162\162\x6f\x72\x43\x6f\144\145" => VERR_PHP_ERROR, "\145\x72\162\x6f\x72\115\x65\x73\x73\141\147\x65" => "\x55\x6e\x6b\156\x6f\167\x6e\40\x50\x48\120\40\145\x72\162\x6f\x72"); $errorMsgs[VERR_PHP_SYSTEM] = array("\x65\162\x72\157\162\x43\157\x64\x65" => VERR_PHP_SYSTEM, "\x65\x72\162\157\x72\x4d\x65\163\x73\x61\147\145" => "\x55\156\x6b\x6e\x6f\x77\x6e\40\x50\x48\x50\x20\x53\x79\163\x74\x65\x6d\40\x65\x72\162\157\162"); $errorMsgs[VERR_PHP_MAX] = array("\145\x72\162\157\x72\x43\x6f\x64\145" => VERR_PHP_MAX, "\145\162\162\x6f\x72\115\145\163\163\x61\147\x65" => ''); $errorMsgs[VERR_EZMOBILE_IOSENSOR_MIN] = array("\145\x72\162\x6f\162\103\157\144\x65" => VERR_EZMOBILE_IOSENSOR_MIN, "\x65\x72\x72\x6f\x72\115\145\x73\x73\x61\147\x65" => ''); $errorMsgs[VERR_EZMOBILE_IOSENSOR_FAILED_TO_ACQUIRE] = array("\145\x72\162\157\x72\x43\157\144\x65" => VERR_EZMOBILE_IOSENSOR_FAILED_TO_ACQUIRE, "\145\x72\162\157\162\115\x65\163\x73\x61\147\145" => "\106\141\x69\x6c\145\x64\40\164\x6f\x20\141\x63\x71\x75\x69\162\145\40\141\x6e\40\x69\155\141\x67\x65\40\146\162\157\155\40\x49\117\x20\123\145\x6e\163\157\x72\x2e"); $errorMsgs[VERR_EZMOBILE_IOSENSOR_MAX] = array("\145\x72\162\x6f\x72\103\x6f\144\145" => VERR_EZMOBILE_IOSENSOR_MAX, "\x65\x72\x72\x6f\162\115\145\163\163\x61\x67\x65" => ''); return $errorMsgs; } } diff --git a/server/original/www/ezwebserver/src/application/controllers/Rest_server.php b/server/original/www/ezwebserver/src/application/controllers/Rest_server.php new file mode 100644 index 0000000..628ef69 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/Rest_server.php @@ -0,0 +1,7 @@ +load->helper("\x75\x72\x6c"); $this->load->view("\162\x65\x73\164\137\x73\x65\162\x76\145\162"); } } diff --git a/server/original/www/ezwebserver/src/application/controllers/Welcome.php b/server/original/www/ezwebserver/src/application/controllers/Welcome.php new file mode 100644 index 0000000..79b4a99 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/Welcome.php @@ -0,0 +1,7 @@ +load->helper("\x75\x72\154"); $this->load->view("\x77\x65\x6c\143\x6f\x6d\x65\x5f\155\x65\163\163\141\147\145"); } } diff --git a/server/original/www/ezwebserver/src/application/controllers/api/index.html b/server/original/www/ezwebserver/src/application/controllers/api/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/api/index.html @@ -0,0 +1,11 @@ + + + +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/controllers/index.html b/server/original/www/ezwebserver/src/application/controllers/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/index.html @@ -0,0 +1,11 @@ + + + +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/Analytics.php b/server/original/www/ezwebserver/src/application/controllers/v1/Analytics.php new file mode 100644 index 0000000..6d041da --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/Analytics.php @@ -0,0 +1,7 @@ +post("\145\x76\x65\156\x74\124\171\x70\145"); if (isset($eventType) === FALSE || empty($eventType)) { vt_loge("\145\x76\145\x6e\x74\163\137\160\x6f\x73\x74\x20\101\160\x69\x2e\x20" . "\124\150\x65\40\x65\x76\145\156\x74\124\x79\x70\145\40\151\163\40\156\157\x74\x20\163\145\x74\40\157\162\x20\x65\155\160\x74\171\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->Events_model->post_Events($this->post()); return $this->set_response(createResponse(VERR_COMMON_SUCCESS), REST_Controller::HTTP_OK); } public function EventsR2_post() { $eventType = $this->post("\145\166\x65\x6e\x74\124\171\x70\145"); $appName = $this->post("\141\x70\x70\x4e\x61\x6d\x65"); $userName = $this->post("\x75\163\145\x72\x4e\x61\155\145"); $message = $this->post("\155\x65\163\163\141\x67\x65"); if (isset($eventType) === FALSE || empty($eventType)) { vt_loge("\145\166\145\156\x74\x73\x5f\x70\157\x73\164\x20\x41\x70\x69\x2e\40" . "\x54\x68\145\40\x65\x76\x65\156\164\124\171\160\145\x20\151\x73\40\x6e\157\x74\x20\163\145\164\40\x6f\162\x20\x65\155\x70\x74\x79\56"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } vt_log_evt(get_called_class(), $eventType, $message, $userName, $appName, "\x4e\57\101"); return $this->set_response(createResponse(VERR_COMMON_SUCCESS), REST_Controller::HTTP_OK); } public function EventsForSearch_post() { $parametersOfPostEvents = $this->post("\x70\x61\162\141\155\x65\164\x65\162\163\x4f\x66\120\x6f\x73\164\105\x76\x65\156\x74\x73"); $data = $this->Events_model->post_EventsForSearch($this->post()); if ($data["\145\x72\162\x6f\x72\x43\157\x64\145"] === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\x72\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } $this->set_response(["\x65\x72\162\157\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\162\x43\157\144\x65"], "\x6e\x75\155\x54\157\x74\x61\154\x45\x76\145\x6e\x74\163" => $data["\x6e\165\x6d\x54\x6f\164\141\x6c\x45\166\x65\156\x74\163"], "\160\141\147\x65\144\105\x76\145\156\x74\163" => $data["\160\141\x67\145\x64\105\x76\145\156\164\x73"]], REST_Controller::HTTP_OK); } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/Auth.php b/server/original/www/ezwebserver/src/application/controllers/v1/Auth.php new file mode 100644 index 0000000..8ffd147 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/Auth.php @@ -0,0 +1,7 @@ +load->enum(); $this->load->struct(); } public function Ping_get() { $this->set_response(["\x65\x72\162\x6f\162\x43\157\144\x65" => VERR_COMMON_SUCCESS, "\155\x65\x73\x73\x61\x67\x65" => "\x50\x6f\x6e\x67"], REST_Controller::HTTP_OK); } public function LogIn_post() { load_model($this, "\x41\x75\164\150\145\156\164\x69\143\x61\164\x69\157\x6e\x5f\x6d\157\x64\145\154"); $result = $this->Authentication_model->post_LogIn($this->post()); if ($result["\145\x72\x72\157\x72\x43\157\144\145"] !== VERR_COMMON_SUCCESS) { $this->set_response(returnSetResponse($result["\x65\162\162\157\x72\103\x6f\144\x65"]), REST_Controller::HTTP_UNAUTHORIZED); } else { $this->set_response(["\x65\x72\x72\157\x72\103\x6f\144\x65" => $result["\145\162\162\x6f\x72\103\157\x64\x65"], "\x74\157\x6b\145\156" => $result["\152\x77\x74"]], REST_Controller::HTTP_OK); } } public function appLogin_post() { load_model($this, "\x41\x75\164\x68\x65\156\164\x69\143\x61\x74\151\157\156\137\155\x6f\x64\145\154"); $result = $this->Authentication_model->post_appLogin($this->post()); if ($result["\x65\x72\162\157\x72\103\157\144\x65"] !== VERR_COMMON_SUCCESS) { $this->set_response(returnSetResponse($result["\x65\x72\162\157\162\x43\x6f\x64\x65"]), REST_Controller::HTTP_UNAUTHORIZED); } else { $this->set_response(["\145\162\162\157\162\x43\157\x64\145" => $result["\145\x72\162\x6f\162\x43\157\144\145"], "\164\157\x6b\x65\x6e" => $result["\x6a\167\164"]], REST_Controller::HTTP_OK); } } public function AppLogInR2_post() { load_model($this, "\101\165\164\150\145\156\164\151\x63\x61\x74\x69\x6f\156\122\x32\x5f\x6d\x6f\144\x65\154"); $result = $this->AuthenticationR2_model->post_appLoginR2($this->post()); if ($result["\x65\x72\162\x6f\x72\103\x6f\x64\x65"] == VERR_COMMON_SUCCESS || $result["\145\162\x72\x6f\162\x43\157\144\145"] == VERR_AUTH_PASSWORD_EXPIRING || $result["\145\x72\162\157\162\103\157\144\x65"] == VERR_AUTH_PASSWORD_EXPIRED) { $this->set_response(["\145\x72\x72\x6f\x72\103\x6f\144\x65" => $result["\145\162\162\157\x72\x43\157\x64\x65"], "\164\157\x6b\145\x6e" => $result["\x6a\x77\164"]], REST_Controller::HTTP_OK); } else { if ($result["\145\162\162\x6f\x72\103\157\144\145"] == VERR_AUTH_ACCESS_BLOCKED) { $this->set_response(returnSetResponse($result["\145\162\x72\x6f\162\x43\x6f\144\145"]), REST_Controller::HTTP_FORBIDDEN); } else { $this->set_response(["\x65\x72\x72\157\162\103\x6f\x64\145" => $result["\x65\162\162\157\x72\103\157\x64\x65"], "\x65\x72\162\157\x72\x4d\145\163\x73\x61\x67\x65" => $result["\x65\162\x72\157\162\115\x65\x73\x73\141\147\145"], "\141\x63\x63\157\x75\156\x74\114\157\x63\153\157\165\164\124\150\x72\x65\x73\150\157\x6c\x64" => $result["\x61\143\x63\x6f\165\156\164\114\157\x63\153\157\x75\x74\124\150\162\x65\163\150\157\154\144"], "\146\x61\151\x6c\145\144\114\157\x67\x69\156\x43\x6f\x75\x6e\x74" => $result["\146\141\x69\x6c\145\144\114\157\147\151\156\x43\157\165\156\x74"]], REST_Controller::HTTP_UNAUTHORIZED); } } } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/Consultds.php b/server/original/www/ezwebserver/src/application/controllers/v1/Consultds.php new file mode 100644 index 0000000..8508bb8 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/Consultds.php @@ -0,0 +1,7 @@ +load->enum(); $this->load->struct(); } public function Contents_post() { $strContentName = $this->post("\x73\x74\162\x43\157\x6e\164\145\x6e\x74\x4e\x61\155\145"); $strContentFilePath = $this->post("\163\x74\162\x43\x6f\156\x74\145\156\164\x46\x69\x6c\x65\x50\x61\164\150"); $nContentType = $this->post("\x6e\103\x6f\x6e\164\x65\x6e\164\124\171\160\145"); $bFavorite = $this->post("\142\106\141\x76\157\x72\151\164\x65"); $nCategoryId = $this->post("\156\x43\141\x74\145\x67\157\162\x79\x49\x64"); if (!isset($nCategoryId) || !is_numeric($nCategoryId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\x6f\x6e\x74\145\x6e\164\163\x5f\155\157\144\x65\x6c"); $ret = $this->Contents_model->post_Contents($strContentName, $strContentFilePath, $nContentType, $bFavorite, $nCategoryId); if ($ret > 0) { return $this->set_response(["\145\x72\x72\x6f\x72\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function CategoriesById_get() { $nCategoryId = urldecode($this->get("\151\144")); if (empty($nCategoryId) || !is_numeric($nCategoryId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\x61\x74\145\147\157\162\151\145\163\137\155\x6f\x64\x65\x6c"); $ret = $this->Categories_model->get_CategoriesById($nCategoryId); $category = array(); if (count($ret) > 0) { $category = new SConsultCategory(); $category->strCategoryName = $ret[0]["\163\x63\x5f\x63\x61\x74\145\x67\x6f\x72\x79\x5f\x6e\x61\x6d\x65"]; $category->nParentsId = intval($ret[0]["\163\x63\x5f\143\x61\x74\145\147\x6f\x72\171\137\160\x61\162\x65\156\x74\x73\x5f\x69\144"]); $category->nCategoryOrderNumber = intval($ret[0]["\163\143\137\143\x61\x74\145\x67\x6f\x72\171\x5f\157\162\144\x65\x72\x5f\151\x64"]); $category->bIsCarted = setBoolVal($ret[0]["\163\143\x5f\143\141\164\145\147\x6f\x72\x79\x5f\x63\141\x72\164\145\x64"]); $category->nCategoryType = intval($ret[0]["\x73\x63\137\143\x61\x74\x65\147\x6f\x72\x79\137\164\x79\160\x65"]); $category->bIsLocked = setBoolVal($ret[0]["\x73\143\137\x63\141\164\145\x67\157\162\x79\x5f\154\157\x63\x6b\145\x64"]); return $this->set_response(array("\x65\162\162\x6f\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\x72\103\157\x64\x65"], "\143\141\164\145\147\157\162\171" => $category), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\145\162\x72\157\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\x6f\x72\103\157\144\145"], "\x63\141\x74\145\x67\157\x72\x79" => $category), REST_Controller::HTTP_OK); } } public function CategoriesByID_delete() { $nCategoryId = urldecode($this->get("\151\144")); if (empty($nCategoryId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\x61\164\145\x67\157\x72\x69\x65\x73\x5f\155\157\x64\x65\154"); $ret = $this->Categories_model->delete_CategoriesByID($nCategoryId); if ($ret > 0) { return $this->set_response(["\145\162\x72\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\162\103\x6f\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function CartedCategories_get() { load_model($this, "\x43\141\x72\x74\x65\144\x43\141\x74\x65\x67\157\162\151\145\163\137\155\x6f\x64\145\x6c"); $ret = $this->CartedCategories_model->get_CartedCategories(); $vecCategories = array(); if (count($ret) > 0) { for ($i = 0; $i < count($ret); $i++) { $category["\x6e\x43\141\x74\145\147\x6f\x72\171\111\144"] = intval($ret[$i]["\x73\x63\x5f\143\141\x74\x65\147\157\162\x79\x5f\151\144"]); $category["\163\164\162\x43\141\x74\145\x67\x6f\162\171\x4e\x61\x6d\145"] = $ret[$i]["\163\143\137\143\x61\164\x65\x67\157\162\171\x5f\x6e\141\x6d\x65"]; $category["\156\120\x61\x72\x65\x6e\x74\x73\x49\144"] = intval($ret[$i]["\x73\143\x5f\143\x61\x74\145\147\157\x72\x79\137\160\141\162\145\156\164\163\137\151\144"]); $category["\156\103\141\x74\145\147\157\x72\x79\117\x72\144\x65\162\x4e\165\155\x62\x65\162"] = intval($ret[$i]["\163\x63\137\x63\141\x74\145\147\157\x72\171\137\x6f\162\x64\x65\162\137\x69\144"]); $category["\x62\111\163\x43\141\x72\x74\x65\144"] = setBoolVal($ret[$i]["\163\143\x5f\143\x61\x74\145\x67\x6f\162\x79\x5f\143\141\162\x74\x65\x64"]); $category["\x6e\x43\x61\164\x65\x67\x6f\x72\171\x54\x79\160\145"] = intval($ret[$i]["\163\x63\137\x63\141\x74\x65\147\x6f\162\x79\137\164\171\x70\x65"]); $category["\x62\111\x73\x4c\157\x63\153\145\x64"] = setBoolVal($ret[$i]["\163\143\137\x63\x61\164\145\x67\x6f\162\x79\x5f\154\157\x63\x6b\x65\144"]); array_push($vecCategories, $category); } return $this->set_response(array("\x65\162\x72\157\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\162\103\x6f\144\145"], "\x76\145\x63\103\141\164\x65\147\157\162\171\114\x69\163\164" => $vecCategories), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\145\x72\162\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\162\103\x6f\x64\x65"], "\166\145\143\x43\x61\164\145\x67\157\x72\171\114\x69\163\164" => $vecCategories), REST_Controller::HTTP_OK); } } public function FavoritedContentsByLicense_get() { $strLicenseCondition = urldecode($this->get("\x6c\151\x63\x65\x6e\x73\145")); if (empty($strLicenseCondition)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x46\x61\x76\x6f\162\x69\x74\x65\x64\x43\157\156\x74\x65\x6e\164\x73\137\155\157\x64\x65\x6c"); $ret = $this->FavoritedContents_model->get_FavoritedContentsByLicense($strLicenseCondition); $vecFavoritedContents = array(); if (count($ret) > 0 && is_array($ret)) { for ($i = 0; $i < count($ret); $i++) { $SConsultContent = new SConsultContent(); $SConsultContent->nContentId = intval($ret[$i]["\x73\x63\137\143\x6f\156\164\x65\156\164\x5f\x69\144"]); $SConsultContent->strContentName = $ret[$i]["\x73\143\137\143\157\x6e\164\x65\x6e\x74\x5f\x6e\141\x6d\x65"]; $SConsultContent->strContentFilePath = $ret[$i]["\163\143\137\x63\157\x6e\x74\145\156\164\137\x66\151\x6c\x65\x70\x61\164\x68"]; $SConsultContent->nContentType = intval($ret[$i]["\x73\143\137\143\x6f\156\x74\x65\x6e\x74\x5f\164\171\160\145"]); $SConsultContent->dtLastAccessTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\163\x63\x5f\x63\x6f\x6e\164\x65\156\x74\x5f\154\141\x73\x74\x5f\141\143\143\x65\163\163"]); $SConsultContent->bFavorite = setBoolVal($ret[$i]["\x73\143\137\x63\157\x6e\164\x65\x6e\164\x5f\146\141\x76\157\162\x69\164\145"]); $SConsultContent->nCategoryId = intval($ret[$i]["\163\x63\x5f\x63\x61\164\x65\147\x6f\162\x79\x5f\151\x64"]); $SConsultContent->dtRegisteredTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\x73\143\137\x63\157\156\x74\145\156\164\137\162\145\x67\x69\163\x74\145\162\145\x64"]); array_push($vecFavoritedContents, $SConsultContent); } return $this->set_response(array("\x65\x72\162\157\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\103\157\x64\x65"], "\166\145\x63\106\x61\x76\x6f\x72\151\x74\145\x64\x43\157\x6e\x74\x65\x6e\164\163" => $vecFavoritedContents), REST_Controller::HTTP_OK); } else { if ($ret == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(array("\145\x72\x72\157\162\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\x72\103\x6f\144\x65"], "\x76\x65\x63\x46\141\x76\x6f\162\151\164\145\x64\103\x6f\x6e\x74\x65\x6e\x74\x73" => $vecFavoritedContents), REST_Controller::HTTP_OK); } } } public function CategoriesByIDAndNewName_patch() { $nCategoryId = urldecode($this->get("\151\x64")); $strNewCategoryName = urldecode($this->get("\x6e\x61\x6d\x65")); if (empty($nCategoryId) || !is_numeric($nCategoryId) || empty($strNewCategoryName)) { vt_loge(sprintf("\133\45\163\x5d\x3a\x20\x63\x61\164\x65\x67\x6f\x72\171\x49\x64\40\x6f\162\x20\156\x65\167\103\x61\164\145\147\x6f\162\x79\x4e\x61\x6d\145\x20\151\163\x20\x65\155\160\x74\171\x2e\40\x5b\45\163\x5d\133\x25\x73\x5d", __METOHD__, $nCategoryId, $strNewCategoryName)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $strNewCategoryName = urldecode($strNewCategoryName); load_model($this, "\103\141\x74\x65\147\x6f\x72\151\x65\x73\137\x6d\x6f\x64\145\x6c"); $ret = $this->Categories_model->patch_CategoriesByIDAndNewName($nCategoryId, $strNewCategoryName); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ContentsByLicenseForRecently_get() { $strLicenseCondition = urldecode($this->get("\x6c\x69\143\x65\156\163\145")); if (empty($strLicenseCondition)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\x6f\156\164\x65\156\164\x73\x5f\x6d\x6f\144\145\154"); $ret = $this->Contents_model->get_ContentsByLicenseForRecently($strLicenseCondition); $contentList = array(); if (count($ret) > 0 && is_array($ret)) { for ($i = 0; $i < count($ret); $i++) { $content = new SConsultContent(); $content->nContentId = intval($ret[$i]["\x73\143\x5f\143\x6f\x6e\x74\145\156\x74\x5f\x69\144"]); $content->strContentName = $ret[$i]["\163\143\137\x63\x6f\156\164\145\156\164\137\156\x61\155\x65"]; $content->strContentFilePath = $ret[$i]["\x73\143\137\x63\x6f\156\164\145\x6e\164\137\x66\x69\154\145\160\x61\164\x68"]; $content->nContentType = intval($ret[$i]["\163\143\x5f\143\x6f\x6e\x74\x65\x6e\x74\137\164\171\x70\145"]); $content->dtLastAccessTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\x73\x63\x5f\x63\157\156\164\x65\156\x74\x5f\x6c\x61\x73\164\x5f\x61\x63\x63\145\x73\x73"]); $content->bFavorite = setBoolVal($ret[$i]["\x73\x63\x5f\x63\x6f\156\164\145\x6e\x74\x5f\x66\141\166\x6f\162\151\164\x65"]); $content->nCategoryId = intval($ret[$i]["\x73\143\137\143\x61\164\145\147\157\162\x79\137\x69\x64"]); $content->dtRegisteredTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\163\x63\x5f\143\157\156\x74\x65\156\x74\x5f\x72\145\147\x69\x73\x74\x65\162\145\x64"]); array_push($contentList, $content); } return $this->set_response(array("\x65\162\x72\157\x72\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\x72\103\x6f\144\145"], "\143\x6f\x6e\164\x65\156\164\x4c\x69\163\164" => $contentList), REST_Controller::HTTP_OK); } else { if ($ret == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(array("\x65\x72\x72\157\x72\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\x72\x43\157\144\145"], "\x63\x6f\x6e\164\145\x6e\164\114\x69\163\x74" => $contentList), REST_Controller::HTTP_OK); } } } public function CategoriesByIDAndNewParent_put() { $nCategoryId = urldecode($this->get("\151\x64")); $nNewParentsId = urldecode($this->get("\x6e\x65\167")); if (empty($nCategoryId) || !is_numeric($nCategoryId) || empty($nNewParentsId) || !is_numeric($nNewParentsId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\141\164\x65\x67\157\x72\x69\x65\163\x5f\155\157\144\145\x6c"); $ret = $this->Categories_model->put_CategoriesByIDAndNewParent($nCategoryId, $nNewParentsId); if ($ret > 0) { return $this->set_response(returnSetResponse(VERR_COMMON_SUCCESS), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ContentsById_get() { $nContentId = urldecode($this->get("\151\144")); if (empty($nContentId) || !is_numeric($nContentId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\157\x6e\164\145\x6e\164\163\137\155\x6f\x64\x65\x6c"); $ret = $this->Contents_model->get_ContentsById($nContentId); if (count($ret) <= 0) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } else { $content = new SConsultContent(); $content->nContentId = intval($ret[0]["\x73\x63\x5f\143\x6f\156\x74\145\156\x74\137\151\x64"]); $content->strContentName = $ret[0]["\x73\x63\x5f\x63\157\x6e\164\x65\156\164\x5f\156\141\155\145"]; $content->strContentFilePath = $ret[0]["\x73\x63\x5f\143\x6f\156\x74\145\156\164\137\x66\x69\x6c\x65\x70\x61\x74\x68"]; $content->nContentType = intval($ret[0]["\163\x63\137\143\157\x6e\x74\145\x6e\x74\x5f\164\x79\x70\145"]); $content->dtRegisteredTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[0]["\163\143\x5f\x63\157\x6e\x74\x65\x6e\x74\x5f\162\x65\147\x69\163\x74\145\x72\145\144"]); $content->dtLastAccessTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[0]["\x73\x63\x5f\x63\157\156\x74\x65\156\164\x5f\154\x61\163\164\x5f\141\x63\143\x65\x73\x73"]); $content->bFavorite = setBoolVal($ret[0]["\163\x63\x5f\143\157\156\x74\145\156\x74\137\x66\x61\166\x6f\162\151\x74\145"]); $content->nCategoryId = intval($ret[0]["\163\x63\137\143\x61\x74\145\x67\x6f\x72\171\x5f\x69\x64"]); } return $this->set_response(array("\145\162\x72\157\x72\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\x72\103\x6f\x64\x65"], "\x63\157\156\x74\145\156\164" => $content), REST_Controller::HTTP_OK); } public function ContentsByID_delete() { $nContentId = urldecode($this->get("\x69\144")); if (empty($nContentId) || !is_numeric($nContentId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\x6f\156\164\145\156\x74\163\137\155\x6f\144\145\x6c"); $ret = $this->Contents_model->delete_ContentsByID(intVal($nContentId)); if ($ret > 0) { return $this->set_response(["\x65\162\162\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function CategoriesByParentIdAndLicense_get() { $nParentID = urldecode($this->get("\x70\x61\162\x65\x6e\164\x69\144")); $strLicenseCondition = urldecode($this->get("\x6c\x69\x63\x65\156\x73\145")); if (!is_numeric($nParentID) || empty($nParentID) || empty($strLicenseCondition)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\x61\x74\x65\x67\157\x72\151\x65\163\x5f\155\157\x64\x65\x6c"); $ret = $this->Categories_model->get_CategoriesByParentIdAndLicense($nParentID, $strLicenseCondition); $vecCategoryPassInfo = array(); if (count($ret) > 0 && is_array($ret)) { for ($i = 0; $i < count($ret); $i++) { $categoryInfo = new SConsultCategoryPassInfo(); $categoryInfo->sConsultCategory->nCategoryId = intval($ret[$i]["\163\x63\x5f\143\141\x74\x65\x67\x6f\x72\x79\137\151\x64"]); $categoryInfo->sConsultCategory->strCategoryName = $ret[$i]["\163\143\x5f\x63\x61\x74\145\x67\x6f\x72\x79\137\156\141\155\145"]; $categoryInfo->sConsultCategory->nParentsId = intval($ret[$i]["\163\143\x5f\143\x61\164\x65\x67\157\x72\171\x5f\x70\x61\162\145\x6e\x74\x73\x5f\x69\144"]); $categoryInfo->sConsultCategory->nCategoryOrderNumber = intval($ret[$i]["\163\x63\x5f\x63\x61\x74\x65\x67\157\x72\171\137\x6f\162\x64\145\162\x5f\x69\144"]); $categoryInfo->sConsultCategory->bIsCarted = setBoolVal($ret[$i]["\163\x63\137\x63\141\164\145\147\157\162\171\137\x63\141\x72\164\145\144"]); $categoryInfo->sConsultCategory->nCategoryType = intval($ret[$i]["\163\x63\x5f\143\141\164\145\x67\x6f\x72\171\x5f\x74\171\160\x65"]); $categoryInfo->sConsultCategory->bIsLocked = setBoolVal($ret[$i]["\163\143\137\x63\141\x74\x65\x67\x6f\162\171\137\154\x6f\143\153\x65\x64"]); if ($categoryInfo->sConsultCategory->nCategoryType != USER_CATEGORY_TYPE && empty($categoryInfo->sConsultCategory->strCategoryName) != true) { $categoryInfo->strLocaledCategoryName = ''; } array_push($vecCategoryPassInfo, $categoryInfo); } return $this->set_response(array("\x65\162\x72\x6f\x72\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\103\x6f\144\145"], "\166\145\143\x43\141\x74\x65\x67\157\x72\171\x50\x61\163\163\x49\156\146\x6f" => $vecCategoryPassInfo), REST_Controller::HTTP_OK); } else { if ($ret == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(array("\145\162\x72\x6f\x72\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\x72\x43\x6f\144\x65"], "\166\x65\x63\103\141\x74\145\x67\157\162\x79\x50\141\x73\163\x49\156\146\157" => $vecCategoryPassInfo), REST_Controller::HTTP_OK); } } } public function CopiedContentsForPath_post() { $strlContentFilePaths = $this->post("\163\164\162\x6c\x43\157\x6e\x74\x65\x6e\x74\106\151\x6c\x65\120\x61\x74\x68\x73"); if (empty($strlContentFilePaths) || !is_array($strlContentFilePaths)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $vecnNoCopiedContentId = array(); $strlNoCopiedContentPaths = array(); $vecnCopiedContentId = array(); $strlCopiedContentPaths = array(); load_model($this, "\103\x6f\x70\151\x65\x64\x43\157\156\x74\x65\156\x74\x73\137\x6d\157\144\145\154"); foreach ($strlContentFilePaths as $FilePath) { $ret = $this->CopiedContents_model->post_CopiedContentsForPath($FilePath); if (count($ret) == 1) { array_push($vecnNoCopiedContentId, intval($ret[0]["\x73\143\137\143\x6f\156\164\x65\x6e\x74\137\151\x64"])); array_push($strlNoCopiedContentPaths, $FilePath); } else { if (count($ret) > 1) { foreach ($ret as $row) { array_push($vecnCopiedContentId, intval($row["\163\143\x5f\x63\x6f\156\x74\145\156\x74\137\151\x64"])); array_push($strlCopiedContentPaths, $FilePath); } } else { return $this->set_response(array("\x65\x72\162\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\x72\x43\157\144\145"], "\166\x65\143\156\116\157\x43\157\160\x69\145\x64\103\x6f\156\x74\x65\156\x74\111\x64" => $vecnNoCopiedContentId, "\163\164\x72\x6c\x4e\157\103\x6f\160\151\145\144\103\x6f\156\164\x65\x6e\164\x50\141\x74\x68\163" => $strlNoCopiedContentPaths, "\166\x65\x63\x6e\103\157\160\151\145\x64\103\157\x6e\164\x65\x6e\x74\x49\x64" => $vecnCopiedContentId, "\163\164\162\x6c\103\x6f\160\x69\x65\x64\103\x6f\156\164\x65\156\x74\120\x61\164\x68\x73" => $strlCopiedContentPaths), REST_Controller::HTTP_OK); } } } return $this->set_response(["\x65\162\162\157\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\162\103\x6f\x64\145"], "\x76\145\143\x6e\x4e\157\x43\157\160\151\145\144\x43\157\x6e\164\145\x6e\164\x49\144" => $vecnNoCopiedContentId, "\163\x74\x72\154\116\157\103\x6f\x70\151\145\x64\103\x6f\x6e\164\x65\x6e\x74\x50\x61\x74\150\163" => $strlNoCopiedContentPaths, "\x76\x65\x63\x6e\x43\157\160\151\145\x64\x43\x6f\x6e\x74\x65\x6e\164\111\144" => $vecnCopiedContentId, "\163\164\x72\x6c\x43\157\160\x69\145\144\x43\x6f\x6e\x74\x65\x6e\164\x50\141\x74\150\x73" => $strlCopiedContentPaths], REST_Controller::HTTP_OK); } public function CopiedContentsById_get() { $nContentId = urldecode($this->get("\x69\x64")); if (empty($nContentId) || !is_numeric($nContentId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\x6f\160\x69\145\144\103\x6f\156\164\145\156\164\x73\137\155\157\144\145\x6c"); $ret = $this->CopiedContents_model->get_CopiedContentsById($nContentId); $count = intval($ret[0]["\x63\157\x75\x6e\164"]); if ($count > 0) { $bIsCopied = true; } else { $bIsCopied = false; } return $this->set_response(array("\x65\162\x72\157\162\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\162\103\157\144\x65"], "\x62\111\163\x43\157\160\x69\145\144" => $bIsCopied), REST_Controller::HTTP_OK); } public function CategoriesByName_get() { $strCategory = urldecode($this->get("\156\141\x6d\145")); if (empty($strCategory)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $strCategory = urldecode($strCategory); load_model($this, "\103\x61\164\145\x67\157\162\x69\145\163\137\x6d\x6f\x64\145\x6c"); $ret = $this->Categories_model->get_CategoriesByName($strCategory); if (count($ret) <= 0) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } else { $category = new SConsultCategory(); $category->nCategoryId = intval($ret[0]["\x73\143\137\x63\141\164\x65\x67\x6f\x72\x79\x5f\x69\144"]); $category->strCategoryName = $ret[0]["\x73\x63\137\143\141\164\145\x67\x6f\162\171\x5f\156\x61\x6d\145"]; $category->nParentsId = intval($ret[0]["\x73\143\137\143\x61\164\145\147\157\x72\171\137\x70\x61\x72\145\156\x74\x73\137\x69\x64"]); $category->nCategoryOrderNumber = intval($ret[0]["\x73\x63\137\143\x61\164\x65\x67\157\x72\x79\x5f\157\x72\144\x65\162\x5f\151\x64"]); $category->bIsCarted = setBoolVal($ret[0]["\x73\143\137\x63\141\164\145\x67\x6f\x72\171\137\143\141\162\164\x65\144"]); $category->nCategoryType = intval($ret[0]["\x73\x63\x5f\x63\x61\x74\145\x67\x6f\x72\171\137\x74\171\x70\145"]); $category->bIsLocked = setBoolVal($ret[0]["\163\x63\x5f\143\x61\x74\145\147\x6f\x72\x79\x5f\x6c\157\143\153\x65\144"]); return $this->set_response(array("\145\162\x72\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\x43\x6f\144\145"], "\166\x65\x63\103\141\164\x65\147\157\162\x79\120\x61\x73\163\x49\x6e\146\157" => $category), REST_Controller::HTTP_OK); } } public function CartedCategoriesByLicense_get() { $strLicenseCondition = urldecode($this->get("\154\x69\x63\145\x6e\163\145")); if (empty($strLicenseCondition)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\141\x72\164\145\x64\103\x61\x74\145\x67\x6f\162\x69\x65\163\137\155\157\x64\145\x6c"); $ret = $this->CartedCategories_model->get_CartedCategoriesByLicense($strLicenseCondition); $vecCategory = array(); if (count($ret) > 0 && is_array($ret)) { foreach ($ret as $row) { $categoryInfo = new SConsultCategoryPassInfo(); $categoryInfo->sConsultCategory->nCategoryId = intval($row["\x73\x63\x5f\x63\141\x74\145\147\x6f\162\x79\137\151\144"]); $categoryInfo->sConsultCategory->strCategoryName = $row["\163\143\137\x63\x61\164\x65\x67\157\162\x79\137\156\x61\155\145"]; $categoryInfo->sConsultCategory->nParentsId = intval($row["\x73\143\137\x63\x61\164\145\147\157\162\x79\x5f\x70\141\162\x65\x6e\164\x73\137\x69\144"]); $categoryInfo->sConsultCategory->nCategoryOrderNumber = intval($row["\x73\x63\137\143\141\x74\145\x67\157\162\171\x5f\157\162\144\145\162\137\151\x64"]); $categoryInfo->sConsultCategory->bIsCarted = setBoolVal($row["\163\x63\x5f\x63\x61\164\145\147\x6f\162\x79\137\143\x61\162\x74\145\x64"]); $categoryInfo->sConsultCategory->nCategoryType = intval($row["\x73\x63\x5f\143\141\x74\x65\147\x6f\x72\171\x5f\x74\x79\x70\145"]); $categoryInfo->sConsultCategory->bIsLocked = setBoolVal($row["\163\143\137\x63\141\x74\x65\x67\x6f\x72\x79\x5f\154\x6f\143\x6b\x65\144"]); if ($categoryInfo->sConsultCategory->nCategoryType != USER_CATEGORY_TYPE && isset($categoryInfo->sConsultCategory->strCategoryName) != true) { $categoryInfo->sConsultCategory->strLocaledCategoryName = NULL; } array_push($vecCategory, $categoryInfo); } return $this->set_response(array("\145\162\162\157\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\x72\103\x6f\144\x65"], "\x76\x65\x63\103\141\x74\x65\147\x6f\x72\171\120\x61\163\x73\111\156\146\x6f" => $vecCategory), REST_Controller::HTTP_OK); } else { if ($ret == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(array("\145\x72\162\x6f\162\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\157\162\103\x6f\x64\x65"], "\x76\x65\143\x43\141\164\x65\147\x6f\162\x79\120\141\x73\163\111\x6e\146\157" => $vecCategory), REST_Controller::HTTP_OK); } } } public function ContentsByIDAndNewName_patch() { $nContentId = $this->patch("\156\103\x6f\156\164\145\x6e\x74\x49\x64"); $strNewContentName = $this->patch("\x73\x74\162\116\x65\x77\103\157\156\x74\145\156\164\x4e\x61\x6d\x65"); if (!isset($nContentId) || !is_numeric($nContentId) || !isset($strNewContentName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\x6f\x6e\164\145\156\x74\163\137\x6d\x6f\144\145\154"); $ret = $this->Contents_model->patch_ContentsByIDAndNewName($nContentId, $strNewContentName); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function Categories_get() { load_model($this, "\x43\141\164\x65\x67\x6f\162\151\x65\x73\x5f\155\x6f\144\x65\x6c"); $ret = $this->Categories_model->get_Categories(); $vecCategoryList = array(); if (count($ret) < 1) { return $this->set_response(array("\145\162\x72\157\x72\103\157\144\x65" => returnSetResponse(VERR_DB_RANGE)["\x65\162\x72\x6f\x72\103\x6f\144\x65"], "\x76\145\143\x43\141\164\145\147\x6f\x72\x79\x4c\x69\x73\164" => $vecCategoryList), REST_Controller::HTTP_OK); } else { for ($i = 0; $i < count($ret); $i++) { $category = new SConsultCategory(); $category->nCategoryId = intval($ret[$i]["\163\143\137\143\141\x74\x65\x67\157\162\171\x5f\x69\144"]); $category->strCategoryName = $ret[$i]["\163\143\137\x63\141\164\x65\x67\x6f\x72\x79\137\156\141\155\145"]; $category->nParentsId = intval($ret[$i]["\x73\143\137\x63\x61\x74\x65\147\157\x72\x79\137\160\141\x72\145\156\164\163\x5f\x69\144"]); $category->nCategoryOrderNumber = intval($ret[$i]["\x73\143\x5f\x63\x61\x74\145\x67\157\162\x79\x5f\x6f\x72\x64\x65\x72\x5f\151\x64"]); $category->bIsCarted = setBoolVal($ret[$i]["\163\x63\x5f\x63\x61\164\x65\x67\157\x72\x79\137\x63\141\x72\x74\145\x64"]); $category->nCategoryType = intval($ret[$i]["\x73\143\x5f\x63\141\x74\x65\147\x6f\x72\x79\137\x74\171\160\145"]); $category->bIsLocked = setBoolVal($ret[$i]["\163\x63\x5f\143\141\164\145\x67\x6f\162\x79\137\154\157\143\153\x65\x64"]); array_push($vecCategoryList, $category); } } return $this->set_response(array("\145\x72\x72\157\x72\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\162\x43\157\144\x65"], "\166\145\143\103\141\164\145\147\x6f\162\171\x4c\x69\163\164" => $vecCategoryList), REST_Controller::HTTP_OK); } public function Categories_post() { $parameters = $this->post(); if (!isset($parameters["\x73\164\x72\103\141\164\x65\x67\x6f\162\x79\x4e\x61\x6d\145"]) || !isset($parameters["\156\x50\x61\162\x65\156\164\x73\x49\x64"]) || !isset($parameters["\x6e\x43\x61\164\x65\x67\157\x72\x79\x4f\162\144\x65\x72\x4e\x75\155\142\x65\x72"]) || !isset($parameters["\156\103\x61\x74\x65\x67\157\162\x79\124\x79\160\145"]) || !isset($parameters["\142\111\163\103\141\x72\x74\x65\144"]) || !isset($parameters["\x62\111\163\114\157\x63\153\145\x64"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $parameters = array("\x73\x74\x72\x43\x61\x74\145\147\x6f\x72\171\116\141\155\145" => $parameters["\x73\164\162\x43\x61\x74\145\147\157\162\171\x4e\x61\155\x65"], "\156\120\x61\162\x65\156\x74\x73\x49\144" => $parameters["\156\120\141\162\x65\156\164\163\x49\144"], "\156\103\x61\x74\145\147\x6f\162\x79\117\162\x64\145\162\116\x75\x6d\x62\x65\x72" => $parameters["\x6e\x43\141\164\145\147\157\162\x79\x4f\x72\144\145\162\116\165\155\142\x65\162"], "\156\x43\141\164\145\147\x6f\x72\x79\x54\x79\160\x65" => $parameters["\x6e\103\141\x74\x65\147\x6f\162\171\124\x79\160\145"], "\142\111\x73\x43\x61\x72\x74\145\144" => $parameters["\142\111\163\x43\x61\162\x74\x65\144"], "\142\111\163\x4c\x6f\x63\x6b\145\144" => $parameters["\x62\x49\x73\x4c\x6f\143\153\145\144"]); load_model($this, "\x43\141\x74\x65\x67\157\x72\x69\x65\163\x5f\x6d\x6f\x64\145\x6c"); if ($parameters["\156\120\x61\162\x65\156\164\x73\x49\x64"] == 0) { $ret = $this->Categories_model->post_Categories($parameters); } else { $ret = $this->Categories_model->post_CategoriesWithnParentsIdIsNotZero($parameters); } if ($ret > 0) { return $this->set_response(array("\x65\162\x72\157\x72\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\x72\x43\x6f\x64\145"]), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function CartedCategoriesByIDAndIsCarted_put() { $nCategoryId = $this->put("\x6e\x43\141\164\145\x67\x6f\x72\171\111\x64"); $bIsCarted = $this->put("\x62\111\163\103\x61\x72\x74\145\144"); if (!isset($nCategoryId) || !isset($bIsCarted) || !is_numeric($nCategoryId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\x61\x72\164\x65\144\x43\141\164\145\147\157\x72\151\145\x73\x5f\x6d\157\144\x65\154"); $ret = $this->CartedCategories_model->put_CartedCategoriesByIDAndIsCarted($nCategoryId); if (count($ret) > 0) { $ret = $this->CartedCategories_model->put_CartedCategoriesByIDAndIsCartedReturnIsEmptyFalse($nCategoryId, $bIsCarted); } else { $ret = $this->CartedCategories_model->put_CartedCategoriesByIDAndIsCartedReturnIsEmptyTrue($nCategoryId, $bIsCarted); } if ($ret < 1) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } return $this->set_response(["\145\162\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } public function CartedCategoriesByIDAndIsCartedRecursively_put() { $nCategoryId = $this->put("\x6e\103\x61\x74\x65\147\x6f\x72\171\111\x64"); $bIsCarted = $this->put("\142\x49\x73\x43\141\162\164\x65\x64"); if (!isset($nCategoryId) || !isset($bIsCarted) || !is_numeric($nCategoryId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\x61\162\x74\x65\x64\x43\x61\x74\145\147\157\162\x69\145\x73\x5f\x6d\x6f\144\x65\x6c"); $ret = $this->CartedCategories_model->put_CartedCategoriesByIDAndIsCartedRecursively($nCategoryId, $bIsCarted); if ($ret < 1) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } return $this->set_response(["\145\x72\162\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\162\103\x6f\144\145"]], REST_Controller::HTTP_OK); } public function CategoriesByLicense_get() { $strLicenseCondition = urldecode($this->get("\x6c\151\x63\x65\x6e\163\145")); if (empty($strLicenseCondition)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\141\164\x65\147\157\x72\151\x65\163\x5f\155\x6f\x64\x65\x6c"); $ret = $this->Categories_model->get_CategoriesByLicense($strLicenseCondition); $vecCategoryList = array(); if (count($ret) > 0 && is_array($ret)) { for ($i = 0; $i < count($ret); $i++) { $categoryInfo = new SConsultCategoryPassInfo(); $categoryInfo->sConsultCategory->nCategoryId = intval($ret[$i]["\x73\x63\137\143\141\x74\x65\147\x6f\x72\x79\x5f\x69\144"]); $categoryInfo->sConsultCategory->strCategoryName = $ret[$i]["\163\x63\x5f\x63\141\x74\145\x67\157\162\x79\137\x6e\141\155\x65"]; $categoryInfo->sConsultCategory->nParentsId = intval($ret[$i]["\x73\x63\x5f\143\x61\164\145\x67\x6f\x72\171\x5f\x70\x61\x72\x65\156\164\163\x5f\x69\x64"]); $categoryInfo->sConsultCategory->nCategoryOrderNumber = intval($ret[$i]["\x73\143\137\x63\141\164\145\x67\x6f\162\x79\x5f\157\x72\144\145\162\x5f\x69\x64"]); $categoryInfo->sConsultCategory->bIsCarted = setBoolVal($ret[$i]["\x73\143\x5f\x63\x61\164\145\147\157\x72\x79\x5f\143\x61\x72\164\x65\144"]); $categoryInfo->sConsultCategory->nCategoryType = intval($ret[$i]["\x73\x63\137\x63\x61\x74\x65\147\157\x72\x79\x5f\164\x79\x70\x65"]); $categoryInfo->sConsultCategory->bIsLocked = setBoolVal($ret[$i]["\x73\x63\137\143\x61\164\x65\147\157\x72\171\137\x6c\157\x63\153\x65\x64"]); if ($categoryInfo->sConsultCategory->nCategoryType != USER_CATEGORY_TYPE && empty($categoryInfo->sConsultCategory->strCategoryName) != true) { $categoryInfo->strLocaledCategoryName = ''; } array_push($vecCategoryList, $categoryInfo); } return $this->set_response(array("\x65\162\162\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\162\x43\157\144\145"], "\x76\x65\143\x43\x61\x74\145\147\x6f\162\171\x50\x61\x73\x73\111\156\146\x6f" => $vecCategoryList), REST_Controller::HTTP_OK); } else { if ($ret == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(array("\145\162\162\x6f\162\103\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\157\162\x43\157\144\x65"], "\166\145\143\x43\x61\x74\x65\x67\157\162\171\x50\x61\163\x73\x49\156\146\x6f" => $vecCategoryList), REST_Controller::HTTP_OK); } } } public function FavoritedContents_get() { load_model($this, "\x46\141\x76\157\162\x69\164\x65\144\x43\157\156\164\x65\x6e\x74\163\x5f\155\157\144\x65\x6c"); $ret = $this->FavoritedContents_model->get_FavoritedContents(); $vecFavoritedContents = array(); if (count($ret) <= 0) { return $this->set_response(returnSetResponse(VERR_DB_RANGE), REST_Controller::HTTP_OK); } else { for ($i = 0; $i < count($ret); $i++) { $content = array(); $content["\x6e\x43\157\156\x74\145\156\164\111\x64"] = intval($ret[$i]["\x73\143\137\x63\157\156\x74\x65\156\164\137\x69\144"]); $content["\x73\x74\x72\103\x6f\x6e\x74\x65\x6e\164\116\x61\155\x65"] = $ret[$i]["\163\x63\137\x63\157\156\164\x65\156\164\x5f\156\x61\x6d\x65"]; $content["\163\164\x72\103\x6f\156\164\145\x6e\x74\106\151\154\145\120\x61\x74\x68"] = $ret[$i]["\x73\x63\x5f\143\x6f\156\x74\x65\156\164\x5f\x66\151\x6c\x65\160\x61\164\x68"]; $content["\x6e\x43\157\156\164\145\156\x74\x54\171\160\145"] = intval($ret[$i]["\x73\143\x5f\143\157\x6e\164\x65\156\164\x5f\x74\x79\x70\x65"]); $content["\x64\164\114\x61\x73\164\101\x63\x63\x65\163\163\x54\151\x6d\x65"] = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\163\x63\137\x63\x6f\x6e\164\x65\x6e\x74\137\154\x61\x73\164\137\141\143\x63\x65\163\163"]); $content["\142\106\x61\x76\x6f\162\151\x74\x65"] = setBoolVal($ret[$i]["\x73\x63\137\143\157\x6e\164\145\x6e\164\x5f\146\x61\166\157\162\151\164\145"]); $content["\156\103\x61\164\145\147\157\x72\171\x49\x64"] = intval($ret[$i]["\163\x63\137\143\x61\x74\145\x67\x6f\x72\x79\x5f\x69\144"]); $content["\x64\164\122\145\x67\151\163\x74\145\162\145\x64\x54\151\155\x65"] = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\163\143\x5f\x63\x6f\x6e\x74\145\156\x74\137\162\x65\147\x69\163\164\145\x72\145\x64"]); $content["\x6e\x43\141\x74\145\x67\x6f\x72\x79\124\171\x70\145"] = intval($ret[$i]["\x73\143\137\143\x61\x74\x65\147\x6f\162\x79\x5f\x74\x79\x70\x65"]); array_push($vecFavoritedContents, $content); } return $this->set_response(array("\145\x72\162\157\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\162\103\x6f\144\145"], "\x76\145\x63\x46\x61\x76\157\x72\151\164\x65\144\103\157\156\x74\x65\x6e\x74\x73" => $vecFavoritedContents), REST_Controller::HTTP_OK); } } public function FavoritedContentsByIsPremium_get() { $bIsPremium = strtoupper(urldecode($this->get("\151\163\x70\x72\x65\155\x69\165\155"))); if (!($bIsPremium === "\x54\x52\x55\x45" || $bIsPremium === "\x46\x41\x4c\123\x45")) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $bIsPremium = $bIsPremium === "\124\122\x55\105" ? true : false; load_model($this, "\106\141\x76\x6f\x72\x69\164\x65\144\x43\x6f\156\164\x65\x6e\164\x73\x5f\155\157\144\x65\x6c"); $ret = $this->FavoritedContents_model->get_FavoritedContentsByIsPremium($bIsPremium); $vecFavoritedContents = array(); if (count($ret) > 0) { for ($i = 0; $i < count($ret); $i++) { $content = array(); $content["\x6e\x43\157\156\164\x65\156\164\111\144"] = intval($ret[$i]["\163\143\x5f\x63\157\x6e\x74\145\x6e\x74\x5f\151\x64"]); $content["\x73\x74\162\x43\x6f\x6e\x74\145\156\x74\x4e\141\155\x65"] = $ret[$i]["\163\143\x5f\143\157\156\x74\145\156\x74\x5f\x6e\141\x6d\145"]; $content["\163\x74\162\x43\x6f\156\x74\145\x6e\164\106\x69\x6c\x65\120\x61\x74\150"] = $ret[$i]["\163\x63\x5f\143\157\156\x74\145\x6e\164\x5f\146\151\x6c\145\x70\141\x74\x68"]; $content["\x6e\103\x6f\156\164\x65\156\x74\x54\x79\160\145"] = intval($ret[$i]["\163\x63\137\x63\x6f\x6e\164\x65\156\x74\x5f\164\x79\x70\145"]); $content["\x64\x74\114\141\163\164\101\x63\x63\x65\x73\163\124\151\x6d\x65"] = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\163\x63\x5f\x63\x6f\x6e\x74\145\x6e\164\137\x6c\141\x73\x74\137\x61\143\143\145\163\x73"]); $content["\142\x46\141\166\x6f\x72\151\164\145"] = setBoolVal($ret[$i]["\x73\143\x5f\x63\157\x6e\x74\145\156\x74\x5f\x66\x61\166\157\162\x69\164\x65"]); $content["\156\103\x61\x74\145\147\x6f\162\171\x49\144"] = intval($ret[$i]["\x73\143\x5f\143\141\164\x65\147\x6f\162\x79\137\x69\144"]); $content["\144\x74\x52\x65\x67\151\x73\x74\x65\162\x65\x64\124\151\x6d\145"] = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\163\x63\x5f\143\157\x6e\x74\145\156\164\137\162\145\147\151\x73\164\145\x72\x65\144"]); $content["\x6e\x43\141\164\145\147\x6f\x72\x79\124\171\160\x65"] = intval($ret[$i]["\x73\x63\137\143\x61\x74\x65\147\x6f\162\x79\137\164\171\160\145"]); array_push($vecFavoritedContents, $content); } return $this->set_response(array("\145\x72\162\157\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\x72\x43\157\144\x65"], "\166\145\x63\106\141\166\x6f\x72\151\x74\145\x64\103\157\156\x74\145\x6e\x74\163" => $vecFavoritedContents, "\142\x49\163\120\162\145\155\151\x75\155" => $bIsPremium), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\145\162\162\x6f\x72\103\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\162\103\157\144\x65"], "\166\145\143\106\x61\166\157\x72\151\x74\145\x64\x43\157\156\x74\x65\x6e\164\163" => $vecFavoritedContents, "\x62\111\x73\x50\162\x65\x6d\151\165\155" => $bIsPremium), REST_Controller::HTTP_OK); } } public function CategoriesByIdForLocale_get() { $nCategoryId = urldecode($this->get("\x69\x64")); if (empty($nCategoryId) || !is_numeric($nCategoryId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\141\x74\145\147\157\x72\151\x65\x73\x5f\155\x6f\144\145\x6c"); $categoryPassInfo = $this->Categories_model->get_CategoriesByIdForLocale($nCategoryId); if ($categoryPassInfo == false) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\145\162\x72\157\x72\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\162\x43\157\144\145"], "\143\x61\x74\x65\147\x6f\x72\x79\x50\141\163\163\x49\x6e\146\x6f" => $categoryPassInfo), REST_Controller::HTTP_OK); } } public function CategoriesByLocale_post() { $parameters = $this->post(); if (!isset($parameters["\x73\x43\x6f\x6e\x73\165\x6c\x74\x43\x61\164\145\147\157\162\x79"]["\156\120\x61\x72\x65\x6e\x74\163\111\144"]) || !is_numeric($parameters["\x73\103\x6f\x6e\x73\165\x6c\164\x43\141\164\x65\147\157\162\171"]["\156\120\x61\x72\145\x6e\x74\163\111\144"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\141\164\x65\x67\157\162\151\x65\x73\137\155\157\x64\145\154"); $ret = $this->Categories_model->post_CategoriesByLocale($parameters); if ($ret < 1) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\162\103\157\144\145"]], REST_Controller::HTTP_OK); } } public function ContentsByCategoryId_post() { $nCategoryId = $this->post("\x6e\x43\141\164\145\147\x6f\162\x79\x49\x64"); $pageNum = $this->post("\160\141\147\145\116\165\x6d"); $numItems = $this->post("\156\165\155\111\164\145\x6d\x73"); $pageNum = !isset($pageNum) ? PAGE_NUM : $pageNum; $numItems = !isset($numItems) ? NUM_ITEMS : $numItems; if (!isset($nCategoryId) || !is_numeric($nCategoryId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\x6f\156\164\x65\156\x74\x73\x5f\x6d\157\144\145\154"); $ret = $this->Contents_model->post_ContentsByCategoryId($nCategoryId, $pageNum, $numItems); $contentList = array(); if (count($ret) > 0) { for ($i = 0; $i < count($ret); $i++) { $content = new SConsultContent(); $content->nContentId = intval($ret[$i]["\x73\x63\137\143\x6f\x6e\x74\145\156\164\137\151\x64"]); $content->strContentName = $ret[$i]["\x73\143\x5f\x63\x6f\x6e\164\145\156\164\137\x6e\141\155\145"]; $content->strContentFilePath = $ret[$i]["\163\x63\x5f\x63\x6f\x6e\x74\145\156\164\x5f\x66\x69\154\145\x70\141\x74\x68"]; $content->nContentType = intval($ret[$i]["\x73\143\137\x63\x6f\156\x74\145\x6e\164\137\164\171\x70\145"]); $content->dtRegisteredTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\x73\x63\137\143\157\156\164\145\156\x74\x5f\162\x65\x67\151\163\164\x65\x72\x65\x64"]); $content->dtLastAccessTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[$i]["\x73\x63\137\x63\x6f\156\x74\145\x6e\x74\x5f\154\x61\163\164\137\141\143\x63\x65\x73\163"]); $content->bFavorite = setBoolVal($ret[$i]["\163\143\x5f\143\x6f\x6e\x74\x65\156\x74\x5f\146\141\166\x6f\x72\151\164\x65"]); $content->nCategoryId = intval($ret[$i]["\x73\143\x5f\x63\x61\x74\145\x67\x6f\x72\x79\x5f\151\144"]); array_push($contentList, $content); } return $this->set_response(array("\145\162\x72\x6f\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\162\x43\157\144\x65"], "\x63\x6f\x6e\164\145\x6e\164\114\x69\x73\164" => $contentList), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\x65\x72\162\x6f\x72\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\157\x72\103\x6f\x64\145"], "\143\157\156\x74\145\156\164\x4c\x69\x73\x74" => $contentList), REST_Controller::HTTP_OK); } } public function ContentsByIDForLastAccess_put() { $nContentId = $this->put("\156\103\157\x6e\x74\145\x6e\x74\x49\144"); if (!isset($nContentId) || !is_numeric($nContentId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\157\x6e\164\145\156\x74\x73\137\x6d\157\144\145\154"); $ret = $this->Contents_model->put_ContentsByIDForLastAccess($nContentId); if ($ret > 0) { return $this->set_response(array("\x65\162\162\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\x72\103\157\144\145"]), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function FavoritedCategoriesByContentIDAndIsFavorite_put() { $nContentId = $this->put("\x6e\103\157\x6e\164\x65\x6e\x74\111\x64"); $bIsFavorite = $this->put("\142\111\163\106\x61\x76\157\x72\151\164\145"); if (!isset($nContentId) || !is_numeric($nContentId) || !isset($bIsFavorite)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\106\x61\166\x6f\162\151\164\x65\144\103\141\x74\145\x67\157\162\151\145\163\137\155\x6f\x64\145\154"); $ret = $this->FavoritedCategories_model->put_FavoritedCategoriesByContentIDAndIsFavorite($nContentId); if (count($ret) < 1) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } $bFavorite = $ret["\163\143\x5f\x63\157\x6e\164\145\156\164\137\146\141\x76\x6f\x72\151\x74\x65"] === "\x74"; if ($bFavorite != $bIsFavorite) { $ret = $this->FavoritedCategories_model->put_FavoritedCategoriesByContentIDAndIsFavoriteUpdate($nContentId, $bIsFavorite); return $this->set_response(array("\x65\162\x72\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\162\103\x6f\x64\x65"]), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } } public function CategoriesByRecentlyAccessedAndIsPremium_get() { $bIsPremium = strtoupper(urldecode($this->get("\x62\111\x73\x50\x72\x65\155\151\165\155"))); if (!($bIsPremium === "\x54\122\125\x45" || $bIsPremium === "\x46\x41\x4c\123\105")) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $bIsPremium = $bIsPremium === "\x54\122\x55\x45" ? true : false; load_model($this, "\x43\x61\x74\145\x67\x6f\x72\151\145\x73\x5f\155\x6f\144\x65\x6c"); $ret = $this->Categories_model->get_CategoriesByRecentlyAccessedAndIsPremium($bIsPremium); $vecRecentContents = array(); if (count($ret) > 0) { foreach ($ret as $row) { $content = array(); $content["\x6e\x43\157\156\164\x65\x6e\164\111\144"] = intval($row["\163\143\x5f\x63\x6f\156\164\145\x6e\164\x5f\151\144"]); $content["\163\x74\162\x43\157\156\x74\145\x6e\x74\116\x61\x6d\145"] = $row["\163\x63\137\x63\x6f\156\x74\145\x6e\x74\x5f\x6e\x61\x6d\x65"]; $content["\x73\x74\162\x43\157\x6e\x74\145\156\x74\x46\151\x6c\x65\120\x61\x74\150"] = $row["\x73\143\x5f\143\157\x6e\x74\x65\156\164\137\146\x69\154\x65\160\x61\164\x68"]; $content["\156\103\157\156\x74\145\x6e\x74\x54\171\160\145"] = intval($row["\163\x63\x5f\143\157\156\164\x65\156\164\137\x74\x79\160\145"]); $content["\x64\164\x4c\141\163\164\101\x63\143\145\x73\163\x54\151\155\145"] = currentDateFormat(DATEFORMAT_ISO8601, $row["\x73\x63\x5f\x63\157\x6e\164\145\x6e\164\137\154\x61\x73\164\x5f\141\143\x63\145\163\x73"]); $content["\142\106\141\166\x6f\162\x69\x74\x65"] = setBoolVal($row["\x73\x63\137\143\x6f\x6e\164\145\156\164\x5f\x66\x61\x76\x6f\162\151\x74\x65"]); $content["\156\103\x61\x74\145\x67\x6f\x72\x79\x49\x64"] = intval($row["\163\143\137\143\141\164\145\147\x6f\x72\171\137\x69\x64"]); $content["\x64\164\122\x65\147\x69\163\x74\x65\x72\x65\x64\124\151\x6d\x65"] = currentDateFormat(DATEFORMAT_ISO8601, $row["\163\x63\x5f\x63\157\156\x74\x65\156\164\137\x72\x65\147\x69\x73\x74\x65\162\145\x64"]); array_push($vecRecentContents, $content); } return $this->set_response(array("\x65\162\x72\157\x72\x43\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\162\x43\157\144\x65"], "\166\x65\x63\x43\x61\x74\145\x67\x6f\162\171\x4c\151\163\164" => $vecRecentContents, "\x62\111\163\x50\162\145\155\x69\x75\x6d" => $bIsPremium), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\145\x72\x72\x6f\162\103\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\162\103\x6f\144\x65"], "\166\x65\143\103\x61\164\145\x67\x6f\x72\171\x4c\x69\x73\x74" => $vecRecentContents, "\x62\x49\x73\120\162\145\x6d\151\165\155" => $bIsPremium), REST_Controller::HTTP_OK); } } public function ContentsByRecentlyAccessedAndIsPremium_get() { $bIsPremium = strtoupper(urldecode($this->get("\x62\111\163\x50\x72\145\x6d\151\x75\155"))); if (!($bIsPremium === "\124\122\125\105" || $bIsPremium === "\x46\x41\x4c\x53\105")) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $bIsPremium = $bIsPremium === "\124\x52\125\105" ? true : false; load_model($this, "\x43\x61\164\145\x67\x6f\x72\151\145\x73\x5f\x6d\x6f\144\145\x6c"); $vecRecentContents = $this->Categories_model->get_ConsultContentByRecentlyAccessedAndIsPremium($bIsPremium); if (count($vecRecentContents) > 0) { return $this->set_response(array("\x65\162\x72\157\x72\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\x72\103\x6f\x64\x65"], "\166\145\x63\122\x65\143\x65\x6e\x74\103\x6f\x6e\x74\145\x6e\x74\163" => $vecRecentContents, "\x62\111\x73\120\162\145\x6d\x69\165\x6d" => $bIsPremium), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\x65\162\x72\x6f\162\x43\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\157\162\103\x6f\x64\x65"], "\166\145\x63\x52\145\x63\145\156\164\x43\157\x6e\164\145\156\164\163" => $vecRecentContents, "\142\x49\163\x50\162\x65\155\x69\x75\x6d" => $bIsPremium), REST_Controller::HTTP_OK); } } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/E2Ds.php b/server/original/www/ezwebserver/src/application/controllers/v1/E2Ds.php new file mode 100644 index 0000000..02aee82 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/E2Ds.php @@ -0,0 +1,7 @@ +load->enum(); $this->load->struct(); } public function AcqInformations_post() { $searchCondition = $this->post(); if (empty($searchCondition["\x65\x4d\x6f\x64\141\154\x69\164\171"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x41\143\x71\x49\x6e\146\x6f\x72\155\x61\164\x69\x6f\x6e\x73\137\x6d\x6f\x64\x65\154"); $result = $this->AcqInformations_model->post_AcqInformations($searchCondition); if ($result["\145\162\162\x6f\x72\x43\157\144\x65"] == VERR_DB_QUERY_EXEC_ERROR) { return $this->set_response(returnSetResponse($result["\145\x72\162\x6f\162\103\x6f\x64\145"]), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(["\145\162\162\x6f\162\x43\x6f\144\145" => $result["\x65\x72\162\x6f\162\103\x6f\144\145"], "\x61\x63\161\111\156\x66\x6f\114\151\x73\x74" => $result["\x61\x63\161\x49\156\x66\157\114\x69\x73\164"]], REST_Controller::HTTP_OK); } } public function AttendingDoctorsForChartNo_get() { $strChartNo = urldecode($this->get("\x63\150\x61\x72\164\156\157")); if (!isset($strChartNo) || strlen($strChartNo) < 1) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\101\x74\x74\145\156\x64\151\156\x67\x44\157\143\x74\x6f\x72\163\137\x6d\157\144\145\154"); $result = $this->AttendingDoctors_model->get_AttendingDoctorsForChartNo($strChartNo); return $this->set_response(["\x65\x72\x72\x6f\162\103\x6f\x64\145" => $result["\145\162\162\157\162\103\x6f\144\145"], "\x64\x6f\x63\164\x6f\x72\x4e\141\x6d\145\114\x69\163\164" => $result["\x64\x6f\143\x74\x6f\x72\x4e\x61\x6d\145\114\x69\163\x74"]], REST_Controller::HTTP_OK); } public function AttendingDoctorsForChartNo_delete() { $strChartNo = urldecode($this->get("\143\x68\141\x72\164\156\x6f")); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\101\164\x74\145\156\x64\151\156\x67\x44\x6f\x63\x74\x6f\x72\x73\x5f\155\x6f\144\145\154"); $ret = $this->AttendingDoctors_model->delete_AttendingDoctorsForChartNo($strChartNo); if ($ret > 0) { $this->set_response(["\145\x72\x72\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\x72\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\162\x6f\162\x43\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\x72\103\x6f\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\162\162\157\162\103\157\144\x65"]], REST_Controller::HTTP_OK); } } public function AttendingDoctorsForChartNo_post() { $strChartNo = $this->post("\x73\164\x72\x43\150\141\x72\x74\116\157"); $strlDoctorList = $this->post("\x73\164\x72\x6c\x44\x6f\x63\x74\x6f\x72\114\151\x73\x74"); if (empty($strChartNo) || empty($strlDoctorList)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x41\164\164\x65\x6e\x64\x69\x6e\x67\x44\157\x63\164\x6f\x72\163\137\155\157\144\x65\154"); $data = $this->AttendingDoctors_model->post_AttendingDoctorsForChartNo($strChartNo, $strlDoctorList); if ($data === VERR_DB_RANGE) { return $this->set_response(["\x65\x72\x72\157\x72\x43\157\x64\x65" => returnSetResponse(VERR_DB_RANGE)["\x65\x72\x72\x6f\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } if (count($data) > 0) { return $this->set_response(["\145\162\162\157\x72\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\162\103\157\x64\x65"], "\163\164\x72\154\x41\144\x64\145\x64\104\157\143\x74\x6f\162\114\151\163\164" => $data], REST_Controller::HTTP_OK); } elseif ($data === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\162\x72\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\162\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\162\x43\157\x64\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\x72\157\162\103\157\144\145"]], REST_Controller::HTTP_OK); } } public function AttendingDoctorsForChartNo_put() { $strChartNo = $this->put("\163\164\162\103\150\x61\162\x74\x4e\157"); $strlDoctorList = $this->put("\x73\x74\x72\154\x44\x6f\x63\164\157\162\x4c\151\x73\164"); if (empty($strChartNo) || count($strlDoctorList) < 1) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x41\164\x74\x65\156\x64\x69\156\147\104\x6f\x63\164\x6f\162\x73\x5f\x6d\157\x64\145\154"); $ret = $this->AttendingDoctors_model->delete_AttendingDoctorsForChartNo($strChartNo); if ($ret > 0 || $ret === VERR_DB_NOSUCHDATA) { $ret = $this->AttendingDoctors_model->post_AttendingDoctorsForChartNo($strChartNo, $strlDoctorList); if ($ret === VERR_DB_RANGE) { return $this->set_response(["\145\x72\x72\x6f\x72\x43\157\x64\x65" => returnSetResponse(VERR_DB_RANGE)["\145\x72\162\157\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } if ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\162\x72\157\162\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\x72\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } if ($ret > 0) { return $this->set_response(["\x65\x72\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\x72\x6f\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } else { return $this->set_response(["\x65\x72\x72\x6f\162\103\x6f\x64\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\x72\162\x6f\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function DataGroups_get() { load_model($this, "\104\x61\164\x61\x47\x72\157\x75\160\x73\x5f\x6d\x6f\x64\x65\154"); $ret = $this->DataGroups_model->get_DataGroups(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $dataGroupInfo = new SDataGroupInfo(); $dataGroupInfo->strDataGroupName = $row["\144\x61\164\141\x5f\x67\162\160\137\156\141\x6d\x65"]; $dataGroupInfo->dtCreateDateTime = $row["\144\x61\164\x61\x5f\x67\x72\x70\137\143\162\145\164\137\144\x61\x74\x65"]; $dataGroupInfo->strGroupCTFilename = $row["\x64\x61\x74\141\137\147\162\x70\x5f\x63\x74\137\146\151\x6c\145\156\141\155\x65"]; $dataGroupInfo->strGroup3DPFilename = $row["\x64\141\164\x61\x5f\x67\162\x70\137\63\x64\x70\137\146\x69\x6c\x65\156\x61\x6d\145"]; $dataGroupInfo->strGroupUpperSTLFilename = $row["\144\141\x74\141\x5f\147\162\x70\x5f\165\163\164\x6c\x5f\146\x69\154\145\156\x61\155\x65"]; $dataGroupInfo->strGroupLowerSTLFilename = $row["\144\141\x74\141\137\147\x72\160\x5f\x6c\163\x74\154\137\x66\x69\154\145\156\141\x6d\145"]; $dataGroupInfo->strGroupRealPanoFilename = $row["\x64\x61\164\141\137\x67\x72\x70\137\162\145\141\x6c\160\x61\156\x6f\x5f\146\151\154\x65\156\141\155\145"]; $dataGroupInfo->bUserConfirm = $row["\144\x61\164\141\x5f\x67\x72\160\x5f\165\163\145\x72\x5f\x63\x6f\156\x66\x69\x72\x6d\x65\x64"]; array_push($items, $dataGroupInfo); } return $this->set_response(["\145\162\x72\157\x72\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\x72\103\157\x64\145"], "\x64\x61\x74\x61\x47\162\x6f\x75\x70\x4c\x69\x73\164" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\162\103\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\157\x72\x43\x6f\144\x65"], "\x64\141\164\x61\x47\162\157\x75\160\x4c\x69\163\x74" => $items], REST_Controller::HTTP_OK); } } public function DataGroups_put() { $dataGroupInfo = $this->put(); if (!isset($dataGroupInfo["\x73\164\x72\x44\x61\164\x61\107\162\x6f\165\x70\x4e\141\155\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\x61\x74\141\x47\162\157\165\160\x73\x5f\155\157\144\145\154"); $ret = $this->DataGroups_model->put_DataGroups($dataGroupInfo); if ($ret > 0) { return $this->set_response(["\x65\x72\162\157\x72\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\162\162\157\162\103\x6f\144\x65" => returnSetResponse(VERR_DB_OVERLAP)["\x65\162\x72\x6f\162\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\x72\x72\x6f\x72\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\157\x72\x43\x6f\144\x65"]], REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(["\x65\162\x72\x6f\162\103\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\x72\162\157\162\103\157\x64\145"]], REST_Controller::HTTP_OK); } } public function DataGroupsByName_get() { $strDataGroupName = urldecode($this->get("\156\x61\155\145")); if (!isset($strDataGroupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\104\x61\x74\141\x47\162\157\165\x70\163\137\x6d\157\144\x65\x6c"); $ret = $this->DataGroups_model->get_DataGroupsByName($strDataGroupName); if (count($ret) > 0) { $dataGroupInfo = new SDataGroupInfo(); $dataGroupInfo->strDataGroupName = $ret[0]["\x64\141\x74\141\137\x67\162\160\x5f\x6e\141\155\145"]; $dataGroupInfo->dtCreateDateTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[0]["\144\x61\x74\x61\137\x67\162\160\x5f\143\x72\145\164\137\144\x61\x74\145"]); $dataGroupInfo->strGroupCTFilename = $ret[0]["\144\x61\x74\141\x5f\x67\x72\x70\x5f\143\164\137\146\151\154\x65\x6e\x61\155\145"]; $dataGroupInfo->strGroup3DPFilename = $ret[0]["\144\x61\x74\x61\137\x67\162\x70\137\x33\x64\160\x5f\146\151\154\145\x6e\141\x6d\x65"]; $dataGroupInfo->strGroupUpperSTLFilename = $ret[0]["\144\141\164\141\137\x67\x72\160\x5f\x75\163\x74\154\137\x66\151\154\x65\x6e\141\x6d\x65"]; $dataGroupInfo->strGroupLowerSTLFilename = $ret[0]["\144\x61\164\x61\x5f\147\162\x70\137\154\163\164\154\x5f\146\151\154\145\156\x61\x6d\145"]; $dataGroupInfo->strGroupRealPanoFilename = $ret[0]["\x64\x61\164\141\137\x67\162\160\x5f\x72\145\141\x6c\x70\141\x6e\x6f\137\x66\x69\x6c\145\156\141\x6d\x65"]; $dataGroupInfo->bUserConfirm = setBoolVal($ret[0]["\x64\x61\x74\141\x5f\x67\162\160\137\x75\x73\x65\162\137\x63\157\156\146\x69\162\x6d\145\144"]); return $this->set_response(["\x65\162\162\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\x43\x6f\x64\x65"], "\145\62\x44\141\164\x61\107\x72\157\x75\x70\111\x6e\x66\x6f" => $dataGroupInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\x72\103\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\157\162\103\x6f\x64\145"], "\145\62\104\x61\164\x61\107\162\157\165\160\x49\x6e\x66\157" => array()], REST_Controller::HTTP_OK); } } public function DataGroupsByName_delete() { $strDataGroupName = urldecode($this->get("\x6e\x61\x6d\x65")); if (empty($strDataGroupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\104\x61\164\x61\x47\162\157\x75\x70\x73\x5f\x6d\157\x64\x65\154"); $ret = $this->DataGroups_model->delete_DataGroupsByName($strDataGroupName); if ($ret > 0) { $this->set_response(["\145\162\162\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\162\103\x6f\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\162\103\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } } public function DataGroupsByChartNo_get() { $strChartNo = urldecode($this->get("\143\150\141\x72\164\x6e\x6f")); if (!isset($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\x61\164\141\107\162\157\165\160\x73\137\x6d\x6f\144\x65\154"); $ret = $this->DataGroups_model->get_DataGroupsByChartNo($strChartNo); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $dataGroupInfo = new SDataGroupInfo(); $dataGroupInfo->strDataGroupName = $row["\144\141\x74\141\x5f\x67\162\x70\x5f\x6e\141\155\x65"]; $dataGroupInfo->dtCreateDateTime = currentDateFormat(DATEFORMAT_ISO8601, $row["\144\x61\164\x61\x5f\147\162\x70\137\x63\162\145\x74\137\144\x61\164\145"]); $dataGroupInfo->strGroupCTFilename = $row["\x64\x61\x74\x61\x5f\147\x72\x70\x5f\x63\x74\x5f\146\151\x6c\145\156\141\155\145"]; $dataGroupInfo->strGroup3DPFilename = $row["\144\x61\164\x61\137\147\x72\x70\x5f\63\x64\160\137\x66\151\x6c\x65\156\x61\155\145"]; $dataGroupInfo->strGroupUpperSTLFilename = $row["\x64\x61\164\x61\137\x67\x72\x70\x5f\165\163\x74\x6c\x5f\146\x69\154\145\156\141\155\145"]; $dataGroupInfo->strGroupLowerSTLFilename = $row["\x64\141\x74\x61\x5f\147\x72\x70\137\x6c\x73\x74\154\137\146\151\154\x65\156\x61\155\x65"]; $dataGroupInfo->strGroupRealPanoFilename = $row["\144\141\x74\141\137\x67\162\160\x5f\x72\145\141\x6c\160\141\x6e\157\137\146\x69\154\x65\x6e\141\155\145"]; $dataGroupInfo->bUserConfirm = setBoolVal($row["\144\x61\164\x61\137\147\162\160\137\x75\163\145\x72\137\x63\x6f\156\146\x69\162\155\x65\144"]); array_push($items, $dataGroupInfo); } return $this->set_response(["\145\162\162\x6f\x72\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\x72\x43\x6f\x64\x65"], "\144\141\164\141\107\x72\157\165\x70\114\x69\163\x74" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\157\162\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\x72\x43\x6f\x64\x65"], "\144\141\x74\141\x47\162\x6f\165\160\x4c\151\x73\x74" => $items], REST_Controller::HTTP_OK); } } public function DataGroupsByChartNo_post() { $strChartNo = $this->post("\163\164\162\103\x68\141\162\164\x4e\x6f"); $dataGroupInfo = $this->post("\123\104\x61\x74\x61\107\162\157\x75\x70\x49\156\x66\157"); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\141\164\x61\107\162\x6f\x75\x70\x73\x5f\155\157\x64\x65\154"); $ret = $this->DataGroups_model->post_DataGroupsByChartNo($strChartNo, $dataGroupInfo); if ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\x72\x72\157\162\103\x6f\x64\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\162\x72\157\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\x72\x72\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\157\162\103\157\144\145"]], REST_Controller::HTTP_OK); } elseif (count($ret) > 0) { return $this->set_response(["\x65\x72\162\157\x72\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\x72\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\157\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\x72\157\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function DataGroupsByNameAndChartNo_put() { $strDataGroupName = $this->put("\163\164\162\104\141\164\x61\x47\x72\157\165\160\x4e\141\x6d\145"); $strChartNo = $this->put("\x73\164\162\x43\x68\141\162\164\116\x6f"); if (!isset($strDataGroupName) || !isset($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\104\x61\x74\x61\107\x72\x6f\165\x70\x73\x5f\x6d\x6f\144\x65\154"); $ret = $this->DataGroups_model->put_DataGroupsByNameAndChartNo($strChartNo, $strDataGroupName); if ($ret > 0) { return $this->set_response(["\145\162\162\x6f\162\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\162\x43\157\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\162\162\157\162\103\157\x64\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\x72\x72\157\162\103\157\144\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\x72\x72\157\x72\103\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\162\103\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\157\162\x43\x6f\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\x72\162\157\162\x43\157\144\x65"]], REST_Controller::HTTP_OK); } } public function DataGroupsByCTFileAndStudyUID_get() { $strCtFileName = urldecode($this->get("\x63\x74\146\x69\154\145")); $strStudyInstanceUID = urldecode($this->get("\x73\164\x75\144\x79\x75\x69\144")); if (!isset($strCtFileName) && !isset($strStudyInstanceUID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\141\x74\x61\107\x72\x6f\165\160\163\x5f\x6d\x6f\144\x65\x6c"); $ret = $this->DataGroups_model->get_DataGroupsByCTFileAndStudyUID($strCtFileName, $strStudyInstanceUID); if (count($ret) > 0) { $dataGroupInfo = new SDataGroupInfo(); $dataGroupInfo->strDataGroupName = $ret[0]["\144\141\x74\x61\x5f\x67\x72\160\x5f\156\x61\x6d\145"]; $dataGroupInfo->dtCreateDateTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[0]["\144\x61\x74\141\137\x67\x72\x70\137\143\162\145\x74\137\144\141\x74\145"]); $dataGroupInfo->strGroupCTFilename = $ret[0]["\x64\x61\x74\141\x5f\147\162\160\137\143\x74\x5f\146\151\x6c\145\156\141\x6d\x65"]; $dataGroupInfo->strGroup3DPFilename = $ret[0]["\x64\141\x74\x61\x5f\x67\162\160\x5f\63\144\160\x5f\x66\x69\x6c\x65\156\141\x6d\x65"]; $dataGroupInfo->strGroupUpperSTLFilename = $ret[0]["\x64\141\x74\x61\x5f\147\162\160\137\165\x73\x74\x6c\x5f\146\151\x6c\x65\x6e\x61\155\145"]; $dataGroupInfo->strGroupLowerSTLFilename = $ret[0]["\144\141\164\x61\x5f\x67\x72\160\x5f\x6c\163\x74\x6c\x5f\x66\151\154\145\x6e\141\155\x65"]; $dataGroupInfo->strGroupRealPanoFilename = $ret[0]["\x64\x61\x74\x61\137\147\162\160\x5f\x72\145\141\154\x70\141\156\157\x5f\146\x69\x6c\x65\156\141\x6d\145"]; $dataGroupInfo->bUserConfirm = setBoolVal($ret[0]["\144\x61\x74\x61\x5f\x67\162\160\x5f\165\x73\145\162\137\143\x6f\156\x66\x69\162\155\x65\144"]); return $this->set_response(["\145\162\x72\x6f\x72\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\162\x43\157\144\145"], "\145\62\104\141\164\141\x47\162\157\x75\160\x49\x6e\x66\157" => $dataGroupInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\162\x43\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\157\162\103\157\x64\145"], "\145\x32\104\141\164\x61\107\162\157\165\x70\111\x6e\x66\x6f" => array()], REST_Controller::HTTP_OK); } } public function DataGroupImages_get() { load_model($this, "\x44\x61\x74\141\x47\162\157\165\160\x49\x6d\141\147\145\163\137\x6d\x6f\144\145\154"); $ret = $this->DataGroupImages_model->get_DataGroupImages(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function DataGroupImages_post() { $dataGroupImageInfo = $this->post(); if (!isset($dataGroupImageInfo["\163\x74\162\104\141\x74\x61\x47\162\x6f\x75\x70\116\141\155\145"]) || !isset($dataGroupImageInfo["\x73\x74\162\x49\x6d\x61\147\x65\x46\x69\154\145\x4e\141\x6d\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\104\141\164\x61\107\x72\x6f\x75\x70\x49\155\x61\x67\145\x73\x5f\x6d\x6f\144\x65\154"); $ret = $this->DataGroupImages_model->post_DataGroupImages($dataGroupImageInfo); if ($ret > 0) { return $this->set_response(["\x65\x72\162\157\162\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\162\103\x6f\x64\x65"], "\x6e\104\141\164\x61\107\162\157\165\x70\111\x6d\141\x67\145\111\x44" => $ret], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\x72\162\157\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\x72\x72\x6f\162\x43\157\144\x65"], "\156\104\x61\x74\141\x47\162\157\165\x70\x49\155\x61\x67\x65\x49\x44" => 0], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\x72\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\x72\103\x6f\144\x65"], "\156\x44\141\164\141\107\162\x6f\165\160\x49\x6d\x61\147\145\x49\104" => 0], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\x6f\162\103\157\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\162\162\x6f\162\x43\x6f\x64\145"], "\156\104\141\x74\141\107\162\x6f\x75\160\111\155\141\147\145\111\104" => 0], REST_Controller::HTTP_OK); } } public function DataGroupImages_put() { $dataGroupImageInfo = $this->put(); if (!isset($dataGroupImageInfo["\163\164\x72\111\x6d\x61\x67\x65\106\x69\x6c\145\x4e\141\x6d\145"]) || !isset($dataGroupImageInfo["\x6e\107\x72\157\165\160\x49\x6d\x61\x67\145\x49\104"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\104\x61\x74\x61\x47\x72\x6f\165\x70\x49\155\x61\x67\x65\x73\137\155\x6f\144\145\154"); $ret = $this->DataGroupImages_model->put_DataGroupImages($this->put()); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\162\x72\x6f\162\103\157\144\145" => returnSetResponse(VERR_DB_OVERLAP)["\x65\162\x72\157\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\162\162\x6f\x72\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\x72\103\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\x6f\x72\103\157\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\x72\162\x6f\x72\x43\157\144\x65"]], REST_Controller::HTTP_OK); } } public function DataGroupImagesByName_get() { $strDataGroupName = urldecode($this->get("\156\141\x6d\x65")); if (!isset($strDataGroupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\104\x61\x74\x61\107\x72\157\165\160\x49\x6d\x61\147\145\163\x5f\x6d\157\x64\145\154"); $ret = $this->DataGroupImages_model->get_DataGroupImagesByName($strDataGroupName); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function DataGroupImagesByID_put() { $nDataGroupImageID = $this->put("\156\x44\141\164\141\107\x72\157\165\160\x49\155\141\147\145\x49\104"); if (!isset($nDataGroupImageID) || !is_numeric($nDataGroupImageID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\x61\x74\x61\107\x72\157\165\160\111\x6d\141\147\145\x73\137\x6d\x6f\144\145\154"); $ret = $this->DataGroupImages_model->put_DataGroupImagesByID(intval($nDataGroupImageID)); if ($ret > 0) { return $this->set_response(["\145\x72\x72\x6f\x72\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\162\103\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\x72\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\x72\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function DataGroupImagesByID_delete() { $nDataGroupImageID = urldecode($this->get("\151\144")); if (empty($nDataGroupImageID) || !is_numeric($nDataGroupImageID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\104\141\x74\x61\107\162\x6f\x75\x70\111\x6d\141\x67\145\163\137\155\x6f\x64\x65\154"); $ret = $this->DataGroupImages_model->delete_DataGroupImagesByID($nDataGroupImageID); if ($ret === FALSE) { return $this->set_response(["\145\162\162\x6f\x72\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\x6f\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } } public function DataGroupImagesByImageNameForImageId_get() { $strImageName = urldecode($this->get("\x69\155\141\147\145\x6e\141\x6d\145")); if (empty($strImageName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\141\x74\141\x47\x72\157\165\160\111\x6d\141\147\145\163\137\155\x6f\144\x65\x6c"); $imageId = $this->DataGroupImages_model->get_DataGroupImagesByImageNameForImageId($strImageName); if ($imageId != false) { return $this->set_response(["\145\x72\162\x6f\162\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\x72\103\x6f\x64\145"], "\x69\x6d\141\x67\x65\x49\144" => $imageId], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\x6f\x72\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } } public function DataGroupProjects_post() { $strProjectName = $this->post("\163\164\162\x50\x72\157\152\145\143\164\x4e\141\x6d\x65"); $strApplicationName = $this->post("\163\164\162\101\160\160\154\151\x63\x61\x74\151\x6f\156\116\x61\155\x65"); $strCompanyName = $this->post("\163\x74\162\103\157\x6d\x70\x61\156\x79\x4e\141\x6d\x65"); $strGroupName = $this->post("\x73\x74\x72\107\162\x6f\x75\x70\x4e\x61\x6d\145"); $strServerFileName = $this->post("\x73\x74\x72\123\145\x72\166\145\162\106\151\x6c\x65\x4e\x61\155\x65"); if (!isset($strProjectName) || !isset($strApplicationName) || !isset($strCompanyName) || !isset($strGroupName) || !isset($strServerFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\x61\164\x61\107\x72\x6f\165\x70\120\162\x6f\x6a\145\x63\x74\x73\137\x6d\x6f\x64\145\154"); $wasSuccess = $this->DataGroupProjects_model->post_DataGroupProjects($strProjectName, $strApplicationName, $strCompanyName, $strGroupName, $strServerFileName); if ($wasSuccess["\145\x72\162\157\x72\103\x6f\x64\145"] == VERR_COMMON_SUCCESS) { return $this->set_response(["\145\162\162\157\x72\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\162\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\162\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } } public function DataGroupProjectImages_post() { $strProjectImageInformation = $this->post("\163\x74\x72\x50\x72\157\152\145\143\164\x49\155\141\x67\145\x49\x6e\x66\157\162\x6d\141\x74\151\157\x6e"); $strGroupName = $this->post("\x73\164\x72\107\162\x6f\x75\160\x4e\141\x6d\145"); $strImageName = $this->post("\x73\164\x72\x49\155\x61\x67\145\x4e\141\x6d\x65"); if (!isset($strProjectImageInformation) || !isset($strGroupName) || !isset($strImageName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\x61\164\141\107\162\x6f\x75\160\x50\162\x6f\x6a\145\143\164\111\155\141\147\x65\163\137\155\157\144\x65\154"); $wasSuccess = $this->DataGroupProjectImages_model->post_DataGroupProjectImages($strProjectImageInformation, $strGroupName, $strImageName); if ($wasSuccess == false) { return $this->set_response(["\x65\162\x72\x6f\x72\x43\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\157\x72\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\x6f\162\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } } public function DataGroupProjectImagesByImageName_get() { $strImageName = urldecode($this->get("\151\155\141\147\x65\156\141\x6d\145")); if (!isset($strImageName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\104\141\164\x61\x47\x72\157\x75\160\x50\162\x6f\x6a\x65\143\x74\111\x6d\141\147\145\x73\137\x6d\x6f\x64\145\x6c"); $data = $this->DataGroupProjectImages_model->get_DataGroupProjectImagesByImageName($this->get()); if ($data == false) { return $this->set_response(["\145\x72\162\157\162\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\162\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\157\162\x43\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\162\x43\157\144\x65"], "\163\164\x72\x50\x72\x6f\152\x65\x63\x74\116\x61\x6d\145" => $data["\x73\x74\x72\120\x72\157\152\145\x63\164\116\141\x6d\x65"], "\x73\164\x72\111\155\141\x67\x65\x49\156\x66\157" => $data["\x73\164\x72\x49\x6d\141\x67\x65\111\156\146\157"]], REST_Controller::HTTP_OK); } } public function IOScanner3rdPartyDataByImageName_get() { $strImageName = urldecode($this->get("\151\x6d\141\147\145\156\x61\x6d\x65")); if (!isset($strImageName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\117\x53\x63\x61\156\156\145\162\63\x72\144\120\x61\x72\x74\x79\x44\x61\x74\141\137\x6d\x6f\144\145\x6c"); $data = $this->IOScanner3rdPartyData_model->get_IOScanner3rdPartyDataByImageName($strImageName); if ($data == false) { return $this->set_response(["\x65\162\x72\157\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\157\162\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\x6f\x72\x43\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\162\x43\157\144\145"], "\x64\141\x74\x61" => $data["\x64\141\x74\x61"], "\x73\164\x72\x53\x65\x72\x76\x65\x72\x46\x69\x6c\x65\116\x61\x6d\x65" => $data["\x73\164\162\123\x65\162\166\x65\162\106\151\x6c\145\116\x61\x6d\x65"]], REST_Controller::HTTP_OK); } } public function Doctors_get() { load_model($this, "\x44\157\143\x74\157\162\163\x5f\x6d\x6f\144\x65\x6c"); $ret = $this->Doctors_model->get_Doctors(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $strDocName = $row["\x64\x6f\143\x5f\156\141\155\145"]; array_push($items, $strDocName); } $this->set_response(["\x65\162\x72\x6f\x72\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\162\103\x6f\x64\x65"], "\x64\x6f\143\x74\x6f\162\x4e\x61\155\145\x4c\x69\x73\164" => $items], REST_Controller::HTTP_OK); } else { $this->set_response(["\x65\162\162\157\x72\x43\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\x72\103\x6f\144\x65"], "\x64\x6f\x63\x74\x6f\162\116\x61\x6d\x65\114\x69\163\164" => $items], REST_Controller::HTTP_OK); } } public function DoctorsByName_put() { $strDoctorName = $this->put("\x73\164\x72\104\x6f\x63\x74\x6f\162\x4e\141\155\x65"); $sAccountInfo = $this->put("\x73\x41\143\x63\157\x75\156\164\111\x6e\x66\157"); if (empty($strDoctorName) || !isset($sAccountInfo["\163\x74\162\x41\x63\x63\x6f\165\156\x74\116\x61\155\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\104\x6f\x63\164\x6f\x72\x73\x5f\155\x6f\144\145\154"); $ret = $this->Doctors_model->put_DoctorsByName($strDoctorName, $sAccountInfo); if ($ret > 0) { return $this->set_response(["\x65\x72\162\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\x72\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\x6f\162\x43\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\x6f\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } } public function DoctorsByName_delete() { $strDoctorName = urldecode($this->get("\x6e\141\155\x65")); if (empty($strDoctorName)) { vt_loge("\x44\157\143\x74\157\162\163\102\x79\116\x61\155\x65\x5f\x64\145\154\x65\x74\145\40\101\x70\151\56\40" . "\111\156\166\141\154\151\144\40\120\x61\x72\x61\x6d\x65\164\145\162\40\x45\x72\162\157\x72\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\x6f\x63\x74\x6f\162\x73\137\155\157\144\145\x6c"); $ret = $this->Doctors_model->delete_DoctorsByName($strDoctorName); if ($ret > 0) { return $this->set_response(["\145\x72\x72\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\162\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\x72\103\x6f\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\157\x72\103\157\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\162\x72\157\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function DoctorsByNameAndAccount_post() { $strDoctorName = $this->post("\163\x74\x72\x44\x6f\x63\x74\x6f\162\x4e\x61\x6d\x65"); $strAccountID = $this->post("\x73\x74\x72\x41\143\143\157\x75\156\x74\111\104"); if (!isset($strDoctorName) || !isset($strAccountID) || strlen($strDoctorName) < 1 || strlen($strAccountID) < 1) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x44\x6f\143\x74\x6f\162\163\x5f\155\157\x64\145\154"); $ret = $this->Doctors_model->post_DoctorsByNameAndAccount($strDoctorName, $strAccountID); if ($ret > 0) { return $this->set_response(["\145\162\162\x6f\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\x72\103\x6f\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\157\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\162\x6f\x72\103\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function ExtraOralDevices_get() { load_model($this, "\105\170\x74\x72\141\117\x72\141\x6c\x44\x65\x76\x69\x63\145\163\x5f\x6d\157\144\145\x6c"); $ret = $this->ExtraOralDevices_model->get_ExtraOralDevices(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $sDeviceInfo = SExtraOralDeviceInfo::constructWithParameter($row); array_push($items, $sDeviceInfo); } return $this->set_response(["\x65\x72\162\x6f\162\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\162\103\157\144\x65"], "\155\141\x70\x44\x65\166\151\x63\145\x49\x6e\146\157" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\x6f\x72\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\x72\103\x6f\x64\x65"], "\x6d\141\x70\104\x65\x76\x69\x63\145\111\x6e\x66\x6f" => $items], REST_Controller::HTTP_OK); } } public function ExtraOralDevices_put() { $sExtraOralDeviceInfo = $this->put(); if (!isset($sExtraOralDeviceInfo["\x73\164\162\104\145\166\151\143\145\x53\145\162\151\141\x6c\x4e\x75\x6d\x62\x65\x72"]) || !isset($sExtraOralDeviceInfo["\145\104\x65\x76\x69\143\x65\123\x61\x6c\x65\163\x54\171\160\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\x78\x74\x72\x61\x4f\162\141\x6c\x44\145\x76\x69\x63\145\163\137\x6d\x6f\x64\145\154"); $ret = $this->ExtraOralDevices_model->put_ExtraOralDevices($sExtraOralDeviceInfo); if ($ret["\x65\162\162\157\x72\103\x6f\144\145"] == VERR_COMMON_SUCCESS) { return $this->set_response(["\x65\162\x72\157\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\157\162\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesBySN_get() { $strDeviceSerialNumber = urldecode($this->get("\163\x6e")); load_model($this, "\105\x78\x74\x72\x61\117\162\141\x6c\104\145\166\151\x63\x65\163\137\155\x6f\144\145\154"); $ret = $this->ExtraOralDevices_model->get_ExtraOralDevicesBySN($strDeviceSerialNumber); if (count($ret) > 0) { $sDeviceInfo = SExtraOralDeviceInfo::constructWithParameter($ret[0]); return $this->set_response(["\145\x72\162\157\x72\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\x43\157\144\145"], "\x73\x44\145\166\151\x63\145\x49\156\146\157" => $sDeviceInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\x72\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\162\x43\157\144\145"], "\x73\104\145\166\x69\x63\x65\x49\x6e\146\157" => array()], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesBySN_post() { $strDeviceSerialNumber = $this->post("\163\164\162\x44\145\x76\x69\143\x65\123\145\x72\151\141\x6c\x4e\165\155\x62\x65\x72"); $eDeviceSalesType = $this->post("\145\104\x65\x76\151\143\145\123\x61\154\145\x73\x54\x79\x70\145"); load_model($this, "\105\x78\164\162\141\117\x72\x61\x6c\104\x65\x76\151\x63\145\x73\x5f\x6d\x6f\x64\145\154"); $ret = $this->ExtraOralDevices_model->post_ExtraOralDevicesBySN($strDeviceSerialNumber, $eDeviceSalesType); if ($ret == true) { return $this->set_response(["\145\162\x72\157\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\162\x43\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\x72\103\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\x6f\162\103\157\144\x65"]], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesBySN_put() { $strDeviceSerialNumber = $this->put("\163\164\162\104\145\x76\x69\x63\145\123\x65\162\151\141\154\116\x75\x6d\x62\x65\x72"); $eDeviceSalesType = $this->put("\x65\x44\x65\166\151\x63\145\x53\x61\x6c\x65\x73\124\x79\160\x65"); load_model($this, "\105\170\x74\162\x61\117\162\x61\154\x44\145\x76\151\x63\145\x73\137\x6d\x6f\x64\x65\154"); $ret = $this->ExtraOralDevices_model->put_ExtraOralDevicesBySN($strDeviceSerialNumber, $eDeviceSalesType); if ($ret == TRUE) { return $this->set_response(["\145\162\162\x6f\x72\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\x72\103\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesBySNForStatus_put() { $strDeviceSerialNumber = $this->put("\x73\x74\162\x44\145\x76\151\143\145\x53\145\x72\151\141\154\x4e\x75\155\142\x65\x72"); $parameters = $this->put(); load_model($this, "\105\170\164\x72\x61\117\x72\141\x6c\104\145\166\x69\143\145\x73\x5f\155\x6f\144\145\x6c"); $ret = $this->ExtraOralDevices_model->put_ExtraOralDevicesBySNForStatus($strDeviceSerialNumber, $parameters); if ($ret == true) { return $this->set_response(["\x65\162\162\157\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\162\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesForInfo_post() { $sExtraOralDeviceInfo = $this->post("\x73\x45\x78\164\162\x61\117\162\141\154\x44\x65\x76\x69\143\x65\111\x6e\x66\x6f"); $bUpdateDeviceInfo = $this->post("\x62\125\x70\x64\x61\164\145\104\x65\166\151\143\145\x49\156\x66\157"); $bCheckSum = $this->post("\x62\103\x68\x65\143\x6b\123\x75\x6d"); load_model($this, "\105\x78\x74\162\x61\117\162\141\x6c\x44\x65\166\151\143\145\163\x5f\155\157\144\145\x6c"); $ret = $this->ExtraOralDevices_model->post_ExtraOralDevicesForInfo($sExtraOralDeviceInfo, $bUpdateDeviceInfo, $bCheckSum); if ($ret === TRUE) { return $this->set_response(array("\x65\162\x72\x6f\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\x72\x43\x6f\144\145"]), REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\162\162\157\x72\x43\x6f\144\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\162\x72\x6f\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\x6f\x72\x43\157\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\162\162\157\x72\103\x6f\x64\145"]], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesForChecksum_put() { $Parameters = $this->put(); $strCondition = $Parameters["\x73\x74\162\x43\x6f\156\144\151\164\151\x6f\156"]; $strUpdateValue = $Parameters["\163\x74\x72\x55\160\x64\x61\x74\145\126\x61\x6c\x75\x65"]; $bVerifyCheckSum = $Parameters["\x62\x56\145\162\151\x66\171\103\x68\145\143\x6b\123\165\x6d"]; $bUpdateData = $Parameters["\x62\x55\160\x64\x61\164\145\x44\141\164\x61"]; load_model($this, "\105\x78\164\x72\141\117\x72\141\154\x44\145\x76\151\x63\145\x73\137\155\157\144\x65\x6c"); $ret = $this->ExtraOralDevices_model->put_ExtraOralDevicesForChecksum($strCondition, $strUpdateValue, $bVerifyCheckSum, $bUpdateData); if ($ret == TRUE) { return $this->set_response(["\145\162\162\157\x72\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\162\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\x6f\x72\x43\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\x6f\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesBySNAndChecksumAndUpdate_get() { $strDeviceSerialNumber = urldecode($this->get("\x73\x6e")); $strCheckSum = urldecode($this->get("\x63\150\x65\x63\x6b\163\165\155")); $bUpdateData = urldecode($this->get("\165\x70\x64\141\x74\x65")); if (!isset($strDeviceSerialNumber) || !isset($strCheckSum) || !isset($bUpdateData)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\170\164\x72\141\x4f\x72\x61\x6c\x44\145\x76\151\143\x65\163\x5f\155\157\x64\x65\x6c"); $ret = $this->ExtraOralDevices_model->get_ExtraOralDevicesBySNAndChecksumAndUpdate($strDeviceSerialNumber, $strCheckSum, $bUpdateData); if ($ret == true) { return $this->set_response(["\145\x72\x72\157\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\162\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\x72\103\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesByChecksumAndImageFileAndUpdate_get() { $strImgFileName = urldecode($this->get("\x69\x6d\x61\147\x65\146\151\x6c\x65")); $strCheckSum = urldecode($this->get("\143\150\x65\x63\153\x73\x75\155")); $bUpdateData = urldecode($this->get("\165\160\144\141\x74\145")); if (!isset($strImgFileName) || !$bUpdateData == "\x74\x72\165\145" || !$bUpdateData == "\146\141\154\163\x65") { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\170\x74\x72\x61\x4f\162\x61\x6c\x44\x65\x76\x69\x63\x65\x73\137\x6d\x6f\144\x65\x6c"); $ret = $this->ExtraOralDevices_model->get_ExtraOralDevicesByChecksumAndImageFileAndUpdate($strImgFileName, $strCheckSum, $bUpdateData); if ($ret == TRUE) { return $this->set_response(["\x65\x72\162\157\x72\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\x72\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\x6f\x72\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesForCount_post() { $eDeviceSalesType = $this->post(); if (!isset($eDeviceSalesType) || empty($eDeviceSalesType)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\x78\164\162\141\x4f\162\141\x6c\x44\145\x76\x69\143\145\x73\137\155\x6f\144\145\x6c"); $ret = $this->ExtraOralDevices_model->post_ExtraOralDevicesForCount($eDeviceSalesType); $nDeviceCount = intval($ret[0]["\143\157\x75\156\x74"]); if (count($ret) > 0) { return $this->set_response(array("\x65\162\162\157\x72\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\162\103\157\144\x65"], "\x6e\104\145\x76\x69\143\x65\x43\157\x75\x6e\164" => $nDeviceCount), REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\157\162\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\x72\103\x6f\144\x65"], "\x6e\x44\x65\166\x69\x63\145\x43\x6f\165\156\x74" => 0], REST_Controller::HTTP_OK); } } public function ExtraOralDevicesByImageFile_get() { $strImgFileName = urldecode($this->get("\x69\x6d\x61\147\x65\146\151\x6c\145")); if (!isset($strImgFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $sDeviceInfo = new SExtraOralDeviceInfo(); load_model($this, "\x45\170\x74\x72\141\117\x72\141\x6c\x44\x65\166\151\x63\x65\163\137\155\x6f\x64\x65\154"); $ret = $this->ExtraOralDevices_model->get_ExtraOralDevicesByImageFile($strImgFileName, $sDeviceInfo); if ($ret === TRUE) { return $this->set_response(["\145\162\x72\x6f\162\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\x72\x43\157\x64\x65"], "\163\x44\x65\x76\x69\143\x65\x49\156\146\x6f" => $sDeviceInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function E2DataGroups_get() { load_model($this, "\105\x32\104\141\x74\141\107\162\157\165\x70\x73\137\155\x6f\x64\145\154"); $ret = $this->E2DataGroups_model->get_E2DataGroups(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $dataGropInfo = new SE2DataGroupInfo(); $dataGropInfo->strDataGroupName = $row["\147\162\157\165\x70\137\156\141\155\145"]; $dataGropInfo->dtCreateDateTime = $row["\147\x72\x6f\165\160\x5f\x63\x72\145\164\x5f\x64\141\164\145"]; array_push($items, $dataGropInfo); } return $this->set_response(["\x65\162\x72\x6f\162\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\162\103\157\144\x65"], "\145\x32\x44\141\x74\141\x47\162\157\x75\x70\x49\x6e\x66\157\114\151\163\164" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\162\x43\157\144\145"], "\x65\62\104\141\x74\x61\x47\x72\x6f\x75\160\x49\156\x66\x6f\114\x69\163\x74" => $items], REST_Controller::HTTP_OK); } } public function E2DataGroupsByChartNo_get() { $strChartNo = urldecode($this->get("\143\x68\141\162\x74\156\157")); if (!isset($strChartNo) || strlen($strChartNo) < 1) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\62\104\x61\x74\x61\x47\x72\x6f\x75\x70\163\x5f\155\x6f\144\145\x6c"); $ret = $this->E2DataGroups_model->get_E2DataGroupsByChartNo($strChartNo); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $dataGroupInfo = SE2DataGroupInfo::createFromDBRecord($row); array_push($items, $dataGroupInfo); } return $this->set_response(["\145\x72\162\157\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\162\x43\157\x64\145"], "\x65\x32\x44\141\x74\x61\107\162\157\165\160\111\156\x66\157\x4c\151\x73\164" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\162\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\162\x43\x6f\144\145"], "\x65\x32\104\x61\x74\141\x47\162\x6f\165\x70\111\156\x66\x6f\x4c\151\163\x74" => $items], REST_Controller::HTTP_OK); } } public function E2DataGroupsByChartNo_post() { $strChartNo = $this->post("\163\x74\x72\x43\150\x61\x72\164\116\x6f"); $dataGroupInfo = $this->post("\123\x45\62\104\x61\164\x61\107\x72\x6f\x75\160\111\156\x66\157"); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\x32\104\x61\x74\141\x47\162\x6f\x75\160\163\x5f\155\157\144\145\x6c"); $ret = $this->E2DataGroups_model->post_E2DataGroupsByChartNo($strChartNo, $dataGroupInfo); if ($ret["\x65\x72\162\x6f\x72\x43\157\x64\x65"] === VERR_COMMON_SUCCESS) { return $this->set_response(["\x65\x72\162\157\x72\103\157\144\145" => $ret["\x65\x72\x72\157\162\103\x6f\x64\145"], "\163\164\162\x47\x72\x6f\x75\x70\x44\141\x74\x61\116\141\x6d\x65" => $ret["\x73\x74\x72\107\162\157\x75\160\x44\141\x74\141\116\x61\x6d\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\x6f\162\103\x6f\x64\145" => $ret["\145\x72\x72\157\x72\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function E2DataGroupsByChartNo_put() { $strChartNo = $this->put("\x73\x74\x72\103\150\141\162\x74\x4e\x6f"); $strDataGroupName = $this->put("\x73\164\162\104\x61\164\141\107\x72\157\x75\x70\116\x61\x6d\145"); if (empty($strChartNo) || empty($strDataGroupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\x32\104\141\x74\141\x47\x72\x6f\x75\160\163\x5f\x6d\157\144\145\154"); $ret = $this->E2DataGroups_model->put_E2DataGroupsByChartNo($strChartNo, $strDataGroupName); if ($ret > 0) { return $this->set_response(["\145\x72\x72\x6f\x72\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\x72\x72\x6f\x72\103\157\x64\145" => returnSetResponse(VERR_DB_OVERLAP)["\145\162\x72\157\162\103\x6f\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\162\162\x6f\162\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\162\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\162\x43\157\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\162\162\157\x72\x43\157\144\x65"]], REST_Controller::HTTP_OK); } } public function E2DataGroupsByName_get() { $strDataGroupName = urldecode($this->get("\x6e\141\x6d\145")); if (!isset($strDataGroupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\x32\104\141\164\141\x47\162\157\165\160\163\x5f\155\157\x64\145\x6c"); $ret = $this->E2DataGroups_model->get_E2DataGroupsByName($strDataGroupName); if (count($ret) > 0) { $dataGroupInfo = new SE2DataGroupInfo(); $dataGroupInfo->strDataGroupName = $ret[0]["\x67\162\x6f\x75\160\x5f\156\141\x6d\x65"]; $dataGroupInfo->dtCreateDateTime = $ret[0]["\x67\x72\157\x75\160\x5f\143\162\x65\164\x5f\x64\141\x74\x65"]; $dataGroupInfo->bAutoCreated = $ret[0]["\147\x72\x6f\x75\x70\x5f\x61\165\164\x6f\137\143\162\145\141\x74\145\144"]; return $this->set_response(["\x65\162\x72\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\x72\x43\157\x64\145"], "\145\x32\104\x61\164\141\107\x72\x6f\165\x70\x49\156\146\x6f" => $dataGroupInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\x6f\x72\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\x72\103\157\144\145"], "\145\62\x44\x61\x74\141\x47\x72\157\165\x70\x49\x6e\x66\x6f" => array()], REST_Controller::HTTP_OK); } } public function E2DataGroupsByName_delete() { $strDataGroupName = urldecode($this->get("\x6e\x61\x6d\145")); if (!isset($strDataGroupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\x32\104\141\164\141\107\162\157\x75\x70\163\x5f\x6d\157\144\x65\x6c"); $ret = $this->E2DataGroups_model->delete_E2DataGroupsByName($strDataGroupName); if ($ret > 0) { return $this->set_response(["\145\162\162\x6f\x72\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\162\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\162\162\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\162\x43\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\157\162\103\x6f\x64\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\162\x6f\162\103\157\144\145"]], REST_Controller::HTTP_OK); } } public function E2DataGroupsByCTFileandStudyUID_get() { $strCtFileName = urldecode($this->get("\143\164\146\151\154\145")); $strStudyInstanceUID = urldecode($this->get("\x73\x74\x75\144\171\x75\x69\144")); if (!isset($strCtFileName) && !isset($strStudyInstanceUID) || strlen($strCtFileName) < 1 && strlen($strStudyInstanceUID) < 1) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\x32\x44\141\164\x61\x47\x72\x6f\165\x70\104\102\137\x6d\x6f\x64\145\x6c"); $ret = $this->E2DataGroupDB_model->get_E2DataGroupsByCTFileandStudyUID($strCtFileName, $strStudyInstanceUID); if (count($ret) > 0) { $dataGroupInfo = new SE2DataGroupInfo(); $dataGroupInfo->strDataGroupName = $ret[0]["\x67\x72\157\x75\160\137\x6e\x61\x6d\145"]; $dataGroupInfo->dtCreateDateTime = $ret[0]["\x67\x72\x6f\x75\x70\137\143\x72\145\164\137\x64\x61\x74\x65"]; $dataGroupInfo->bAutoCreated = $ret[0]["\147\x72\x6f\x75\160\137\x61\x75\x74\x6f\x5f\x63\162\145\x61\164\x65\144"]; return $this->set_response(["\x65\162\162\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\162\x43\x6f\x64\145"], "\x65\62\x44\141\x74\x61\x47\162\157\165\160\x49\156\146\157" => $dataGroupInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\x6f\x72\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\157\162\x43\x6f\144\x65"], "\x65\62\104\x61\x74\141\x47\x72\x6f\165\x70\111\x6e\146\x6f" => array()], REST_Controller::HTTP_OK); } } public function E2DataGroupsByCTFileOrStudyUID_get() { load_model($this, "\x45\x32\x44\x61\164\141\x47\162\157\x75\x70\163\137\x6d\x6f\144\145\154"); $data = $this->E2DataGroups_model->get_E2DataGroupsByCTFileOrStudyUID($this->get()); if (in_array($data["\x65\162\162\157\x72\103\157\x64\145"], [VERR_COMMON_SUCCESS, VERR_DB_NOSUCHDATA])) { $this->set_response($data, REST_Controller::HTTP_OK); } else { $this->set_response($data, REST_Controller::HTTP_BAD_REQUEST); } } public function E2DBForConnection_get() { load_model($this, "\105\x32\104\x42\x5f\x6d\157\x64\145\x6c"); $ret = $this->E2DB_model->get_E2DBForConnection(); $this->set_response(returnSetResponse($ret ? VERR_COMMON_SUCCESS : "\126\x45\122\x52\x5f\104\102\x5f\x45\122\x52\x4f\122"), $ret ? REST_Controller::HTTP_OK : REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } public function E2DBForVersion_get() { load_model($this, "\x45\x32\104\102\137\155\157\144\x65\154"); $ret = $this->E2DB_model->get_E2DBForVersion($this->get()); if ($ret > 0) { $ret = $this->E2DB_model->get_E2DBForVersion_New_Version(); if (count($ret) > 0) { $nVersion = $ret[0]["\166\x65\162\x5f\143\x75\x72\162\145\156\x74\x5f\x76\145\x72\163\151\157\156"]; return $this->set_response(["\x65\x72\x72\157\162\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\x72\x43\x6f\x64\x65"], "\x6e\x56\145\x72\x73\x69\157\x6e" => $nVersion], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\x72\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\157\x72\x43\157\x64\145"], "\156\126\145\162\x73\x69\x6f\156" => 0], REST_Controller::HTTP_OK); } } else { return $this->set_response(array("\145\x72\x72\157\162\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\x6f\x72\103\x6f\x64\x65"], "\x6e\x56\x65\162\x73\x69\x6f\156" => 0), REST_Controller::HTTP_OK); } } public function Images_put() { $savingImageInfo = $this->put("\x73\x61\x76\x69\x6e\147\x49\x6d\141\147\145\111\x6e\x66\157"); $bSmartPayImage = $this->put("\142\x53\155\141\162\164\x50\x61\x79\x49\155\141\x67\145"); if (!isset($savingImageInfo["\x73\164\x72\103\150\141\162\164\x4e\157"]) || !isset($savingImageInfo["\163\x74\162\x49\x6d\147\x46\x69\154\145\x4e\141\155\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\141\x67\x65\x73\137\155\157\x64\x65\x6c"); $ret = $this->Images_model->put_Images($savingImageInfo, $bSmartPayImage); if ($ret === VERR_COMMON_SUCCESS) { load_model($this, "\105\x32\x44\x61\164\141\x47\x72\x6f\165\x70\x73\137\155\157\x64\x65\154"); $this->E2DataGroups_model->ProcessToMakeGroupData($savingImageInfo); return $this->set_response(["\x65\x72\x72\157\162\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\162\x43\157\144\x65"]], REST_Controller::HTTP_OK); } else { if ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\x72\162\157\162\103\x6f\144\145" => returnSetResponse(VERR_DB_OVERLAP)["\145\x72\x72\157\x72\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\x72\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\157\162\103\157\144\145"]], REST_Controller::HTTP_OK); } } } public function ImagesByFile_get() { $file = urldecode($this->get("\x66\x69\x6c\x65")); $parameters = array($file); load_model($this, "\x49\155\x61\147\x65\x73\137\155\157\x64\145\x6c"); $ret = $this->Images_model->get_ImagesByFile($parameters); if (count($ret) <= 0) { return $this->set_response(array("\x65\162\162\157\162\x43\157\144\145" => returnSetResponse(VERR_DB_RANGE)["\x65\x72\x72\x6f\x72\x43\x6f\144\145"], "\163\111\x6d\141\147\x65\x49\156\146\x6f" => array()), REST_Controller::HTTP_OK); } else { load_model($this, "\x44\141\x74\x61\107\x72\x6f\x75\160\111\x6d\x61\x67\145\x73\x5f\155\x6f\x64\145\x6c"); $imgInfo = SImageInfo::createFromDBRecord($ret[0]); $imgInfo->bIsThirdPartyGroupImage = $this->DataGroupImages_model->CheckIfThirdPartyImageByID($ret[0]["\151\x6d\147\x5f\x69\x64"]); $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eNormalDeviceImage); $strImagePayStatus = trim($ret[0]["\163\160\137\x69\x6d\x67\137\x70\x61\x79\x5f\x73\x74\x61\164\165\163"]); $imagePayStatus = stringToImagePayStatus($strImagePayStatus); if (empty($strImagePayStatus)) { $imgInfo->bPaidImage = TRUE; $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eNormalDeviceImage); } else { if ($imagePayStatus == enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImagePaidStatus)) { $imgInfo->bPaidImage = TRUE; $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eSmartPayPaidImage); } else { $imgInfo->bPaidImage = FALSE; $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eSmartPayUnpaidImage); } } return $this->set_response(array("\x65\162\162\157\x72\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\x72\x43\x6f\x64\x65"], "\x73\x49\155\x61\147\145\111\x6e\x66\x6f" => $imgInfo), REST_Controller::HTTP_OK); } } public function ImagesByFile_put() { $strImgFileName = $this->put("\163\164\x72\111\x6d\147\106\151\x6c\x65\x4e\141\155\145"); $imgInfo = $this->put("\163\111\155\x61\147\x65\111\156\146\157"); if (!isset($imgInfo["\144\x74\x41\x63\161\124\x69\155\x65"]) || !isset($imgInfo["\x66\x4b\x76\160"]) || !isset($imgInfo["\146\x4d\141"]) || !isset($imgInfo["\x66\104\x6f\x73\x65"]) || !isset($strImgFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\x61\147\x65\x73\137\x6d\x6f\x64\x65\x6c"); $ret = $this->Images_model->put_ImagesByFile($strImgFileName, $imgInfo); if ($ret > 0) { return $this->set_response(["\x65\162\162\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\103\x6f\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\157\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\157\x72\103\157\144\145"]], REST_Controller::HTTP_OK); } } public function ImagesByFileAndChartNo_get() { $strImagFileName = urldecode($this->get("\x66\x69\154\x65")); $strChartNo = urldecode($this->get("\x63\150\x61\x72\x74\156\x6f")); if (empty($strImagFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $parameters = array("\163\x74\162\111\155\141\147\x46\151\154\x65\x4e\x61\155\145" => $strImagFileName, "\x73\164\x72\x43\x68\141\162\164\116\157" => $strChartNo); load_model($this, "\x49\155\141\147\x65\163\x5f\x6d\x6f\x64\x65\154"); if (empty($strChartNo)) { $ret = $this->Images_model->get_ImagesByFile(array($strImagFileName)); } else { $ret = $this->Images_model->get_ImagesByFileAndChartNo($parameters); } if (count($ret) <= 0) { return $this->set_response(array("\145\x72\x72\157\x72\x43\157\144\x65" => returnSetResponse(VERR_DB_RANGE)["\145\x72\x72\157\x72\103\157\144\x65"], "\x73\x49\x6d\141\147\145\111\156\x66\x6f" => null), REST_Controller::HTTP_OK); } else { $imgInfo = SImageInfo::createFromDBRecord($ret[0]); $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eNormalDeviceImage); $strImagePayStatus = trim($ret[0]["\163\160\x5f\151\x6d\147\137\160\141\x79\x5f\x73\x74\x61\164\x75\x73"]); $imagePayStatus = stringToImagePayStatus($strImagePayStatus); if (empty($strImagePayStatus)) { $imgInfo->bPaidImage = TRUE; $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eNormalDeviceImage); } else { if ($imagePayStatus == enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImagePaidStatus)) { $imgInfo->bPaidImage = TRUE; $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eSmartPayPaidImage); } else { $imgInfo->bPaidImage = FALSE; $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eSmartPayUnpaidImage); } } return $this->set_response(array("\x65\162\x72\x6f\x72\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\x72\103\157\x64\x65"], "\x73\x49\x6d\x61\x67\x65\x49\x6e\x66\157" => $imgInfo), REST_Controller::HTTP_OK); } } public function ImagesByFileAndChartNo_delete() { $strImgFileName = urldecode($this->get("\x66\151\x6c\x65")); $strChartNo = urldecode($this->get("\143\150\x61\x72\x74\x6e\x6f")); if (empty($strImgFileName) || empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\x61\147\145\163\137\155\x6f\x64\145\x6c"); $ret = $this->Images_model->delete_ImagesByFileAndChartNo($strImgFileName, $strChartNo); if ($ret >= 0) { return $this->set_response(["\x65\162\162\157\162\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\x72\x43\157\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\162\157\x72\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\x6f\x72\103\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\157\162\103\157\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\x72\157\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function ImagesByFileForId_get() { $strImgFileName = urldecode($this->get("\x66\x69\154\145")); if (!isset($strImgFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\141\x67\145\163\137\155\x6f\144\145\x6c"); $ret = $this->Images_model->get_ImagesByFileForId($strImgFileName); if (count($ret) > 0) { return $this->set_response(["\145\162\162\x6f\162\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\x72\x43\x6f\x64\145"], "\x6e\111\155\x61\147\145\x49\x44" => $ret[0]["\x69\155\147\137\151\x64"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\x6f\x72\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\157\x72\x43\157\x64\145"], "\156\x49\x6d\x61\x67\x65\x49\104" => 0], REST_Controller::HTTP_OK); } } public function ImagesByFileForAcqMode_put() { $strImgFileName = $this->put("\163\x74\162\111\x6d\147\106\151\x6c\145\116\x61\155\x65"); $strAcqMode = $this->put("\163\164\162\101\x63\x71\x4d\157\x64\145"); if (!isset($strImgFileName) || !isset($strAcqMode)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\141\x67\x65\163\x5f\x6d\x6f\144\145\x6c"); $ret = $this->Images_model->put_ImagesByFileForAcqMode($strImgFileName, $strAcqMode); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\x72\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\157\162\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\162\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } } public function ImagesByFileForDateTime_put() { $dtUpdateDateTime = $this->put("\144\x74\x55\x70\x64\x61\164\145\104\141\164\x65\x54\151\x6d\145"); $strImgFileName = $this->put("\163\164\162\111\x6d\147\106\151\154\145\116\141\x6d\x65"); if (!isset($dtUpdateDateTime) || !isset($strImgFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\141\x67\x65\163\x5f\155\x6f\144\145\154"); $ret = $this->Images_model->put_ImagesByFileForDateTime($dtUpdateDateTime, $strImgFileName); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\162\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_RANGE), REST_Controller::HTTP_OK); } } public function ImagesByFileForLastFilter_get() { $strImgFileName = urldecode($this->get("\146\151\154\145")); if (!isset($strImgFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\x61\x67\x65\x73\137\155\x6f\x64\145\x6c"); $ret = $this->Images_model->get_ImagesByFileForLastFilter($strImgFileName); if (count($ret) > 0) { return $this->set_response(["\145\x72\162\x6f\x72\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\x72\103\157\x64\x65"], "\x73\x74\162\x4c\141\163\164\x46\x69\x6c\x74\x65\x72" => $ret[0]["\151\x6d\147\x5f\x75\163\x65\x72\137\144\145\146\x69\156\x65\144\x5f\61\60"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\157\162\x43\x6f\144\x65"], "\x73\x74\162\114\141\x73\x74\106\151\x6c\x74\145\x72" => ''], REST_Controller::HTTP_OK); } } public function ImagesByFileForLastFilter_put() { $strImgFileName = $this->put("\x73\164\x72\x49\x6d\147\106\x69\154\x65\x4e\141\x6d\145"); $strLastFilter = $this->put("\x73\164\x72\x4c\x61\163\x74\x46\151\154\164\145\x72"); if (!isset($strImgFileName) || !isset($strLastFilter)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\x61\x67\145\163\137\155\157\144\145\154"); $ret = $this->Images_model->put_ImagesByFileForLastFilter($strImgFileName, $strLastFilter); if ($ret > 0) { return $this->set_response(["\x65\x72\x72\157\162\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\x72\103\x6f\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\x6f\162\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\157\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } } public function ImagesByFileForModality_put() { $strImgFileName = $this->put("\163\164\x72\111\x6d\147\106\151\x6c\145\x4e\141\x6d\x65"); $modality = $this->put("\155\x6f\x64\x61\x6c\151\164\x79"); if (!isset($strImgFileName) || !isset($modality)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $checkmodality = modality_api_str_to_modality_db_str($modality); if ($checkmodality == "\x55\x6e\153\x6e\x6f\x77\156") { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\155\141\147\145\x73\137\x6d\157\144\x65\x6c"); $ret = $this->Images_model->put_ImagesByFileForModality($strImgFileName, $checkmodality); if ($ret > 0) { return $this->set_response(["\145\162\162\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\x6f\162\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\162\103\x6f\x64\145"]], REST_Controller::HTTP_OK); } } public function ImagesByStudyUID_get() { $strStudyInstanceUID = urldecode($this->get("\x73\164\165\144\x79\165\x69\x64")); if (!isset($strStudyInstanceUID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\141\x67\x65\163\137\155\x6f\144\145\154"); $ret = $this->Images_model->get_ImagesByStudyUID($strStudyInstanceUID); $items = array(); if (count($ret) > 0) { load_model($this, "\104\141\164\141\x47\x72\x6f\x75\160\x49\x6d\141\x67\x65\x73\137\x6d\157\144\x65\x6c"); foreach ($ret as $row) { $imgInfo = SImageInfo::createFromDBRecord($row); $imgInfo->{$bIsThirdPartyGroupImage} = $this->DataGroupImages_model->CheckIfThirdPartyImageByID($row["\151\155\x67\137\151\144"]); array_push($items, $imgInfo); } return $this->set_response(["\145\162\162\x6f\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\x43\x6f\144\145"], "\x76\x65\x63\x49\155\141\x67\x65\x49\x6e\146\x6f" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\157\x72\x43\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\157\x72\103\157\x64\145"], "\x76\x65\x63\111\x6d\141\147\x65\111\x6e\x66\x6f" => $items], REST_Controller::HTTP_OK); } } public function ImagesByFileForStudyUID_get() { $strImgFileName = urldecode($this->get("\146\151\x6c\145")); if (!isset($strImgFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\141\x67\x65\163\x5f\x6d\157\144\145\x6c"); $ret = $this->Images_model->get_ImagesByFileForStudyUID($strImgFileName); if (count($ret) > 0) { return $this->set_response(["\145\x72\x72\x6f\162\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\x72\x43\157\x64\x65"], "\x73\x74\x72\x53\x74\x75\x64\171\111\156\x73\x74\x61\156\x63\x65\125\111\104" => $ret[0]["\151\x6d\x67\137\x73\x74\x75\x64\171\x5f\x69\156\163\x74\x61\x6e\x63\x65\x5f\x75\x69\x64"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\162\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\x72\103\x6f\x64\x65"], "\x73\x74\162\123\x74\165\x64\171\x49\x6e\163\164\x61\x6e\x63\145\x55\111\104" => 0], REST_Controller::HTTP_OK); } } public function ImagesByFileForStudyUID_put() { $strImgFileName = $this->put("\x73\164\162\x49\155\x67\x46\151\154\145\116\141\x6d\x65"); $strStudyInstanceUID = $this->put("\x73\x74\162\x53\164\x75\x64\171\x49\x6e\163\164\141\x6e\x63\x65\125\111\x44"); if (!isset($strImgFileName) || !isset($strStudyInstanceUID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\x61\147\x65\163\x5f\x6d\157\x64\x65\154"); $ret = $this->Images_model->put_ImagesByFileForStudyUID($strImgFileName, $strStudyInstanceUID); if ($ret > 0) { return $this->set_response(["\x65\162\162\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\x72\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\x6f\x72\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\157\162\103\157\144\145"]], REST_Controller::HTTP_OK); } } public function ImagesForChartNo_put() { $parametersOfPutImagesForChartNo = $this->put(); if (!isset($parametersOfPutImagesForChartNo["\163\164\x72\154\111\155\147\106\151\x6c\x65\116\x61\x6d\x65\x73"]) || !isset($parametersOfPutImagesForChartNo["\x73\x74\x72\x43\150\x61\x72\164\x4e\157"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\x61\147\145\163\x5f\x6d\x6f\144\145\154"); $ret = $this->Images_model->put_ImagesForChartNo($parametersOfPutImagesForChartNo); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\x72\103\x6f\144\145"]], REST_Controller::HTTP_OK); } else { if ($ret === VERR_DB_INVALIDDATA) { return $this->set_response(["\145\x72\162\157\x72\103\x6f\x64\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\162\x6f\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\x72\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\x6f\162\103\157\x64\145"]], REST_Controller::HTTP_OK); } } } public function ImagesByChartNo_post() { $strChartNo = $this->post("\x73\x74\x72\x43\150\141\162\164\116\157"); $pageNum = $this->post("\x70\x61\147\x65\x4e\x75\155"); $numItems = $this->post("\x6e\165\x6d\x49\164\145\155\163"); $pageNum = !isset($pageNum) ? PAGE_NUM : $pageNum; $numItems = !isset($numItems) ? NUM_ITEMS : $numItems; if (!isset($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\x61\147\x65\x73\x5f\x6d\x6f\144\145\154"); $countSmartpay = $this->Images_model->get_countFromTable("\x65\62\137\x73\155\141\x72\x74\160\x61\171\137\x69\x6d\x61\x67\145"); $items = array(); if ($countSmartpay > 0) { $ret = $this->Images_model->post_ImagesByChartNo_True($strChartNo, $pageNum, $numItems); } else { $ret = $this->Images_model->post_ImagesByChartNo_False($strChartNo, $pageNum, $numItems); } if (count($ret) < 1) { return $this->set_response(["\x65\162\x72\x6f\x72\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\157\162\x43\157\x64\x65"], "\166\145\143\x49\x6d\141\x67\145\x49\x6e\146\x6f" => $items], REST_Controller::HTTP_OK); } else { load_model($this, "\104\141\164\141\107\x72\157\x75\160\111\x6d\141\x67\x65\x73\x5f\x6d\x6f\x64\x65\154"); foreach ($ret as $row) { $imgInfo = SImageInfo::createFromDBRecord($row); $imgInfo->bIsThirdPartyGroupImage = $this->DataGroupImages_model->CheckIfThirdPartyImageByID($row["\x69\155\x67\137\151\x64"]); $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eNormalDeviceImage); if ($countSmartpay > 0) { $strImagePayStatus = trim($row["\163\160\x5f\x69\155\147\137\160\141\x79\x5f\x73\x74\141\164\165\163"]); if (empty($strImagePayStatus)) { $imgInfo->bPaidImage = TRUE; $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eNormalDeviceImage); } else { if ($strImagePayStatus == "\120\141\151\144") { $imgInfo->bPaidImage = TRUE; $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eSmartPayPaidImage); } else { $imgInfo->bPaidImage = FALSE; $imgInfo->eImageType = enumToString(new EImageType(), (new EImageType())->eSmartPayUnpaidImage); } } } array_push($items, $imgInfo); } return $this->set_response(["\145\162\162\x6f\162\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\x72\103\157\144\145"], "\166\145\143\x49\x6d\x61\x67\145\x49\156\x66\x6f" => $items], REST_Controller::HTTP_OK); } } public function ImagesForChartNoR2_put() { $parametersOfPutImagesForChartNo = $this->put(); if (!isset($parametersOfPutImagesForChartNo["\x73\x74\162\154\x49\155\147\x46\151\154\x65\x4e\141\x6d\145\x73"]) || !isset($parametersOfPutImagesForChartNo["\x73\164\x72\x43\x68\141\x72\164\x4e\x6f"]) || !isset($parametersOfPutImagesForChartNo["\146\x6f\162\143\145\124\x6f\x54\x72\141\x6e\x73\x66\x65\x72"])) { vt_loge(sprintf("\x25\x73\72\40\101\x72\x67\165\x6d\145\156\164\163\40\x61\162\x65\40\155\151\x73\163\x69\156\147\x3a\x20\45\x73", __METHOD__, json_encode($parametersOfPutImagesForChartNo))); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\x61\147\145\163\x52\62\x5f\155\157\144\x65\x6c"); $ret = $this->ImagesR2_model->put_ImagesForChartNoR2($parametersOfPutImagesForChartNo); if ($ret["\145\162\x72\157\162\x43\157\x64\145"] === VERR_COMMON_SUCCESS) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { if ($ret["\145\x72\x72\157\162\x43\x6f\x64\x65"] === VERR_DB_INVALIDDATA || $ret["\x65\162\x72\x6f\x72\x43\x6f\144\x65"] === VERR_DB_NOSUCHDATA || $ret["\145\x72\162\157\x72\x43\157\144\x65"] === VERR_E2_IMAGE_IN_GROUP) { return $this->set_response(createResponse($ret["\145\162\x72\x6f\162\x43\x6f\x64\145"]), REST_Controller::HTTP_OK); } else { return $this->set_response(createResponse($ret["\x65\x72\x72\157\162\x43\x6f\144\145"]), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function ImagesForRaw_put() { $Parameters = $this->put(); if (!isset($Parameters["\163\x74\x72\x49\155\x67\x46\x69\154\x65\x4e\141\x6d\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\x61\x67\145\x73\x5f\155\157\x64\145\154"); $ret = $this->Images_model->put_ImagesForRaw($Parameters); if ($ret > 0) { return $this->set_response(["\x65\x72\162\157\x72\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\157\162\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\162\103\157\x64\145"]], REST_Controller::HTTP_OK); } } public function ImagesForSourceID_post() { $strNode = $this->post("\163\164\x72\116\157\164\x65"); if (!isset($strNode)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\141\x67\x65\x73\137\x6d\x6f\144\x65\x6c"); $ret = $this->Images_model->post_ImagesForSourceID($strNode); if ($ret === FALSE) { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\162\103\157\x64\145"], "\x6e\123\157\x75\162\x63\145\x49\104" => $ret], REST_Controller::HTTP_OK); } } public function ImagesForSourceID_put() { $imageInfo = $this->put("\x69\155\141\147\x65\x49\x6e\x66\x6f"); $nSourceID = $this->put("\156\123\x6f\165\162\x63\x65\111\104"); if (!isset($imageInfo["\163\164\162\x49\155\x67\x46\x69\x6c\x65\x4e\141\x6d\x65"]) || !isset($imageInfo["\x73\x74\x72\103\x68\141\162\164\116\157"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\155\x61\x67\x65\x73\x5f\x6d\x6f\x64\145\x6c"); $ret = $this->Images_model->put_ImagesForSourceID($imageInfo, $nSourceID); if ($ret > 0) { return $this->set_response(["\145\162\x72\157\162\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\162\x72\x6f\162\103\157\x64\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\162\162\x6f\162\103\157\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\162\157\x72\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\x6f\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\x72\x6f\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } } public function ImagesBySourceIDForID_post() { $nMGSourceID = $this->post("\x6e\x4d\x47\x53\157\x75\x72\x63\x65\x49\x44"); $imageInfo = $this->post("\123\x49\155\x61\x67\x65\111\156\x66\x6f"); $strImgFileName = ''; if (!isset($nMGSourceID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\155\141\x67\x65\163\x5f\155\x6f\x64\145\x6c"); $ret = $this->Images_model->post_ImagesBySourceIDForID($nMGSourceID, $imageInfo, $strImgFileName); if ($ret > 0) { return $this->set_response(["\x65\x72\x72\157\x72\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\x72\103\157\x64\145"], "\156\x49\155\147\x49\104" => $ret, "\163\164\162\x49\155\x67\x46\151\154\145\116\x61\x6d\x65" => $strImgFileName], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\162\x72\157\162\x43\157\x64\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\162\x72\x6f\x72\x43\x6f\x64\x65"], "\156\111\155\147\111\104" => 0, "\163\x74\x72\111\155\147\x46\x69\154\145\116\x61\155\145" => ''], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\162\162\x6f\x72\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\x6f\162\x43\157\x64\x65"], "\x6e\x49\155\x67\x49\104" => 0, "\x73\x74\x72\111\x6d\147\106\x69\x6c\145\116\141\155\x65" => ''], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\162\103\157\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\162\162\x6f\162\103\157\144\x65"], "\156\x49\155\147\111\104" => 0, "\163\x74\x72\111\x6d\147\106\151\x6c\145\x4e\x61\155\145" => ''], REST_Controller::HTTP_OK); } } public function ImagesByLimitForSearch_post() { $searchCondition = $this->post("\x53\x53\x65\141\162\143\150\x43\x6f\156\x64\151\x74\151\x6f\156"); $nLimit = $this->post("\x6e\x4c\151\x6d\x69\164"); $bExistSmartPayImage = FALSE; load_model($this, "\x49\x6d\141\x67\x65\x73\x5f\155\x6f\x64\x65\x6c"); $ret = $this->Images_model->post_ImagesByLimitForSearch($searchCondition, $nLimit, $bExistSmartPayImage); $items = array(); if (count($ret) > 0) { load_model($this, "\x44\x61\164\141\x47\162\157\x75\160\111\x6d\141\147\x65\x73\137\x6d\x6f\x64\x65\154"); foreach ($ret as $row) { $imgInfo = SImageInfo::createFromDBRecord($row); $imgInfo->bIsThirdPartyGroupImage = $this->DataGroupImages_model->CheckIfThirdPartyImageByID($row["\151\x6d\147\x5f\x69\144"]); $imgInfo->eImageType = "\x65\x4e\x6f\x72\x6d\x61\154\104\145\166\151\143\145\x49\x6d\141\x67\x65"; if ($bExistSmartPayImage == TRUE) { if (empty($row["\x73\x70\137\x69\155\x67\137\x70\x61\x79\x5f\163\164\x61\164\x75\x73"])) { $imgInfo->bPaidImage = TRUE; $imgInfo->eImageType = "\145\x4e\x6f\162\155\x61\154\x44\x65\166\x69\x63\145\x49\x6d\x61\x67\x65"; } else { if ($row["\x73\x70\x5f\x69\155\147\x5f\x70\x61\171\137\x73\164\141\x74\x75\x73"] == "\120\141\x69\144") { $imgInfo->bPaidImage = TRUE; $imgInfo->eImageType = "\145\x53\x6d\141\162\x74\120\141\x79\x50\141\x69\x64\x49\x6d\x61\147\145"; } else { $imgInfo->bPaidImage = FALSE; $imgInfo->eImageType = "\x65\x53\x6d\141\162\x74\x50\x61\x79\125\x6e\x70\141\x69\x64\111\155\141\x67\x65"; } } } array_push($items, $imgInfo); } return $this->set_response(["\x65\162\162\157\x72\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\162\x43\157\144\x65"], "\166\145\143\x49\x6d\x61\x67\x65\x49\x6e\146\157" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\157\162\103\157\144\x65"], "\166\x65\143\x49\x6d\x61\147\x65\x49\x6e\146\157" => $items], REST_Controller::HTTP_OK); } } public function ImagesForAcqDateDup_get() { load_model($this, "\x49\155\x61\147\x65\163\x5f\x6d\157\x64\x65\154"); $ret = $this->Images_model->get_ImagesForAcqDateDup(); $items = array(); if (count($ret) > 0) { load_model($this, "\104\x61\164\x61\107\162\x6f\165\x70\111\155\x61\x67\x65\163\137\155\157\144\x65\154"); $item_index = array(); foreach ($ret as $rows) { array_push($item_index, count($rows) - 1); foreach ($rows as $row) { $imgInfo = SImageInfo::createFromDBRecord($row); $imgInfo->bIsThirdPartyGroupImage = $this->DataGroupImages_model->CheckIfThirdPartyImageByID($row["\x69\x6d\147\x5f\151\144"]); array_push($items, $imgInfo); } } return $this->set_response(["\145\162\162\x6f\x72\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\162\x43\157\144\145"], "\166\145\x63\111\155\141\147\x65\x49\x6e\144\x65\x78" => $item_index, "\166\145\143\x49\155\141\x67\145\x49\156\x66\157" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\157\x72\103\157\144\145"], "\166\x65\143\x49\155\141\x67\x65\111\x6e\x64\145\x78" => 0, "\x76\x65\x63\x49\x6d\141\147\145\x49\156\146\157" => $items], REST_Controller::HTTP_OK); } } public function ImagesInGroup_post() { load_model($this, "\111\x6d\141\x67\145\x73\x5f\155\x6f\144\145\x6c"); $data = $this->Images_model->post_ImagesInGroup($this->post()); $this->set_response($data, REST_Controller::HTTP_OK); } public function Patients_post() { $savingData = $this->post(); if (!isset($savingData["\x73\164\162\x43\150\141\x72\x74\116\157"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { load_model($this, "\x50\141\164\151\x65\x6e\164\x73\137\x6d\157\x64\x65\x6c"); $ret = $this->Patients_model->getPatientIdByChartNo($savingData["\x73\x74\162\103\150\141\162\x74\116\157"]); if (count($ret) > 0) { if ($ret[0]["\x70\x61\164\137\151\144"] > 0) { return $this->set_response(["\145\x72\x72\157\162\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\x72\x72\x6f\x72\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } } if (!isset($savingData["\144\x74\x42\151\162\x74\150\144\141\x74\145"])) { $dtPatBirthDate = date("\131\55\x6d\55\144"); } else { $now = new DateTime(); $diffBirthDate = new DateTime($savingData["\144\x74\102\x69\162\164\x68\144\x61\x74\x65"]); if ($diffBirthDate->diff($now)->invert !== 0) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $dtPatBirthDate = currentDateFormat(DATEFORMAT_SEARCH_DB, $savingData["\144\164\x42\151\x72\x74\150\144\x61\x74\145"]); } if (empty($savingData["\163\x74\x72\107\x65\156\144\145\162"])) { $strGender = "\117"; } else { $gender = $savingData["\163\164\162\x47\145\x6e\144\x65\162"]; $strGender = substr($gender, 0, 1); $strGender = strtoupper($strGender); if (!($strGender === "\117" || $strGender === "\x4d" || $strGender === "\106")) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } if (!isset($savingData["\x64\x74\122\x65\147\x69\163\164\x65\162\145\144\x44\x61\164\145\124\x69\x6d\x65"])) { $strPatientRegisteredDateTime = date("\x59\x2d\x6d\x2d\x64"); } else { $strPatientRegisteredDateTime = $savingData["\x64\x74\x52\x65\147\151\163\x74\145\x72\x65\x64\104\141\x74\x65\x54\x69\155\x65"]; } $strBirthDate = $dtPatBirthDate; $parameters = array($savingData["\163\x74\162\103\150\x61\162\x74\x4e\157"], $savingData["\x73\164\162\x4c\x61\x73\164\116\x61\155\x65"], $savingData["\163\x74\x72\106\x69\162\x73\x74\116\x61\155\x65"], $savingData["\163\164\162\x4d\x69\x64\x64\154\x65\x4e\x61\155\x65"], $strGender, $strBirthDate, $savingData["\163\x74\x72\105\x6d\141\x69\x6c"], $savingData["\x73\164\162\123\x6f\x63\x69\x61\154\x49\104"], $savingData["\163\164\162\120\x68\x6f\x6e\x65"], $savingData["\x73\164\x72\x4d\157\x62\x69\x6c\x65"], $savingData["\x73\x74\162\132\151\x70\x43\x6f\144\x65"], $savingData["\163\x74\x72\x41\x64\144\x72\145\x73\163"], $strPatientRegisteredDateTime, $savingData["\x73\x74\x72\x50\150\157\x74\x6f\111\104\116\141\x6d\145"], getChosung($savingData["\x73\x74\162\x4c\141\x73\x74\116\x61\155\145"]), sourceTypeEnum2String($savingData["\145\x53\x6f\165\x72\143\x65\124\x79\x70\x65"])); $ret = $this->Patients_model->post_Patients($parameters); if ($ret > 0) { return $this->set_response(["\x65\x72\162\157\162\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\x72\x6f\x72\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } } } public function PatientsR2_post() { $sPatientInfo = SPatientInfo::constructWithParameter($this->post()); if (!isset($sPatientInfo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\120\141\x74\151\x65\156\x74\x73\122\62\137\155\x6f\x64\145\x6c"); $ret = $this->PatientsR2_model->post_PatientsR2($sPatientInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PatientsByChartNo_get() { $strChartNo = urldecode($this->get("\x63\150\x61\x72\x74\156\157")); load_model($this, "\x50\141\164\x69\145\156\x74\163\137\x6d\x6f\x64\145\x6c"); $ret = $this->Patients_model->get_PatientsByChartNo($strChartNo); if ($ret["\145\x72\x72\157\162\103\x6f\144\x65"] == VERR_COMMON_SUCCESS) { return $this->set_response(["\145\x72\x72\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\162\x43\x6f\x64\x65"], "\160\141\164\151\x65\x6e\x74\x49\x6e\x66\x6f" => $ret["\160\x61\164\x69\145\x6e\x74\111\x6e\x66\x6f"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\162\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\x72\103\157\144\x65"], "\x70\141\x74\151\145\156\x74\x49\x6e\x66\157" => array()], REST_Controller::HTTP_OK); } } public function PatientsByChartNo_delete() { $strChartNo = urldecode($this->get("\x63\150\x61\x72\164\x6e\x6f")); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x50\141\x74\x69\x65\156\x74\163\x5f\x6d\157\144\145\x6c"); $ret = $this->Patients_model->delete_PatientsByChartNo($strChartNo); if ($ret > 0) { return $this->set_response(["\x65\162\162\x6f\x72\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\x72\162\x6f\162\103\157\144\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\x72\162\157\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\x72\157\162\x43\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\x72\x43\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\157\162\103\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\x72\x6f\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } } public function PatientsByChartNoR2_get() { $chartno = trim(urldecode($this->get("\x63\150\141\162\x74\x6e\x6f"))); if (empty($chartno)) { vt_loge("\120\141\164\x69\x65\156\x74\163\x42\x79\x43\150\141\x72\x74\116\157\137\147\x65\x74\x20\101\x70\151\x2e\x20" . "\x54\x68\x65\x20\x70\141\162\141\155\x65\164\145\162\40\x69\163\x20\x69\x6e\166\141\154\x69\x64\40\x64\x61\164\x61\56"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x50\141\x74\x69\145\x6e\x74\163\122\62\137\x6d\x6f\144\145\154"); $ret = $this->PatientsR2_model->get_PatientsByChartNoR2($chartno); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PatientsByChartNo_put() { $strChartNo = $this->put("\163\x74\x72\x43\150\141\162\x74\116\157"); $savingData = $this->put("\163\x50\141\x74\x69\x65\x6e\x74\111\x6e\146\157"); if (!isset($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x50\x61\164\x69\145\x6e\x74\x73\x5f\155\x6f\x64\145\x6c"); $ret = $this->Patients_model->put_PatientsByChartNo($strChartNo, $savingData); if ($ret > 0) { return $this->set_response(["\145\162\162\x6f\x72\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\162\162\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\162\x72\x6f\162\103\157\144\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\x72\162\x6f\162\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\157\162\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\x6f\162\103\x6f\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\162\x6f\x72\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function PatientsByChartNoR2_put() { $strChartNo = $this->put("\x73\x74\x72\103\x68\x61\x72\164\116\157"); if (!isset($strChartNo) || empty($strChartNo)) { vt_loge(__METHOD__ . "\72" . "\x73\164\162\103\150\x61\x72\164\x4e\157\40\x69\163\x20\x6e\157\164\x20\x73\145\x74\x20\x6f\x72\x20\x65\x6d\160\164\171\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $sPatientInfo = SPatientInfo::constructWithParameter($this->put("\x73\x50\141\x74\151\x65\156\x74\x49\156\146\x6f")); if (!isset($sPatientInfo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\141\x74\151\x65\156\164\x73\122\x32\137\x6d\x6f\144\145\x6c"); $ret = $this->PatientsR2_model->put_PatientsByChartNoR2($strChartNo, $sPatientInfo); if ($ret > 0) { return $this->set_response(["\145\162\162\x6f\162\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\162\103\157\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\x72\162\x6f\x72\103\157\144\145" => returnSetResponse(VERR_DB_OVERLAP)["\x65\162\x72\x6f\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\162\x72\157\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\x6f\x72\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\162\103\157\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\162\x6f\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } } public function PatientsByChartNoForID_get() { $strChartNo = urldecode($this->get("\143\150\x61\162\164\x6e\157")); if (!isset($strChartNo) || strlen($strChartNo) < 1) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\x61\164\x69\145\x6e\164\x73\x5f\x6d\x6f\144\x65\x6c"); $ret = $this->Patients_model->get_PatientsByChartNoForID($strChartNo); if (count($ret) > 0) { $this->set_response(["\145\x72\x72\x6f\x72\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\x72\x43\157\144\x65"], "\156\120\x61\x74\111\104" => $ret[0]["\160\x61\x74\x5f\151\x64"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\x6f\162\103\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\162\x43\157\x64\145"], "\x6e\120\141\x74\x49\x44" => 0], REST_Controller::HTTP_OK); } } public function PatientsForCondition_post() { $parameters = $this->post(); $pageNum = $this->post("\160\141\x67\145\116\165\x6d"); $numItems = $this->post("\x6e\165\155\x49\164\x65\155\163"); if (!isset($parameters["\x73\x65\141\x72\x63\x68\x43\157\x6e\144\151\x74\x69\x6f\x6e"]["\x65\x4d\x6f\x64\141\x6c\x69\164\171"]) || $parameters["\x73\145\x61\162\x63\150\x43\x6f\156\x64\151\x74\x69\157\x6e"]["\x65\x4d\157\144\x61\x6c\x69\164\x79"] == '' || !isset($parameters["\160\x61\x69\162\x44\x6f\x63\164\x6f\x72\x54\171\160\145"]["\163\x65\143\157\156\144"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $pageNum = !isset($pageNum) ? PAGE_NUM : $pageNum; $numItems = !isset($numItems) ? NUM_ITEMS : $numItems; load_model($this, "\120\x61\164\151\x65\156\x74\163\x5f\155\157\x64\145\x6c"); $ret = $this->Patients_model->post_PatientsForCondition($parameters, $pageNum, $numItems); $items = array(); if ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\x72\x72\x6f\x72\103\x6f\x64\145" => returnSetResponse(VERR_DB_OVERLAP)["\145\162\162\x6f\x72\103\157\x64\145"], "\x73\x65\141\162\143\x68\145\x64\x50\x61\x74\151\145\x6e\x74\114\x69\163\164" => array(), "\x6e\103\x6e\x74" => 0], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\x72\x72\x6f\x72\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\157\x72\x43\157\144\x65"], "\163\145\141\x72\x63\x68\145\x64\x50\x61\x74\x69\x65\x6e\164\x4c\x69\x73\x74" => array(), "\x6e\x43\x6e\x74" => 0], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_INVALIDDATA) { return $this->set_response(["\145\x72\x72\x6f\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\x72\157\x72\103\157\144\145"], "\163\x65\141\162\143\x68\145\x64\120\141\164\151\145\x6e\164\114\151\163\164" => array(), "\156\103\156\x74" => 0], REST_Controller::HTTP_OK); } else { foreach ($ret as $row) { $patInfo = new SSearchedPatient($row); array_push($items, $patInfo); } return $this->set_response(["\x65\162\x72\157\162\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\x72\103\157\x64\145"], "\x73\x65\141\x72\143\x68\145\144\120\141\164\x69\x65\x6e\x74\114\151\163\x74" => $items, "\x6e\x43\x6e\x74" => count($items)], REST_Controller::HTTP_OK); } } public function PatientsForConditionP2_post() { load_model($this, "\x50\141\164\151\145\156\x74\163\x5f\155\157\144\145\154"); $ret = $this->Patients_model->post_PatientsForConditionP2($this->post()); if ($ret["\145\162\x72\x6f\x72\103\x6f\144\145"] == VERR_COMMON_INVALID) { return $this->set_response($ret, REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response($ret, REST_Controller::HTTP_OK); } } public function PatientsForNameOpOr_post() { $parameters = $this->post(); if (!isset($parameters["\163\x74\162\x4c\141\x73\x74\116\141\155\145"]) && !isset($parameters["\163\164\162\106\151\162\x73\164\x4e\x61\x6d\145"]) && !isset($parameters["\163\164\162\x4d\151\x64\144\x6c\x65\x4e\141\155\x65"]) || !isset($parameters["\x62\111\163\x45\170\141\143\164\x6c\x79"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x50\x61\x74\x69\145\156\x74\x73\137\x6d\x6f\144\x65\x6c"); $ret = $this->Patients_model->post_PatientsForNameOpOr($parameters); $items = array(); if (count($ret) < 1) { return $this->set_response(["\x65\162\x72\157\162\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\162\x43\157\144\x65"], "\x70\141\164\x69\145\156\x74\x49\156\146\157\114\x69\x73\x74" => $items], REST_Controller::HTTP_OK); } else { foreach ($ret as $row) { $pi = SPatientInfo::createFromDBRecord($row); array_push($items, $pi); } return $this->set_response(["\145\162\x72\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\162\x43\x6f\144\x65"], "\160\x61\164\151\145\156\164\x49\x6e\146\157\x4c\x69\x73\x74" => $items], REST_Controller::HTTP_OK); } } public function PatientsForNameOpAnd_post() { $parameters = $this->post(); if (!isset($parameters["\163\x74\162\x4c\x61\163\164\116\x61\x6d\x65"]) || !isset($parameters["\163\x74\x72\x46\x69\x72\x73\164\x4e\x61\155\145"]) || !isset($parameters["\163\164\162\x4d\x69\144\144\154\145\x4e\x61\x6d\145"]) || !isset($parameters["\x62\x49\163\105\x78\141\x63\164\x6c\x79"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\x61\164\151\x65\156\164\x73\x5f\x6d\x6f\144\x65\154"); $ret = $this->Patients_model->post_PatientsForNameOpAnd($parameters); $items = array(); if (count($ret) < 1) { return $this->set_response(["\145\x72\x72\157\162\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\162\x43\x6f\144\x65"], "\160\141\x74\x69\145\156\x74\x49\x6e\x66\x6f\x4c\151\x73\164" => $items], REST_Controller::HTTP_OK); } else { foreach ($ret as $row) { $pi = SPatientInfo::createFromDBRecord($row); array_push($items, $pi); } return $this->set_response(["\x65\162\162\157\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\x72\103\157\x64\145"], "\160\141\164\x69\x65\x6e\164\x49\x6e\146\x6f\x4c\151\163\x74" => $items], REST_Controller::HTTP_OK); } } public function PatientsForChartNoList_post() { $strChartNoList = $this->post("\163\x74\162\x43\x68\141\162\x74\116\157\114\x69\x73\x74"); if (!isset($strChartNoList)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\x61\164\x69\145\156\x74\163\x5f\x6d\x6f\144\145\x6c"); $ret = $this->Patients_model->post_PatientsForChartNoList($strChartNoList); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $patInfo = new SSearchedPatient($row); $patInfo->dtBirthdate = currentDateFormat(DATEFORMAT_ISO8601, $row["\160\x61\x74\137\142\x69\x72\x74\150\x64\x61\x74\145"]); array_push($items, $patInfo); } return $this->set_response(["\145\x72\162\157\162\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\162\103\x6f\x64\x65"], "\163\x65\141\x72\x63\x68\x65\144\120\141\x74\x69\145\x6e\x74\x4c\x69\x73\164" => $items, "\156\x43\156\x74" => count($ret)], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\x72\103\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\x6f\x72\x43\x6f\x64\x65"], "\x73\x65\141\162\x63\x68\145\x64\x50\x61\164\x69\x65\x6e\x74\x4c\151\x73\164" => $items, "\x6e\103\x6e\164" => 0], REST_Controller::HTTP_OK); } } public function PatientsForChartNoListP2_post() { $strChartNoList = $this->post("\x73\164\x72\x43\150\141\162\164\x4e\157\x4c\x69\x73\x74"); if (!isset($strChartNoList)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x50\141\x74\151\x65\156\164\163\x5f\x6d\157\x64\x65\x6c"); $ret = $this->Patients_model->post_PatientsForChartNoListP2($strChartNoList); if ($ret["\145\x72\162\x6f\x72\103\x6f\x64\x65"] === VERR_COMMON_SUCCESS) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { if ($ret["\x65\162\162\x6f\x72\103\157\x64\x65"] === VERR_DB_NOSUCHDATA) { return $this->set_response(createResponse($ret["\x65\162\x72\x6f\162\x43\157\144\x65"]), REST_Controller::HTTP_OK); } else { return $this->set_response(createResponse($ret["\145\x72\x72\157\x72\103\157\144\x65"]), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function PatientsByChartNoForImage_post() { $strChartNo = $this->post("\x73\164\162\x43\150\x61\162\x74\116\x6f"); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\141\164\x69\x65\x6e\x74\163\137\155\157\x64\145\154"); $ret = $this->Patients_model->post_PatientsByChartNoForImage($strChartNo); if ($ret === VSUCCESS) { return $this->set_response(["\145\x72\x72\x6f\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\x72\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_PATIDTOIMG) { return $this->set_response(["\x65\162\x72\x6f\x72\103\x6f\144\145" => returnSetResponse(VERR_DB_PATIDTOIMG)["\145\162\162\157\162\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\162\x72\157\x72\x43\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\162\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\157\162\x43\157\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\162\x6f\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } } public function PatientsForAttendingDoctor_post() { $parametersOfPostPatientsForAttendingDoctor = $this->post(); if (!isset($parametersOfPostPatientsForAttendingDoctor["\x73\164\x72\x44\157\143\164\157\x72\116\x61\x6d\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\141\164\151\x65\156\164\x73\137\155\x6f\x64\145\x6c"); $ret = $this->Patients_model->post_PatientsForAttendingDoctor($parametersOfPostPatientsForAttendingDoctor); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\x72\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\x72\103\157\144\x65"], "\163\164\x72\x6c\x50\x61\164\x69\145\156\164\x4c\151\163\x74" => $parametersOfPostPatientsForAttendingDoctor["\x73\164\162\x6c\120\x61\x74\151\145\156\x74\x4c\151\x73\164"]], REST_Controller::HTTP_OK); } elseif (VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\162\x6f\162\103\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\157\162\x43\x6f\144\145"], "\x73\164\162\154\x50\141\164\151\x65\x6e\x74\x4c\151\x73\164" => array()], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\x72\103\157\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\x72\162\x6f\x72\x43\157\144\x65"], "\x73\x74\162\x6c\x50\141\164\151\x65\x6e\x74\x4c\151\163\164" => array()], REST_Controller::HTTP_OK); } } public function PatientsByDoctorNameForAttendingDoctor_get() { $strDoctorName = urldecode($this->get("\144\157\x63\x74\157\x72\x6e\x61\155\145")); if (empty($strDoctorName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\x61\x74\x69\145\x6e\x74\x73\137\155\x6f\144\x65\154"); $ret = $this->Patients_model->get_PatientsByDoctorNameForAttendingDoctor($strDoctorName); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $strChartno = $row["\160\x61\x74\137\143\150\x61\x72\164"]; array_push($items, $strChartno); } return $this->set_response(["\x65\x72\x72\157\162\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\162\x43\x6f\144\x65"], "\x73\x74\x72\x6c\x50\141\x74\151\145\x6e\164\x4c\151\163\164" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\157\162\103\x6f\144\145"], "\x73\x74\x72\x6c\x50\x61\164\151\145\156\164\x4c\x69\163\x74" => $items], REST_Controller::HTTP_OK); } } public function PatientsForChartNo_put() { $strNewChartNo = $this->put("\163\164\162\x4e\x65\x77\103\x68\x61\x72\164\x4e\x6f"); $strExistChartNo = $this->put("\x73\164\162\x45\x78\151\163\164\103\150\141\x72\164\116\x6f"); if (empty($strExistChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\141\x74\151\x65\x6e\164\x73\137\x6d\x6f\x64\145\154"); $ret = $this->Patients_model->put_PatientsForChartNo($strNewChartNo, $strExistChartNo); if ($ret > 0) { return $this->set_response(["\x65\x72\x72\x6f\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\x72\162\157\162\x43\157\x64\145" => returnSetResponse(VERR_DB_OVERLAP)["\145\162\x72\x6f\x72\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\x72\157\162\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\x6f\162\x43\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\162\103\157\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\162\162\x6f\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } } public function PatientsByChartNoForRecentlyViewed_put() { $strChartNo = $this->put(); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x50\x61\x74\151\x65\x6e\x74\163\x5f\x6d\157\x64\145\x6c"); $ret = $this->Patients_model->put_PatientsByChartNoForRecentlyViewed($strChartNo); if ($ret > 0) { return $this->set_response(returnSetResponse(VERR_COMMON_SUCCESS), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_RANGE), REST_Controller::HTTP_OK); } } public function PatientsByNumListForRecentlyViewed_post() { $DoctorNameAccountTypePair = $this->post("\104\157\143\x74\157\x72\116\x61\x6d\x65\101\143\143\x6f\165\x6e\164\x54\x79\160\145\x50\x61\x69\x72"); $pageNum = $this->post("\160\x61\147\x65\116\165\x6d"); $numItems = $this->post("\x6e\x75\x6d\x49\164\145\155\163"); $pageNum = !isset($pageNum) ? PAGE_NUM : $pageNum; $numItems = !isset($numItems) ? NUM_ITEMS : $numItems; if (!isset($DoctorNameAccountTypePair["\x66\151\162\163\x74"]) || !isset($DoctorNameAccountTypePair["\x73\x65\x63\157\156\144"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (!EDoctorAccountType::isValidName($DoctorNameAccountTypePair["\163\x65\143\x6f\156\144"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x50\x61\164\x69\x65\x6e\x74\x73\x5f\x6d\x6f\x64\145\154"); $searchedPatientList = array(); if ("\x65\x44\x6f\x63\x74\x6f\162\x41\143\x63\x6f\x75\156\164\101\x6c\154" == $DoctorNameAccountTypePair["\x73\145\143\157\x6e\x64"]) { $ret = $this->Patients_model->post_PatientsByNumListForRecentlyViewedGetRecentViewingPatientAll($searchedPatientList, $pageNum, $numItems); } else { if ("\145\x44\157\x63\164\157\x72\101\143\143\157\x75\156\x74\116\157\156\145" == $DoctorNameAccountTypePair["\x73\145\x63\157\156\x64"]) { $ret = $this->Patients_model->post_PatientsByNumListForRecentlyViewedGetRecentViewingPatientNone($searchedPatientList, $pageNum, $numItems); } else { $ret = $this->Patients_model->post_PatientsByNumListForRecentlyViewedGetRecentViewingPatientDoctor($searchedPatientList, $DoctorNameAccountTypePair["\x66\x69\x72\163\x74"], $pageNum, $numItems); } } if (count($searchedPatientList) == 0 || $ret < VSUCCESS) { return $this->set_response(array("\x65\x72\162\x6f\162\103\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\x6f\162\103\x6f\x64\145"], "\163\145\141\162\143\x68\x65\144\x50\x61\164\151\x65\156\x74\114\151\x73\x74" => $searchedPatientList), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\x65\162\162\157\162\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\x72\103\x6f\x64\x65"], "\163\x65\141\x72\x63\150\145\144\x50\141\x74\x69\x65\156\x74\114\151\163\x74" => $searchedPatientList), REST_Controller::HTTP_OK); } } public function PatientsByNumListForRecentlyAcquired_post() { $DoctorNameAccountTypePair = $this->post("\104\x6f\143\x74\x6f\x72\116\141\155\x65\101\x63\143\x6f\x75\156\x74\124\171\160\x65\x50\x61\151\162"); $pageNum = $this->post("\160\141\147\145\x4e\x75\x6d"); $numItems = $this->post("\x6e\165\155\x49\x74\x65\155\163"); $pageNum = !isset($pageNum) ? PAGE_NUM : $pageNum; $numItems = !isset($numItems) ? NUM_ITEMS : $numItems; if (!isset($DoctorNameAccountTypePair["\146\151\x72\x73\x74"]) || !isset($DoctorNameAccountTypePair["\163\145\143\157\156\144"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (!EDoctorAccountType::isValidName($DoctorNameAccountTypePair["\163\145\x63\x6f\156\144"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x50\x61\x74\x69\145\x6e\164\163\137\x6d\x6f\144\145\x6c"); $searchedPatientList = array(); if ("\145\104\x6f\143\x74\x6f\162\101\x63\143\157\165\156\x74\101\x6c\x6c" == $DoctorNameAccountTypePair["\163\145\x63\157\156\x64"]) { $ret = $this->Patients_model->post_PatientsByNumListForRecentlyAcquiredGetRecentlyAcquisitionPatientAll($searchedPatientList, $pageNum, $numItems); } else { if ("\x65\x44\x6f\143\164\157\162\x41\x63\143\x6f\x75\x6e\x74\x4e\157\x6e\x65" == $DoctorNameAccountTypePair["\163\145\x63\157\x6e\x64"]) { $ret = $this->Patients_model->post_PatientsByNumListForRecentlyAcquiredGetRecentlyAcquisitionPatientNone($searchedPatientList, $pageNum, $numItems); } else { $ret = $this->Patients_model->post_PatientsByNumListForRecentlyAcquiredGetRecentlyAcquisitionPatientDoctor($searchedPatientList, $DoctorNameAccountTypePair["\146\x69\x72\x73\164"], $pageNum, $numItems); } } if (count($searchedPatientList) == 0 || $ret < VSUCCESS) { return $this->set_response(array("\145\x72\x72\157\162\x43\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\x72\103\x6f\x64\x65"], "\x73\x65\141\162\x63\150\x65\x64\120\141\164\x69\145\x6e\x74\114\151\x73\x74" => $searchedPatientList), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\x65\162\162\x6f\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\103\157\144\145"], "\163\145\141\x72\x63\150\145\144\120\x61\164\151\x65\x6e\164\114\151\163\164" => $searchedPatientList), REST_Controller::HTTP_OK); } } public function PatientsByNumListForRecentlyScheduled_post() { $DoctorNameAccountTypePair = $this->post("\104\157\x63\x74\x6f\162\x4e\141\155\x65\x41\x63\143\157\x75\156\164\124\171\160\x65\120\x61\x69\162"); if (!isset($DoctorNameAccountTypePair["\146\151\x72\x73\x74"]) || !isset($DoctorNameAccountTypePair["\163\145\143\157\156\144"]) || !EDoctorAccountType::isValidName($DoctorNameAccountTypePair["\163\x65\x63\x6f\156\144"])) { vt_loge("\120\141\x74\151\145\x6e\164\x73\102\171\116\165\x6d\114\x69\x73\164\x46\157\x72\122\145\x63\145\156\x74\154\x79\x53\143\150\x65\144\x75\154\145\144\x5f\160\157\x73\x74\x20\101\x70\151\56\40" . "\x50\x61\162\141\155\145\x74\x65\162\163\40\x61\x72\145\40\151\156\x76\141\x6c\151\x64\x20\x64\141\164\141\56"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $pageNum = $this->post("\160\141\147\x65\116\x75\155"); $numItems = $this->post("\x6e\165\x6d\x49\164\145\x6d\163"); $pageNum = !isset($pageNum) ? PAGE_NUM : intval($pageNum); $numItems = !isset($numItems) ? NUM_ITEMS : intval($numItems); $this->load->model("\x50\x61\164\151\145\x6e\x74\163\137\x6d\x6f\x64\x65\154"); $ret = $this->Patients_model->post_PatientsByNumListForRecentlyScheduled($DoctorNameAccountTypePair["\x66\151\x72\163\164"], $DoctorNameAccountTypePair["\x73\x65\143\157\156\144"], $pageNum, $numItems); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PatientsByRecentlyAdded_post() { $DoctorNameAccountTypePair = $this->post("\x44\157\143\x74\157\x72\116\141\x6d\145\101\143\x63\x6f\165\156\x74\x54\x79\160\x65\x50\x61\151\x72"); if (!isset($DoctorNameAccountTypePair["\146\151\x72\163\164"]) || !isset($DoctorNameAccountTypePair["\163\x65\x63\x6f\x6e\144"]) || !EDoctorAccountType::isValidName($DoctorNameAccountTypePair["\x73\x65\143\157\x6e\144"])) { vt_loge(__METHOD__ . "\x3a\x20\120\141\162\141\155\145\164\x65\162\163\x20\141\162\145\x20\151\156\166\x61\x6c\x69\x64\x20\x64\x61\164\x61\x2e\x20\146\151\162\x73\x74\75\40" . $DoctorNameAccountTypePair["\x66\x69\162\x73\x74"] . "\40\x73\x65\x63\157\156\144\75\40" . $DoctorNameAccountTypePair["\x73\x65\x63\157\156\144"]); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $pageNum = $this->post("\160\x61\147\x65\116\x75\155"); $numItems = $this->post("\156\165\155\x49\164\x65\155\x73"); $pageNum = !isset($pageNum) ? PAGE_NUM : intval($pageNum); $numItems = !isset($numItems) ? NUM_ITEMS : intval($numItems); $this->load->model("\120\141\x74\151\x65\x6e\164\163\x5f\155\x6f\x64\145\154"); $ret = $this->Patients_model->post_PatientsByRecentlyAdded($DoctorNameAccountTypePair["\x66\x69\x72\163\164"], $DoctorNameAccountTypePair["\x73\x65\143\x6f\x6e\144"], $pageNum, $numItems); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PatientsForLastUpdated_get() { $strChartNo = urldecode($this->get("\x63\150\141\162\164\x6e\157")); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\141\x74\151\x65\156\x74\x73\x5f\x6d\157\x64\x65\154"); $data = $this->Patients_model->get_PatientsForLastUpdated($this->get()); if ($data["\145\x72\x72\x6f\x72\x43\157\x64\145"] == VERR_COMMON_SUCCESS) { return $this->set_response(["\145\162\x72\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\x72\x43\157\144\x65"], "\x6c\141\x73\x74\x55\160\x64\x61\164\x65\144" => $data["\154\x61\x73\164\x55\160\144\141\x74\x65\144"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\157\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } } public function ReportsByChartNo_get() { $strChartNo = urldecode($this->get("\x63\150\x61\162\164\x6e\x6f")); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\x32\162\x70\x74\x5f\x6d\x6f\x64\x65\x6c"); $ret = $this->E2rpt_model->get_ReportsByChartNo($strChartNo); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $rptInfo = new SReportList(); $rptInfo->strReportName = $row["\162\160\x74\x5f\x6e\141\155\145"]; $rptInfo->strRptFileName = $row["\x72\x70\164\x5f\x66\151\x6c\x65\x6e\141\155\x65"]; $rptInfo->strComment = $row["\162\160\164\x5f\x63\x6f\x6d\155\145\x6e\x74"]; $rptInfo->dtCreatedRptTime = currentDateFormat(DATEFORMAT_ISO8601, $row["\162\x70\164\x5f\143\x72\x65\x61\164\145\144\137\144\141\164\145\164\x69\x6d\145"]); array_push($items, $rptInfo); } return $this->set_response(["\145\162\162\157\162\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\162\103\x6f\144\x65"], "\166\145\x63\122\145\x70\157\x72\x74" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\162\103\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\157\x72\103\157\144\145"], "\x76\x65\x63\122\x65\x70\157\162\x74" => $items], REST_Controller::HTTP_OK); } } public function ReportsByChartNo_post() { $strCharNo = $this->post("\163\x74\x72\103\150\x61\x72\164\116\x6f"); $report = $this->post("\x73\122\145\160\157\162\164\x4c\151\x73\164"); if (!isset($strCharNo) || empty($strCharNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\122\x65\x70\157\162\x74\163\137\x6d\157\144\x65\154"); $ret = $this->Reports_model->post_ReportsByChartNo($strCharNo, $report); if ($ret > 0) { return $this->set_response(["\x65\x72\x72\157\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\162\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\x72\162\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_DB_OVERLAP)["\x65\x72\162\x6f\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\x72\162\x6f\162\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\x72\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\162\x43\x6f\x64\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\x72\157\162\x43\157\144\x65"]], REST_Controller::HTTP_OK); } } public function ReportsByChartNo_put() { $strChartNo = $this->put("\x73\x74\x72\103\x68\x61\162\x74\x4e\x6f"); $report = $this->put("\x73\x52\145\160\157\x72\164\x4c\151\x73\x74"); if (!isset($strChartNo) || empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\122\x65\x70\157\x72\x74\163\x5f\x6d\x6f\x64\x65\154"); $ret = $this->Reports_model->put_ReportsByChartNo($strChartNo, $report); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\x72\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\162\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\162\103\157\x64\x65"]], REST_Controller::HTTP_OK); } } public function ReportsByChartNoForComment_put() { $strChartNo = $this->put("\163\164\x72\x43\150\141\x72\x74\116\157"); $parametersOfPutReportsByChartNoForComment = $this->put(); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x52\x65\160\x6f\162\164\x73\x5f\155\157\144\145\154"); $ret = $this->Reports_model->put_ReportsByChartNoForComment($strChartNo, $parametersOfPutReportsByChartNoForComment); if ($ret > 0) { return $this->set_response(["\x65\x72\162\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\157\x72\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\162\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function ReportsByChartNoAndName_delete() { $strChartNo = urldecode($this->get("\x63\x68\x61\x72\x74\x6e\x6f")); $strReportName = urldecode($this->get("\156\x61\x6d\x65")); if (!isset($strChartNo) || empty($strChartNo) || !isset($strReportName) || empty($strReportName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x52\x65\x70\x6f\162\164\x73\137\x6d\x6f\x64\145\x6c"); $ret = $this->Reports_model->delete_ReportsByChartNoAndName($strChartNo, $strReportName); if ($ret > 0) { return $this->set_response(["\145\162\x72\x6f\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\103\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\157\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } } public function SmartPayConfigs_get() { $nLockingTimeLimit = 168; load_model($this, "\x53\x6d\141\162\x74\x50\141\x79\103\157\156\146\x69\147\x73\137\x6d\157\x64\145\154"); $ret = $this->SmartPayConfigs_model->get_SmartPayConfigs(); $strE3Version = 0; if ($ret > 0) { $nLockingTimeLimit = intval($ret[0]["\x73\x70\x5f\x63\146\147\x5f\x6c\x6f\143\x6b\x69\x6e\x67\137\164\x69\155\145"]); $strE3Version = trim($ret[0]["\x73\x70\137\x63\x66\x67\137\x65\x33\137\166\145\x72\163\x69\x6f\x6e"]); $strDBCheckSum = trim($ret[0]["\163\160\x5f\143\x66\147\137\143\x68\145\143\x6b\x73\x75\x6d"]); return $this->set_response(["\145\x72\162\x6f\162\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\x72\103\x6f\x64\145"], "\x6e\x4c\157\143\153\x69\x6e\x67\x54\151\155\145\x4c\151\155\x69\x74" => $nLockingTimeLimit, "\x73\x74\162\105\x33\126\145\x72\163\x69\x6f\156" => $strE3Version], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\x72\103\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\x6f\162\x43\x6f\144\145"], "\x6e\x4c\x6f\x63\x6b\x69\x6e\x67\x54\x69\155\145\x4c\x69\x6d\x69\164" => $nLockingTimeLimit, "\163\x74\162\105\63\126\145\162\163\151\157\156" => $strE3Version], REST_Controller::HTTP_OK); } } public function SmartPayConfigsForE3Version_put() { $strE3Version = $this->put(); if (!isset($strE3Version) || empty($strE3Version)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x53\x6d\141\162\x74\120\x61\x79\103\157\x6e\x66\x69\x67\163\x5f\155\157\x64\x65\x6c"); $ret = $this->SmartPayConfigs_model->put_SmartPayConfigsForE3Version($strE3Version); if ($ret > 0) { return $this->set_response(["\x65\162\x72\157\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } } public function SmartPayConfigsForChecksum_post() { $bUpdateData = $this->post("\142\125\160\144\x61\164\x65\104\x61\164\141"); if (!isset($bUpdateData)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\123\x6d\x61\162\164\x50\x61\171\x43\157\x6e\x66\x69\147\163\137\155\157\144\x65\154"); $ret = $this->SmartPayConfigs_model->get_SmartPayConfigsForChecksum($bUpdateData); if ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\x72\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\162\103\157\x64\x65"], "\x73\x74\162\x43\x68\x65\x63\153\123\165\155" => 0], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_INVALIDDATA) { return $this->set_response(["\145\162\x72\157\x72\x43\157\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\x72\162\x6f\x72\103\x6f\x64\145"], "\x73\x74\162\x43\x68\x65\x63\x6b\x53\165\155" => 0], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\162\103\x6f\144\145"], "\x73\x74\x72\103\150\x65\143\153\123\165\155" => $ret], REST_Controller::HTTP_OK); } } public function SmartPayAccounts_put() { $strUserID = $this->put("\x73\x74\x72\125\163\x65\162\111\104"); $strPassword = $this->put("\163\164\x72\x50\x61\163\163\x77\157\x72\144"); $bQueryUserID = $this->put("\x62\121\165\145\162\x79\x55\x73\x65\x72\x49\x44"); if (empty($strUserID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x53\155\141\x72\x74\x50\x61\171\101\143\143\x6f\165\156\164\163\x5f\155\157\144\x65\154"); $ret = $this->SmartPayAccounts_model->put_SmartPayAccounts($strUserID, $strPassword, $bQueryUserID); if ($ret > 0) { return $this->set_response(["\145\162\x72\157\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\162\103\157\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\x72\162\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_OVERLAP)["\x65\x72\162\157\x72\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\162\x72\x6f\x72\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\x6f\x72\103\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\x72\x43\x6f\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\x72\157\162\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } } public function SmartPayAccounts_delete() { $strUserID = urldecode($this->delete("\x73\164\x72\125\163\x65\162\x49\104")); $bQueryUserID = urldecode($this->delete("\x62\x51\165\x65\162\171\x55\163\145\162\111\104")); if (!isset($bQueryUserID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\123\x6d\141\x72\x74\x50\x61\x79\x41\143\x63\x6f\165\x6e\x74\x73\137\x6d\157\x64\145\154"); $ret = $this->SmartPayAccounts_model->delete_SmartPayAccounts($strUserID, $bQueryUserID); if ($ret === VERR_COMMON_INVALID) { return $this->set_response(["\x65\162\x72\157\x72\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_INVALID)["\x65\x72\162\157\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\157\x72\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } } public function SmartPayAccountsByIDAndQueryUserID_get() { $strUserID = urldecode($this->get("\151\x64")); $bQueryUserID = urldecode($this->get("\x71\x75\x65\162\x79\x75\163\145\x72\151\x64")); if (!isset($bQueryUserID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x53\155\x61\x72\164\x50\x61\x79\x41\x63\143\x6f\x75\156\164\x73\137\x6d\157\x64\145\x6c"); $ret = $this->SmartPayAccounts_model->get_SmartPayAccountsByIDAndQueryUserID($strUserID, $bQueryUserID); if ($ret === VERR_COMMON_INVALID) { return $this->set_response(["\x65\x72\162\x6f\162\103\157\144\145" => returnSetResponse(VERR_COMMON_INVALID)["\x65\x72\162\157\162\103\x6f\144\x65"], "\x73\164\162\x55\x73\x65\162\x49\x44" => '', "\x73\164\x72\120\x61\163\163\167\x6f\x72\144" => ''], REST_Controller::HTTP_OK); } else { if (count($ret) > 0) { return $this->set_response(["\x65\162\162\157\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\103\157\144\x65"], "\x73\x74\x72\x55\163\x65\162\111\104" => $ret[0]["\163\160\x5f\141\143\143\137\165\x73\x65\x72\156\x61\x6d\x65"], "\163\164\162\120\x61\163\x73\167\157\x72\144" => $ret[0]["\163\160\x5f\x61\143\x63\137\x70\x61\163\163\x77\157\x72\x64"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\157\x72\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\x6f\162\103\x6f\x64\145"], "\x73\x74\162\125\x73\145\162\x49\104" => '', "\163\164\162\x50\141\x73\163\167\157\x72\144" => ''], REST_Controller::HTTP_OK); } } } public function SmartPayCheckSumsByData_get() { $strData = urldecode($this->get("\x64\141\164\141")); if (!isset($strData)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x53\155\x61\162\164\x50\x61\x79\x43\x68\x65\x63\x6b\123\x75\155\x73\137\155\x6f\144\x65\154"); $ret = $this->SmartPayCheckSums_model->get_SmartPayCheckSumsByData($strData); return $this->set_response(["\x65\x72\162\x6f\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\103\157\144\145"], "\163\164\162\103\x68\145\143\153\123\x75\155" => $ret], REST_Controller::HTTP_OK); } public function SmartPayImages_post() { $parametersWithSmartPayImage = $this->post(); if (!isset($parametersWithSmartPayImage["\x73\164\162\111\x6d\x67\106\x69\x6c\145\x4e\141\155\145"]) || empty($parametersWithSmartPayImage["\163\x74\162\x49\x6d\147\x46\x69\154\x65\x4e\x61\x6d\145"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x53\x6d\x61\162\164\x50\141\x79\111\155\141\147\145\x73\x5f\155\157\x64\145\x6c"); $ret = $this->SmartPayImages_model->post_SmartPayImages($parametersWithSmartPayImage); if ($ret > 0) { return $this->set_response(["\x65\x72\162\x6f\162\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\x72\x72\157\x72\x43\157\144\x65" => returnSetResponse(VERR_DB_OVERLAP)["\x65\162\162\x6f\162\103\157\144\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\162\x72\157\162\x43\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\x6f\x72\103\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\x72\x43\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\x72\157\162\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function SmartPayImages_put() { $parametersWithSmartPayImage = $this->put(); if (!isset($parametersWithSmartPayImage["\163\x74\162\111\x6d\x67\106\x69\x6c\145\x4e\x61\x6d\x65"]) || empty($parametersWithSmartPayImage["\x73\164\x72\111\x6d\x67\x46\x69\x6c\145\116\141\x6d\145"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\123\155\x61\x72\x74\120\x61\x79\111\x6d\141\147\x65\x73\x5f\x6d\157\144\x65\x6c"); $ret = $this->SmartPayImages_model->put_SmartPayImages($parametersWithSmartPayImage); if ($ret > 0) { return $this->set_response(["\x65\162\x72\157\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\162\103\157\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_INVALIDDATA) { return $this->set_response(["\145\162\162\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\x72\x6f\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\x72\162\157\162\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\162\103\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\x6f\162\103\157\x64\145" => returnSetResponse(VERR_DB_RANGE)["\x65\x72\x72\157\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } } public function SmartPayImagesByFile_get() { $strImgFileName = urldecode($this->get("\146\151\x6c\x65")); load_model($this, "\x53\x6d\141\162\164\120\x61\171\x49\155\x61\147\x65\163\x5f\x6d\x6f\x64\x65\x6c"); $ret = $this->SmartPayImages_model->get_SmartPayImagesByFile($strImgFileName); if (count($ret) > 0) { $sSmartPayImage = new SSmartPayImage(); $sSmartPayImage->nImageID = intval($ret[0]["\x69\x6d\147\x5f\x69\x64"]); $sSmartPayImage->eImagePayStatus = stringToImagePayStatus($ret[0]["\x73\160\x5f\151\x6d\x67\137\x70\x61\171\x5f\163\164\141\x74\165\x73"]); $sSmartPayImage->dtImagePayTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[0]["\163\160\x5f\151\155\x67\x5f\160\x61\171\137\x64\141\164\145\x74\151\x6d\x65"]); $sSmartPayImage->eImageReportStatus = stringToImageReportStatus($ret[0]["\x73\x70\x5f\x69\155\147\137\162\x65\x70\x6f\x72\x74\137\x73\164\x61\164\x75\x73"]); $sSmartPayImage->dtImageReportTime = currentDateFormat(DATEFORMAT_ISO8601, $ret[0]["\x73\x70\137\151\155\x67\137\162\145\160\157\162\164\137\x64\x61\x74\x65\164\x69\155\x65"]); $sSmartPayImage->eImagePayType = StringToImagePayType($ret[0]["\163\160\137\151\x6d\147\137\160\x61\x79\137\x74\171\160\x65"]); $sSmartPayImage->strUnavailableFeatures = trim($ret[0]["\x73\x70\x5f\151\x6d\147\137\165\x6e\x61\166\141\x69\x6c\141\x62\x6c\x65\x5f\x66\x65\141\x74\165\162\x65\x73"]); $sSmartPayImage->strCheckSum = $ret[0]["\163\160\137\151\x6d\147\x5f\x63\x68\145\143\x6b\x73\x75\155"]; $strCheckSum = getSmartPayCheckSum($ret[0], "\163\x70\137\151\x6d\147\x5f\x63\x68\145\x63\x6b\163\165\155", "\163\x70\137\x69\155\147\x5f\165\163\145\162\137\x64\x65\146\151\x6e\x65\x64\x5f\64"); if (trim($ret[0]["\163\160\x5f\151\155\x67\x5f\143\x68\x65\143\x6b\163\x75\x6d"]) != $strCheckSum) { $sSmartPayImage->eImagePayStatus = enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImageUnpaidStatus); $sSmartPayImage->eImagePayType = enumToString(new EImagePayType(), (new EImagePayType())->eImageUnpaidType); $sSmartPayImage->strUnavailableFeatures = SMARTPAY_DEFAULT_UNAVAILABLE_FEATURES; $parameters = array(ImagePayStatusToString($sSmartPayImage->eImagePayStatus), ImagePayTypeToString($sSmartPayImage->eImagePayType), strval($sSmartPayImage->strUnavailableFeatures), $sSmartPayImage->nImageID); $updateRet = $this->SmartPayImages_model->get_SmartPayImagesByFile_UpdateSmartPayImage($parameters); if ($updateRet > 0) { $updateStrCheckSum = $this->SmartPayImages_model->get_SmartPayImagesForChecksum($strImgFileName, $strCheckSum, TRUE); if ($updateStrCheckSum == 0) { return $this->set_response(["\x65\162\x72\157\162\x43\157\x64\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\162\x72\157\162\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } } else { return $this->set_response(["\x65\x72\x72\x6f\162\103\x6f\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\x72\x72\157\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } } if ($sSmartPayImage->eImagePayStatus == enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImageUnpaidStatus) && empty($sSmartPayImage->strUnavailableFeatures)) { $sSmartPayImage->strUnavailableFeatures = SMARTPAY_DEFAULT_UNAVAILABLE_FEATURES; } return $this->set_response(["\x65\162\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\x43\157\x64\145"], "\163\x53\155\141\x72\164\x50\141\x79\111\x6d\141\147\x65" => $sSmartPayImage], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\157\162\103\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\x72\x43\157\x64\x65"], "\163\123\155\x61\162\164\120\x61\x79\111\155\141\147\x65" => array()], REST_Controller::HTTP_OK); } } public function SmartPayImagesByFile_delete() { $strImgFileName = urldecode($this->get("\x66\151\154\145")); if (empty($strImgFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x53\155\141\162\x74\120\x61\x79\111\x6d\x61\x67\145\x73\137\x6d\x6f\x64\145\x6c"); $ret = $this->SmartPayImages_model->delete_SmartPayImagesByFile($strImgFileName); if ($ret > 0) { return $this->set_response(["\145\162\x72\x6f\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\162\x72\x6f\162\103\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\162\157\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function SmartPayImagesByFile_post() { $strImgFileName = $this->post("\x73\x74\x72\x49\x6d\x67\x46\151\154\145\x4e\x61\155\x65"); $sSmartPayImage = $this->post("\x73\123\155\141\162\164\x50\x61\x79\x49\155\x61\x67\x65"); if (!isset($strImgFileName) && !isset($sSmartPayImage)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x53\155\x61\162\164\x50\x61\x79\111\x6d\x61\x67\x65\163\x5f\155\x6f\144\x65\x6c"); $ret = $this->SmartPayImages_model->post_SmartPayImagesByFile($strImgFileName, $sSmartPayImage); if ($ret > 0) { return $this->set_response(["\x65\162\162\x6f\x72\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\x72\x72\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_DB_OVERLAP)["\145\162\x72\x6f\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\162\162\x6f\162\103\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\157\x72\x43\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\157\162\x43\x6f\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\162\x6f\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function SmartPayImagesByFileForPaid_put() { $strImgFileName = $this->put("\x73\164\x72\111\155\147\x46\151\154\145\116\141\x6d\145"); if (empty($strImgFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\123\x6d\x61\162\x74\120\141\171\111\155\141\147\145\163\x5f\x6d\x6f\x64\145\x6c"); $ret = $this->SmartPayImages_model->put_SmartPayImagesByFileForPaid($strImgFileName); if ($ret > 0) { return $this->set_response(["\x65\x72\162\x6f\x72\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\x72\x43\157\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\x72\162\x6f\x72\103\x6f\x64\145" => returnSetResponse(VERR_DB_OVERLAP)["\x65\162\x72\x6f\x72\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\162\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\162\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\157\162\x43\157\144\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\162\x6f\x72\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function SmartPayImagesByID_delete() { $nImageID = urldecode($this->get("\151\x64")); if (empty($nImageID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\123\x6d\141\162\164\x50\141\x79\111\155\141\x67\x65\x73\x5f\x6d\x6f\x64\x65\x6c"); $ret = $this->SmartPayImages_model->delete_SmartPayImagesByID($nImageID); if ($ret > 0) { return $this->set_response(["\145\162\162\157\x72\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\162\103\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } } public function SmartPayImagesForChecksum_post() { $parameters = $this->post(); $strimgFileName = $parameters["\163\x74\x72\x49\155\x67\106\x69\x6c\x65\116\x61\155\x65"]; $strCheckSum = $parameters["\x73\164\162\x43\150\x65\143\x6b\x53\165\155"]; $bUpdateData = $parameters["\142\x55\x70\144\x61\x74\x65\104\x61\x74\141"]; load_model($this, "\123\x6d\x61\x72\164\120\141\x79\111\x6d\x61\147\x65\x73\137\155\x6f\144\x65\x6c"); $ret = $this->SmartPayImages_model->get_SmartPayImagesForChecksum($strimgFileName, $strCheckSum, $bUpdateData); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\162\x43\157\144\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\145\x72\x72\157\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_OVERLAP)["\145\x72\x72\157\162\x43\157\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\x65\162\x72\x6f\x72\x43\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\162\x43\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\162\162\157\162\x43\157\144\x65"]], REST_Controller::HTTP_OK); } } public function SmartPayImagesForNotReported_get() { load_model($this, "\123\155\x61\x72\164\120\141\171\111\x6d\x61\x67\145\163\x5f\155\x6f\x64\145\154"); $ret = $this->SmartPayImages_model->get_SmartPayImagesForNotReported(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $sSmartPayImage = new SSmartPayImage(); $sSmartPayImage->nImageID = intval($row["\151\155\x67\x5f\x69\x64"]); $sSmartPayImage->strImgFileName = trim($row["\151\155\x67\137\146\151\x6c\x65\156\141\x6d\x65"]); $sSmartPayImage->strChartNo = trim($row["\x70\141\x74\x5f\143\x68\x61\162\164\x6e\x6f"]); $sSmartPayImage->strDeviceSerialNumber = trim($row["\144\145\x76\x5f\x73\x65\162\x69\x61\x6c\137\156\x75\x6d"]); $sSmartPayImage->eImagePayStatus = stringToImagePayStatus($row["\163\160\137\x69\x6d\x67\137\x70\141\x79\137\x73\x74\141\x74\x75\163"]); $sSmartPayImage->dtImagePayTime = currentDateFormat(DATEFORMAT_ISO8601, $row["\x73\x70\137\151\155\147\x5f\160\x61\x79\137\x64\x61\164\145\x74\x69\x6d\145"]); $sSmartPayImage->eImageReportStatus = stringToImageReportStatus($row["\x73\160\x5f\151\x6d\x67\137\162\145\160\x6f\162\x74\137\x73\x74\x61\x74\x75\163"]); $sSmartPayImage->dtImageReportTime = currentDateFormat(DATEFORMAT_ISO8601, $row["\x73\x70\137\151\155\147\137\x72\145\x70\x6f\162\164\x5f\144\x61\164\145\x74\x69\x6d\x65"]); $sSmartPayImage->eImagePayType = stringToImagePayType($row["\x73\x70\137\151\x6d\147\x5f\x70\x61\171\137\x74\171\160\x65"]); $sSmartPayImage->strUnavailableFeatures = trim($row["\x73\160\x5f\151\155\x67\137\165\x6e\141\x76\141\x69\x6c\141\142\x6c\145\137\x66\145\141\x74\165\x72\x65\x73"]); $sSmartPayImage->strCheckSum = trim($row["\x73\160\x5f\151\155\x67\137\x63\150\145\143\x6b\x73\x75\155"]); array_push($items, $sSmartPayImage); } return $this->set_response(["\x65\162\162\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\103\x6f\x64\x65"], "\x76\145\143\x53\x6d\141\x72\164\x50\x61\171\111\x6d\141\147\145" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\x6f\x72\103\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\x72\x43\157\144\x65"], "\x76\x65\x63\123\x6d\x61\x72\164\x50\141\171\x49\x6d\x61\x67\x65" => $items], REST_Controller::HTTP_OK); } } public function SmartPayImagesByFileForReportStatus_put() { $strImgFileName = $this->put("\163\x74\x72\111\x6d\141\x67\145\x46\x69\x6c\x65\x4e\x61\155\x65"); $eImageReportStatus = $this->put("\145\111\155\141\147\145\x52\145\x70\x6f\x72\x74\123\164\x61\164\165\x73"); if (!isset($eImageReportStatus) || !isset($strImgFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x53\x6d\x61\162\164\120\x61\x79\x49\x6d\141\147\x65\163\137\x6d\x6f\x64\145\x6c"); $ret = $this->SmartPayImages_model->put_SmartPayImagesByFileForReportStatus($strImgFileName, $eImageReportStatus); if ($ret > 0) { return $this->set_response(["\x65\162\x72\157\x72\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\x72\x72\x6f\x72\x43\x6f\x64\145" => returnSetResponse(VERR_DB_OVERLAP)["\x65\162\162\157\162\103\157\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(["\145\x72\x72\157\162\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\x6f\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\x6f\x72\103\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\x72\x72\x6f\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } } public function UserAccounts_get() { load_model($this, "\x55\163\145\162\101\143\x63\157\165\x6e\x74\x73\137\x6d\157\144\x65\x6c"); $ret = $this->UserAccounts_model->get_UserAccounts($this->get()); $accountInfoList = array(); if (count($ret) < 1) { return $this->set_response(array("\145\162\162\x6f\x72\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\162\103\x6f\x64\x65"], "\x61\x63\x63\157\165\156\164\111\156\x66\x6f\x4c\x69\x73\164" => $accountInfoList), REST_Controller::HTTP_OK); } else { for ($i = 0; $i < count($ret); $i++) { $accInfo = new SAccountInfo(); $accInfo->strAccountName = $ret[$i]["\141\x63\143\137\x75\163\145\162\x6e\141\155\145"]; $accInfo->strAccountPasswd = $ret[$i]["\x61\x63\143\137\x70\x61\163\163\167\x6f\x72\144"]; $accInfo->strGrade = $ret[$i]["\141\x63\x63\x5f\x6c\145\166\x65\x6c"]; $accInfo->bDataDel = setBoolVal($ret[$i]["\x61\x63\143\x5f\x64\x61\164\141\x5f\x64\145\x6c"]); $accInfo->bDataTransfer = setBoolVal($ret[$i]["\x61\x63\143\137\144\x61\164\141\137\x74\162\x61\x6e\x73\146\145\x72"]); $accInfo->bDataExport = setBoolVal($ret[$i]["\141\143\x63\x5f\x64\141\164\141\137\x65\x78\160\x6f\x72\x74"]); array_push($accountInfoList, $accInfo); } } return $this->set_response(array("\145\162\x72\x6f\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\162\x43\x6f\x64\x65"], "\x61\x63\x63\157\165\x6e\164\111\156\146\157\x4c\151\163\x74" => $accountInfoList), REST_Controller::HTTP_OK); } public function UserAccounts_post() { $accountInfo = $this->post(); if (!isset($accountInfo["\x73\x74\x72\x41\143\143\157\x75\x6e\164\x4e\x61\x6d\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\125\x73\145\x72\101\143\x63\157\x75\156\164\163\137\155\x6f\x64\x65\154"); $ret = $this->UserAccounts_model->post_UserAccounts($accountInfo); if ($ret > 0) { return $this->set_response(["\x65\x72\162\x6f\162\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { if ($ret === VERR_DB_OVERLAP) { return $this->set_response(["\x65\162\x72\x6f\162\103\x6f\144\145" => returnSetResponse(VERR_DB_OVERLAP)["\145\x72\162\x6f\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\x72\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\162\103\157\144\145"]], REST_Controller::HTTP_OK); } } } public function UserAccountsR2_get() { load_model($this, "\125\163\x65\x72\x41\x63\x63\157\x75\156\x74\163\x5f\x6d\x6f\144\145\x6c"); $ret = $this->UserAccounts_model->get_UserAccountsR2(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function UserAccountsR2_post() { $accountInfo = SAccountInfoR2::constructWithParameter($this->post()); if (!isset($accountInfo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\125\x73\145\162\x41\x63\x63\157\165\x6e\164\163\137\x6d\157\x64\x65\x6c"); $ret = $this->UserAccounts_model->post_UserAccountsR2($accountInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function UserAccountsForNames_get() { load_model($this, "\x55\x73\145\x72\101\x63\143\157\165\x6e\164\x73\137\x6d\157\x64\145\x6c"); $ret = $this->UserAccounts_model->get_UserAccountsForNames($this->get()); $items = array(); if (count($ret) < 1) { return $this->set_response(["\145\x72\x72\x6f\162\103\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\x72\x43\x6f\x64\145"], "\x73\164\x72\x6c\125\x73\x65\162\116\141\155\x65" => $items], REST_Controller::HTTP_OK); } else { foreach ($ret as $row) { $strUserName = $row["\141\x63\x63\x5f\165\x73\145\162\x6e\141\155\x65"]; array_push($items, $strUserName); } return $this->set_response(["\145\162\x72\x6f\x72\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\103\157\144\145"], "\163\x74\x72\154\125\x73\x65\162\x4e\141\x6d\145" => $items], REST_Controller::HTTP_OK); } } public function UserAccountsByName_get() { $strAccountName = urldecode($this->get("\x6e\x61\x6d\145")); if (!isset($strAccountName) && strlen($strAccountName) < 1) { vt_loge(__METHOD__ . "\x3a\40\156\x61\x6d\145\x20\151\163\x20\x65\x6d\160\x74\171\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\125\x73\145\x72\101\143\143\x6f\x75\x6e\x74\x73\137\x6d\x6f\144\x65\154"); $ret = $this->UserAccounts_model->get_UserAccountsByName($strAccountName); if (count($ret) <= 0) { vt_loge(__METHOD__ . "\x3a\40\156\157\x20\165\x73\145\x72\x20\x66\x6f\165\x6e\x64\72\x20" . $strAccountName); return $this->set_response(["\x65\x72\162\157\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\157\x72\x43\157\x64\145"], "\x61\143\143\x6f\x75\x6e\164\111\156\x66\x6f" => array()], REST_Controller::HTTP_OK); } else { $accountInfo = new SAccountInfo(); $accountInfo->strAccountName = $ret[0]["\x61\x63\x63\137\165\x73\x65\x72\156\141\155\145"]; $accountInfo->strAccountPasswd = $ret[0]["\141\143\x63\x5f\160\x61\x73\163\167\157\162\x64"]; $accountInfo->strGrade = $ret[0]["\x61\143\143\x5f\154\145\166\x65\154"]; $accountInfo->bDataDel = setBoolVal($ret[0]["\x61\143\143\137\144\141\164\141\x5f\x64\x65\154"]); $accountInfo->bDataTransfer = setBoolVal($ret[0]["\x61\x63\x63\137\144\x61\x74\x61\137\x74\162\x61\156\x73\146\x65\x72"]); $accountInfo->bDataExport = setBoolVal($ret[0]["\141\143\x63\137\x64\141\164\x61\x5f\x65\x78\160\x6f\162\x74"]); return $this->set_response(array("\145\162\162\157\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\103\157\x64\145"], "\141\x63\x63\x6f\165\x6e\x74\x49\156\x66\x6f" => $accountInfo), REST_Controller::HTTP_OK); } } public function UserAccountsByName_delete() { $strAccountName = urldecode($this->get("\156\141\x6d\145")); if (!isset($strAccountName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\125\x73\x65\x72\x41\x63\x63\x6f\x75\156\x74\x73\x5f\x6d\157\x64\145\x6c"); $ret = $this->UserAccounts_model->delete_UserAccountsByName($strAccountName); if ($ret > 0) { return $this->set_response(["\x65\x72\162\157\x72\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\162\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\162\x43\157\x64\145"]], REST_Controller::HTTP_OK); } } public function UserAccountsByNameR2_get() { $strAccountName = trim(urldecode($this->get("\156\141\155\x65"))); if (empty($strAccountName)) { vt_loge("\125\x73\x65\162\x41\x63\x63\x6f\x75\156\164\x73\102\171\116\141\x6d\145\x5f\147\x65\x74\x20\x41\160\x69\56\40" . "\x54\150\x65\x20\160\x61\162\141\x6d\x65\x74\x65\162\40\x69\163\x20\x69\x6e\x76\x61\x6c\151\x64\x20\x64\141\x74\141\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\125\x73\145\162\x41\x63\x63\x6f\165\x6e\164\x73\137\155\157\x64\x65\154"); $ret = $this->UserAccounts_model->get_UserAccountsByNameR2($strAccountName); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function UserAccountsByName_put() { $strAccountName = $this->put("\x73\x74\x72\101\x63\x63\157\165\x6e\164\116\141\155\x65"); $accountInfo = $this->put("\163\x41\x63\x63\157\x75\156\164\x49\x6e\146\157"); load_model($this, "\x55\163\145\x72\101\x63\143\157\165\156\x74\163\137\155\157\144\145\x6c"); $ret = $this->UserAccounts_model->put_UserAccountsByName($strAccountName, $accountInfo); $errorCode = $ret["\x65\x72\162\x6f\162\103\157\144\x65"]; if ($errorCode === VERR_COMMON_SUCCESS) { return $this->set_response(["\145\x72\162\x6f\x72\x43\x6f\144\x65" => VERR_COMMON_SUCCESS], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\157\162\x43\x6f\144\145" => $errorCode, "\x65\162\x72\x6f\162\115\145\x73\x73\141\x67\x65" => createResponse($errorCode)], REST_Controller::HTTP_OK); } } public function UserAccountsByNameR2_put() { $strAccountName = $this->put("\x73\164\162\101\143\x63\x6f\x75\156\164\116\x61\x6d\x65"); $accountInfo = $this->put("\163\101\x63\x63\x6f\x75\156\x74\111\x6e\146\x6f"); load_model($this, "\x55\163\145\x72\101\x63\x63\x6f\x75\156\164\163\x5f\x6d\x6f\144\x65\x6c"); $ret = $this->UserAccounts_model->put_UserAccountsByNameR2($strAccountName, $accountInfo); $errorCode = $ret["\145\x72\162\157\162\x43\157\144\145"]; if ($errorCode === VERR_COMMON_SUCCESS) { return $this->set_response(["\x65\x72\162\x6f\162\103\157\x64\x65" => VERR_COMMON_SUCCESS], REST_Controller::HTTP_OK); } else { return $this->set_response(createResponse($errorCode), REST_Controller::HTTP_OK); } } public function UserAccountsByNameForPassword_get() { $strAccountName = urldecode($this->get("\x6e\141\155\x65")); if (!isset($strAccountName) && strlen($strAccountName) < 1) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x55\x73\x65\162\101\143\x63\x6f\165\x6e\164\x73\137\x6d\157\144\145\154"); $ret = $this->UserAccounts_model->get_UserAccountsByNameForPassword($strAccountName); if (count($ret) < 1) { return $this->set_response(["\x65\x72\x72\x6f\162\103\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\162\103\x6f\144\x65"], "\163\x74\162\107\145\x74\120\141\163\163\x77\x6f\x72\x64" => ''], REST_Controller::HTTP_OK); } else { $strPassword = $ret[0]["\x61\x63\143\137\160\x61\163\163\x77\157\162\144"]; return $this->set_response(["\145\162\162\157\x72\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\x72\x43\157\x64\145"], "\163\164\x72\107\x65\164\120\x61\163\163\x77\157\x72\144" => $strPassword], REST_Controller::HTTP_OK); } } public function UserAccountsByNameForPassword_put() { $strAccountName = $this->put("\x73\x74\162\x41\143\143\157\x75\x6e\164\116\141\155\x65"); $strEditPassword = $this->put("\163\x74\x72\x45\144\151\x74\120\141\x73\163\167\x6f\x72\x64"); if (!isset($strAccountName) || !isset($strEditPassword)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\125\163\x65\162\101\143\143\157\165\156\164\163\137\x6d\157\144\145\x6c"); $ret = $this->UserAccounts_model->put_UserAccountsByNameForPassword($strAccountName, $strEditPassword); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\157\x72\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\157\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function trOngoingOrders_get() { load_model($this, "\124\x65\154\145\x72\141\x64\x69\x6f\x6c\157\147\x79\104\x61\164\x61\x53\x65\162\x76\151\143\x65\x5f\155\157\x64\x65\154"); $ret = $this->TeleradiologyDataService_model->Get_trOngoingOrders(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $caseName = $row["\x74\162\x5f\x6f\x72\x64\x72\137\143\141\x73\x65\137\x6e\141\x6d\x65"]; array_push($items, $caseName); } return $this->set_response(["\145\x72\x72\x6f\x72\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\162\x43\x6f\x64\145"], "\143\x61\163\145\x6e\141\x6d\145" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\157\x72\103\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\x6f\162\103\157\144\x65"], "\143\141\163\145\x6e\141\x6d\145" => $items], REST_Controller::HTTP_OK); } } public function trOngoingOrderByCaseName_delete() { $caseName = urldecode($this->get("\143\x61\163\145\116\141\155\x65")); if (empty($caseName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x54\145\154\x65\x72\141\x64\x69\157\x6c\157\x67\171\104\141\164\141\123\145\x72\166\x69\x63\145\137\x6d\157\144\145\154"); $ret = $this->TeleradiologyDataService_model->delete_trOngoingOrderByCaseName($caseName); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\162\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\162\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\157\162\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\162\x43\157\144\145"]], REST_Controller::HTTP_OK); } } public function dataGroupProjectImagesByImageFile_get() { $imageFileName = urldecode($this->get("\151\155\141\147\x65\x46\151\154\x65\x4e\x61\155\145")); if (empty($imageFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\124\x65\154\x65\162\x61\144\151\157\154\x6f\147\x79\x44\141\x74\141\123\x65\162\166\151\143\145\137\x6d\157\x64\x65\154"); $ret = $this->TeleradiologyDataService_model->get_dataGroupProjectImagesByImageFile($imageFileName); if ($ret == false) { return $this->set_response(["\x65\162\x72\157\x72\103\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\x72\x43\157\144\145"], "\x66\x69\154\x65\116\141\155\145" => array()], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\x72\x43\157\x64\x65"], "\x66\151\x6c\x65\x4e\x61\x6d\145" => $ret], REST_Controller::HTTP_OK); } } public function trOrderByCaseName_post() { $orderByCaseName = $this->post(); if (!isset($orderByCaseName["\143\141\163\145\x4e\x61\x6d\145"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x54\x65\154\x65\x72\141\144\151\157\x6c\x6f\x67\x79\x44\x61\164\141\123\x65\x72\166\x69\x63\x65\x5f\x6d\x6f\144\145\154"); $ret = $this->TeleradiologyDataService_model->post_trOrderByCaseName($orderByCaseName); if ($ret > 0) { return $this->set_response(["\x65\162\162\x6f\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\162\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\x72\103\157\x64\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\145\x72\x72\157\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } } public function trOrderByCaseNameForStatus_put() { $caseName = $this->put("\x63\141\163\145\x4e\141\155\145"); $orderStatus = $this->put("\x6f\162\x64\x65\x72\123\164\x61\x74\165\163"); if (empty($caseName) || empty($orderStatus)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\124\145\x6c\145\x72\x61\x64\151\x6f\154\x6f\147\x79\x44\x61\164\141\x53\x65\162\166\151\143\145\x5f\x6d\157\144\145\x6c"); $ret = $this->TeleradiologyDataService_model->put_trOrderByCaseNameForStatus($caseName, $orderStatus); if ($ret > 0) { return $this->set_response(["\145\162\x72\x6f\x72\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\162\x43\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\x72\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\157\162\x43\157\x64\145"]], REST_Controller::HTTP_OK); } } public function trUserAccounts_get() { load_model($this, "\124\x65\154\x65\x72\x61\144\151\157\154\x6f\x67\171\x44\141\164\x61\123\x65\162\166\151\143\145\x5f\155\157\144\x65\x6c"); $ret = $this->TeleradiologyDataService_model->get_trUserAccounts(); if ($ret == false) { return $this->set_response(["\x65\x72\x72\157\162\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\162\157\162\103\x6f\x64\145"], "\164\x72\125\x73\x65\x72\101\x63\143\x6f\165\156\164\x73" => array()], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\x6f\162\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\103\157\x64\145"], "\x74\x72\125\x73\145\162\x41\x63\x63\157\x75\x6e\164\163" => $ret], REST_Controller::HTTP_OK); } } public function trUserAccount_post() { $userAccounts = $this->post(); if (!isset($userAccounts["\145\x6d\x61\x69\x6c\101\144\x64\162\145\x73\163"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x54\145\154\x65\x72\x61\144\151\157\x6c\157\x67\x79\104\141\164\x61\123\x65\162\166\x69\x63\x65\x5f\x6d\157\144\145\x6c"); $ret = $this->TeleradiologyDataService_model->post_trUserAccount($userAccounts); if ($ret > 0) { return $this->set_response(["\145\162\x72\x6f\x72\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } else { if ($ret == VERR_DB_CONSTRAINT) { return $this->set_response(["\145\162\x72\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_DB_CONSTRAINT)["\x65\x72\162\x6f\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\x6f\x72\x43\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\162\162\157\162\103\157\x64\145"]], REST_Controller::HTTP_OK); } } } public function trResultByCaseNameAndResultFileNumAndResultComment_post() { $parameters = $this->post(); if (!isset($parameters["\143\x61\163\145\116\141\x6d\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x54\x65\154\x65\x72\x61\x64\x69\x6f\x6c\157\147\x79\x44\141\164\x61\123\x65\x72\166\x69\x63\x65\x5f\155\x6f\144\x65\154"); $ret = $this->TeleradiologyDataService_model->post_trResultByCaseNameAndResultFileNumAndResultComment($parameters); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\162\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\162\103\x6f\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\x72\157\162\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function trResultByCaseName_get() { $caseName = urldecode($this->get("\143\x61\163\x65\x4e\141\x6d\x65")); if (empty($caseName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x54\x65\x6c\145\x72\x61\x64\x69\x6f\154\157\147\x79\x44\x61\x74\x61\123\x65\x72\166\x69\x63\x65\137\x6d\x6f\144\x65\x6c"); $ret = $this->TeleradiologyDataService_model->get_trResultByCaseName($caseName); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\x72\x43\x6f\x64\145"], "\x72\145\163\165\x6c\x74\x43\157\x6d\x6d\145\156\164" => $ret["\162\145\163\165\154\164\x43\x6f\x6d\x6d\x65\156\x74"], "\162\x65\163\165\x6c\x74\106\x69\x6c\145\x73" => $ret["\162\145\163\x75\154\164\x46\151\x6c\x65\163"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\x72\103\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } } public function trResultByCaseName_delete() { $caseName = urldecode($this->get("\143\x61\x73\145\x4e\x61\155\145")); if (empty($caseName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x54\145\x6c\145\x72\x61\144\x69\x6f\x6c\x6f\147\171\104\x61\x74\x61\123\x65\162\166\x69\x63\x65\137\x6d\x6f\144\x65\154"); $ret = $this->TeleradiologyDataService_model->delete_trResultByCaseName($caseName); if ($ret > 0) { return $this->set_response(["\145\162\x72\157\162\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\x72\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\157\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\162\157\162\x43\157\x64\145"]], REST_Controller::HTTP_OK); } } public function trResultByChartNo_get() { $strChartNo = urldecode($this->get("\x63\x68\141\x72\164\x6e\157")); if (empty($strChartNo)) { vt_loge("\164\162\122\x65\x73\x75\154\x74\102\171\x43\150\x61\x72\164\x4e\x6f\x5f\147\145\x74\x20\101\x70\x69\x2e\x20" . "\x49\x6e\x76\141\154\x69\x64\40\x50\x61\162\141\155\x65\164\145\x72\x20\x45\162\x72\x6f\x72\56"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x54\145\154\x65\162\x61\144\x69\x6f\154\x6f\147\171\104\x61\x74\x61\x53\145\x72\x76\151\143\145\137\155\x6f\x64\145\x6c"); $ret = $this->TeleradiologyDataService_model->get_trResultByChartNo($strChartNo); if ($ret["\145\x72\x72\x6f\x72\103\157\144\x65"] === VERR_COMMON_SUCCESS) { return $this->set_response(["\x65\x72\162\157\162\x43\x6f\x64\x65" => VERR_COMMON_SUCCESS, "\x72\145\x73\x75\154\x74\163" => $ret["\x72\x65\x73\165\154\164\x73"]], REST_Controller::HTTP_OK); } else { return $this->set_response(createResponse($ret["\145\x72\162\157\162\x43\157\144\x65"]), REST_Controller::HTTP_OK); } } public function PatientSocialIDs_get() { load_model($this, "\120\141\164\x69\x65\x6e\164\x73\137\155\157\x64\145\154"); $data = $this->Patients_model->get_PatientSocialIDs(); $this->set_response(["\x65\x72\x72\x6f\x72\103\x6f\144\145" => VERR_COMMON_SUCCESS, "\160\x72\157\x74\145\143\x74\145\x64\123\157\x63\x69\141\154\111\104\x73" => $data["\x70\x72\x6f\x74\x65\143\x74\x65\x64\x53\x6f\143\151\141\x6c\111\104\163"], "\x75\x6e\160\162\157\164\x65\143\x74\145\x64\123\157\x63\x69\x61\154\111\104\163" => $data["\x75\156\x70\x72\x6f\164\x65\x63\x74\x65\144\x53\x6f\x63\151\141\154\x49\104\x73"]], REST_Controller::HTTP_OK); } public function PatientSocialIDs_put() { $parametersPutPatientSocialIDs = $this->put("\160\x61\x72\x61\x6d\x65\164\x65\162\163\x50\x75\164\120\x61\164\151\x65\x6e\x74\123\x6f\x63\x69\x61\154\x49\x44\x73"); load_model($this, "\120\141\164\151\x65\156\164\163\x5f\x6d\157\144\145\154"); $data = $this->Patients_model->put_PatientSocialIDs($this->put()); $this->set_response(["\145\162\x72\157\x72\x43\x6f\144\x65" => VERR_COMMON_SUCCESS, "\160\x72\x6f\164\x65\143\x74\x65\x64\123\157\x63\x69\x61\154\x49\x44\163" => $data["\x70\x72\157\x74\x65\143\164\145\144\x53\157\x63\151\x61\x6c\111\x44\x73"], "\x75\x6e\x70\x72\x6f\164\145\143\164\x65\144\123\x6f\x63\x69\x61\x6c\x49\x44\163" => $data["\x75\156\x70\162\x6f\164\145\143\164\145\x64\x53\x6f\x63\x69\x61\154\111\x44\163"]], REST_Controller::HTTP_OK); } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/E3Ds.php b/server/original/www/ezwebserver/src/application/controllers/v1/E3Ds.php new file mode 100644 index 0000000..f1cb5b0 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/E3Ds.php @@ -0,0 +1,7 @@ +load->enum(); $this->load->struct(); } public function CapturesByChartNo_get() { $strChartNo = urldecode($this->get("\143\x68\141\162\164\156\x6f")); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\x61\160\164\x75\x72\145\x73\x5f\155\x6f\144\145\x6c"); $ret = $this->Captures_model->get_CapturesByChartNo($strChartNo); $vecCaptureList = array(); if (count($ret) > 0) { foreach ($ret as $row) { $sCaptureImage = new SCaptureImage(); $sCaptureImage->strStudyUID = $row["\x69\x6d\147\137\x73\x74\x75\144\171\x5f\165\151\144"]; $sCaptureImage->strCTName = $row["\x69\x6d\147\x5f\x63\164\x5f\156\141\x6d\x65"]; $sCaptureImage->strFileName = $row["\151\155\147\137\146\151\x6c\x65\137\x6e\141\x6d\145"]; $sCaptureImage->dtCaptureDateTime = currentDateFormat(DATEFORMAT_ISO8601, $row["\x69\155\x67\x5f\x63\x61\160\164\165\x72\145\x5f\144\141\164\145"]); $sCaptureImage->strChartNo = $row["\151\155\147\x5f\143\x68\x61\x72\164\x5f\156\x6f"]; $sCaptureImage->strDcmFileCount = $row["\x69\x6d\147\x5f\162\145\163\145\x72\x76\x65\x64\61"]; $sCaptureImage->strComment = $row["\151\x6d\147\137\x63\x6f\x6d\x6d\x65\156\164"]; array_push($vecCaptureList, $sCaptureImage); } return $this->set_response(["\145\x72\162\157\x72\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\x72\103\x6f\144\145"], "\166\x65\143\103\x61\160\x74\165\162\x65\x4c\151\x73\x74" => $vecCaptureList], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\162\103\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\x72\103\157\144\145"], "\x76\145\x63\x43\x61\x70\x74\x75\162\x65\114\x69\163\164" => $vecCaptureList], REST_Controller::HTTP_OK); } } public function CapturesByChartNoAndGroupList_get() { $strChartNo = urldecode($this->get("\x63\150\141\x72\x74\156\x6f")); if (empty($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\141\160\164\x75\x72\145\163\137\155\x6f\144\145\x6c"); $ret = $this->Captures_model->get_CapturesByChartNoAndGroupList($strChartNo); $strlGroupList = array(); if (count($ret) > 0) { foreach ($ret as $row) { array_push($strlGroupList, $row["\151\155\x67\x5f\143\x74\137\x6e\141\x6d\x65"]); } return $this->set_response(["\145\162\x72\x6f\x72\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\162\x43\x6f\144\145"], "\x73\164\x72\x6c\107\x72\157\165\160\x4c\x69\x73\x74" => $strlGroupList], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\x6f\x72\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\162\x43\x6f\x64\x65"], "\163\x74\x72\x6c\x47\162\x6f\x75\160\114\151\x73\164" => $strlGroupList], REST_Controller::HTTP_OK); } } public function Captures_put() { $sCaptureImage = $this->put(); if (!isset($sCaptureImage["\163\x74\x72\x53\x74\x75\x64\171\x55\x49\x44"]) || !isset($sCaptureImage["\163\x74\x72\x43\x54\x4e\141\155\x65"]) || !isset($sCaptureImage["\163\164\162\x46\x69\x6c\x65\x4e\141\x6d\x65"]) || !isset($sCaptureImage["\x64\164\103\141\x70\x74\165\162\145\x44\x61\164\145\124\x69\155\x65"]) || !isset($sCaptureImage["\x73\164\162\103\x68\141\162\164\116\157"]) || !isset($sCaptureImage["\x73\164\x72\104\143\x6d\x46\151\154\x65\103\157\x75\x6e\164"]) || !isset($sCaptureImage["\x73\164\x72\103\x6f\155\155\145\156\x74"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\141\160\x74\x75\x72\145\x73\137\155\157\x64\145\x6c"); $ret = $this->Captures_model->put_Captures($sCaptureImage); if ($ret > 0) { return $this->set_response(["\x65\x72\x72\157\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\162\x43\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function CapturesByFile_delete() { $strDeleteFileName = urldecode($this->get("\x66\x69\x6c\145")); if (!isset($strDeleteFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\141\x70\164\x75\162\145\163\x5f\155\x6f\144\145\154"); $ret = $this->Captures_model->delete_CapturesByFile($strDeleteFileName); if ($ret > 0) { $this->set_response(["\x65\x72\x72\x6f\x72\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function CapturesByStudyUIDForGroup_get() { $strUID = urldecode($this->get("\x73\x74\165\144\x79\165\x69\x64")); if (!isset($strUID)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\x61\160\164\165\x72\145\163\137\155\x6f\x64\x65\154"); $ret = $this->Captures_model->get_CapturesByStudyUIDForGroup($strUID); if (count($ret) > 0) { return $this->set_response(["\x65\x72\162\157\162\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\162\x43\157\x64\145"], "\x73\x74\162\107\x72\157\165\x70\116\x61\x6d\x65" => $ret[0]["\x69\x6d\x67\137\143\x74\x5f\156\141\155\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function CapturesByChartNoAndGroup_get() { $strChartNo = urldecode($this->get("\x63\150\141\x72\x74\156\157")); $strGroupName = urldecode($this->get("\147\x72\157\x75\x70")); if (!isset($strChartNo) || !isset($strGroupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\103\x61\160\164\165\162\x65\x73\137\x6d\x6f\x64\x65\154"); $ret = $this->Captures_model->get_CapturesByChartNoAndGroup($strChartNo, $strGroupName); $vecCaptureList = array(); if (count($ret) > 0) { foreach ($ret as $row) { $sCaptureImage = new SCaptureImage(); $sCaptureImage->strStudyUID = $row["\151\155\147\x5f\x73\164\x75\x64\x79\137\165\151\144"]; $sCaptureImage->strCTName = $row["\x69\x6d\147\x5f\143\164\137\156\x61\x6d\x65"]; $sCaptureImage->strFileName = $row["\x69\x6d\x67\x5f\146\x69\x6c\x65\137\x6e\141\x6d\x65"]; $sCaptureImage->dtCaptureDateTime = currentDateFormat(DATEFORMAT_ISO8601, $row["\x69\x6d\x67\137\x63\x61\160\164\x75\162\x65\x5f\144\141\164\x65"]); $sCaptureImage->strChartNo = $row["\x69\155\147\137\143\x68\141\162\164\x5f\156\157"]; $sCaptureImage->strDcmFileCount = $row["\151\155\147\137\162\x65\x73\145\x72\166\145\144\61"]; $sCaptureImage->strComment = $row["\151\155\x67\137\x63\157\x6d\x6d\145\156\x74"]; array_push($vecCaptureList, $sCaptureImage); } return $this->set_response(["\145\x72\x72\157\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\162\x43\x6f\x64\x65"], "\166\145\x63\x43\141\160\164\165\x72\x65\114\151\x73\x74" => $vecCaptureList], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\162\157\x72\103\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\x6f\162\x43\x6f\x64\145"], "\166\x65\x63\x43\x61\x70\x74\x75\x72\145\x4c\151\163\164" => $vecCaptureList], REST_Controller::HTTP_OK); } } public function E3Reports_post() { $sE3DBReport = $this->post(); if (!isset($sE3DBReport["\x6e\x49\156\144\x65\x78"]) || !isset($sE3DBReport["\163\164\x72\x43\x68\141\162\x74\116\x6f"]) || !isset($sE3DBReport["\163\164\162\x43\157\155\155\x65\x6e\164"]) || !isset($sE3DBReport["\163\x74\x72\x46\151\154\145\116\141\x6d\145"]) || !isset($sE3DBReport["\x73\164\x72\x54\x69\x74\154\x65"]) || !isset($sE3DBReport["\x74\151\155\x65\103\162\145\141\x74\x69\x6f\156"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\63\x52\x65\160\x6f\162\164\163\x5f\155\x6f\144\x65\x6c"); $ret = $this->E3Reports_model->post_E3Reports($sE3DBReport); if ($ret > 0) { return $this->set_response(["\145\x72\x72\x6f\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\x72\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function E3Reports_put() { $sE3DBReport = $this->put(); if (!isset($sE3DBReport["\156\111\156\144\x65\170"]) || !is_numeric($sE3DBReport["\x6e\x49\x6e\144\145\x78"]) || !isset($sE3DBReport["\163\164\x72\x43\150\x61\162\x74\x4e\157"]) || !isset($sE3DBReport["\x73\164\162\x43\x6f\155\x6d\145\x6e\x74"]) || !isset($sE3DBReport["\x73\164\162\x46\x69\154\145\116\141\x6d\x65"]) || !isset($sE3DBReport["\163\x74\162\124\x69\x74\x6c\x65"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\63\x52\145\x70\x6f\162\164\x73\x5f\155\x6f\144\145\x6c"); $ret = $this->E3Reports_model->put_E3Reports($sE3DBReport); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\x72\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function E3ReportsByIndex_delete() { $nIndex = urldecode($this->get("\x69\156\144\x65\x78")); if (!isset($nIndex) || !is_numeric($nIndex)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\x33\x52\x65\160\x6f\x72\164\163\137\155\157\144\x65\154"); $ret = $this->E3Reports_model->delete_E3ReportsByIndex($nIndex); if ($ret > 0) { return $this->set_response(["\145\x72\162\157\x72\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function E3ReportsByChartNo_get() { $strChartNo = urldecode($this->get("\x63\x68\141\162\x74\156\x6f")); if (!isset($strChartNo)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\63\122\145\160\157\x72\164\163\x5f\155\x6f\144\145\154"); $ret = $this->E3Reports_model->get_E3ReportsByChartNo($strChartNo); $vecReportInfo = array(); if (count($ret) > 0) { foreach ($ret as $row) { $reportData = new SE3DBReport(); $reportData->nIndex = intval($row["\162\x70\164\x5f\x69\156\x64\x65\x78"]); $reportData->strChartNo = $row["\x72\x70\164\137\x63\x68\x61\162\x74\x5f\x6e\157"]; $reportData->strTitle = $row["\162\160\x74\x5f\x74\151\164\154\x65"]; $reportData->strFileName = $row["\162\160\x74\137\146\151\154\145\x5f\x6e\x61\155\145"]; $reportData->strComment = $row["\x72\x70\x74\137\x63\x6f\155\x6d\145\156\164"]; $reportData->timeCreation = $row["\x72\x70\x74\x5f\143\162\x65\141\x74\151\157\x6e\x5f\144\141\x74\x65"]; array_push($vecReportInfo, $reportData); } return $this->set_response(["\x65\162\x72\157\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\x43\x6f\x64\145"], "\x76\x65\x63\122\145\x70\157\x72\164\x49\x6e\x66\x6f" => $vecReportInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\162\103\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\x6f\x72\x43\157\x64\145"], "\x76\x65\143\x52\x65\160\x6f\162\x74\111\x6e\x66\x6f" => $vecReportInfo], REST_Controller::HTTP_OK); } } public function E3ReportsByFile_get() { $strFileName = urldecode($this->get("\146\151\154\145")); if (empty($strFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\63\x52\x65\x70\157\x72\164\x73\137\155\157\x64\145\154"); $ret = $this->E3Reports_model->get_E3ReportsByFile($strFileName); $vecReportInfo = array(); if (count($ret) > 0) { foreach ($ret as $row) { $reportData = new SE3DBReport(); $reportData->nIndex = intval($row["\162\160\x74\x5f\151\x6e\144\145\170"]); $reportData->strChartNo = $row["\162\x70\x74\x5f\x63\150\x61\162\164\137\x6e\x6f"]; $reportData->strTitle = $row["\162\160\164\x5f\x74\x69\x74\x6c\x65"]; $reportData->strFileName = $row["\x72\x70\x74\137\146\151\154\x65\x5f\x6e\x61\155\145"]; $reportData->strComment = $row["\x72\160\164\x5f\x63\x6f\155\155\145\156\164"]; $reportData->timeCreation = currentDateFormat(DATEFORMAT_ISO8601, $row["\x72\160\x74\137\x63\162\x65\x61\x74\151\x6f\x6e\x5f\144\141\164\x65"]); array_push($vecReportInfo, $reportData); } return $this->set_response(["\145\x72\162\x6f\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\x72\x43\157\x64\145"], "\166\145\143\122\145\x70\x6f\162\x74\x49\x6e\x66\157" => $vecReportInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\157\x72\103\x6f\144\x65"], "\x76\145\143\122\145\160\x6f\x72\164\x49\x6e\146\x6f" => $vecReportInfo], REST_Controller::HTTP_OK); } } public function E3ReportSettings_get() { load_model($this, "\x45\63\x52\145\x70\x6f\162\164\123\x65\164\164\x69\x6e\147\x73\137\x6d\x6f\x64\145\154"); $ret = $this->E3ReportSettings_model->get_E3ReportSettings(); if (is_object($ret)) { return $this->set_response(["\x65\162\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\162\103\x6f\x64\145"], "\x73\x52\145\160\x6f\x72\x74\123\x65\x74\164\151\156\x67" => $ret], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\162\103\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\x72\x43\x6f\144\x65"], "\163\122\x65\x70\157\162\164\x53\x65\164\x74\151\156\147" => (object) array()], REST_Controller::HTTP_OK); } } public function E3ReportTemplatesByIndex_delete() { $nIndex = urldecode($this->get("\x69\x6e\144\x65\170")); if (!isset($nIndex)) { return $this->set_response(["\x65\162\162\157\162\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\x33\x52\x65\x70\157\x72\x74\x54\x65\x6d\x70\x6c\x61\x74\145\x73\x5f\155\157\x64\145\154"); $ret = $this->E3ReportTemplates_model->delete_E3ReportTemplatesByIndex($nIndex); if ($ret > 0) { $this->set_response(["\x65\162\x72\x6f\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\x6f\162\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\157\x72\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function E3ReportTemplates_get() { load_model($this, "\x45\63\122\x65\160\157\x72\164\124\145\x6d\x70\x6c\141\164\145\x73\x5f\x6d\x6f\x64\x65\x6c"); $ret = $this->E3ReportTemplates_model->get_E3ReportTemplates(); if (is_array($ret)) { return $this->set_response(["\145\162\x72\157\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\162\103\x6f\144\145"], "\x76\x65\x63\x52\145\160\157\x72\x74\124\x65\x6d\160\x6c\x61\x74\145" => $ret], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\x72\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\x72\x43\x6f\x64\145"], "\x76\145\x63\x52\145\x70\157\162\x74\124\x65\155\160\154\141\x74\x65" => array()], REST_Controller::HTTP_OK); } } public function E3ReportTemplates_post() { $SE3DBReportTemplate = $this->post(); if (!isset($SE3DBReportTemplate["\x73\164\x72\116\x61\x6d\145"]) || !isset($SE3DBReportTemplate["\163\x74\162\106\151\154\x65\116\x61\155\145"])) { return $this->set_response(["\x65\162\x72\157\162\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\63\122\145\x70\157\x72\164\x54\x65\x6d\x70\x6c\141\x74\x65\163\137\155\x6f\x64\145\x6c"); $ret = $this->E3ReportTemplates_model->post_E3ReportTemplates($SE3DBReportTemplate); if ($ret > 0) { $this->set_response(["\x65\x72\162\x6f\x72\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\162\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\x72\x43\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\157\162\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function E3ReportTemplates_put() { $SE3DBReportTemplate = $this->put(); if (!isset($SE3DBReportTemplate["\156\x49\x6e\144\145\170"]) || !isset($SE3DBReportTemplate["\x73\164\x72\x4e\141\x6d\145"]) || !isset($SE3DBReportTemplate["\x73\164\162\x46\x69\x6c\x65\x4e\x61\155\x65"])) { return $this->set_response(["\145\162\x72\x6f\x72\103\157\144\x65" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\63\x52\145\160\157\162\164\x54\145\155\160\154\141\164\x65\163\x5f\x6d\x6f\x64\x65\x6c"); $ret = $this->E3ReportTemplates_model->put_E3ReportTemplates($SE3DBReportTemplate); if ($ret > 0) { $this->set_response(["\145\x72\162\157\162\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\162\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\162\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\162\103\157\x64\145"]], REST_Controller::HTTP_OK); } } public function E3ReportTemplatesByFile_get() { $strFileName = urldecode($this->get("\x66\x69\x6c\x65")); if (empty($strFileName)) { return $this->set_response(["\x65\162\x72\x6f\162\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\63\122\145\x70\x6f\x72\x74\124\145\x6d\x70\154\x61\x74\x65\x73\137\x6d\x6f\144\x65\x6c"); $ret = $this->E3ReportTemplates_model->get_E3ReportTemplatesByFile($strFileName); if (is_object($ret)) { return $this->set_response(["\x65\x72\x72\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\162\103\x6f\144\x65"], "\x73\104\145\146\141\165\x6c\164\124\145\155\160\x6c\x61\x74\x65" => $ret], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\x72\x43\x6f\x64\x65"], "\163\104\x65\146\x61\165\x6c\x74\x54\145\155\160\x6c\x61\x74\x65" => (object) array()], REST_Controller::HTTP_OK); } } public function E3ReportSettingsForDefaultTemplate_get() { load_model($this, "\105\x33\x52\145\160\157\162\164\x53\x65\164\164\x69\156\147\163\x5f\155\157\144\x65\x6c"); $ret = $this->E3ReportSettings_model->Get_E3ReportSettingsForDefaultTemplate(); if (is_string($ret) == true && empty($ret) == false) { return $this->set_response(["\x65\162\x72\157\162\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\x72\x43\157\x64\x65"], "\163\x74\162\104\x65\146\x61\165\154\164\124\x65\155\x70\x6c\141\x74\145\x46\x69\154\145\156\x61\155\x65" => $ret], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\x6f\162\x43\x6f\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\x6f\162\103\157\144\x65"], "\163\x74\x72\104\145\x66\141\165\154\x74\x54\x65\x6d\x70\x6c\141\164\145\x46\x69\154\145\x6e\x61\155\x65" => ''], REST_Controller::HTTP_OK); } } public function E3ReportSettingsForDefaultTemplate_put() { $SE3DBReportSetting = $this->put(); if (!isset($SE3DBReportSetting["\163\164\x72\x44\x65\x66\141\x75\154\x74\124\145\x6d\x70\x6c\141\164\145\x46\x69\x6c\145\x6e\141\155\x65"])) { return $this->set_response(["\145\162\162\157\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\63\x52\x65\160\x6f\162\164\x53\x65\x74\x74\x69\156\147\163\137\x6d\x6f\x64\145\x6c"); $ret = $this->E3ReportSettings_model->put_E3ReportSettingsForDefaultTemplate($SE3DBReportSetting); if ($ret > 0) { $this->set_response(["\145\162\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\162\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\x72\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } public function E3PresetCommentsByIndex_delete() { $nIndex = urldecode($this->get("\151\156\144\x65\170")); if (!isset($nIndex)) { return $this->set_response(["\145\162\162\157\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\63\120\162\x65\x73\x65\x74\x43\157\155\155\145\x6e\x74\163\137\x6d\157\x64\145\154"); $ret = $this->E3PresetComments_model->delete_E3PresetCommentsByIndex($nIndex); if ($ret > 0) { $this->set_response(["\145\162\162\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\157\x72\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\162\103\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\162\x43\x6f\144\x65"]], REST_Controller::HTTP_OK); } } public function E3PresetComments_get() { load_model($this, "\x45\63\120\x72\145\x73\x65\164\x43\x6f\x6d\x6d\x65\x6e\164\163\137\x6d\x6f\x64\145\154"); $ret = $this->E3PresetComments_model->get_E3PresetComments(); if (is_array($ret)) { return $this->set_response(["\145\162\162\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\162\x43\157\144\x65"], "\166\x65\x63\x50\x72\x65\163\145\x74\103\x6f\x6d\x6d\145\x6e\x74" => $ret], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\x6f\x72\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\x72\x6f\162\x43\x6f\x64\145"], "\166\x65\x63\120\x72\x65\163\x65\x74\103\157\155\155\145\156\x74" => array()], REST_Controller::HTTP_OK); } } public function E3PresetComments_post() { $SE3DBPresetComment = $this->post(); if (!isset($SE3DBPresetComment["\163\164\x72\x54\x69\x74\154\x65"]) || !isset($SE3DBPresetComment["\163\x74\162\103\157\x6d\x6d\x65\156\164"])) { return $this->set_response(["\x65\x72\x72\x6f\x72\x43\157\x64\145" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\x33\x50\162\x65\x73\x65\x74\103\x6f\155\x6d\145\156\x74\163\137\x6d\x6f\144\145\154"); $ret = $this->E3PresetComments_model->post_E3PresetComments($this->post()); if ($ret > 0) { $this->set_response(["\x65\162\x72\x6f\x72\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\x43\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\162\x43\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\157\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } } public function E3PresetComments_put() { $SE3DBPresetComment = $this->put(); if (!isset($SE3DBPresetComment["\156\111\x6e\144\145\x78"]) || !isset($SE3DBPresetComment["\x73\164\162\124\x69\164\x6c\145"]) || !isset($SE3DBPresetComment["\163\x74\x72\103\157\155\155\x65\156\x74"])) { return $this->set_response(["\x65\x72\x72\x6f\162\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\x33\120\x72\145\x73\x65\x74\103\x6f\155\x6d\x65\156\164\x73\x5f\155\157\144\x65\x6c"); $ret = $this->E3PresetComments_model->put_E3PresetComments($SE3DBPresetComment); if ($ret > 0) { $this->set_response(["\145\x72\162\157\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\162\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\x72\157\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\162\162\157\x72\103\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function E3ReportTemplatesByIndexForVisibe_put() { $SE3DBReportTemplate = $this->put(); if (!isset($SE3DBReportTemplate["\x6e\111\156\x64\145\x78"]) || !isset($SE3DBReportTemplate["\142\126\x69\x73\151\x62\x6c\x65"])) { return $this->set_response(["\145\x72\162\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\x33\x52\145\160\x6f\x72\164\x54\x65\155\160\x6c\141\164\x65\163\x5f\155\157\144\145\154"); $ret = $this->E3ReportTemplates_model->put_E3ReportTemplatesByIndexForVisibe($SE3DBReportTemplate); if ($ret > 0) { $this->set_response(["\145\x72\x72\157\162\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\162\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\157\162\103\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } } public function E3ReportTemplateEditStates_get() { load_model($this, "\105\63\122\145\x70\x6f\x72\164\124\145\155\x70\154\x61\x74\145\x45\x64\x69\x74\x53\x74\141\x74\x65\163\x5f\155\157\x64\145\154"); $ret = $this->E3ReportTemplateEditStates_model->get_E3ReportTemplateEditStates(); if ($ret["\x65\162\x72\x6f\162\103\157\x64\145"] == VERR_COMMON_SUCCESS) { $this->set_response(["\145\162\x72\157\162\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\x72\103\x6f\144\145"], "\163\124\145\x6d\160\154\x61\x74\145\x45\x64\151\164\123\164\141\164\x65" => $ret["\163\124\145\155\160\x6c\141\164\x65\x45\144\151\x74\123\164\x61\x74\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\157\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\157\x72\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } } public function E3ReportTemplateEditStates_put() { $sTemplateEditState = $this->put(); if (!isset($sTemplateEditState) || empty($sTemplateEditState)) { vt_loge("\105\x33\x52\x65\160\157\x72\x74\124\145\x6d\160\154\141\x74\x65\105\144\x69\164\x53\x74\141\x74\x65\x73\137\x70\165\164\x20\101\160\151\x2e\40" . "\x50\x61\x72\141\x6d\x65\164\145\162\x73\x20\141\x72\x65\40\x65\x6d\x70\x74\x79\56"); return $this->set_response(["\145\162\162\157\x72\103\157\144\145" => returnSetResponse(VERR_COMMON_INVALID)], REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x45\x33\122\145\160\157\162\x74\124\145\x6d\160\154\x61\164\x65\105\144\x69\164\x53\x74\x61\x74\145\x73\137\155\157\144\145\154"); $ret = $this->E3ReportTemplateEditStates_model->put_E3ReportTemplateEditStates($sTemplateEditState); if ($ret["\x65\162\162\x6f\162\x43\157\x64\145"] == VERR_COMMON_SUCCESS) { $this->set_response(["\145\162\162\157\x72\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\x72\x43\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\162\103\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\157\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/Fs.php b/server/original/www/ezwebserver/src/application/controllers/v1/Fs.php new file mode 100644 index 0000000..c6cd3e2 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/Fs.php @@ -0,0 +1,7 @@ +Datafile_model->getSysFilePathByType($type, combineFilePath(array($path))); if ($checkCache === FALSE) { $this->Datafile_model->checkMultiDrive($fileAbsFilePath); if (!file_exists($fileAbsFilePath)) { header("\x43\x6f\156\164\x65\156\x74\55\124\x79\160\145\x3a\40\141\x70\160\x6c\151\x63\141\x74\x69\157\156\57\x6a\x73\x6f\156"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $decrypted_file = APPPATH . "\x63\x61\x63\x68\x65\x5c" . $type . "\134" . $path . "\56\x41\x56\111"; decrypt_provided_consult_video($fileAbsFilePath, $decrypted_file); if (!file_exists($decrypted_file)) { header("\x43\157\156\x74\x65\156\164\55\x54\171\x70\145\72\x20\141\160\x70\154\151\x63\x61\164\x69\157\x6e\x2f\152\x73\x6f\x6e"); return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_NOT_FOUND); } $output_file = APPPATH . "\143\141\x63\x68\145\134" . $type . "\x5c" . sha1($path, FALSE); $ret = convert_video_to_x264($decrypted_file, $output_file); if ($ret !== TRUE) { header("\x43\x6f\x6e\164\145\156\164\x2d\124\171\x70\x65\x3a\40\x61\x70\x70\x6c\x69\143\141\x74\x69\x6f\x6e\57\x6a\x73\x6f\x6e"); return $this->set_response(array("\145\x72\x72\157\x72\x43\157\x64\x65" => VERR_COMMON_IO, "\145\162\162\x6f\162\115\145\x73\163\x61\147\x65" => $ret), REST_Controller::HTTP_NOT_FOUND); } unlink($decrypted_file); return streaming($output_file); } else { return streaming($checkCache); } case "\123\103\125": $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType($type, combineFilePath(array($path))); $exclude = ["\144\143\155", "\160\156\147", "\164\151\x66", "\164\151\x66\146", "\x6a\160\x67", "\152\x70\x65\x67", "\142\155\x70", "\x64\x6f\143", "\144\x6f\143\170", "\x70\x70\x74", "\x70\x70\x74\170", "\160\x64\146"]; $include = ["\141\166\151", "\x6d\157\x76", "\x6d\160\x34", "\167\155\x76"]; if (in_array(getFileExtension($path), $exclude)) { return $this->Datafile_model->DownloadFile($fileAbsFilePath); } else { if (in_array(getFileExtension($path), $include)) { $checkCache = checkCacheExistsByTypeAndName($type, $path); if ($checkCache === FALSE) { $this->Datafile_model->checkMultiDrive($fileAbsFilePath); if (!file_exists($fileAbsFilePath)) { header("\103\x6f\x6e\164\x65\x6e\164\55\x54\x79\x70\145\72\40\x61\160\x70\x6c\x69\143\141\164\151\x6f\x6e\x2f\152\x73\x6f\x6e"); return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_NOT_FOUND); } $output_file = APPPATH . "\x63\141\x63\150\x65\x5c" . $type . "\134" . sha1($path, FALSE); $ret = convert_video_to_x264($fileAbsFilePath, $output_file); if ($ret === FALSE) { header("\103\x6f\x6e\164\145\156\164\x2d\x54\171\160\145\72\x20\x61\160\x70\154\151\143\x61\x74\x69\x6f\156\57\152\163\x6f\x6e"); return $this->set_response(array("\145\x72\162\x6f\x72\x43\x6f\144\x65" => VERR_COMMON_IO, "\145\x72\162\x6f\x72\x4d\145\x73\163\x61\x67\145" => $ret), REST_Controller::HTTP_NOT_FOUND); } return streaming($output_file); } else { return streaming($checkCache); } } else { log_message("\x65\x72\162\x6f\x72", getFileExtension($path) . "\40\x6e\157\x74\x20\x73\x75\160\x70\x6f\x72\164\145\144\40\x65\170\164\x2e"); header("\103\157\x6e\x74\x65\x6e\x74\x2d\124\171\160\145\72\x20\x61\160\160\x6c\x69\143\x61\x74\x69\x6f\156\57\152\x73\x6f\x6e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } case "\123\105\124": $filePath = $this->Datafile_model->getSysFilePathByOnlyType(strtoupper($type), $path); $this->Datafile_model->checkMultiDrive($filePath); if (file_exists($filePath)) { header("\x43\157\x6e\x74\145\x6e\x74\55\124\171\160\x65\72\x20\x6f\x63\x74\x65\x74\x2d\163\164\x72\x65\141\155"); header("\130\x2d\x43\157\x6e\x74\145\156\x74\55\124\171\x70\145\55\117\x70\164\x69\x6f\156\x73\72\40\x6e\157\x73\x6e\x69\x66\x66"); header("\x43\x6f\x6e\x74\x65\x6e\x74\55\104\x69\163\x70\x6f\163\151\164\x69\x6f\x6e\x3a\40\141\164\164\x61\x63\x68\x6d\145\156\164\73\x20\x66\x69\154\145\x6e\141\x6d\x65\x20\75\40\42" . $path . "\42"); header("\x43\x6f\156\x74\x65\x6e\164\x2d\124\162\141\x6e\163\146\145\162\x2d\x45\156\x63\157\x64\151\156\x67\x3a\x20\x62\x69\x6e\141\162\171"); header("\103\x61\143\x68\x65\55\103\157\156\164\x72\157\154\72\x20\156\x6f\x2d\x73\x74\x6f\x72\x65\54\x20\x6e\x6f\55\x63\x61\143\x68\145\x2c\x20\155\x75\163\x74\55\x72\x65\x76\141\x6c\x69\144\141\x74\145"); header("\x43\x6f\156\164\x65\156\x74\55\x4c\145\156\x67\x74\x68\72\40" . filesize($filePath)); return readfile($filePath); } else { $return = FALSE; break; } default: $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType($type, combineFilePath(array($path))); $this->Datafile_model->checkMultiDrive($fileAbsFilePath); if (!file_exists($fileAbsFilePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $return = $this->Datafile_model->DownloadFile($fileAbsFilePath); break; } if ($return === FALSE) { header("\x43\157\x6e\164\x65\156\164\x2d\x54\x79\160\145\x3a\x20\141\x70\160\x6c\x69\x63\141\164\x69\157\156\x2f\152\163\x6f\156"); return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_BAD_REQUEST); } } private function _saveResourceFile($fileType, $fileName, $fileExt) { $fileNameExt = removeFileExtension($fileName) . "\56" . $fileExt; $filePath = $this->Datafile_model->getResourceFilePath($fileType, $fileNameExt); checkPostUploadFile("\141\x74\164\141\x63\150\x65\144\106\x69\x6c\145", $filePath); return basename($filePath); } private function _saveReportFile($chartNo, $fileName, $comment) { $reportName = ''; if (strstr($fileName, "\174")) { separateString($fileName, "\174", $reportName, $comment); } else { $reportName = $fileName; } $reportFilePath = $this->Datafile_model->GetNewResourcePath(FILETYPE_REPORT, "\x52\x65\x70\x6f\x72\x74", EXT_REPORT); checkPostUploadFile("\x61\164\164\141\x63\x68\145\x64\x46\151\x6c\x65", $reportFilePath); $thumbnailFileName = $this->Datafile_model->getThumbnailFileName(FILETYPE_RPTTHM, basename($reportFilePath)); $thumbnailFileExt = EXT_IMGTHM; $thmFilePath = $this->Datafile_model->getResourceFilePath(FILETYPE_RPTTHM, $thumbnailFileName . "\56" . $thumbnailFileExt); load_model($this, "\145\62\x72\x70\x74\137\x6d\157\x64\x65\154"); $this->e2rpt_model->insertReport($chartNo, $reportName, basename($reportFilePath), $comment); checkPostUploadFile("\164\x68\155\106\x69\x6c\145", $thmFilePath, false); return removeFileExtension(basename($reportFilePath)); } private function _saveProjectFile($chartNo, $fileName, $ext) { if (strstr($fileName, "\174")) { $fileExt = strtok($fileName, "\174"); $ctName = strtok("\x7c"); } else { $fileExt = $ext; $ctName = $fileName; } $filePath = $this->Datafile_model->getNewProjectFilePath($ctName, $fileExt); $thumbnailFileName = $this->Datafile_model->getThumbnailFileName(FILETYPE_PRJTHM, basename($filePath)); $thumbnailFileExt = $this->Datafile_model->getProjectThumbnailFileExtension($fileExt); $thmFilePath = $this->Datafile_model->getResourceFilePath(FILETYPE_PRJTHM, $thumbnailFileName . "\x2e" . $thumbnailFileExt); $fileCheck = checkPostUploadFile("\141\164\x74\x61\143\x68\x65\x64\x46\151\154\x65", $filePath); if ($fileCheck === FALSE) { return FALSE; } checkPostUploadFile("\164\x68\155\x46\x69\154\x65", $thmFilePath, false); return removeFileExtension(basename($filePath)); } private function _moveSysDir($fileType, $fromPath, $toPath) { $fromPathCheck = checkDotDotInDirectory($fromPath); $toPathCheck = checkDotDotInDirectory($toPath); if ($fromPath === false || $toPathCheck === false) { return false; } $absFromDirPath = $this->Datafile_model->getSysFilePathByType($fileType, $fromPath); $absToDirPath = $this->Datafile_model->getSysFilePathByType($fileType, $toPath); $this->Datafile_model->checkMultiDrive($absFromDirPath, $absToDirPath); return renameDir($absFromDirPath, $absToDirPath); } private function _deleteSysDir($fileType, $dirPath) { checkDotDotInDirectory($dirPath); $absDirPath = $this->Datafile_model->getSysFilePathByType($fileType, $dirPath); if ($this->Datafile_model->rmDirRecurMultiDrive($absDirPath) === false) { return false; } else { return true; } } private function _getDiskSpace() { $configIni = get_ini_array(APPPATH . INI_CONFIG_PATH); $baseDir = $configIni["\105\172\x57\x65\x62\x53\145\162\x76\145\x72"]["\x66\155\x5f\164\x6f\x70\137\144\151\162"]; $diskSpace = disk_free_space(baseDir); return round($diskSpace); } private function _deleteSampleCaseUserContents($fileName, $contentID) { if (strstr($fileName, "\174")) { $contentID = strtok($fileName, "\x7c"); $fileName = strtok("\x7c"); } $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType("\123\x43\x55", $fileName); $fileAbsThumbnailFilePath = $this->Datafile_model->getSampleCaserUserContentThumbnailFilePath($fileAbsFilePath); $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); $this->Datafile_model->deleteFileMultiDrive($fileAbsThumbnailFilePath); load_model($this, "\123\143\x63\157\156\x74\145\156\x74\137\155\x6f\144\145\x6c"); $ret = $this->Sccontent_model->deleteUserContent($contentID); return $ret > 0 ? TRUE : FALSE; } private function _deleteSysFile($fileType, $fileName) { $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType($fileType, $fileName); $ret = $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); return $ret; } private function _updateSampleCaseUserContents($fileName) { $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType("\x53\x43\125", $fileName); checkPostUploadFile("\x61\x74\164\x61\143\x68\x65\x64\106\x69\154\x65", $fileAbsFilePath); $ret = $this->Datafile_model->deleteFileSubDrive($fileAbsFilePath); return $ret; } private function _updateSysFile($fileType, $fileName) { $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType($fileType, $fileName); checkPostUploadFile("\x61\x74\x74\x61\143\x68\145\x64\106\x69\154\x65", $fileAbsFilePath); $ret = $this->Datafile_model->deleteFileSubDrive($fileAbsFilePath); return $ret; } function __construct() { parent::__construct(); $this->load->enum(); $this->load->struct(); load_model($this, "\x44\x61\164\x61\146\151\x6c\145\x5f\155\x6f\144\x65\154"); $this->load->helper("\166\x74\x5f\x76\x69\144\145\157\137\146\151\x6c\145"); } public function ImageFileInfosByFileName_get() { $strServerFilePath = urldecode($this->get("\x66\151\x6c\x65\x6e\141\155\145")); if (!isset($strServerFilePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\141\x67\145\106\151\x6c\x65\111\156\x66\x6f\x73\x5f\x6d\157\144\145\x6c"); $data = $this->ImageFileInfos_model->get_ImageFileInfosByFileName($strServerFilePath); if ($data === false) { return $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } return $this->set_response(["\145\x72\x72\157\x72\x43\x6f\x64\x65" => ErrorCode::SUCCESS, "\x62\105\x78\x69\163\164\163" => $data["\x62\x45\170\151\x73\x74\163"], "\156\x46\x69\x6c\x65\123\151\x7a\x65" => $data["\x6e\x46\151\154\145\x53\x69\172\145"], "\163\x74\x72\106\151\x6c\145\x50\141\164\x68" => $data["\163\x74\162\x46\x69\154\x65\x50\x61\x74\150"]], REST_Controller::HTTP_OK); } public function CTFilesByChartNo_post() { $ret = VSUCCESS; $ctDirPath = ''; load_model($this, "\x43\124\x46\151\154\x65\163\137\155\x6f\144\x65\x6c"); $ret = $this->CTFiles_model->post_CTFilesByChartNo($this->post(), $ctDirPath); if ($ret == VSUCCESS) { return $this->set_response(["\x65\x72\162\x6f\162\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\162\x43\x6f\144\145"], "\x75\x70\x64\x61\164\x65\144\x46\x69\154\145\x54\x79\160\x65" => "\103\124", "\165\160\x64\x61\x74\145\x64\106\151\154\145\x4e\x61\155\x65" => basename($ctDirPath)], REST_Controller::HTTP_OK); } else { if ($ret == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse($ret), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(returnSetResponse($ret), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function CTFilesByChartNoAndPath_get() { vt_logw("\104\145\160\162\x65\143\x61\x74\145\x64\x2e\x20\125\163\145\40\x47\x65\x74\137\103\124\x46\151\154\x65\x73\102\171\120\141\x74\150\x20\x69\156\163\x74\x65\141\144\x2e"); $chartNo = urldecode($this->get("\143\150\141\x72\164\x6e\157")); $filePath = urldecode($this->get("\x70\141\x74\x68")); $fileAbsFilePath = $this->Datafile_model->getAbsCtFilePath($filePath); $this->Datafile_model->DownloadFile($fileAbsFilePath); } public function CTFilesByChartNoAndPath_delete() { $filePath = urldecode($this->get("\160\141\164\150")); $chartNo = urldecode($this->get("\x63\x68\141\x72\164\156\157")); load_model($this, "\103\124\106\x69\154\145\x73\137\155\157\x64\145\154"); $ret = $this->CTFiles_model->delete_CTFilesByChartNoAndPath($chartNo, $filePath); if ($ret["\145\x72\162\157\162\x43\157\x64\x65"] == VERR_COMMON_SUCCESS) { vt_log_evt(get_called_class(), EEventLogType::getTypeString((new EEventLogType())->eDataDeleted), "\x44\x65\154\x65\x74\x65\x64\40\151\155\141\x67\x65\x2e\40\x43\x68\x61\162\x74\40\156\157\x20\72\x20{$chartNo}\x2c\x20\x46\x69\154\145\x20\x6e\x61\x6d\x65\40\x3a\40{$filePath}"); return $this->set_response(["\x65\162\x72\157\x72\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\x72\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function CTFilesByPath_get() { $filePath = urldecode($this->get("\160\x61\x74\150")); $fileAbsFilePath = $this->Datafile_model->getAbsCtFilePath($filePath); $this->Datafile_model->DownloadFile($fileAbsFilePath); } public function CTFilesByPath_delete() { vt_logw("\104\x65\160\x72\x65\x63\141\164\x65\144\56\x20\125\163\x65\40\x44\x65\154\145\164\145\137\x43\x54\x46\151\154\145\x73\x42\171\103\x68\x61\x72\x74\x4e\157\x41\156\x64\x50\141\164\x68\x20\151\156\x73\164\x65\141\x64\56"); $filePath = urldecode($this->get("\160\x61\164\150")); load_model($this, "\x45\x32\x69\x6d\147\137\155\157\x64\145\x6c"); $this->E2img_model->delete($filePath); $dirAbsPath = $this->Datafile_model->getAbsCtDirPath($filePath); $ret = $this->Datafile_model->rmDirRecurMultiDrive($dirAbsPath); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_IMGTAG, $filePath); $retTag = $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_IMGTHM, $filePath); $retThumbnail = $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_IMGRAW, $filePath); $retRaw = $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); if ($ret !== FALSE) { return $this->set_response(["\x65\162\162\157\162\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\x72\103\x6f\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function CTFilesByChartNoAndPathForFirst_get() { $filePath = urldecode($this->get("\160\141\x74\x68")); if (!isset($filePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileAbsFilePath = $this->Datafile_model->getAbsCtFilePath($filePath); if ($fileAbsFilePath == null) { return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_BAD_REQUEST); } $dirToSaveDicom = $this->Datafile_model->getTempDir($filePath); $tempDicomFilePath = createOneDicomFileFromCT($fileAbsFilePath, $dirToSaveDicom); if ($tempDicomFilePath == null) { return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_BAD_REQUEST); } $this->Datafile_model->DownloadFile($tempDicomFilePath); } public function CTFilesByChartNoAndPathR2_delete() { $chartNo = urldecode($this->get("\x63\150\x61\162\164\156\157")); $filePath = urldecode($this->get("\x70\x61\x74\150")); $force = urldecode($this->get("\146\157\x72\143\145")); load_model($this, "\103\x54\x46\151\x6c\145\x73\x52\62\x5f\x6d\x6f\x64\145\154"); $ret = $this->CTFilesR2_model->delete_CTFilesByChartNoAndPathR2($this->get()); if ($ret["\145\162\x72\x6f\x72\103\x6f\144\145"] == VERR_COMMON_SUCCESS) { vt_log_evt(get_called_class(), EEventLogType::getTypeString((new EEventLogType())->eDataDeleted), "\104\145\x6c\145\x74\145\x64\x20\x69\155\x61\147\145\x2e\40\x43\150\x61\162\x74\x20\x6e\x6f\40\72\x20{$chartNo}\x2c\40\x46\x69\x6c\145\40\156\x61\x6d\145\x20\72\x20{$filePath}"); return $this->set_response(createResponse(VERR_COMMON_SUCCESS), REST_Controller::HTTP_OK); } else { if ($ret["\x65\x72\162\x6f\x72\103\x6f\144\x65"] == VERR_COMMON_SUCCESS || $ret["\145\162\x72\157\162\x43\x6f\144\145"] == VERR_E2_IMAGE_IN_GROUP) { return $this->set_response(createResponse($ret["\x65\162\162\x6f\162\103\x6f\x64\145"]), REST_Controller::HTTP_OK); } else { return $this->set_response(createResponse($ret["\145\x72\x72\x6f\162\103\157\144\x65"]), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function FilesByTypeAndNameAndExt_get() { $type = urldecode($this->get("\164\171\x70\145")); $name = urldecode($this->get("\x6e\x61\x6d\x65")); $ext = urldecode($this->get("\x65\170\164")); if (!isset($type) || !isset($name) || !isset($ext)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $type = strtoupper($type); switch ($type) { case FILETYPE_PROJECT: $files = $this->Datafile_model->getProjectFileList($name, $ext); break; case FILETYPE_E3FILE: $files = $this->Datafile_model->getE3FileList($name, $ext); break; default: return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (count($files) > 0) { return $this->set_response(["\x65\x72\x72\157\162\103\157\144\x65" => ErrorCode::SUCCESS, "\146\151\154\145\114\x69\163\x74" => $files], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\162\157\162\103\157\144\145" => ErrorCode::VERR_DB_NOSUCHDATA, "\146\x69\154\x65\x4c\151\163\164" => array()], REST_Controller::HTTP_OK); } } public function FilesByChartNo_post() { $systemCheck = serverEnviromentCheck(); if (!$systemCheck["\x70\x65\x72\x6d\x69\x73\163\x69\x6f\x6e"]) { vt_loge(__METHOD__ . "\x3a\40\160\145\162\155\x69\x73\x73\x69\157\156\x20\144\145\x6e\x69\x65\x64\56"); return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } $parameters = $this->post(); $chartNo = $this->post("\x63\150\x61\162\x74\116\x6f"); $attachedFile = $this->post("\x61\x74\x74\x61\143\x68\145\144\106\151\154\145"); $fileName = $this->post("\x61\164\x74\141\143\x68\145\x64\106\x69\x6c\145\116\141\x6d\x65"); $fileType = $this->post("\x66\x69\154\x65\124\171\160\145"); $acqTime = $this->post("\x61\x63\161\124\x69\155\145"); $studyInstanceUID = $this->post("\163\164\165\x64\171\x49\156\x73\x74\141\156\143\145\x55\x49\x44"); $fileExt = $this->post("\x66\151\x6c\145\105\170\x74"); $tagFile = $this->post("\x74\x61\x67\106\x69\x6c\145"); $thmFile = $this->post("\x74\150\155\106\x69\x6c\x65"); $rawFile = $this->post("\162\141\x77\x46\151\x6c\x65"); $comment = $this->post("\143\157\x6d\x6d\x65\x6e\x74"); $groupingMode = $this->post("\145\107\162\157\x75\x70\x69\x6e\147\115\157\x64\x65"); $eSourceTypeEnum = $this->post("\145\x53\x6f\165\162\x63\145\x54\171\160\x65"); $sourceType = EmodalityTransfer::SourceTypeToDatabaseString($eSourceTypeEnum); $deviceInfo = $this->post("\144\x65\166\151\x63\145\111\156\146\x6f"); $modelName = $this->post("\155\x6f\144\145\154\x4e\x61\155\145"); if (!isset($fileType)) { vt_loge(__METHOD__ . "\x3a\x20\151\156\166\141\154\151\x64\40\146\151\x6c\x65\x20\x74\171\160\x65\x3a\40\133" . $fileType . "\135"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileType = strtoupper($fileType); if (!isset($chartNo) || empty($chartNo)) { switch ($fileType) { case FILETYPE_IMGTHM: case FILETYPE_PHOTOID: case FILETYPE_IMGTAG: case FILETYPE_PROJECT: case FILETYPE_PRJTHM: case FILETYPE_CHART: case FILETYPE_OTHTAG: case FILETYPE_FGBPT: case FILETYPE_FFG: break; default: vt_loge(__METHOD__ . "\72\x20\143\x68\141\x72\x74\156\x6f\40\x69\163\40\x65\155\160\x74\x79\40\141\x6e\144\40\151\156\x76\x61\154\x69\144\40\x66\151\x6c\145\x20\164\171\x70\145\x3a\x20\x5b" . $fileType . "\135"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } else { load_model($this, "\120\141\x74\x69\x65\x6e\x74\163\137\x6d\x6f\144\145\x6c"); $ret = $this->Patients_model->getPatientIdByChartNo($chartNo); if (count($ret) == 0) { vt_loge(__METHOD__ . "\x3a\40\160\141\x74\x69\145\156\164\x20\x69\144\40\156\157\x74\x20\x66\x6f\x75\x6e\x64\x3a\40\x5b" . $chartNo . "\135"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } switch ($fileType) { case FILETYPE_VPANO: load_model($this, "\106\151\154\x65\x73\137\x6d\x6f\144\x65\154"); $filePath = $this->Files_model->uploadVPanoFileByChartNo($chartNo, $fileType, $fileName); if (is_string($filePath) == true && empty($filePath) == false) { return $this->set_response(["\x65\x72\162\157\x72\x43\x6f\x64\x65" => ErrorCode::SUCCESS, "\x75\x70\144\x61\x74\x65\x64\106\x69\154\145\x54\x79\x70\x65" => $fileType, "\x75\x70\x64\x61\x74\x65\x64\106\x69\x6c\145\x4e\141\x6d\x65" => basename($filePath)], REST_Controller::HTTP_OK); } else { if ($filePath == VERR_DB_NOSUCHDATA) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } else { vt_loge(__METHOD__ . "\72\x20\146\x69\x6c\x65\x70\x61\164\x68\40\156\157\x74\40\x66\x6f\165\x6e\x64\72\40\133" . $filePath . "\x5d"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } case FILETYPE_IMAGE: $acqTime = @$parameters["\x61\143\161\x54\x69\x6d\x65"]; $studyInstanceUID = @$parameters["\x73\164\x75\x64\x79\x49\x6e\x73\x74\141\x6e\143\145\x55\111\x44"]; if (strstr($fileName, "\x7c")) { $modality = strtok($fileName, "\x7c"); $acqMode = strtok("\x7c"); $fileExt = strtok("\174"); $isImported = strtok("\x7c"); } else { $modality = @$parameters["\x6d\x6f\x64\x61\154\151\164\171"]; $acqMode = @$parameters["\x61\x63\161\115\x6f\x64\x65"]; $fileExt = @$parameters["\146\x69\x6c\x65\105\170\164"]; $isImported = @$parameters["\x69\163\111\155\x70\157\162\164\x65\144"]; if (!isset($modality) || empty($modality) || !isset($fileExt) || empty($fileExt)) { vt_loge(__METHOD__ . "\72\x20\x6d\157\x64\x61\x6c\151\171\40\x6f\162\40\x66\x69\154\x65\x45\170\x74\x20\151\163\40\x65\x6d\x70\164\x79\x3a\x20\133" . $modality . "\x5d\133" . $fileExt . "\135"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } if (!(strtoupper($isImported) === "\x54\122\125\x45" || strtoupper($isImported) === "\x46\x41\114\123\x45")) { vt_loge(__METHOD__ . "\x3a\40\151\163\151\x6d\x70\157\x72\164\145\144\x20\x69\x73\x20\145\155\x70\x74\171\72\x20\x5b" . $isImported . "\x5d"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $dicom = null; if (isDicomFileExt($fileExt)) { $tempDir = $this->Datafile_model->getTempDir(); $tempFile = $tempDir . DIRECTORY_SEPARATOR . $fileName; checkPostUploadFile("\x61\164\x74\x61\143\x68\x65\144\x46\x69\154\x65", $tempFile); $dicom = readDicomHeader($tempFile); } $acqTimestamp = getAcquisitionTimestamp($dicom, $acqTime); if ($acqTimestamp == null) { vt_loge(__METHOD__ . "\x3a\x20\x43\x61\x6e\x6e\157\164\40\x72\145\141\x64\40\163\x74\165\x64\171\40\144\x61\x74\x65\40\x61\156\x64\40\164\151\155\x65\40\x74\141\x67\40\x76\141\x6c\x75\145\163\x20\x66\x72\157\x6d\40\x74\x68\x65\x20\x44\x49\x43\117\115\x20\x66\x69\x6c\x65\x2e\x20\103\x75\162\x72\x65\x6e\x74\40\x64\141\164\145\40\x74\x69\x6d\x65\x20\165\163\x65\144\x20\x69\156\x73\164\145\141\144\56\40\x66\x69\154\x65\x3d\x5b" . $tempFile . "\135"); } $dbmodality = modality_api_str_to_modality_db_str($modality); $imageFilePath = $this->Datafile_model->GetNewResourcePath(FILETYPE_IMAGE, $dbmodality, $fileExt, $acqTimestamp); if (is_null($dicom)) { $fileCheck = checkPostUploadFile("\x61\164\x74\x61\x63\x68\x65\x64\x46\151\x6c\x65", $imageFilePath); } else { $fileCheck = rename($tempFile, $imageFilePath); } if ($fileCheck === FALSE) { vt_loge("\106\x69\x6c\145\x73\102\171\103\150\x61\x72\164\x4e\x6f\137\160\x6f\x73\x74\40\x41\160\x69\x2e\x20" . "\x46\141\x69\154\145\144\x20\x74\x6f\40\x75\160\x6c\157\x61\x64\x20\x66\x69\x6c\x65\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\105\62\151\155\x67\137\155\157\144\145\x6c"); $imageOnlyName = removeFileExtension(basename($imageFilePath)); $tagFilePath = $this->Datafile_model->getResourceFilePath(FILETYPE_IMGTAG, $imageOnlyName . "\x2e" . EXT_IMGTAG); $rawFilePath = $this->Datafile_model->getResourceFilePath(FILETYPE_IMGRAW, $imageOnlyName . "\x2e" . EXT_IMGRAW); $thumbnailFileName = $this->Datafile_model->getThumbnailFileName(FILETYPE_IMGTHM, $imageOnlyName); $thmFilePath = $this->Datafile_model->getResourceFilePath(FILETYPE_IMGTHM, $thumbnailFileName . "\x2e" . EXT_IMGTHM); checkPostUploadFile("\164\x61\147\x46\151\154\x65", $tagFilePath, false); checkPostUploadFile("\164\x68\155\106\x69\154\145", $thmFilePath, false); $rawFilecheck = checkPostUploadFile("\162\x61\167\x46\151\154\x65", $rawFilePath, false); $rawFileName = ''; if ($rawFilecheck) { $rawFileName = $imageOnlyName . "\56" . EXT_IMGRAW; } $acqDateTime = date(DATAFORMAT[DATEFORMAT_DCM], $acqTimestamp); $this->E2img_model->insertImage($chartNo, basename($imageFilePath), $dbmodality, $acqMode, $isImported, $dicom, $acqDateTime, $studyInstanceUID, $sourceType, $groupingMode, $rawFileName, $deviceInfo, $modelName); return $this->set_response(["\x65\162\x72\157\162\x43\x6f\x64\145" => ErrorCode::SUCCESS, "\x75\160\x64\141\x74\x65\x64\106\x69\x6c\145\x54\x79\160\145" => $fileType, "\x75\160\144\141\x74\x65\x64\106\x69\154\x65\x4e\x61\155\145" => basename($imageFilePath)], REST_Controller::HTTP_OK); case FILETYPE_IMGTAG: $updatedFileName = $this->_saveResourceFile($fileType, $tagFile, EXT_IMGTAG); break; case FILETYPE_OTHTAG: $updatedFileName = $this->_saveResourceFile($fileType, $tagFile, EXT_OTHTAG); break; case FILETYPE_FGBPT: $updatedFileName = $this->_saveResourceFile($fileType, $tagFile, EXT_FGBPT); break; case FILETYPE_FFG: $updatedFileName = $this->_saveResourceFile($fileType, $tagFile, EXT_FFG); break; case FILETYPE_IMGRAW: $updatedFileName = $this->_saveResourceFile($fileType, $rawFile, EXT_IMGRAW); break; case FILETYPE_REPORT: $updatedFileName = $this->_saveReportFile($chartNo, $fileName, $comment); break; case FILETYPE_CHART: $updatedFileName = $this->Datafile_model->saveChartFile($chartNo, $fileName); break; case FILETYPE_PROJECT: $updatedFileName = $this->_saveProjectFile($chartNo, $fileName, $fileExt); if ($updatedFileName === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } break; case FILETYPE_IMGTHM: $updatedFileName = $this->_saveResourceFile($fileType, $thmFile, EXT_IMGTHM); break; case FILETYPE_CHTTHM: case FILETYPE_RPTTHM: case FILETYPE_PRJTHM: if (!isset($fileExt)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (strstr($fileName, "\174")) { $fileName = strtok($fileName, "\x7c"); $fileExt = strtok("\174"); } $thumbnailFileName = $this->Datafile_model->getThumbnailFileName($fileType, $fileName); $updatedFileName = $this->_saveResourceFile($fileType, $thumbnailFileName, $fileExt); break; case FILETYPE_PHOTOID: if (!isset($fileExt)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (strstr($fileName, "\174")) { $fileExt = strtok($fileName, "\x7c"); $fileName = strtok("\174"); } if ($fileName !== null && strlen($fileName) > 0) { $filePath = $this->Datafile_model->getAbsFilePathByType(FILETYPE_PHOTOID, $fileName); $this->Datafile_model->deleteFileMultiDrive($filePath); $filePath = removeFileExtension($filePath) . "\x2e" . $fileExt; } else { $filePath = $this->Datafile_model->GetNewResourcePath(FILETYPE_PHOTOID, "\120\x68\x6f\164\157\111\104", $fileExt); } checkPostUploadFile("\x61\164\x74\141\x63\150\145\x64\106\151\x6c\x65", $filePath); return $this->set_response(["\145\162\162\x6f\x72\103\157\x64\x65" => ErrorCode::SUCCESS, "\x75\160\144\x61\164\145\144\106\x69\154\145\x54\x79\160\x65" => $fileType, "\165\x70\144\141\164\145\x64\x46\x69\154\x65\x4e\x61\x6d\x65" => basename($filePath)], REST_Controller::HTTP_OK); break; default: return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->set_response(["\x65\x72\162\x6f\x72\103\157\x64\145" => ErrorCode::SUCCESS, "\x75\160\144\141\x74\x65\144\x46\151\154\x65\124\171\x70\x65" => $fileType, "\x75\x70\144\x61\164\x65\x64\106\151\154\145\x4e\x61\155\145" => $updatedFileName], REST_Controller::HTTP_OK); } public function FilesByChartNoR2_post() { $this->FilesByChartNo_post(); } public function FilesByTypeAndPath_get() { $type = urldecode($this->get("\x74\171\160\145")); $path = urldecode($this->get("\160\141\164\x68")); $type = strtoupper($type); if (!isset($type)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileAbsFilePath = $this->Datafile_model->getAbsFilePathByType($type, combineFilePath(array($path))); if ($fileAbsFilePath === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { if ($type == FILETYPE_IMGTHM && file_exists($fileAbsFilePath) === FALSE) { $return = $this->Datafile_model->makeThumbnailFile($fileAbsFilePath, combineFilePath(array($path))); if ($return != VSUCCESS) { return $this->set_response(returnSetResponse($return), REST_Controller::HTTP_NOT_FOUND); } } } $return = $this->Datafile_model->DownloadFile($fileAbsFilePath); if ($return === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_NOT_FOUND); } } public function FilesByTypeAndPath_delete() { $fileType = urldecode($this->get("\x74\171\x70\145")); $filePath = urldecode($this->get("\x70\141\x74\150")); if (!isset($fileType) || !isset($filePath)) { vt_loge(sprintf("\133\x25\163\x5d\72\x20\146\x69\154\145\124\x79\160\x65\x20\x6f\162\40\146\x69\154\145\x50\x61\x74\x68\x20\151\x73\40\145\x6d\160\x74\x79\56\40\x5b\45\163\135\133\45\x73\x5d", __METHOD__, $fileType, $filePath)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\106\151\x6c\x65\163\x52\x32\x5f\x6d\x6f\144\x65\154"); if ($fileType == FILETYPE_IMAGE && $this->FilesR2_model->containsDatagroupOrRecordesetImages($filePath)) { vt_loge(sprintf("\x25\x73\72\x20\x53\x6b\x69\160\x20\x74\x6f\40\x64\x65\x6c\145\x74\x65\40\x65\x76\145\x6e\x20\x25\x73\x20\146\151\x6c\145\x20\x6d\141\x79\40\142\145\x6c\x6f\156\x67\40\164\x6f\40\141\40\144\141\x74\x61\x67\162\x6f\165\160\x20\157\162\40\141\x20\162\145\143\x6f\x72\x64\163\145\x74\40\x69\x6d\x61\x67\x65\163\56", __METHOD__, $filePath)); } $fileAbsFilePath = $this->Datafile_model->getAbsFilePathByType($fileType, $filePath); $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); switch ($fileType) { case FILETYPE_IMAGE: load_model($this, "\105\x32\151\155\147\x5f\155\157\144\x65\154"); $this->E2img_model->delete($filePath); vt_log_evt(get_called_class(), EEventLogType::getTypeString((new EEventLogType())->eDataDeleted), "\x54\x68\x65\x20\x69\x6d\141\147\145\40{$filePath}\x20\x68\141\163\40\142\145\x65\156\x20\144\x65\154\x65\x74\x65\144\x20\x66\x6f\x72\x6d\40\144\141\164\x61\x62\x61\163\145\x2e" . "\x20\102\x75\x74\40\x73\164\151\x6c\154\x20\x72\145\155\x61\x69\156\x73\x20\x69\156\x20\146\151\154\145\x20\163\x79\x73\x74\145\155\56"); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_IMGTHM, $filePath); vt_logi(sprintf("\x25\x73\72\x20\123\153\x69\160\x20\x74\157\x20\x64\x65\x6c\145\x74\145\x20\45\x73\x20\144\165\145\x20\164\x6f\40\x70\x61\x74\151\x65\x6e\164\x20\x69\155\x61\147\x65\40\x66\x69\x6c\x65\163\56", __METHOD__, $fileAbsFilePath)); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_IMGTAG, $filePath); vt_logi(sprintf("\x25\163\x3a\40\123\x6b\151\x70\x20\164\x6f\40\144\x65\x6c\145\x74\145\40\x25\163\40\x64\x75\x65\40\x74\157\40\160\x61\164\x69\145\x6e\164\x20\x69\x6d\141\147\x65\40\146\x69\x6c\145\163\x2e", __METHOD__, $fileAbsFilePath)); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_IMGRAW, $filePath); vt_logi(sprintf("\45\x73\x3a\40\x53\153\151\160\40\164\157\40\x64\145\154\145\164\145\x20\45\163\x20\144\x75\145\40\164\157\40\160\141\164\151\x65\156\x74\40\x69\x6d\141\147\x65\x20\x66\151\154\x65\x73\56", __METHOD__, $fileAbsFilePath)); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_FGBPT, $filePath); $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_FFG, $filePath); $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); break; case FILETYPE_PROJECT: $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_PRJTHM, $filePath); $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); break; case FILETYPE_REPORT: load_model($this, "\x45\62\162\160\x74\137\155\157\144\145\x6c"); $this->E2rpt_model->deleteReportByFileName($filePath); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_RPTTHM, $filePath); $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); break; case FILETYPE_IMGRAW: $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_IMGRAW, $filePath); $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); vt_log_evt(get_called_class(), EEventLogType::getTypeString((new EEventLogType())->eDataDeleted), "\x54\150\145\x20\151\155\141\147\x65\40{$filePath}\40\x68\x61\163\x20\142\145\x65\x6e\x20\144\x65\154\145\164\145\144\40\x66\157\x72\155\x20\x64\x61\x74\141\142\x61\163\145\x2e"); break; case FILETYPE_CHART: load_model($this, "\x50\x61\164\x69\x65\156\164\x43\150\141\x72\164\163\137\x6d\x6f\x64\x65\154"); $this->PatientCharts_model->delete_PatientChartByFileName($filePath); $fileAbsFilePath = $this->Datafile_model->getAbsResourceFilePath(FILETYPE_CHTTHM, $filePath); $this->Datafile_model->deleteFileMultiDrive($fileAbsFilePath); break; } return $this->set_response(["\145\162\x72\157\162\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\162\103\x6f\x64\145"]], REST_Controller::HTTP_OK); } public function FilesByTypeAndPathR2_delete() { $this->load->model("\106\151\x6c\145\x73\x52\62\x5f\x6d\x6f\144\x65\154"); $ret = $this->FilesR2_model->delete_FilesByTypeAndPathR2($this->get()); if (in_array($ret["\x65\162\x72\157\162\103\x6f\144\x65"], [VERR_COMMON_SUCCESS, VERR_E2_IMAGE_IN_GROUP])) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { if ($ret["\x65\162\x72\x6f\162\103\x6f\x64\x65"] == VERR_COMMON_INVALID) { return $this->set_response($ret, REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response($ret, REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function FilesForUpdate_post() { $systemCheck = serverEnviromentCheck(); if (!$systemCheck["\x70\145\162\x6d\151\x73\163\x69\x6f\156"]) { return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } $fileType = $this->post("\146\151\x6c\x65\124\171\x70\x65"); $fileName = $this->post("\x61\164\x74\x61\x63\x68\x65\x64\106\151\154\x65\x4e\x61\x6d\x65"); $thmFileName = $this->post("\x74\x68\x75\155\x62\x6e\141\x69\x6c\x46\x69\154\145\x4e\x61\155\145"); if (!isset($fileType) || !isset($fileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileType = strtoupper($fileType); switch ($fileType) { case FILETYPE_IMAGE: case FILETYPE_IMGTAG: case FILETYPE_OTHTAG: case FILETYPE_FGBPT: case FILETYPE_FFG: case FILETYPE_PRJTHM: case FILETYPE_RPTTHM: case FILETYPE_CHTTHM: case FILETYPE_IMGTHM: $filePath = $this->Datafile_model->getAbsFilePathByType($fileType, $fileName); if (!file_exists($filePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileCheck = checkPostUploadFile("\141\164\164\141\143\150\145\x64\x46\x69\154\145", $filePath); if ($fileCheck === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } break; case FILETYPE_PROJECT: if (!isset($thmFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $prjFilePath = $this->Datafile_model->getAbsFilePathByType($fileType, $fileName); $thmFilePath = $this->Datafile_model->getAbsFilePathByType(FILETYPE_PRJTHM, $thmFileName); if (!file_exists($prjFilePath) || !file_exists($thmFilePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileCheck = checkPostUploadFile("\141\164\x74\141\143\x68\145\x64\106\151\154\145", $prjFilePath); if ($fileCheck === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } checkPostUploadFile("\164\x68\165\155\x62\156\141\x69\x6c\106\151\x6c\145", $thmFilePath, false); break; case FILETYPE_REPORT: if (!isset($thmFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $rptFilePath = $this->Datafile_model->getAbsFilePathByType($fileType, $fileName); $thmFilePath = $this->Datafile_model->getAbsFilePathByType(FILETYPE_RPTTHM, $thmFileName); if (!file_exists($rptFilePath) || !file_exists($thmFilePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileCheck = checkPostUploadFile("\141\x74\x74\141\143\150\145\144\106\151\154\145", $rptFilePath); if ($fileCheck === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } checkPostUploadFile("\x74\x68\x75\155\142\x6e\x61\151\x6c\x46\151\154\x65", $thmFilePath, false); break; case FILETYPE_CHART: $chartFilePath = $this->Datafile_model->getAbsFilePathByType($fileType, $fileName); $fileCheck = checkPostUploadFile("\141\x74\x74\x61\143\150\145\144\106\151\154\145", $chartFilePath); if ($fileCheck === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (empty($thmFileName) === FALSE) { $thmFilePath = $this->Datafile_model->getAbsFilePathByType(FILETYPE_CHTTHM, $thmFileName); if (!file_exists($thmFilePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileCheck = checkPostUploadFile("\x74\150\165\155\x62\x6e\x61\x69\154\x46\151\x6c\x65", $thmFilePath); if ($fileCheck === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } break; default: return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } return $this->set_response(["\x65\x72\x72\x6f\162\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\x72\103\x6f\144\145"]], REST_Controller::HTTP_OK); } public function MultiFilesInOne_post() { $method = $this->post("\x6d\x65\164\x68\157\x64"); $typeList = $this->post("\146\x69\x6c\145\x54\x79\160\x65"); $fileList = $this->post("\146\x69\x6c\145\116\141\x6d\x65"); $skipOnError = $this->post("\x73\x6b\x69\160\x4f\x6e\x45\x72\x72\x6f\x72"); if (!isset($skipOnError) || empty($skipOnError)) { $skipOnError = "\x66\141\x6c\163\145"; } $skipOnError = filter_var($skipOnError, FILTER_VALIDATE_BOOLEAN); if (!isset($typeList) || !isset($fileList)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (count($typeList) != count($fileList)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\115\165\154\x74\x69\106\151\154\145\x73\x5f\x6d\x6f\144\x65\154"); $ret = $this->MultiFiles_model->post_MultiFilesInOne($typeList, $fileList, $skipOnError); if ($ret["\x65\162\x72\x6f\x72\x43\x6f\144\145"] == VERR_COMMON_SUCCESS) { $this->Datafile_model->DownloadFile($ret["\x66\151\x6c\x65\x4e\141\155\x65"]); } else { if ($ret["\145\162\x72\157\162\103\157\144\x65"] == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function MultiFilesInOneForUpload_post() { $systemCheck = serverEnviromentCheck(); if (!$systemCheck["\160\145\x72\155\151\x73\163\x69\157\x6e"]) { return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } $fileInfoList = json_decode($this->post("\146\x69\x6c\145\x49\156\146\157\114\x69\x73\x74")); if (!isset($fileInfoList)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\115\x75\154\x74\x69\x46\151\x6c\x65\x73\x5f\155\x6f\x64\x65\154"); $ret = $this->MultiFiles_model->post_MultiFilesInOneForUpload($fileInfoList); if ($ret["\x65\x72\162\157\162\103\157\x64\x65"] == VERR_COMMON_SUCCESS) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { if ($ret["\145\x72\162\x6f\x72\103\x6f\144\145"] == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function SysFiles_post() { $systemCheck = serverEnviromentCheck(); if (!$systemCheck["\x70\145\162\x6d\151\x73\163\151\157\156"]) { return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } $type = $this->post("\x74\x79\160\145"); $fileName = $this->post("\141\164\164\141\x63\150\145\144\x46\151\x6c\x65\116\x61\x6d\x65"); $contentId = $this->post("\x63\x6f\156\164\145\x6e\164\x49\x64"); $categoryId = $this->post("\143\141\x74\x65\147\x6f\x72\171\x49\x64"); $contentFilePath = $this->post("\143\157\x6e\164\145\156\x74\x46\x69\154\145\x50\141\x74\x68"); $contentExt = $this->post("\143\x6f\x6e\164\145\x6e\164\x45\170\164"); $contentType = $this->post("\x63\157\156\x74\x65\156\164\x54\171\x70\145"); $favorite = $this->post("\x66\141\x76\x6f\162\x69\164\x65"); if (!isset($type) || !isset($fileName) || count($_FILES) == 0) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $type = strtoupper($type); switch ($type) { case "\123\103\125": if (strstr($fileName, "\174")) { $contentId = strtok($fileName, "\174"); $categoryId = strtok("\174"); $contentName = strtok("\174"); $contentFilePath = strtok("\174"); $contentExt = strtok("\174"); $contentType = strtok("\174"); $favorite = strtok("\x7c"); } else { $contentId = $this->post("\x63\x6f\156\164\x65\156\x74\111\x64"); $categoryId = $this->post("\x63\x61\x74\x65\x67\157\x72\x79\111\144"); $contentName = $fileName; $contentFilePath = $this->post("\x63\157\x6e\x74\145\x6e\164\106\x69\154\x65\x50\141\164\x68"); $contentExt = $this->post("\x63\157\156\x74\x65\156\164\x45\170\164"); $contentType = $this->post("\x63\157\x6e\164\145\156\x74\x54\x79\160\145"); $favorite = $this->post("\146\141\x76\157\x72\151\x74\x65"); } $fileAbsFilePath = $this->Datafile_model->getNewSampleCaseUserContentFilePath($contentExt); if ($fileAbsFilePath === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_BAD_REQUEST); } $return = checkPostUploadFile("\141\164\x74\141\x63\150\145\144\x46\151\154\x65", $fileAbsFilePath); if ($return) { load_model($this, "\123\143\143\x6f\x6e\x74\145\x6e\x74\137\155\157\144\145\154"); $this->Sccontent_model->insertUserContent($contentName, basename($fileAbsFilePath), $contentType, $favorite, $categoryId); } break; default: $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType($type, $fileName); $dirPath = dirname($fileAbsFilePath); makeDir($dirPath); $resFilePath = $dirPath . "\57" . $fileName; move_uploaded_file($_FILES["\141\164\x74\141\x63\150\x65\x64\x46\x69\154\x65"]["\x74\155\160\x5f\x6e\x61\x6d\x65"], $resFilePath); checkPostUploadFile("\141\x74\x74\x61\143\150\x65\144\x46\151\154\x65", $fileAbsFilePath); break; } return $this->set_response(["\145\162\x72\x6f\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\162\103\x6f\x64\x65"], "\x75\x70\144\141\164\x65\x64\x46\x69\154\145\124\x79\x70\145" => $type, "\x75\160\x64\x61\x74\145\x64\x46\x69\x6c\145\116\141\155\x65" => basename($fileAbsFilePath)], REST_Controller::HTTP_OK); } public function SysFiles_patch() { $fileType = $this->patch("\x74\x79\160\x65"); $fileName = $this->patch("\x6e\141\x6d\145"); $newFileName = $this->patch("\156\x65\167"); if (!isset($fileType) || !isset($fileName) || !isset($fileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileType = strtoupper($fileType); $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType($fileType, $fileName); $this->Datafile_model->checkMultiDrive($fileAbsFilePath); $ret = rename($fileAbsFilePath, pathinfo($fileAbsFilePath, PATHINFO_DIRNAME) . "\134" . $newFileName); if ($ret === TRUE) { return $this->set_response(["\145\162\162\x6f\x72\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function SysFiles_delete() { $fileType = urldecode($this->delete("\x74\171\x70\145")); $fileName = urldecode($this->delete("\x6e\x61\x6d\145")); $contentId = urldecode($this->delete("\x63\x6f\156\x74\145\x6e\164\x49\x64")); if (!isset($fileType) || !isset($fileName) || !isset($contentId)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileType = strtoupper($fileType); switch ($fileType) { case "\x53\x43\x55": $ret = $this->_deleteSampleCaseUserContents($fileName, $contentId); break; default: $ret = $this->_deleteSysFile($fileType, $fileName); break; } if ($ret === TRUE) { return $this->set_response(["\x65\162\x72\157\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function SysFilesForUpdate_post() { $fileType = $this->post("\164\171\160\x65"); $fileName = $this->post("\x61\164\x74\141\143\x68\145\x64\106\x69\154\x65\116\141\155\x65"); if (!isset($fileType) || !isset($fileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileType = strtoupper($fileType); switch ($fileType) { case "\x53\x43\x55": $ret = $this->_updateSampleCaseUserContents($fileName); break; default: $ret = $this->_updateSysFile($fileType, $fileName); break; } if ($ret === TRUE) { return $this->set_response(["\145\x72\x72\157\x72\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\162\103\157\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function SysFilesByType_get() { $type = strtoupper(urldecode($this->get("\x74\171\x70\x65"))); $path = urldecode($this->get("\160\x61\x74\150")); switch ($type) { case "\107\101\114": case "\x47\x54\x48": case "\123\x45\124": return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); default: $files = $this->Datafile_model->getSysFileList($type, ''); break; } if (is_array($files)) { return $this->set_response(["\x65\x72\x72\x6f\162\103\157\x64\x65" => ErrorCode::SUCCESS, "\146\x69\154\145\114\151\163\164" => $files], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } public function SysFilesByTypeAndPath_get() { $type = urldecode($this->get("\164\171\160\x65")); $path = urldecode($this->get("\x70\141\x74\x68")); if (!isset($type) || $type === "\160\141\164\150") { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->_SysFileConversion($type, $path); } public function SysFilesNoConversionByTypeAndPath_get() { $type = urldecode($this->get("\164\171\x70\145")); $path = urldecode($this->get("\160\141\x74\x68")); $conversion = json_decode($this->get("\143\x6f\156\166\x65\162\x73\151\x6f\x6e")); if (!isset($type) || $type === "\x70\141\164\x68" || !isset($conversion)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if ($conversion) { $this->_SysFileConversion($type, $path); } else { if ($type === "\123\x43\125") { $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType("\123\103\120", combineFilePath(array($path))); $this->Datafile_model->checkMultiDrive($fileAbsFilePath); $check = file_exists($fileAbsFilePath); } else { if ($type === "\x55\x54\110") { $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType("\123\124\x48", combineFilePath(array($path))); $this->Datafile_model->checkMultiDrive($fileAbsFilePath); $check = file_exists($fileAbsFilePath); } else { $check = false; } } if (!$check) { $fileAbsFilePath = $this->Datafile_model->getSysFilePathByType($type, combineFilePath(array($path))); } $this->Datafile_model->checkMultiDrive($fileAbsFilePath); if (file_exists($fileAbsFilePath)) { $this->Datafile_model->DownloadFile($fileAbsFilePath); } else { header("\103\x6f\x6e\164\145\x6e\164\x2d\x54\x79\160\145\72\40\141\x70\x70\154\151\x63\141\x74\151\157\x6e\57\x6a\163\157\x6e"); return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_BAD_REQUEST); } } } public function Dirs_post() { $systemCheck = serverEnviromentCheck(); if (!$systemCheck["\160\x65\162\155\151\x73\x73\x69\x6f\x6e"]) { return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } $type = $this->post("\x74\x79\160\145"); $path = $this->post("\x70\141\x74\x68"); if (!isset($type)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } switch ($type) { case "\x46\x49\x58": case "\123\106\130": case "\103\106\x58": checkDotDotInDirectory($path); $absDirPath = $this->Datafile_model->getSysFilePathByType($type, $path); $checkMkdir = makeDir($absDirPath); if ($checkMkdir === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_BAD_REQUEST); } break; default: return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); break; } $this->set_response(["\145\162\162\x6f\162\103\x6f\144\145" => ErrorCode::SUCCESS], REST_Controller::HTTP_OK); } public function Dirs_patch() { $type = $this->patch("\164\171\160\x65"); $path = $this->patch("\x70\141\x74\150"); $to = $this->patch("\164\157"); if (!isset($type)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } switch ($type) { case "\106\111\130": case "\x53\x46\x58": case "\103\x46\130": checkDotDotInDirectory($path); checkDotDotInDirectory($to); $absFromDirPath = $this->Datafile_model->getSysFilePathByType($type, $path); $absToDirPath = dirname($absFromDirPath) . "\x2f" . $to; $ret = renameDir($absFromDirPath, $absToDirPath); break; default: return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if ($ret == VERR_COMMON_SUCCESS) { return $this->set_response(["\145\162\x72\157\x72\103\x6f\144\x65" => ErrorCode::SUCCESS], REST_Controller::HTTP_OK); } else { if ($ret == VERR_DELIVERER_FILEMANAGER_FILE_EXISTS) { return $this->set_response(returnSetResponse(VERR_DELIVERER_FILEMANAGER_FILE_EXISTS), REST_Controller::HTTP_BAD_REQUEST); } else { if ($ret == VERR_COMMON_IO) { return $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } else { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } } } public function Dirs_delete() { $fileType = urldecode($this->delete("\164\171\x70\145")); $dirPath = urldecode($this->delete("\x70\x61\164\150")); if (!isset($fileType) || !isset($dirPath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileType = strtoupper($fileType); switch ($fileType) { case "\x46\x49\x58": case "\123\x46\x58": case "\x43\x46\x58": $ret = $this->_deleteSysDir($fileType, $dirPath); if ($ret === TRUE) { return $this->set_response(["\145\162\162\157\x72\x43\x6f\144\x65" => ErrorCode::SUCCESS], REST_Controller::HTTP_OK); } break; default: break; } return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } public function DirsByTypeAndPath_get() { $type = strtoupper(urldecode($this->get("\164\171\160\145"))); $path = urldecode($this->get("\160\141\164\150")); if (empty($type) || empty($path)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } switch ($type) { case "\106\111\x58": $ret = $this->Datafile_model->getSysDirList("\x46\x49\130", combineFilePath(array($path))); break; default: return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } return $this->set_response(["\x65\x72\x72\157\162\103\x6f\144\x65" => ErrorCode::SUCCESS, "\x64\x69\x72\x4c\x69\x73\x74" => $ret], REST_Controller::HTTP_OK); } public function DirsForMoving_put() { $ret = $this->Datafile_model->moveSysDir($this->put()); if ($ret == VERR_COMMON_SUCCESS) { return $this->set_response(["\x65\162\162\157\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\162\103\x6f\144\x65"]], REST_Controller::HTTP_OK); } else { if ($ret == VERR_DELIVERER_FILEMANAGER_FILE_EXISTS) { return $this->set_response(returnSetResponse(VERR_DELIVERER_FILEMANAGER_FILE_EXISTS), REST_Controller::HTTP_BAD_REQUEST); } else { if ($ret == VERR_COMMON_IO) { return $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } else { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } } } public function DirsForCopying_put() { $ret = $this->Datafile_model->copySysDir($this->put()); if ($ret == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { if ($ret == VERR_COMMON_IO) { return $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } else { return $this->set_response(["\x65\162\x72\157\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\162\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } } } public function SysInfoForDiskSpace_get() { load_model($this, "\123\x79\163\111\x6e\146\x6f\137\x6d\157\144\x65\154"); $data = $this->SysInfo_model->get_SysInfoForDiskSpace($this->get()); if ($data === false) { return $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } return $this->set_response(["\145\x72\x72\x6f\162\x43\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\x72\x6f\x72\103\x6f\144\x65"], "\x6e\124\x6f\164\x61\154\123\160\x61\143\145" => $data["\156\x54\x6f\x74\141\x6c\x53\x70\141\x63\145"], "\x6e\x46\x72\145\x65\x53\x70\x61\x63\145" => $data["\x6e\106\162\145\x65\123\160\141\x63\145"]], REST_Controller::HTTP_OK); } public function ThirdPartyFilesbyPath_get() { $path = urldecode($this->get("\x70\x61\x74\150")); if (!isset($path)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileAbsFilePath = $this->Datafile_model->getAbsFilePathByType(FILETYPE_THIRDPARTY, $path); if ($fileAbsFilePath === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $return = $this->Datafile_model->DownloadFile($fileAbsFilePath); if ($return === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_NOT_FOUND); } } public function ThirdPartyFiles_post() { $systemCheck = serverEnviromentCheck(); if (!$systemCheck["\160\145\162\x6d\x69\163\163\x69\157\x6e"]) { return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } $chartNo = $this->post("\x63\x68\141\162\x74\x4e\157"); $studyInstanceUID = $this->post("\x73\x74\x75\144\171\x49\156\163\x74\x61\x6e\143\145\125\111\x44"); $projectName = $this->post("\160\x72\x6f\x6a\145\x63\x74\116\x61\155\x65"); $appName = $this->post("\x61\160\160\116\141\x6d\x65"); $targetZipFilePath = $this->post("\x74\141\162\147\145\164\132\151\160\106\151\x6c\145\x50\141\164\x68"); if (!isset($_FILES["\141\164\x74\x61\143\x68\145\144\106\151\x6c\x65"]) || !isset($targetZipFilePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $fileExt = end(explode("\x2e", strtolower($targetZipFilePath))); if (!isset($chartNo) || !isset($studyInstanceUID) || !isset($chartNo) || !isset($projectName) || !isset($appName) || !isset($targetZipFilePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $filePath = $this->Datafile_model->GetNewResourcePath(FILETYPE_THIRDPARTY, "\124\x68\151\x72\x64\120\x61\162\164\x79", $fileExt); $return = checkPostUploadFile("\141\x74\x74\x61\143\150\145\144\x46\x69\x6c\x65", $filePath); if ($return === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } return $this->set_response(["\x65\x72\x72\157\162\x43\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\162\103\x6f\144\145"], "\165\x70\x64\x61\164\145\x64\106\151\154\145\x4e\x61\155\145" => basename($filePath)], REST_Controller::HTTP_OK); } public function trResultFileByCaseNameAndResultTypeAndFileName_post() { $caseName = $this->post("\143\x61\163\145\116\141\155\x65"); $resultType = $this->post("\x72\145\x73\165\154\x74\x54\171\160\145"); $webFileName = $this->post("\146\x69\154\x65\116\x61\x6d\145"); if (!isset($caseName) || !isset($webFileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $path_info = pathinfo($webFileName); $fileExt = $path_info["\145\x78\x74\145\x6e\163\x69\157\156"]; if ($resultType === RESULTTYPE_3D_OBJECT) { $imageFilePath = $this->Datafile_model->GetNewResourcePath(FILETYPE_IMAGE, $resultType, $fileExt); } else { $imageFilePath = $this->Datafile_model->GetNewResourcePath(FILETYPE_RESULT, $resultType, $fileExt); } $parameters = ["\143\x61\x73\x65\x4e\x61\155\x65" => $caseName, "\162\x65\x73\x75\x6c\x74\x54\x79\160\145" => $resultType, "\167\x65\142\106\151\154\x65\116\141\x6d\145" => $webFileName, "\151\x6d\141\147\145\106\x69\154\145\120\141\164\150" => $imageFilePath]; load_model($this, "\124\x65\154\x65\162\x61\x64\151\x6f\154\157\147\x79\x46\x69\x6c\x65\123\145\x72\x76\x69\x63\145\x5f\155\157\144\145\154"); $ret = $this->TeleradiologyFileService_model->post_trResultFileByCaseNameAndResultTypeAndFileName($parameters); if ($ret["\x65\162\x72\x6f\162\103\x6f\144\x65"] == VERR_COMMON_SUCCESS) { return $this->set_response(["\145\162\162\157\x72\x43\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\162\x43\x6f\x64\145"], "\x75\160\x64\141\x74\145\144\106\x69\154\145\116\141\155\145" => $ret["\165\160\144\141\164\145\x64\106\x69\154\x65\116\x61\155\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\157\x72\103\x6f\144\145" => returnSetResponse(VERR_COMMON_INVALID)["\145\162\x72\x6f\162\x43\x6f\x64\x65"]], REST_Controller::HTTP_BAD_REQUEST); } } public function trResultFileByCaseNameAndResultTypeAndFileName_get() { $caseName = urldecode($this->get("\143\x61\x73\x65\x4e\141\x6d\145")); $fileName = urldecode($this->get("\146\151\154\145\116\141\x6d\x65")); $resultType = urldecode($this->get("\162\x65\x73\165\154\164\x54\171\x70\145")); if (!isset($caseName) || !isset($fileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\124\145\154\x65\162\x61\144\x69\157\x6c\x6f\147\171\106\151\x6c\145\x53\145\x72\x76\x69\143\x65\x5f\x6d\157\144\145\x6c"); $strServerFileName = $this->TeleradiologyFileService_model->get_trResultFileByCaseNameAndResultTypeAndFileName($this->get()); if ($strServerFileName === FALSE) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_BAD_REQUEST); } if ($resultType === RESULTTYPE_3D_OBJECT) { $fileAbsFilePath = $this->Datafile_model->getResourceFilePath(FILETYPE_IMAGE, $strServerFileName); } else { $fileAbsFilePath = $this->Datafile_model->getResourceFilePath(FILETYPE_RESULT, $strServerFileName); } $this->Datafile_model->checkMultiDrive($fileAbsFilePath); if (!file_exists($fileAbsFilePath)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $return = $this->Datafile_model->DownloadFile($fileAbsFilePath); if ($return === FALSE) { return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_NOT_FOUND); } } public function trResultFileByCaseNameAndResultTypeAndFileName_delete() { $caseName = urldecode($this->get("\143\x61\x73\145\x4e\x61\155\145")); $fileName = urldecode($this->get("\x66\151\x6c\145\116\x61\x6d\x65")); if (!isset($caseName) || !isset($fileName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\124\145\x6c\145\x72\x61\144\151\157\154\157\147\171\x46\x69\x6c\145\x53\x65\162\166\x69\143\145\137\x6d\157\x64\145\x6c"); $ret = $this->TeleradiologyFileService_model->delete_trResultFileByCaseNameAndResultTypeAndFileName($this->get()); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\x72\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\x72\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } else { if ($ret == VERR_COMMON_NOFILE) { return $this->set_response(["\x65\162\162\x6f\x72\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_NOFILE)["\x65\x72\x72\x6f\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\162\157\162\103\x6f\x64\145" => returnSetResponse(VERR_DB_INVALIDDATA)["\x65\x72\162\x6f\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } } } public function thirdPartyProjectFileByPath_get() { $path = $this->get("\160\x61\164\x68"); $data = $this->TeleradiologyFileService_model->get_thirdPartyProjectFileByPath($this->get()); $this->set_response([], REST_Controller::HTTP_OK); } public function SysfilesForThumbnailByTypeAndName_get() { $type = urldecode($this->get("\164\x79\x70\145")); $name = urldecode($this->get("\156\141\155\x65")); if (!isset($type) || !isset($name)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $type = strtoupper($type); switch ($type) { case "\x53\103\x55": load_model($this, "\123\171\x73\x46\151\x6c\145\163\137\x6d\x6f\144\x65\154"); $ret = $this->SysFiles_model->get_SysfilesForThumbnailByTypeAndName($type, $name); break; default: return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); break; } if ($ret == VERR_COMMON_SUCCESS) { return $this->set_response(["\145\162\162\157\162\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\x72\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } else { if ($ret == VERR_COMMON_IO) { return $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } else { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function PatientFilesByChartNo_delete() { $systemCheck = serverEnviromentCheck(); if (!$systemCheck["\x70\x65\162\x6d\151\x73\x73\151\x6f\x6e"]) { vt_loge(__METHOD__ . "\72\40\x50\x65\x72\155\x69\x73\163\x69\x6f\x6e\40\105\162\x72\x6f\162\56"); return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } $chartNo = urldecode($this->get("\x63\x68\x61\162\x74\156\x6f")); if (!isset($chartNo) || empty($chartNo)) { vt_loge(__METHOD__ . "\x3a\40" . "\x63\150\x61\x72\164\x4e\157\x20\151\x73\x20\105\155\x70\164\x79\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\120\x61\164\151\145\x6e\x74\x46\151\x6c\145\x73\137\x6d\x6f\144\x65\154"); $ret = $this->PatientFiles_model->delete_PatientFilesByChartNo($chartNo); if ($ret["\x65\162\162\x6f\x72\103\157\144\145"] == VERR_COMMON_SUCCESS) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { if ($ret["\145\x72\162\157\x72\x43\x6f\144\145"] == VERR_DB_INVALIDDATA) { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_BAD_REQUEST); } else { $this->set_response(returnSetResponse(VERR_E2_PATIENT_DELETE), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function PatientFilesByChartNoR2_delete() { $systemCheck = serverEnviromentCheck(); if (!$systemCheck["\160\x65\162\x6d\x69\163\x73\151\157\156"]) { return $this->set_response(returnSetResponse(VERR_COMMON_ACCESS), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } $this->load->model("\x50\141\164\x69\145\156\164\106\x69\154\x65\x73\122\62\x5f\x6d\157\x64\145\154"); $ret = $this->PatientFilesR2_model->delete_PatientFilesByChartNoR2($this->get()); if (in_array($ret["\145\162\162\157\x72\103\157\144\x65"], [VERR_COMMON_SUCCESS, VERR_E2_IMAGE_IN_GROUP])) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { if ($ret["\145\162\x72\x6f\162\x43\157\x64\x65"] === VERR_COMMON_INVALID) { return $this->set_response($ret, REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response($ret, REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/Implantds.php b/server/original/www/ezwebserver/src/application/controllers/v1/Implantds.php new file mode 100644 index 0000000..22dfc79 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/Implantds.php @@ -0,0 +1,7 @@ +load->enum(); $this->load->struct(); } public function ImplantTableForVersion_post() { load_model($this, "\111\155\160\x6c\x61\156\164\124\141\142\x6c\145\x5f\155\157\144\145\x6c"); $ret = $this->ImplantTable_model->post_ImplantTableForVersion(); if ($ret === true) { $this->set_response(["\x65\162\162\157\162\103\157\144\x65" => ErrorCode::SUCCESS], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function ImplantCompanies_get() { load_model($this, "\111\155\x70\x6c\141\x6e\x74\x43\157\155\160\141\x6e\151\x65\163\137\x6d\157\144\x65\x6c"); $ret = $this->ImplantCompanies_model->get_ImplantCompanies(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { array_push($items, $row["\x63\157\x6d\137\156\x61\155\145"]); } return $this->set_response(array("\145\x72\162\x6f\x72\x43\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\157\162\103\x6f\144\x65"], "\163\164\x72\x6c\103\157\155\x4e\x61\x6d\x65" => $items), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\x65\162\162\x6f\162\103\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\x6f\x72\103\x6f\x64\x65"], "\163\x74\162\x6c\x43\x6f\155\x4e\141\x6d\145" => $items), REST_Controller::HTTP_OK); } } public function ImplantCompanies_put() { $parametersOfPutImplantCompanies = $this->put(); if (!isset($parametersOfPutImplantCompanies["\163\164\162\103\157\155\x4e\141\x6d\145"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\x70\154\x61\156\164\103\x6f\x6d\x70\x61\156\x69\145\x73\137\x6d\x6f\x64\x65\154"); $ret = $this->ImplantCompanies_model->put_ImplantCompanies($parametersOfPutImplantCompanies); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\162\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByUser_post() { $parameters = $this->post(); if (!isset($parameters["\x69\155\160\154\x61\156\x74\111\156\146\157"]["\x73\164\x72\103\x6f\x6d\x70\141\156\x79"]) || !isset($parameters["\x69\155\160\x6c\141\156\x74\x49\156\x66\157"]["\163\164\x72\114\x69\156\145\x75\160"]) || !isset($parameters["\x69\x6d\x70\x6c\x61\x6e\x74\x49\156\146\x6f"]["\163\x74\162\x4d\x6f\144\x65\154\x4e\x61\155\145"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\160\154\x61\156\x74\x4d\x6f\144\145\154\x73\x5f\155\x6f\144\x65\x6c"); $ret = $this->ImplantModels_model->post_ImplantModelsByUser($parameters); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\x72\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\157\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByDetail_put() { $parameters = $this->put(); if (!isset($parameters["\x69\x6d\x70\x6c\x61\x6e\164\111\x6e\x66\157"]["\163\x74\162\x43\157\x6d\x70\141\156\171"]) || !isset($parameters["\151\155\x70\x6c\141\156\x74\x49\156\x66\157"]["\x73\x74\x72\x4c\151\x6e\145\x75\x70"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\x70\x6c\x61\156\164\115\x6f\x64\x65\x6c\x73\x5f\x6d\x6f\x64\145\154"); $ret = $this->ImplantModels_model->put_ImplantModelsByDetail($parameters); if (count($ret) > 0) { $nLnupID = $ret[0]["\154\x6e\x75\x70\x5f\x69\x64"]; $ret = $this->ImplantModels_model->put_ImplantModelsByDetail_Success($parameters, $nLnupID); if ($ret > 0) { return $this->set_response(["\145\x72\x72\157\162\x43\157\144\x65" => ErrorCode::SUCCESS], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupAndNameAndContainsSTL_get() { $strComName = urldecode($this->get("\x63\157\155\x70\141\x6e\x79")); $strLineupName = urldecode($this->get("\x6c\x69\x6e\x65\165\x70")); $strModelName = urldecode($this->get("\x6e\141\155\x65")); $boolContainSTL = json_decode($this->get("\143\x6f\156\164\x61\x69\156\x73\163\x74\x6c")); if (empty($strComName) || empty($strLineupName) || empty($strModelName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (!($boolContainSTL === true || $boolContainSTL === false)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\160\x6c\x61\156\164\x4d\x6f\x64\145\x6c\163\137\x6d\x6f\x64\x65\154"); $ret = $this->ImplantModels_model->get_ImplantModelsByCompanyAndLineupAndNameAndContainsSTL($strComName, $strLineupName, $strModelName, $boolContainSTL); if (count($ret) > 0) { $ret[0]["\x63\x6f\155\137\156\x61\155\x65"] = $strComName; $ret[0]["\x6c\156\x75\160\x5f\x6e\141\x6d\145"] = $strLineupName; $sImplantInfo = SImplantInfo::constructWithParameter($ret[0], "\150\145\x78", $boolContainSTL); return $this->set_response(["\x65\162\162\157\x72\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\x72\103\x6f\144\x65"], "\x73\111\x6d\x70\154\141\156\164\x49\156\x66\157" => $sImplantInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupWithoutFiles_get() { $strComName = urldecode($this->get("\x63\x6f\x6d\160\141\156\x79")); $strLineupName = urldecode($this->get("\x6c\x69\156\145\x75\x70")); if (empty($strComName) || empty($strLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\x70\154\141\x6e\164\x4d\157\144\x65\154\163\x5f\155\x6f\x64\x65\x6c"); $ret = $this->ImplantModels_model->get_ImplantModelsByCompanyAndLineupWithoutFiles($strComName, $strLineupName); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $row["\143\157\x6d\137\x6e\141\155\145"] = $strComName; $row["\x6c\156\x75\x70\137\x6e\141\155\x65"] = $strLineupName; $sImplantInfo = SImplantInfo::constructWithParameter($row); array_push($items, $sImplantInfo); } return $this->set_response(["\145\162\162\157\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\162\103\157\144\x65"], "\x76\x65\x63\x49\x6d\160\x6c\x61\x6e\x74\x49\x6e\146\x6f" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\x6f\x72\x43\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\157\162\103\157\144\x65"], "\x76\x65\143\111\x6d\x70\x6c\x61\156\164\111\156\x66\x6f" => $items], REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupForNameList_get() { $strComName = urldecode($this->get("\143\x6f\x6d\160\x61\156\x79")); $strLineupName = urldecode($this->get("\x6c\x69\x6e\x65\165\x70")); if (empty($strComName) || empty($strLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\160\154\141\x6e\x74\x4d\157\144\145\154\163\x5f\155\x6f\x64\145\x6c"); $ret = $this->ImplantModels_model->get_ImplantModelsByCompanyAndLineupForNameList(array("\x73\164\162\103\157\x6d\x4e\x61\x6d\145" => $strComName, "\163\x74\x72\114\x69\x6e\x65\x75\160\x4e\141\155\x65" => $strLineupName)); if (count($ret) > 0) { $items = array(); foreach ($ret as $row) { $strlModelName = $row["\155\157\x64\145\x6c\x5f\x6e\141\155\x65"]; array_push($items, $strlModelName); } $this->set_response(["\x65\x72\162\x6f\162\x43\157\144\145" => ErrorCode::SUCCESS, "\163\x74\x72\114\x69\x6e\145\165\160\x4e\141\155\x65" => $items], REST_Controller::HTTP_OK); } else { $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupAndNameForDetail_get() { $strComName = urldecode($this->get("\143\157\x6d\160\x61\x6e\171")); $strLineupName = urldecode($this->get("\154\x69\x6e\x65\x75\160")); $strModelName = urldecode($this->get("\x6e\141\155\145")); if (empty($strComName) || empty($strLineupName) || empty($strModelName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\x70\154\x61\x6e\164\x4d\157\x64\145\154\163\137\155\x6f\x64\x65\154"); $ret = $this->ImplantModels_model->get_ImplantModelsByCompanyAndLineupAndNameForDetail($strComName, $strLineupName, $strModelName); if (count($ret) > 0) { $ret[0]["\143\x6f\x6d\137\156\141\x6d\145"] = $strComName; $ret[0]["\154\156\x75\160\137\156\141\155\145"] = $strLineupName; $sImplantInfo = SImplantInfo::constructWithParameter($ret[0], "\150\x65\170"); return $this->set_response(["\145\x72\162\x6f\162\103\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\157\162\x43\x6f\144\145"], "\x73\111\155\x70\154\141\x6e\164\111\156\146\157" => $sImplantInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantTableForSurgicalKit_post() { load_model($this, "\x49\155\160\154\141\x6e\164\x54\141\142\154\x65\x5f\155\157\144\145\x6c"); $ret = $this->ImplantTable_model->post_ImplantTableForSurgicalKit(); if ($ret === true) { return $this->set_response(["\145\162\162\157\162\103\157\144\x65" => ErrorCode::SUCCESS], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function ImplantTableForCompany_post() { load_model($this, "\111\x6d\160\154\141\156\x74\124\x61\142\x6c\x65\x5f\155\157\x64\x65\154"); $ret = $this->ImplantTable_model->post_ImplantTableForCompany(); if ($ret === TRUE) { return $this->set_response(["\x65\x72\162\x6f\162\x43\x6f\x64\x65" => ErrorCode::SUCCESS], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function ImplantCompaniesByNameForId_get() { $strComName = urldecode($this->get("\156\141\x6d\x65")); if (empty($strComName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\160\154\x61\156\164\x43\157\155\x70\141\x6e\151\x65\163\137\155\x6f\x64\145\154"); $ret = $this->ImplantCompanies_model->get_ImplantCompaniesByNameForId($strComName); if (count($ret) > 0 && isset($ret[0])) { return $this->set_response(["\145\162\x72\157\x72\103\x6f\x64\145" => ErrorCode::SUCCESS, "\x6e\103\157\155\x61\156\171\111\144" => $ret[0]["\x63\x6f\x6d\x5f\x69\144"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantLineupsByCompanyAndName_get() { $strComName = urldecode($this->get("\x63\x6f\155\160\x61\x6e\x79")); $strLineupName = urldecode($this->get("\156\141\x6d\x65")); if (empty($strComName) || empty($strLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\160\x6c\141\156\x74\114\151\156\x65\x75\x70\x73\137\155\x6f\144\145\154"); $ret = $this->ImplantLineups_model->get_ImplantLineupsByCompanyAndName(array("\163\x74\162\103\157\155\116\x61\155\145" => $strComName, "\x73\164\162\x4c\151\156\145\x75\160\x4e\141\x6d\x65" => $strLineupName)); if (count($ret) > 0 && count($ret[0] > 3)) { return $this->set_response(["\145\162\x72\157\x72\x43\157\x64\145" => ErrorCode::SUCCESS, "\142\123\x79\x6e\143" => setBoolVal($ret[0]["\x6c\x6e\x75\160\137\x73\171\156\x63"]), "\x62\x55\x73\x65\x72\101\144\144\x65\144" => setBoolVal($ret[0]["\154\x6e\x75\x70\x5f\165\163\145\x72\x5f\141\x64\144\145\144"]), "\142\x53\x68\157\167\x48\x69\144\x65" => $ret[0]["\154\x6e\165\160\x5f\165\x73\x65\162\137\144\145\x66\151\x6e\x65\144\137\x31"] == null ? TRUE : setBoolVal($ret[0]["\154\156\x75\x70\x5f\165\x73\x65\x72\137\144\x65\146\151\156\x65\144\x5f\61"]), "\x73\x74\162\x52\x65\163\145\x72\166\145\x64\x32" => $ret[0]["\x6c\156\165\160\x5f\x75\x73\145\162\x5f\144\145\x66\x69\x6e\x65\x64\137\x32"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantLineupsByCompanyAndName_post() { $strComName = $this->post("\x73\x74\x72\x43\x6f\x6d\x4e\x61\155\x65"); $strLineupName = $this->post("\x73\164\x72\x4c\151\156\145\165\160\116\x61\155\145"); if (!isset($strComName) || !isset($strLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\160\x6c\x61\156\x74\x4c\x69\x6e\145\x75\160\163\x5f\155\157\144\145\x6c"); $ret = $this->ImplantLineups_model->post_ImplantLineupsByCompanyAndName($strComName, $strLineupName); if ($ret > 0) { return $this->set_response(["\x65\x72\162\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\162\103\x6f\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantLineupsByCompanyAndName_put() { $strComName = $this->put("\x73\x74\162\103\x6f\x6d\116\141\x6d\145"); $strLineupName = $this->put("\x73\x74\x72\x4c\x69\156\145\x75\x70\x4e\141\x6d\x65"); $Parameters = $this->put(); if (!isset($strComName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\160\x6c\141\x6e\164\x4c\151\156\145\x75\x70\x73\137\x6d\157\x64\x65\154"); $ret = $this->ImplantLineups_model->put_ImplantLineupsByCompanyAndName($strComName, $strLineupName, $Parameters); if ($ret > 0) { return $this->set_response(["\145\x72\x72\157\162\x43\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\157\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantLineupsByCompanyAndName_delete() { $strComName = urldecode($this->get("\x63\157\x6d\x70\141\x6e\x79")); $strLineupName = urldecode($this->get("\156\x61\155\x65")); if (empty($strComName) || empty($strLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\160\154\x61\x6e\x74\x4c\x69\x6e\x65\x75\160\x73\137\x6d\157\144\x65\154"); $ret = $this->ImplantLineups_model->delete_ImplantLineupsByCompanyAndName($strComName, $strLineupName); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\162\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantLineupsByCompany_get() { $strComName = urldecode($this->get("\x63\x6f\155\x70\x61\x6e\x79")); if (empty($strComName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\x70\x6c\141\156\164\x4c\x69\156\145\165\160\163\x5f\x6d\157\x64\145\x6c"); $ret = $this->ImplantLineups_model->get_ImplantLineupsByCompany($strComName); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { if ($row["\x6c\x6e\165\x70\137\x75\163\145\x72\137\144\145\146\151\156\145\144\x5f\x31"] === null || setBoolVal($row["\x6c\x6e\x75\x70\x5f\165\163\145\162\x5f\144\145\x66\x69\156\145\x64\137\x31"]) === true) { array_push($items, $row["\x6c\156\165\x70\x5f\156\x61\x6d\x65"]); } } return $this->set_response(array("\145\x72\x72\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\157\162\x43\157\144\x65"], "\x73\164\x72\154\x4c\151\156\x65\x75\160\116\141\155\145" => $items), REST_Controller::HTTP_OK); } else { return $this->set_response(array("\x65\162\162\x6f\x72\103\157\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\162\157\162\103\157\144\x65"], "\163\164\x72\x6c\x4c\151\x6e\x65\165\160\x4e\x61\x6d\145" => $items), REST_Controller::HTTP_OK); } } public function ImplantLineupsByCompany_post() { $strComName = $this->post("\x73\164\162\x43\x6f\x6d\116\141\155\x65"); $strlLineupName = $this->post("\x73\x74\x72\x6c\x4c\x69\x6e\x65\x75\160\x4e\141\155\x65"); if (!isset($strComName) || !isset($strlLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\160\154\141\156\x74\x4c\x69\156\145\165\x70\163\137\x6d\157\144\145\154"); $ret = $this->ImplantLineups_model->post_ImplantLineupsByCompany($strComName, $strlLineupName); if ($ret > 0) { return $this->set_response(["\145\162\162\x6f\162\103\157\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\x72\103\157\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantCompaniesByNameAndNew_patch() { $strComName = urldecode($this->patch("\x73\164\x72\103\x6f\155\116\x61\155\x65")); $strNewComName = urldecode($this->patch("\163\x74\x72\116\145\x77\x43\157\x6d\x4e\141\155\x65")); if (empty($strComName) || empty($strNewComName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\155\160\x6c\x61\x6e\x74\103\157\x6d\x70\x61\156\151\145\x73\x5f\155\157\x64\x65\154"); $ret = $this->ImplantCompanies_model->patch_ImplantCompaniesByNameAndNew($strComName, $strNewComName); if ($ret > 0) { return $this->set_response(["\145\x72\162\157\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\162\x43\x6f\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantModels_post() { $implantInfo = $this->post(); if (!isset($implantInfo["\163\164\x72\x4d\157\144\x65\154\x4e\141\155\145"]) || !isset($implantInfo["\x73\164\x72\114\151\x6e\145\165\x70"]) || !isset($implantInfo["\x73\164\162\103\157\155\x70\x61\156\171"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\x70\154\x61\156\164\115\x6f\x64\x65\x6c\x73\137\155\157\x64\145\154"); $ret = $this->ImplantModels_model->post_ImplantModels($implantInfo); if ($ret > 0) { return $this->set_response(["\x65\x72\x72\x6f\x72\x43\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function ImplantModels_put() { $implantInfo = $this->put(); if (!isset($implantInfo["\163\164\162\103\x6f\x6d\x70\141\x6e\171"]) || !isset($implantInfo["\x73\x74\x72\x4c\151\x6e\145\165\160"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\x70\154\141\x6e\x74\115\x6f\144\145\x6c\163\x5f\155\157\144\145\x6c"); $ret = $this->ImplantModels_model->put_ImplantModels($implantInfo); if ($ret > 0) { return $this->set_response(["\145\162\162\157\x72\x43\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantCompaniesByNameList_post() { $strlComName = $this->post(); if (!isset($strlComName) || empty($strlComName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\x70\154\141\156\164\x43\157\155\160\141\156\151\x65\x73\x5f\155\x6f\144\x65\154"); $ret = $this->ImplantCompanies_model->post_ImplantCompaniesByNameList($strlComName); if ($ret > 0) { return $this->set_response(["\x65\162\162\x6f\162\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\x72\x43\x6f\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantLineupsByCompanyAndNameAndNew_patch() { $strComName = $this->patch("\163\x74\162\103\157\x6d\x4e\141\155\x65"); $strLineupName = $this->patch("\163\x74\x72\114\151\156\x65\x75\160\116\141\x6d\x65"); $strNewLineupName = $this->patch("\x73\164\162\x4e\x65\167\114\151\156\x65\x75\160\116\x61\x6d\145"); if (!isset($strComName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\160\154\x61\156\164\x4c\x69\156\x65\x75\160\163\x5f\x6d\x6f\144\x65\154"); $ret = $this->ImplantLineups_model->patch_ImplantLineupsByCompanyAndNameAndNew($strComName, $strLineupName, $strNewLineupName); if ($ret > 0) { return $this->set_response(["\x65\x72\162\157\162\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantTableForLineup_post() { load_model($this, "\x49\x6d\160\154\141\x6e\164\124\141\142\x6c\145\137\x6d\x6f\144\145\154"); $ret = $this->ImplantTable_model->post_ImplantTableForLineup(); if ($ret === true) { return $this->set_response(["\145\x72\162\157\162\103\157\x64\x65" => ErrorCode::SUCCESS], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupForE3_get() { $strComName = urldecode($this->get("\143\157\x6d\160\x61\x6e\x79")); $strLineupName = urldecode($this->get("\x6c\x69\156\x65\x75\x70")); if (empty($strComName) || empty($strLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\x70\154\141\x6e\164\115\x6f\144\x65\x6c\x73\x5f\x6d\157\x64\x65\154"); $ret = $this->ImplantModels_model->get_ImplantModelsByCompanyAndLineupForE3($strComName, $strLineupName); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $row["\143\x6f\x6d\137\156\141\x6d\x65"] = $strComName; $row["\x6c\156\165\160\x5f\x6e\141\x6d\145"] = $strLineupName; $sImplantInfo = SImplantInfo::constructWithParameter($row); array_push($items, $sImplantInfo); } return $this->set_response(["\145\x72\162\x6f\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\x72\103\157\x64\x65"], "\x76\145\x63\x49\155\x70\x6c\x61\x6e\x74\111\156\146\157" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\157\162\x43\157\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\x72\x6f\162\103\x6f\144\145"], "\x76\145\143\x49\x6d\x70\154\141\156\x74\111\x6e\x66\x6f" => $items], REST_Controller::HTTP_OK); } } public function SurgicalKitsByCompanyAndLineupAndModel_get() { $strComName = urldecode($this->get("\143\x6f\155\x70\141\156\171")); $strLineupName = urldecode($this->get("\154\x69\x6e\145\x75\x70")); $strModelName = urldecode($this->get("\155\x6f\144\x65\x6c")); if (empty($strComName) || empty($strLineupName) || empty($strModelName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\123\165\x72\147\x69\x63\x61\154\113\x69\164\x73\137\155\157\144\145\x6c"); $ret = $this->SurgicalKits_model->get_SurgicalKitsByCompanyAndLineupAndModel($strComName, $strLineupName, $strModelName); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $strSurgicalKit = $row["\163\165\162\147\151\143\141\154\137\x6b\x69\x74\137\x6e\141\155\145"]; array_push($items, $strSurgicalKit); } return $this->set_response(["\145\x72\162\157\x72\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\162\x43\x6f\144\x65"], "\163\x74\x72\154\123\165\162\147\151\x63\141\154\113\x69\164" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\x72\x72\x6f\x72\x43\157\x64\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\162\103\157\x64\145"], "\163\164\x72\154\x53\165\x72\x67\x69\143\x61\x6c\x4b\151\x74" => $items], REST_Controller::HTTP_OK); } } public function SurgicalKitsByCompanyAndLineupAndModel_post() { $strComName = $this->post("\163\164\x72\103\157\155\x4e\x61\x6d\145"); $strLineupName = $this->post("\163\x74\x72\x4c\151\156\145\165\x70\x4e\141\x6d\145"); $strModelName = $this->post("\163\x74\x72\x4d\157\144\145\x6c\x4e\x61\x6d\x65"); $strlSurgicalKit = $this->post("\163\x74\162\154\x53\165\x72\x67\151\x63\141\x6c\x4b\151\x74"); if (!isset($strComName) || !isset($strLineupName) || !isset($strModelName) || !isset($strlSurgicalKit)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\123\x75\162\x67\x69\x63\141\x6c\x4b\x69\x74\x73\x5f\155\x6f\144\x65\x6c"); $ret = $this->SurgicalKits_model->post_SurgicalKitsByCompanyAndLineupAndModel($strComName, $strLineupName, $strModelName, $strlSurgicalKit); if ($ret > 0) { return $this->set_response(["\145\x72\162\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\x72\x6f\x72\103\157\x64\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function ImplantLineupsByCompanyAndNameForId_get() { $strComName = urldecode($this->get("\x63\157\155\160\141\x6e\x79")); $strLineupName = urldecode($this->get("\156\x61\x6d\145")); if (empty($strComName) || empty($strLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\x70\154\x61\x6e\x74\x4c\151\156\x65\165\x70\x73\x5f\155\157\x64\145\x6c"); $ret = $this->ImplantLineups_model->get_ImplantLineupsByCompanyAndNameForId($strComName, $strLineupName); if (count($ret) > 0) { $nLineupId = $ret[0]["\154\156\x75\x70\137\x69\144"]; return $this->set_response(["\x65\162\x72\x6f\x72\x43\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\x72\x43\157\144\x65"], "\x6e\x4c\151\156\145\x75\160\111\144" => $nLineupId], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantCompaniesByName_get() { $strComName = urldecode($this->get("\156\141\x6d\145")); if (!isset($strComName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $strComName = urldecode($strComName); load_model($this, "\111\155\160\x6c\x61\156\164\103\157\155\160\x61\156\x69\145\x73\x5f\x6d\157\144\x65\x6c"); $ret = $this->ImplantCompanies_model->get_ImplantCompaniesByName($strComName); if (count($ret) > 0 && count($ret[0]) > 3) { return $this->set_response(["\x65\162\162\x6f\x72\x43\157\x64\x65" => ErrorCode::SUCCESS, "\x62\123\171\x6e\x63" => setBoolVal($ret[0]["\x63\157\x6d\137\163\171\x6e\143"]), "\x62\x55\x73\x65\x72\x41\x64\144\x65\x64" => setBoolVal($ret[0]["\x63\x6f\155\x5f\165\x73\145\x72\137\141\x64\144\145\144"]), "\x62\122\145\163\x65\162\166\x65\144\x31" => setBoolVal($ret[0]["\143\x6f\x6d\x5f\x75\163\145\162\x5f\x64\x65\x66\x69\x6e\145\x64\137\61"]), "\163\x74\162\x56\x65\162\x73\151\x6f\156" => $ret[0]["\x63\157\155\x5f\x75\x73\x65\162\x5f\x64\x65\x66\151\x6e\145\144\x5f\x32"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantCompaniesByName_post() { $strComName = urldecode($this->post("\163\x74\162\x43\157\x6d\116\x61\155\145")); if (!isset($strComName) || empty($strComName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\160\x6c\141\156\164\x43\x6f\155\x70\141\156\x69\145\x73\137\x6d\157\144\x65\x6c"); $ret = $this->ImplantCompanies_model->post_ImplantCompaniesByName($strComName); if ($ret > 0) { return $this->set_response(["\145\162\162\157\x72\x43\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\162\x43\x6f\x64\145"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } } public function ImplantCompaniesByName_delete() { $strComName = urldecode($this->get("\156\x61\x6d\x65")); if (empty($strComName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\155\x70\x6c\141\156\x74\x43\157\x6d\160\x61\x6e\151\145\x73\137\x6d\157\x64\x65\x6c"); $ret = $this->ImplantCompanies_model->delete_ImplantCompaniesByName($strComName); if ($ret > 0) { return $this->set_response(["\145\162\162\x6f\x72\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\x6f\162\x43\157\144\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantTableForModel_post() { load_model($this, "\111\x6d\160\x6c\141\156\164\x54\x61\142\x6c\145\x5f\x6d\x6f\144\145\154"); $ret = $this->ImplantTable_model->post_ImplantTableForModel(); if ($ret === true) { $this->set_response(["\145\x72\x72\x6f\162\x43\x6f\144\145" => ErrorCode::SUCCESS], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupAndName_get() { $strComName = urldecode($this->get("\x63\157\155\x70\x61\156\x79")); $strLineupName = urldecode($this->get("\x6c\151\x6e\145\165\160")); $strModelName = urldecode($this->get("\x6e\x61\x6d\145")); if (empty($strComName) || empty($strLineupName) || empty($strModelName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\160\x6c\x61\156\164\115\x6f\144\x65\x6c\163\x5f\155\x6f\x64\145\154"); $ret = $this->ImplantModels_model->get_ImplantModelsByCompanyAndLineupAndName($strComName, $strLineupName, $strModelName); if (count($ret) > 0 && count($ret[0]) > 0) { $ret[0]["\x63\157\155\x5f\156\x61\155\145"] = $strComName; $ret[0]["\154\156\165\x70\137\156\141\x6d\x65"] = $strLineupName; $sImplantInfo = SImplantInfo::constructWithParameter($ret[0], "\150\x65\170"); return $this->set_response(["\145\162\x72\x6f\162\103\157\144\145" => ErrorCode::SUCCESS, "\151\155\160\154\141\x6e\164\111\156\146\x6f" => $sImplantInfo], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupAndName_delete() { $strComName = urldecode($this->get("\143\157\x6d\160\x61\156\171")); $strLineupName = urldecode($this->get("\154\x69\156\x65\x75\160")); $strModelName = urldecode($this->get("\x6e\x61\155\145")); if (empty($strComName) || empty($strLineupName) || empty($strModelName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\160\154\141\156\x74\x4d\x6f\x64\x65\154\x73\137\155\x6f\x64\145\x6c"); $ret = $this->ImplantModels_model->delete_ImplantModelsByCompanyAndLineupAndName($strComName, $strLineupName, $strModelName); if ($ret > 0) { return $this->set_response(["\145\x72\162\157\162\103\x6f\144\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\x72\x6f\x72\103\157\144\x65"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function SurgicalKitsByImplant_put() { $implantInfo = $this->put(); if (!isset($implantInfo["\x73\164\162\x4d\157\144\x65\154\116\x61\x6d\145"]) || !isset($implantInfo["\163\164\162\114\151\156\145\x75\160"]) || !isset($implantInfo["\163\164\162\103\157\155\x70\x61\156\x79"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\123\165\x72\147\151\x63\141\x6c\113\151\164\163\137\155\x6f\144\x65\x6c"); $ret = $this->SurgicalKits_model->put_SurgicalKitsByImplant($implantInfo); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $strSurgicalKit = array(); $strSurgicalKit = $row["\163\165\x72\x67\151\x63\141\x6c\137\x6b\151\x74\x5f\156\x61\155\145"]; array_push($items, $strSurgicalKit); } return $this->set_response(["\x65\x72\162\157\162\103\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\x6f\162\x43\x6f\144\145"], "\x73\x74\x72\x6c\x53\165\x72\147\x69\143\141\x6c\x4b\151\x74" => $items], REST_Controller::HTTP_OK); } else { return $this->set_response(["\145\162\x72\157\x72\x43\x6f\x64\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\162\x72\157\162\103\x6f\144\x65"], "\163\164\x72\x6c\x53\x75\x72\147\x69\x63\141\154\x4b\151\164" => $items], REST_Controller::HTTP_OK); } } public function SurgicalKitsByImplant_post() { $parameters = $this->post(); if (!isset($parameters["\151\155\160\x6c\141\156\x74\111\156\146\x6f"]["\163\164\162\103\157\x6d\160\x61\x6e\171"]) || !isset($parameters["\x69\155\x70\x6c\141\156\x74\111\156\146\157"]["\163\x74\x72\x4c\151\x6e\145\x75\160"]) || !isset($parameters["\151\x6d\160\154\x61\x6e\164\111\x6e\x66\157"]["\163\164\162\115\157\144\145\x6c\x4e\x61\155\145"]) || !isset($parameters["\163\164\x72\x6c\123\165\162\x67\151\143\x61\x6c\113\151\164"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\123\165\x72\x67\x69\143\x61\x6c\113\x69\164\x73\137\155\157\144\145\154"); $ret = $this->SurgicalKits_model->post_SurgicalKitsByImplant($parameters); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\162\103\x6f\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\x72\162\x6f\x72\x43\157\144\145"]], REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_OVERLAP) { return $this->set_response(returnSetResponse(VERR_DB_OVERLAP), REST_Controller::HTTP_OK); } elseif ($ret === VERR_DB_NOSUCHDATA) { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_INVALIDDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupAndNameForId_get() { $strComName = urldecode($this->get("\x63\157\155\160\141\x6e\171")); $strLineupName = urldecode($this->get("\x6c\151\156\145\165\x70")); $strModelName = urldecode($this->get("\156\x61\155\145")); if (empty($strComName) || empty($strLineupName) || empty($strModelName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\x70\x6c\141\156\x74\x4d\x6f\x64\145\154\x73\x5f\155\157\144\145\x6c"); $ret = $this->ImplantModels_model->get_ImplantModelsByCompanyAndLineupAndNameForId($strComName, $strLineupName, $strModelName); if (count($ret) > 0) { return $this->set_response(["\145\x72\162\x6f\162\x43\x6f\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\x72\x6f\162\103\157\x64\145"], "\x6e\115\157\x64\x65\154\x49\x64" => $ret[0]["\155\157\144\145\154\x5f\151\144"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupAndNameAndNew_patch() { $strComName = $this->patch("\163\164\x72\103\x6f\155\116\x61\x6d\x65"); $strLineupName = $this->patch("\163\164\x72\114\151\156\x65\x75\x70\x4e\x61\x6d\145"); $strModelName = $this->patch("\x73\164\x72\x4d\x6f\x64\145\154\116\141\155\145"); $strNewModelName = $this->patch("\163\x74\x72\116\x65\x77\115\157\x64\x65\x6c\116\x61\x6d\145"); if (!isset($strComName) || !isset($strLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x6d\x70\x6c\141\156\x74\x4d\157\x64\145\154\163\x5f\x6d\x6f\144\x65\154"); $ret = $this->ImplantModels_model->patch_ImplantModelsByCompanyAndLineupAndNameAndNew($strComName, $strLineupName, $strModelName, $strNewModelName); if ($ret > 0) { return $this->set_response(["\x65\162\x72\x6f\x72\103\157\144\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\145\162\162\157\162\103\157\x64\x65"]], REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_DB_NOSUCHDATA), REST_Controller::HTTP_OK); } } public function ImplantModelsByCompanyAndLineupAndFileEncodingWithoutStl_get() { $strComName = urldecode($this->get("\x63\157\x6d\x70\141\156\x79")); $strLineupName = urldecode($this->get("\154\151\156\145\165\160")); $fileEncoding = urldecode($this->get("\x66\151\154\x65\x65\x6e\143\x6f\x64\x69\x6e\147")); if (empty($strComName) || empty($strLineupName)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\155\x70\x6c\x61\156\x74\115\x6f\144\x65\154\x73\137\x6d\x6f\x64\x65\x6c"); $ret = $this->ImplantModels_model->get_ImplantModelsByCompanyAndLineupAndFileEncodingWithoutStl($strLineupName, $strComName, $fileEncoding); if ($ret["\x65\162\162\157\162\103\x6f\x64\x65"] == VERR_COMMON_SUCCESS || $ret["\145\x72\x72\x6f\162\103\x6f\x64\x65"] == VERR_DB_NOSUCHDATA) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { return $this->set_response($ret, REST_Controller::HTTP_BAD_REQUEST); } } public function ImplantModelsByModelsWithoutStl_post() { $parameters = $this->post(); if (!isset($parameters["\x76\145\x63\x49\155\160\154\x61\x6e\164\x4d\157\144\145\x6c\163"]) || empty($parameters["\x76\x65\143\x49\x6d\x70\x6c\141\156\x74\115\157\x64\x65\154\163"])) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\111\x6d\x70\154\141\156\x74\x4d\157\144\x65\154\163\x5f\155\x6f\144\x65\154"); $ret = $this->ImplantModels_model->post_ImplantModelsByModelsWithoutStl($parameters["\166\145\x63\111\155\160\154\x61\156\x74\x4d\157\144\x65\154\163"], $parameters["\146\151\154\145\x45\x6e\x63\157\x64\x69\156\147"]); if ($ret["\x65\162\162\157\162\103\x6f\x64\145"] == VERR_COMMON_SUCCESS || $ret["\x65\x72\162\x6f\162\103\x6f\144\x65"] == VERR_DB_NOSUCHDATA) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { return $this->set_response($ret, REST_Controller::HTTP_BAD_REQUEST); } } public function ImplantCompaniesByIsShown_get() { $bIsShown = filter_var(urldecode($this->get("\x69\x73\163\x68\157\x77\156")), FILTER_VALIDATE_BOOLEAN); if ($bIsShown !== true && $bIsShown !== false) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\155\x70\x6c\141\156\x74\103\157\x6d\160\141\x6e\151\x65\x73\137\x6d\x6f\x64\145\154"); $ret = $this->ImplantCompanies_model->get_ImplantCompaniesByIsShown($bIsShown); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function ImplantSTLFilesInZipFile_post() { $vecImplantModels = $this->post("\x76\x65\143\x49\155\x70\154\x61\x6e\x74\x4d\157\x64\145\154\163"); if (empty($vecImplantModels)) { vt_loge("\111\x6d\160\x6c\141\156\x74\x53\124\114\x46\151\x6c\x65\x73\111\156\x5a\151\x70\106\151\x6c\145\137\x70\157\x73\x74\40\101\x70\151\56\40" . "\x49\x6e\x76\x61\154\151\x64\40\120\141\162\141\x6d\145\x74\x65\162\40\x45\x72\162\157\162\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x49\155\160\x6c\141\x6e\164\123\x54\x4c\x46\x69\154\145\163\137\x6d\x6f\144\145\x6c"); $ret = $this->ImplantSTLFiles_model->post_ImplantSTLFilesInZipFile($vecImplantModels); if ($ret["\x65\x72\x72\x6f\162\103\157\144\x65"] == VERR_COMMON_SUCCESS) { $this->load->model("\x44\x61\x74\141\x66\151\x6c\145\137\155\x6f\x64\145\x6c"); $this->Datafile_model->DownloadFile($ret["\x66\151\154\145\116\x61\x6d\145"]); } else { if ($ret["\x65\x72\x72\157\162\103\x6f\x64\x65"] == VERR_COMMON_INVALID) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } else { $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/Info.php b/server/original/www/ezwebserver/src/application/controllers/v1/Info.php new file mode 100644 index 0000000..d9464a2 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/Info.php @@ -0,0 +1,7 @@ +get("\x6e\x61\155\145")); $data = $this->Versions_model->get_VersionsByName($name); $serverName = $this->Versions_model->getServerName(); $this->set_response(["\x65\x72\x72\157\162\103\x6f\x64\145" => VERR_COMMON_SUCCESS, "\143\154\151\145\x6e\164\x56\x65\x72\x73\x69\x6f\156" => $data[0], "\163\145\x72\x76\145\x72\x56\145\162\x73\x69\x6f\x6e" => $data[1], "\163\145\162\x76\x65\x72\116\x61\155\145" => $serverName], REST_Controller::HTTP_OK); } public function Versions_get() { $data = $this->Versions_model->get_Versions(); $currentVersion = $this->Versions_model->getCurrentVersion(); if ($currentVersion["\x65\x72\x72\x6f\162\103\x6f\x64\145"] !== VERR_COMMON_SUCCESS) { return $this->set_response(returnSetResponse($currentVersion["\145\x72\x72\157\162\103\157\x64\145"]), REST_Controller::HTTP_BAD_REQUEST); } else { $currentVersionName = $currentVersion["\143\x75\x72\162\145\x6e\164\x56\145\162\163\x69\157\x6e\x4e\x61\155\x65"]; } $currentStageVersion = $this->Versions_model->getCurrentStageVersion(); if ($currentStageVersion["\x65\162\x72\157\x72\x43\x6f\144\x65"] !== VERR_COMMON_SUCCESS) { return $this->set_response(returnSetResponse($currentVersion["\x65\x72\x72\157\x72\x43\x6f\x64\145"]), REST_Controller::HTTP_BAD_REQUEST); } else { $currentStageVersionName = $currentStageVersion["\x63\165\162\x72\145\x6e\x74\x53\x74\x61\x67\145\x56\x65\162\163\x69\157\x6e\x4e\141\x6d\145"]; } $serverName = $this->Versions_model->getServerName(); $this->set_response(["\x65\162\162\x6f\x72\103\x6f\x64\145" => VERR_COMMON_SUCCESS, "\163\145\x72\x76\145\x72\x4e\x61\x6d\145" => $serverName, "\x63\165\162\x72\145\156\164\x56\x65\162\x73\x69\157\x6e\x4e\x61\155\145" => $currentVersionName, "\143\x75\x72\162\145\x6e\x74\x53\x74\141\147\x65\126\x65\x72\163\x69\157\156\116\141\155\x65" => $currentStageVersionName, "\x76\x65\x72\x73\151\x6f\156\x73" => $data], REST_Controller::HTTP_OK); } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/Iosensor.php b/server/original/www/ezwebserver/src/application/controllers/v1/Iosensor.php new file mode 100644 index 0000000..1ef49c3 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/Iosensor.php @@ -0,0 +1,7 @@ +get("\x73\145\162\151\x61\x6c\156\165\155\142\145\162")); if (empty($serialNumber)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x49\x4f\123\x65\156\163\x6f\x72\x73\137\x6d\x6f\x64\145\154"); $ret = $this->IOSensors_model->get_IOSensorsBySerialNumber($serialNumber); if ($ret["\145\162\x72\x6f\x72\103\x6f\x64\x65"] == VERR_COMMON_SUCCESS) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { if ($ret["\x65\162\x72\157\162\x43\157\x64\145"] == VERR_COMMON_NOFILE) { return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function CalibrationFilesInZipFileBySerialNumber_get() { $serialNumber = urldecode($this->get("\163\145\x72\x69\x61\x6c\156\x75\155\x62\145\x72")); if (empty($serialNumber)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } load_model($this, "\x43\141\154\151\x62\162\x61\164\x69\157\156\x46\151\x6c\145\x73\x5f\x6d\157\x64\x65\154"); $ret = $this->CalibrationFiles_model->get_CalibrationFilesInZipFileBySerialNumber($serialNumber); if ($ret["\x65\162\x72\x6f\162\x43\157\144\x65"] == VERR_COMMON_SUCCESS) { vt_logi(json_encode($ret)); $this->load->model("\x44\141\x74\x61\146\151\x6c\145\x5f\155\157\144\145\x6c"); $this->Datafile_model->DownloadFile($ret["\146\151\x6c\x65\x4e\x61\155\x65"]); } else { if ($ret["\145\x72\162\x6f\162\x43\157\144\145"] == VERR_COMMON_NOFILE) { return $this->set_response(returnSetResponse(VERR_COMMON_NOFILE), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(returnSetResponse(VERR_COMMON_IO), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/Orthods.php b/server/original/www/ezwebserver/src/application/controllers/v1/Orthods.php new file mode 100644 index 0000000..86d5f41 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/Orthods.php @@ -0,0 +1,7 @@ +load->enum(); $this->load->struct(); } public function AnalysesP2_get() { $modality = trim(urldecode($this->get("\155\157\144\141\x6c\x69\x74\x79"))); if (empty($modality)) { vt_loge(__METHOD__ . "\x3a" . "\124\x68\x65\40\160\x61\x72\x61\155\x65\x74\145\x72\40\x69\x73\x20\x69\156\x76\141\154\151\x64\x20\x64\x61\164\x61\72\x20" . $modality); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\101\x6e\141\154\x79\163\x65\163\x5f\x6d\x6f\144\x65\x6c"); $ret = $this->Analyses_model->get_AnalysesP2($modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function AnalysesP3_get() { $landmarkname = trim(urldecode($this->get("\x6c\141\x6e\x64\x6d\x61\162\153\x6e\x61\155\145"))); $modality = trim(urldecode($this->get("\x6d\157\x64\x61\154\x69\164\x79"))); if (empty($landmarkname) || empty($modality)) { vt_loge(__METHOD__ . "\72" . "\120\141\x72\x61\155\145\164\145\162\x73\40\x61\x72\x65\x20\x69\x6e\x76\141\x6c\151\144\40\144\x61\x74\x61\x3a\40" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x41\x6e\141\x6c\171\163\145\163\137\155\157\x64\145\154"); $ret = $this->Analyses_model->get_AnalysesP3($landmarkname, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function AnalysesP4_get() { $guidelinename = trim(urldecode($this->get("\x67\x75\151\144\145\x6c\x69\156\145\156\141\x6d\145"))); $modality = trim(urldecode($this->get("\x6d\x6f\144\141\154\x69\x74\x79"))); if (empty($guidelinename) || empty($modality)) { vt_loge(__METHOD__ . "\72" . "\x50\x61\x72\x61\155\145\164\x65\x72\163\x20\141\162\x65\40\151\156\x76\x61\x6c\151\144\40\x64\141\x74\141\x3a\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x41\x6e\141\154\x79\x73\x65\x73\x5f\x6d\157\x64\x65\154"); $ret = $this->Analyses_model->get_AnalysesP4($guidelinename, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function AnalysesP5_get() { $measurementname = trim(urldecode($this->get("\x6d\x65\x61\163\165\x72\x65\155\x65\x6e\x74\156\x61\155\145"))); $modality = trim(urldecode($this->get("\x6d\x6f\144\x61\x6c\x69\x74\x79"))); if (empty($measurementname) || empty($modality)) { vt_loge(__METHOD__ . "\72" . "\x50\141\162\141\x6d\145\x74\145\162\163\40\141\x72\145\40\151\x6e\166\x61\x6c\x69\x64\x20\x64\x61\164\x61\72\40" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x41\156\x61\154\x79\x73\x65\163\x5f\x6d\x6f\x64\x65\154"); $ret = $this->Analyses_model->get_AnalysesP5($measurementname, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Analyses_get() { $analysisname = trim(urldecode($this->get("\156\141\155\x65"))); $modality = trim(urldecode($this->get("\155\157\144\141\x6c\x69\164\x79"))); if (empty($analysisname) || empty($modality)) { vt_loge(__METHOD__ . "\x3a" . "\x50\141\x72\141\x6d\x65\x74\145\x72\163\40\141\x72\x65\x20\151\156\166\141\x6c\151\x64\40\144\x61\164\141\72\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x41\x6e\x61\154\x79\x73\145\x73\x5f\x6d\x6f\x64\145\154"); $ret = $this->Analyses_model->get_Analyses($analysisname, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Analyses_delete() { $analysisname = trim(urldecode($this->get("\156\x61\155\145"))); $modality = trim(urldecode($this->get("\155\x6f\144\141\x6c\x69\164\171"))); if (empty($analysisname) || empty($modality)) { vt_loge(__METHOD__ . "\x3a" . "\x50\x61\x72\141\155\145\164\145\x72\163\x20\x61\162\145\40\151\156\166\141\154\x69\x64\40\144\x61\x74\x61\72\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\101\x6e\x61\x6c\x79\x73\x65\x73\x5f\155\x6f\144\145\154"); $ret = $this->Analyses_model->delete_Analyses($analysisname, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Analyses_post() { $parameters = $this->post(); if (!isset($parameters["\156\141\155\145"]) || !isset($parameters["\x6d\157\144\141\154\x69\164\171"]) || empty(trim($parameters["\156\x61\155\x65"])) || empty(trim($parameters["\155\x6f\x64\141\154\x69\x74\171"]))) { vt_loge(__METHOD__ . "\72" . "\x50\141\x72\x61\155\x65\x74\x65\x72\163\40\x61\x72\145\40\x69\156\x76\x61\x6c\151\144\40\x64\x61\164\x61\x3a\40" . json_encode($parameters)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $analysisname = trim($parameters["\156\x61\x6d\145"]); $modality = trim($parameters["\x6d\157\x64\x61\x6c\151\164\x79"]); $label = trim($parameters["\154\x61\x62\x65\154"]); if (empty($label)) { $label = $analysisname; } $userAdded = filter_var($parameters["\165\x73\145\x72\101\144\144\145\x64"], FILTER_VALIDATE_BOOLEAN); $measureGroups = $parameters["\x6d\145\x61\x73\165\x72\x65\x47\x72\x6f\165\x70\163"]; $guidelinesNames = $parameters["\147\165\151\144\145\154\x69\x6e\x65\163\x4e\141\x6d\x65\163"]; $this->load->model("\x41\156\141\x6c\171\163\145\163\137\155\x6f\x64\x65\154"); $ret = $this->Analyses_model->post_Analyses($analysisname, $label, $userAdded, $modality, $measureGroups, $guidelinesNames); if ($ret === VERR_DB_INVALIDDATA) { return $this->set_response(createResponse($ret), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(createResponse($ret), REST_Controller::HTTP_OK); } } public function Analyses_put() { $parameters = $this->put(); if (!isset($parameters["\156\141\x6d\145"]) || !isset($parameters["\x6d\x6f\144\141\x6c\x69\x74\x79"]) || empty(trim($parameters["\x6e\141\x6d\145"])) || empty(trim($parameters["\155\157\x64\x61\154\151\x74\x79"])) || empty($parameters["\x6d\145\x61\x73\x75\162\145\107\162\x6f\165\160\163"]) && empty($parameters["\147\165\x69\144\145\154\151\156\x65\163\x4e\x61\155\145\x73"])) { vt_loge(__METHOD__ . "\72" . "\120\141\x72\x61\155\x65\164\145\162\163\40\141\162\145\40\x69\156\x76\141\154\x69\x64\x20\x64\x61\164\x61\72\40" . json_encode($parameters)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $analysisname = trim($parameters["\x6e\x61\x6d\x65"]); $label = trim($parameters["\x6c\x61\142\x65\154"]); $modality = trim($parameters["\x6d\x6f\144\x61\x6c\x69\x74\x79"]); $measureGroups = $parameters["\155\145\141\x73\x75\162\145\107\162\x6f\x75\160\163"]; $guidelinesNames = $parameters["\147\165\151\144\145\154\x69\x6e\x65\163\x4e\x61\155\x65\x73"]; $userAdded = $parameters["\165\163\145\162\x41\144\144\145\144"]; $this->load->model("\x41\x6e\x61\154\171\163\145\x73\x5f\x6d\x6f\x64\x65\154"); $ret = $this->Analyses_model->put_Analyses($analysisname, $label, $modality, $measureGroups, $guidelinesNames, $userAdded); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function AnalysesP6_put() { $this->load->model("\x41\x6e\x61\154\171\163\x65\x73\x5f\x6d\157\x64\x65\x6c"); $ret = $this->Analyses_model->put_AnalysesP6($this->put()); if ($ret == VERR_COMMON_INVALID) { return $this->set_response(createResponse($ret), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(createResponse($ret), REST_Controller::HTTP_OK); } } public function Formulas_get() { $this->load->model("\106\157\162\155\x75\x6c\x61\163\x5f\x6d\157\x64\145\x6c"); $ret = $this->Formulas_model->get_Formulas(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function GuidelinesP2_get() { $modality = trim(urldecode($this->get("\155\x6f\144\141\x6c\151\x74\x79"))); if (empty($modality)) { vt_loge(__METHOD__ . "\x3a" . "\x54\x68\145\x20\160\x61\162\x61\155\x65\164\x65\162\x20\x69\163\x20\151\156\x76\x61\154\x69\144\40\144\141\x74\x61\72\x20" . $modality); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\107\165\x69\144\x65\154\151\x6e\145\163\137\155\157\x64\145\x6c"); $ret = $this->Guidelines_model->get_GuidelinesP2($modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Guidelines_get() { $guidelinename = trim(urldecode($this->get("\x6e\141\x6d\x65"))); $modality = trim(urldecode($this->get("\155\x6f\144\141\x6c\151\x74\171"))); if (empty($guidelinename) || empty($modality)) { vt_loge(__METHOD__ . "\72" . "\x50\141\162\141\155\145\x74\145\x72\163\40\141\162\145\40\151\x6e\166\141\154\x69\144\x20\x64\x61\x74\x61\x3a\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x47\x75\x69\x64\x65\x6c\151\x6e\145\163\x5f\x6d\157\x64\145\154"); $ret = $this->Guidelines_model->get_Guidelines($guidelinename, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Guidelines_delete() { $guidelinename = trim(urldecode($this->get("\156\141\x6d\x65"))); $modality = trim(urldecode($this->get("\155\157\144\x61\154\x69\164\171"))); if (empty($guidelinename) || empty($modality)) { vt_loge(__METHOD__ . "\x3a" . "\120\141\162\141\155\x65\164\145\x72\163\40\x61\162\x65\x20\x69\x6e\x76\x61\x6c\151\144\x20\x64\x61\x74\x61\72\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x47\x75\x69\144\x65\x6c\151\156\x65\163\137\155\157\x64\145\154"); $ret = $this->Guidelines_model->delete_Guidelines($guidelinename, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Guidelines_post() { $sGuidelineInfoParameter = SGuidelineInfoParameter::constructWithParameter($this->post()); if (!isset($sGuidelineInfoParameter)) { vt_loge(__METHOD__ . "\72" . "\x50\141\x72\141\155\145\164\145\x72\163\40\x61\162\145\x20\151\x6e\x76\x61\154\151\x64\40\144\141\164\141\x3a\40" . json_encode($sGuidelineInfoParameter)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\107\x75\151\144\x65\x6c\x69\x6e\x65\x73\137\x6d\x6f\x64\x65\x6c"); $ret = $this->Guidelines_model->post_Guidelines($sGuidelineInfoParameter); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Guidelines_put() { $sGuidelineInfoParameter = SGuidelineInfoParameter::constructWithParameter($this->put()); if (!isset($sGuidelineInfoParameter)) { vt_loge(__METHOD__ . "\72" . "\x50\x61\x72\x61\155\x65\164\x65\x72\163\40\x61\162\x65\x20\x69\156\x76\141\154\151\144\x20\144\141\164\141\72\40" . json_encode($sGuidelineInfoParameter)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\107\x75\x69\144\145\x6c\151\156\145\x73\x5f\x6d\x6f\144\145\x6c"); $ret = $this->Guidelines_model->put_Guidelines($sGuidelineInfoParameter); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function LandmarksP2_get() { $modality = trim(urldecode($this->get("\x6d\x6f\x64\x61\x6c\x69\164\x79"))); if (empty($modality)) { vt_loge(__METHOD__ . "\x3a" . "\x54\x68\145\x20\160\x61\162\141\x6d\x65\x74\x65\162\x20\151\x73\40\x69\x6e\166\141\x6c\x69\144\x20\x64\141\164\x61\x3a\x20" . $modality); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\114\141\156\144\x6d\141\162\x6b\163\x5f\x6d\157\x64\x65\x6c"); $ret = $this->Landmarks_model->get_LandmarksP2($modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function LandmarksP3_get() { $modality = trim(urldecode($this->get("\155\157\x64\x61\154\x69\x74\171"))); $landmarktype = trim(urldecode($this->get("\x74\x79\160\x65"))); if (empty($modality) || empty($landmarktype)) { vt_loge(__METHOD__ . "\72" . "\x50\x61\x72\141\155\x65\x74\145\162\x73\x20\141\162\x65\x20\x69\156\166\x61\154\x69\x64\x20\x64\x61\164\141\72\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\114\x61\156\x64\155\x61\162\153\163\x5f\x6d\157\144\x65\x6c"); $ret = $this->Landmarks_model->get_LandmarksP3($landmarktype, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function LandmarksP4_get() { $simulationname = trim(urldecode($this->get("\x73\x69\x6d\x75\154\x61\164\151\157\x6e\x6e\x61\155\x65"))); if (empty($simulationname) || !(strcasecmp($simulationname, "\x56\124\x4f\x53\x54\x4f") === 0 || strcasecmp($simulationname, "\x50\x72\x6f\146\151\x6c\157\147\x72\141\155") === 0 || strcasecmp($simulationname, "\101\x6c\x6c") === 0)) { vt_loge(__METHOD__ . "\72" . "\x50\x61\162\141\155\x65\164\x65\x72\x73\40\141\162\145\x20\151\x6e\x76\x61\x6c\151\x64\40\x64\x61\x74\141\x3a\x20" . json_encode($simulationname)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\114\x61\x6e\x64\x6d\x61\x72\x6b\x73\137\155\x6f\x64\145\x6c"); $ret = $this->Landmarks_model->get_LandmarksP4($simulationname); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Landmarks_get() { $landmarkname = trim(urldecode($this->get("\156\x61\x6d\145"))); $modality = trim(urldecode($this->get("\155\157\144\141\154\x69\164\171"))); if (empty($landmarkname) || empty($modality)) { vt_loge(__METHOD__ . "\72" . "\x50\141\x72\x61\155\x65\164\145\162\163\40\x61\162\145\x20\151\x6e\166\x61\154\x69\x64\40\x64\141\x74\x61\x3a\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\114\141\156\144\x6d\141\162\153\x73\137\x6d\157\144\x65\x6c"); $ret = $this->Landmarks_model->get_Landmarks($landmarkname, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Landmarks_delete() { $landmarkname = trim(urldecode($this->get("\156\141\x6d\145"))); $modality = trim(urldecode($this->get("\155\157\144\141\x6c\151\x74\171"))); if (empty($landmarkname) || empty($modality)) { vt_loge(__METHOD__ . "\72" . "\120\x61\162\x61\155\x65\164\x65\x72\163\40\141\x72\145\x20\151\x6e\x76\141\154\x69\144\40\144\141\x74\x61\72\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x4c\x61\156\x64\155\141\x72\x6b\x73\137\x6d\x6f\144\x65\x6c"); $ret = $this->Landmarks_model->delete_Landmarks($landmarkname, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Landmarks_post() { $sLandmarkInfoParameter = SLandmarkInfoParameter::constructWithParameter($this->post()); if (!isset($sLandmarkInfoParameter)) { vt_loge(__METHOD__ . "\72" . "\x50\141\162\141\x6d\x65\164\145\162\x73\x20\141\162\145\x20\x69\x6e\x76\141\x6c\x69\144\40\x64\x61\164\141\x3a\40" . json_encode($sLandmarkInfoParameter)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x4c\x61\x6e\144\155\141\162\x6b\x73\137\x6d\157\144\x65\154"); $ret = $this->Landmarks_model->post_Landmarks($sLandmarkInfoParameter); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Landmarks_put() { $sLandmarkInfoParameter = SLandmarkInfoParameter::constructWithParameter($this->put()); if (!isset($sLandmarkInfoParameter)) { vt_loge(__METHOD__ . "\72" . "\120\x61\x72\141\155\x65\164\x65\162\x73\x20\x61\162\145\40\x69\156\x76\x61\x6c\151\x64\40\x64\x61\164\141\x3a\x20" . json_encode($sLandmarkInfoParameter)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\114\141\156\x64\x6d\x61\162\x6b\x73\137\x6d\x6f\x64\x65\154"); $ret = $this->Landmarks_model->put_Landmarks($sLandmarkInfoParameter); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function MeasurementsP2_get() { $modality = trim(urldecode($this->get("\x6d\x6f\144\x61\x6c\151\x74\171"))); $searchjson_param = strtolower(trim(urldecode($this->get("\x73\x65\x61\162\x63\150\152\163\157\156")))); if (empty($modality) || $searchjson_param !== "\x74\x72\165\145" && $searchjson_param !== "\x66\141\154\163\145") { vt_loge(__METHOD__ . "\72" . "\120\x61\x72\x61\155\x65\x74\145\x72\x73\x20\x61\x72\145\40\x69\156\166\141\x6c\151\x64\40\144\x61\x74\141\x3a\40" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $searchjson = filter_var($searchjson_param, FILTER_VALIDATE_BOOLEAN); $this->load->model("\115\145\141\163\x75\162\x65\x6d\145\x6e\x74\163\x5f\x6d\157\x64\x65\x6c"); $ret = $this->Measurements_model->get_MeasurementsP2($modality, $searchjson); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Measurements_get() { $measurementname = trim(urldecode($this->get("\156\x61\155\145"))); $modality = trim(urldecode($this->get("\155\157\x64\141\154\151\x74\x79"))); if (empty($measurementname) || empty($modality)) { vt_loge(__METHOD__ . "\x3a" . "\x50\x61\x72\141\x6d\x65\164\145\162\163\40\x61\x72\145\40\151\156\x76\x61\x6c\151\144\x20\144\141\x74\141\x3a\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x4d\145\x61\x73\165\x72\145\155\145\156\164\x73\137\x6d\157\x64\x65\x6c"); $ret = $this->Measurements_model->get_Measurements($measurementname, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Measurements_delete() { $measurementname = trim(urldecode($this->get("\x6e\141\x6d\145"))); $modality = trim(urldecode($this->get("\155\x6f\144\x61\x6c\x69\164\x79"))); if (empty($measurementname) || empty($modality)) { vt_loge(__METHOD__ . "\72" . "\x50\141\x72\x61\x6d\x65\164\145\162\x73\40\x61\162\145\x20\151\156\166\x61\154\x69\x64\40\x64\141\164\x61\x3a\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x4d\x65\141\x73\x75\x72\145\155\x65\156\164\x73\137\155\157\x64\x65\x6c"); $ret = $this->Measurements_model->delete_Measurements($measurementname, $modality); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Measurements_post() { $sMeasurementInfoParameter = SMeasurementInfoParameter::constructWithParameter($this->post()); if (!isset($sMeasurementInfoParameter)) { vt_loge(__METHOD__ . "\72" . "\x50\141\x72\141\x6d\145\x74\145\162\x73\40\141\162\x65\x20\x69\x6e\166\x61\x6c\x69\x64\x20\x64\141\x74\141\x3a\40" . json_encode($sMeasurementInfoParameter)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\115\145\141\x73\x75\162\145\x6d\x65\x6e\x74\x73\137\x6d\157\144\x65\x6c"); $ret = $this->Measurements_model->post_Measurements($sMeasurementInfoParameter); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Measurements_put() { $sMeasurementInfoParameter = SMeasurementInfoParameter::constructWithParameter($this->put()); if (!isset($sMeasurementInfoParameter)) { vt_loge(__METHOD__ . "\x3a" . "\120\x61\162\x61\155\x65\x74\x65\x72\163\x20\x61\162\x65\x20\x69\x6e\166\141\x6c\151\x64\40\x64\x61\164\141\x3a\40" . json_encode($sMeasurementInfoParameter)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\115\145\141\x73\165\x72\x65\x6d\145\156\164\163\x5f\x6d\x6f\x64\145\154"); $ret = $this->Measurements_model->put_Measurements($sMeasurementInfoParameter); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function OrthoDataVersions_get() { $this->load->model("\117\x72\164\150\157\104\141\x74\x61\126\x65\x72\163\151\157\x6e\x73\x5f\155\x6f\x64\x65\x6c"); $ret = $this->OrthoDataVersions_model->get_OrthoDataVersions(); if ($ret["\145\x72\162\x6f\x72\103\x6f\144\145"] == VERR_COMMON_SUCCESS) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { if ($ret["\145\162\x72\157\x72\103\157\144\145"] == VERR_DB_NOSUCHDATA) { vt_loge(__METHOD__ . "\x3a\40\x46\x61\151\154\145\144\40\x74\x6f\x20\x67\145\x74\40\x6f\162\x74\150\157\40\x64\141\164\141\x20\x76\145\162\x73\151\157\x6e\40\x2d\x20\x65\x72\162\x6f\162\103\x6f\x64\145\x3a\40" . VERR_DB_NOSUCHDATA); return $this->set_response($ret, REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function OrthoDataVersions_put() { $this->load->model("\117\x72\164\150\x6f\104\x61\x74\x61\x56\145\x72\163\151\x6f\x6e\163\x5f\155\157\144\x65\x6c"); $ret = $this->OrthoDataVersions_model->put_OrthoDataVersions(); if ($ret["\145\x72\162\157\x72\x43\x6f\144\x65"] == VERR_COMMON_SUCCESS) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { if ($ret["\x65\x72\162\157\x72\103\x6f\x64\145"] == VERR_DB_NOSUCHDATA) { vt_loge(__METHOD__ . "\x3a\x20\106\x61\x69\154\x65\x64\x20\x74\157\x20\x6d\x69\147\x72\141\164\x65\144\40\157\x72\x74\150\x6f\x20\x64\141\164\x61\40\x76\x65\162\163\x69\x6f\x6e\x20\55\40\x65\162\162\x6f\162\x43\157\144\x65\x3a\40" . VERR_DB_NOSUCHDATA); return $this->set_response($ret, REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } } public function PatientCharts_get() { $chartno = trim(urldecode($this->get("\143\150\141\x72\x74\x6e\157"))); if (empty($chartno)) { vt_loge(__METHOD__ . "\x3a" . "\124\x68\x65\40\160\141\162\141\x6d\x65\164\x65\162\40\151\x73\40\x69\156\x76\x61\x6c\x69\144\x20\x64\141\x74\141\72\x20" . $chartno); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\120\x61\x74\151\145\156\x74\x43\150\141\162\x74\163\137\x6d\157\x64\x65\x6c"); $ret = $this->PatientCharts_model->get_PatientCharts($chartno); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PatientCharts_put() { $sPatientCharts = SPatientCharts::constructWithParameter($this->put()); if (!isset($sPatientCharts)) { vt_loge(__METHOD__ . "\72" . "\x54\150\145\x20\160\x61\162\141\155\145\164\145\x72\40\151\163\40\151\x6e\166\x61\154\151\144\40\x64\x61\164\x61\x20\72\40" . json_encode($this->put())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\120\x61\x74\x69\145\x6e\164\x43\150\141\162\x74\x73\137\155\157\x64\x65\x6c"); $ret = $this->PatientCharts_model->put_PatientCharts($sPatientCharts); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PatientChartsP2_put() { $sPatientCharts = SPatientCharts::constructWithParameter($this->put()); if (!isset($sPatientCharts)) { vt_loge(__METHOD__ . "\x3a" . "\124\x68\x65\x20\x70\x61\162\141\155\145\x74\x65\x72\40\151\163\40\x69\x6e\166\141\154\151\144\x20\x64\141\x74\x61\40\72\x20" . json_encode($this->put())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\120\141\x74\x69\145\x6e\x74\x43\x68\141\162\x74\x73\137\155\157\144\x65\154"); $ret = $this->PatientCharts_model->put_PatientChartsP2($sPatientCharts); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PracticeChairs_get() { $this->load->model("\120\162\x61\143\164\151\x63\145\103\150\141\151\x72\163\x5f\x6d\157\x64\145\154"); $ret = $this->PracticeChairs_model->get_PracticeChairs(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PracticeChairs_put() { $chairs = SPracticeChair::constructWithParameter($this->put()); if (count($chairs) === 0) { vt_loge(__METHOD__ . "\x3a" . "\x50\141\x72\x61\x6d\x65\x74\x65\162\163\x20\x61\x72\x65\40\151\x6e\166\x61\154\x69\x64\x20\144\x61\164\x61\x3a\x20" . json_encode($chairs)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x50\x72\141\x63\164\151\143\x65\103\150\x61\151\x72\163\137\155\157\x64\x65\154"); $ret = $this->PracticeChairs_model->put_PracticeChairs($chairs); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PracticeChairsP2_get() { $starttimestamp = trim(urldecode($this->get("\x73\164\x61\x72\164\164\x69\x6d\145\x73\164\x61\155\160"))); $endtimestamp = trim(urldecode($this->get("\145\x6e\144\x74\x69\x6d\145\163\164\141\155\x70"))); if (empty($starttimestamp) || empty($endtimestamp)) { vt_loge(__METHOD__ . "\x3a" . "\120\141\x72\141\155\x65\x74\x65\162\163\40\x61\162\145\40\x69\x6e\166\141\154\151\144\40\x64\x61\164\141\x3a\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\120\x72\141\143\x74\x69\143\x65\103\x68\x61\x69\x72\163\137\x6d\157\x64\x65\154"); $ret = $this->PracticeChairs_model->get_PracticeChairsP2($starttimestamp, $endtimestamp); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PracticeHours_get() { $this->load->model("\x50\x72\141\143\x74\x69\143\145\x48\x6f\x75\x72\x73\x5f\x6d\x6f\x64\x65\154"); $ret = $this->PracticeHours_model->get_PracticeHours(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function PracticeHours_put() { $sPractieHours = SPractieHours::constructWithParameter($this->put()); if (!isset($sPractieHours)) { vt_loge(__METHOD__ . "\x3a" . "\x50\141\162\x61\155\x65\x74\145\162\163\40\141\162\x65\40\x69\156\x76\x61\x6c\x69\x64\40\144\x61\164\x61\72\x20" . json_encode($sPractieHours)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\120\162\x61\x63\x74\x69\x63\145\110\x6f\165\x72\163\137\x6d\x6f\x64\x65\154"); $ret = $this->PracticeHours_model->put_PracticeHours($sPractieHours); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Practices_get() { $this->load->model("\120\x72\141\143\x74\x69\143\145\163\137\155\x6f\144\145\x6c"); $ret = $this->Practices_model->get_Practices(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Practices_put() { $sPracticeInfo = SPracticeInfo::constructWithParameter($this->put("\x70\x72\x61\143\164\151\x63\145")); if (!isset($sPracticeInfo)) { vt_loge(__METHOD__ . "\x3a" . "\120\x61\162\141\155\145\164\x65\162\163\40\x61\162\145\40\151\156\166\141\x6c\x69\144\40\x64\x61\164\141\72\40" . json_encode($sPracticeInfo)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x50\x72\141\x63\x74\151\143\145\x73\x5f\155\x6f\144\145\154"); $ret = $this->Practices_model->put_Practices($sPracticeInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function ProfilogramNormalData_get() { $this->load->model("\x50\x72\x6f\x66\x69\x6c\x6f\x67\162\x61\x6d\116\157\162\x6d\141\154\x44\x61\164\x61\137\155\x6f\x64\145\154"); $data = $this->ProfilogramNormalData_model->get_ProfilogramNormalData($this->get()); $this->set_response($data, REST_Controller::HTTP_OK); } public function Races_get() { $this->load->model("\122\x61\x63\145\x73\137\x6d\x6f\x64\x65\154"); $ret = $this->Races_model->get_Races(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Races_post() { $parameters = $this->post(); if (!isset($parameters["\156\141\155\145"]) || empty(trim($parameters["\x6e\x61\x6d\x65"]))) { vt_loge(__METHOD__ . "\x3a" . "\x54\x68\x65\40\160\141\x72\x61\x6d\145\x74\x65\162\x20\151\163\x20\x69\156\166\x61\154\x69\x64\x20\144\x61\x74\x61\x3a\40" . json_encode($parameters)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $racename = trim($parameters["\156\141\x6d\145"]); $label = trim($parameters["\x6c\141\142\145\154"]); if (empty($label)) { $label = $racename; } $userAdded = filter_var($parameters["\x75\163\145\162\x41\x64\x64\145\144"], FILTER_VALIDATE_BOOLEAN); $this->load->model("\122\x61\143\x65\163\137\155\x6f\144\145\x6c"); $ret = $this->Races_model->post_Races($racename, $label, $userAdded); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Races_put() { $parameters = $this->put(); if (!isset($parameters["\156\x61\155\145"]) || empty(trim($parameters["\156\x61\x6d\x65"])) || !isset($parameters["\154\x61\x62\145\154"]) || empty(trim($parameters["\x6c\141\142\145\154"]))) { vt_loge(__METHOD__ . "\72" . "\x50\x61\x72\141\155\x65\164\x65\x72\x73\40\141\x72\x65\x20\151\x6e\x76\141\154\151\144\x20\x64\x61\x74\141\x3a\x20" . json_encode($parameters)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $racename = trim($parameters["\156\x61\x6d\145"]); $label = trim($parameters["\x6c\x61\x62\145\x6c"]); $this->load->model("\122\141\x63\145\x73\137\155\157\144\145\x6c"); $ret = $this->Races_model->put_Races($racename, $label); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Races_delete() { $racename = trim(urldecode($this->get("\156\141\x6d\145"))); if (empty($racename)) { vt_loge(__METHOD__ . "\x3a" . "\x54\x68\145\40\x70\x61\162\x61\155\x65\164\x65\162\40\x69\163\x20\151\x6e\166\141\x6c\151\144\40\144\141\164\141\72\40" . $racename); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x52\x61\143\145\x73\137\155\x6f\144\x65\154"); $ret = $this->Races_model->delete_Races($racename); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function RecordsetImages_post() { $sRecordsetImageParameterInfo = SRecordsetImageParameterInfo::constructWithPostParameter($this->post()); if (!isset($sRecordsetImageParameterInfo)) { vt_loge(__METHOD__ . "\72" . "\x50\x61\162\x61\x6d\x65\x74\145\162\163\40\141\x72\145\40\151\x6e\x76\141\x6c\151\x64\40\144\x61\164\141\x3a\40" . json_decode($sRecordsetImageParameterInfo)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x52\x65\x63\x6f\162\144\163\x65\x74\x49\x6d\x61\147\145\x73\x5f\x6d\x6f\x64\145\x6c"); $ret = $this->RecordsetImages_model->post_RecordsetImages($sRecordsetImageParameterInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function RecordsetImages_put() { $sRecordsetImageParameterInfo = SRecordsetImageParameterInfo::constructWithPutParameter($this->put()); if (!isset($sRecordsetImageParameterInfo)) { vt_loge(__METHOD__ . "\72" . "\120\x61\x72\141\x6d\x65\164\x65\162\163\40\x61\162\145\40\151\156\x76\x61\154\x69\x64\x20\144\141\164\x61\72\x20" . json_decode($sRecordsetImageParameterInfo)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x52\x65\143\157\x72\144\163\145\x74\111\x6d\x61\x67\x65\x73\x5f\155\157\144\x65\x6c"); $ret = $this->RecordsetImages_model->put_RecordsetImages($sRecordsetImageParameterInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function RecordsetImages_delete() { $chartno = trim(urldecode($this->get("\143\150\141\162\x74\x6e\157"))); $createddate = trim($this->get("\143\162\x65\x61\x74\x65\x64\x64\141\164\x65")); $seqno = trim(urldecode($this->get("\163\145\x71\156\157"))); $filename = trim(urldecode($this->get("\146\151\x6c\145\156\x61\x6d\145"))); if (empty($chartno) || empty($createddate) || empty($seqno) || empty($filename)) { vt_loge(__METHOD__ . "\x3a" . "\120\141\x72\141\x6d\145\x74\x65\x72\163\40\141\162\x65\40\x69\156\x76\x61\154\151\144\40\x64\141\x74\x61\x3a\40" . json_decode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\122\145\x63\157\162\x64\x73\x65\x74\x49\x6d\141\147\145\163\x5f\155\157\x64\145\x6c"); $ret = $this->RecordsetImages_model->delete_RecordsetImages($chartno, $createddate, $seqno, $filename); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function RecordsetImages_get() { $chartno = trim(urldecode($this->get("\143\150\x61\x72\x74\x6e\157"))); $createddate = trim($this->get("\143\162\145\x61\x74\145\144\x64\141\164\x65")); $seqno = trim(urldecode($this->get("\x73\x65\161\156\x6f"))); if (empty($chartno) || empty($createddate) || empty($seqno)) { vt_loge(__METHOD__ . "\72" . "\x50\x61\162\141\x6d\x65\x74\145\162\x73\40\x61\162\145\40\151\x6e\166\x61\154\151\144\40\144\x61\164\141\72\x20" . json_decode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\122\x65\x63\x6f\162\x64\163\x65\164\111\x6d\141\147\145\x73\x5f\155\x6f\144\145\154"); $ret = $this->RecordsetImages_model->get_RecordsetImages($chartno, $createddate, $seqno); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Recordsets_get() { $chartno = trim(urldecode($this->get("\x63\x68\x61\x72\x74\156\x6f"))); if (empty($chartno)) { vt_loge(__METHOD__ . "\x3a" . "\124\x68\145\x20\x70\x61\162\141\x6d\145\x74\145\162\x20\x69\x73\40\x69\156\166\141\x6c\151\144\40\144\141\x74\x61\72\x20" . $chartno); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x52\145\143\x6f\162\144\x73\145\164\x73\x5f\x6d\157\x64\145\154"); $ret = $this->Recordsets_model->get_Recordsets($chartno); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Recordsets_post() { $sRecordsetParameterInfo = SRecordsetParameterInfo::constructWithPostParameter($this->post()); if (!isset($sRecordsetParameterInfo)) { vt_loge(__METHOD__ . "\72" . "\120\141\162\141\x6d\x65\x74\145\x72\163\40\x61\162\x65\x20\151\156\x76\x61\x6c\x69\x64\40\144\141\x74\x61\x3a\40" . json_decode($sRecordsetParameterInfo)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\122\x65\143\157\x72\144\x73\145\164\x73\x5f\155\x6f\144\145\154"); $ret = $this->Recordsets_model->post_Recordsets($sRecordsetParameterInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Recordsets_put() { $sRecordsetParameterInfo = SRecordsetParameterInfo::constructWithPutParameter($this->put()); if (!isset($sRecordsetParameterInfo)) { vt_loge(__METHOD__ . "\72" . "\120\x61\x72\x61\x6d\145\164\145\162\x73\x20\x61\x72\145\40\151\x6e\166\x61\154\x69\144\x20\144\x61\x74\x61\72\40" . json_decode($sRecordsetParameterInfo)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\122\x65\143\x6f\162\144\163\145\x74\163\137\x6d\x6f\x64\145\154"); $ret = $this->Recordsets_model->put_Recordsets($sRecordsetParameterInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Recordsets_delete() { $chartno = trim(urldecode($this->get("\x63\150\141\x72\164\x6e\x6f"))); $createddate = trim($this->get("\143\162\x65\141\x74\145\144\x64\141\x74\145")); $seqno = trim(urldecode($this->get("\163\145\x71\156\157"))); if (empty($chartno) || empty($createddate) || empty($seqno)) { vt_loge(__METHOD__ . "\x3a" . "\120\141\x72\141\x6d\145\x74\x65\162\x73\x20\141\162\x65\x20\151\x6e\166\141\x6c\151\x64\x20\144\141\164\x61\x3a\40" . json_decode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\122\x65\143\x6f\162\x64\x73\x65\164\x73\137\155\x6f\x64\x65\154"); $ret = $this->Recordsets_model->delete_Recordsets($chartno, $createddate, $seqno); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function SuperimpositionsP2_get() { $this->load->model("\123\165\160\145\162\x69\155\160\157\x73\151\164\x69\157\156\163\x5f\155\157\x64\145\x6c"); $ret = $this->Superimpositions_model->get_SuperimpositionsP2(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Superimpositions_post() { $sSuperimpositionInfo = SSuperimpositionInfo::constructWithParameter($this->post()); if (!isset($sSuperimpositionInfo)) { vt_loge(__METHOD__ . "\x3a" . "\120\141\x72\141\155\x65\164\145\162\163\40\x61\x72\145\x20\x69\x6e\x76\141\x6c\151\x64\40\144\x61\x74\141\72\40" . json_decode($sSuperimpositionInfo)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\123\x75\160\x65\162\151\155\160\157\x73\x69\x74\151\x6f\156\x73\137\x6d\x6f\x64\x65\154"); $ret = $this->Superimpositions_model->post_Superimpositions($sSuperimpositionInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Superimpositions_put() { $sSuperimpositionInfo = SSuperimpositionInfo::constructWithParameter($this->put()); if (!isset($sSuperimpositionInfo)) { vt_loge(__METHOD__ . "\72" . "\120\141\x72\x61\155\145\164\145\x72\163\40\141\x72\x65\x20\x69\156\166\141\x6c\x69\x64\x20\144\141\164\141\x3a\x20" . json_decode($sSuperimpositionInfo)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x53\165\x70\145\x72\151\155\160\157\163\x69\164\x69\x6f\156\x73\x5f\155\157\x64\145\154"); $ret = $this->Superimpositions_model->put_Superimpositions($sSuperimpositionInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Superimpositions_get() { $superimpositionname = trim(urldecode($this->get("\156\x61\x6d\145"))); if (empty($superimpositionname)) { vt_loge(__METHOD__ . "\72" . "\x54\x68\145\x20\160\141\162\141\155\x65\x74\x65\162\40\x69\x73\x20\x69\156\x76\141\x6c\151\x64\x20\x64\x61\x74\141\x3a\x20" . $superimpositionname); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\123\x75\160\145\162\151\x6d\x70\157\163\x69\x74\151\157\x6e\x73\x5f\x6d\157\x64\145\x6c"); $ret = $this->Superimpositions_model->get_Superimpositions($superimpositionname); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Superimpositions_delete() { $superimpositionname = trim(urldecode($this->get("\x6e\141\155\145"))); if (empty($superimpositionname)) { vt_loge(__METHOD__ . "\x3a" . "\x54\x68\x65\40\160\x61\x72\141\x6d\x65\x74\145\x72\40\x69\163\x20\151\156\x76\x61\x6c\151\x64\40\x64\x61\164\141\72\x20" . $superimpositionname); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\123\x75\160\145\x72\151\x6d\160\157\163\151\164\x69\157\x6e\163\137\155\157\x64\x65\x6c"); $ret = $this->Superimpositions_model->delete_Superimpositions($superimpositionname); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Schedules_get() { $starttimestamp = trim(urldecode($this->get("\163\x74\141\162\x74\x74\151\155\145\163\164\x61\x6d\x70"))); $endtimestamp = trim(urldecode($this->get("\145\x6e\x64\164\151\x6d\145\163\164\x61\x6d\x70"))); if (empty($starttimestamp) || empty($endtimestamp)) { vt_loge(__METHOD__ . "\72" . "\120\141\x72\141\155\145\x74\x65\x72\163\x20\x61\162\x65\40\x69\x6e\x76\141\x6c\151\x64\x20\144\141\164\x61\72\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x53\143\150\x65\x64\x75\x6c\145\x73\137\x6d\157\x64\145\x6c"); $ret = $this->Schedules_model->get_Schedules($starttimestamp, $endtimestamp); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function SchedulesR2_get() { $starttimestamp = trim(urldecode($this->get("\x73\x74\141\x72\x74\x74\x69\155\145\x73\x74\141\155\x70"))); $endtimestamp = trim(urldecode($this->get("\145\156\x64\164\x69\x6d\145\163\x74\x61\155\160"))); if (empty($starttimestamp) || empty($endtimestamp)) { vt_loge(__METHOD__ . "\x3a" . "\120\141\x72\141\x6d\145\164\x65\162\163\40\141\162\x65\x20\151\x6e\166\x61\154\x69\x64\40\144\x61\x74\141\72\40" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\123\x63\150\145\x64\165\x6c\145\x73\137\155\x6f\x64\145\x6c"); $ret = $this->Schedules_model->get_SchedulesR2($starttimestamp, $endtimestamp); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Schedules_post() { $sScheduleInfo = SScheduleInfo::constructWithParameter($this->post("\x73\143\x68\x65\144\x75\154\145")); if (!isset($sScheduleInfo)) { vt_loge(__METHOD__ . "\x3a" . "\x50\141\x72\141\155\145\x74\x65\162\x73\40\x61\162\145\x20\x69\156\x76\x61\154\151\144\40\144\141\164\141\72\x20" . json_encode($sScheduleInfo)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\123\x63\x68\x65\x64\x75\x6c\x65\163\137\x6d\157\x64\145\x6c"); $ret = $this->Schedules_model->post_Schedules($sScheduleInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function SchedulesR2_post() { $sScheduleInfo = SScheduleInfo::constructWithParameter($this->post("\163\143\x68\x65\144\x75\x6c\145")); if (!isset($sScheduleInfo)) { vt_loge(__METHOD__ . "\72" . "\120\x61\162\141\155\145\164\145\162\x73\x20\x61\x72\x65\x20\x69\156\x76\x61\x6c\151\x64\40\x64\141\164\141\72\40" . json_encode($sScheduleInfo)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x53\143\150\145\144\165\x6c\145\x73\137\x6d\157\144\145\154"); $ret = $this->Schedules_model->post_SchedulesR2($sScheduleInfo); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Schedules_put() { $oldSchedule = SScheduleInfo::constructWithParameter($this->put("\x6f\x6c\144\123\143\x68\x65\144\x75\x6c\x65")); $newSchedule = SScheduleInfo::constructWithParameter($this->put("\156\x65\x77\x53\x63\150\x65\x64\x75\x6c\145")); if (!isset($oldSchedule) || !isset($newSchedule)) { vt_loge(__METHOD__ . "\x3a" . "\x50\141\x72\x61\x6d\x65\x74\x65\x72\x73\40\x61\x72\x65\x20\x69\156\166\141\154\151\144\40\x64\141\x74\141\72\x20" . json_encode($this->put())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\123\143\150\x65\x64\165\x6c\145\163\137\x6d\157\144\x65\154"); $ret = $this->Schedules_model->put_Schedules($oldSchedule, $newSchedule); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function SchedulesR2_put() { (string) ($oldScheduleId = $this->put("\x6f\154\144\123\x63\x68\x65\144\x75\154\x65\x49\x64")); $newSchedule = SScheduleInfo::constructWithParameter($this->put("\156\x65\x77\x53\143\150\145\144\x75\154\145")); if (!isset($oldScheduleId) || !isset($newSchedule)) { vt_loge(__METHOD__ . "\72" . "\x50\x61\162\141\155\145\164\145\162\163\40\x61\162\145\x20\151\x6e\166\x61\x6c\151\144\x20\x64\x61\x74\141\x3a\x20" . json_encode($this->put())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\123\143\x68\145\144\x75\154\x65\163\x5f\155\157\x64\145\154"); $ret = $this->Schedules_model->put_SchedulesR2($oldScheduleId, $newSchedule); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Schedules_delete() { $doctor = trim(urldecode($this->get("\144\157\143\164\x6f\x72"))); $starttimestamp = trim(urldecode($this->get("\x73\x74\141\162\164\x74\x69\x6d\x65\163\x74\141\155\x70"))); $endtimestamp = trim(urldecode($this->get("\x65\x6e\144\x74\x69\155\145\163\x74\141\x6d\160"))); $chartno = trim(urldecode($this->get("\143\150\x61\162\164\x6e\x6f"))); if (empty($doctor)) { vt_loge(__METHOD__ . "\72" . "\x64\x6f\x63\164\x6f\162\40\151\x73\40\x65\x6d\x74\x70\x79\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (empty($starttimestamp)) { vt_loge(__METHOD__ . "\x3a" . "\x73\x74\x61\x72\164\x74\151\155\145\x73\x74\141\x6d\160\40\151\163\40\145\x6d\164\160\x79\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (empty($endtimestamp)) { vt_loge(__METHOD__ . "\x3a" . "\145\x6e\x64\164\x69\x6d\x65\163\x74\x61\x6d\x70\x20\151\x73\40\145\155\164\x70\x79\x2e"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (empty($chartno)) { vt_loge(__METHOD__ . "\x3a" . "\x63\x68\x61\162\x74\x6e\157\40\151\163\40\145\x6d\164\x70\171\56"); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x53\x63\150\x65\x64\165\154\x65\163\x5f\155\x6f\144\x65\x6c"); $ret = $this->Schedules_model->delete_Schedules($doctor, $starttimestamp, $endtimestamp, $chartno); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function SchedulesR2_delete() { $id = trim(urldecode($this->get("\x69\144"))); $this->load->model("\123\x63\150\x65\x64\165\154\145\163\x5f\155\x6f\144\x65\154"); $ret = $this->Schedules_model->delete_SchedulesR2($id); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function StandardData_post() { $parameters = $this->post(); if (!isset($parameters["\x72\x61\143\145\x4e\141\x6d\x65"]) || !isset($parameters["\163\x74\x61\156\x64\141\x72\144\104\141\164\x61"]) || empty(trim($parameters["\162\x61\x63\145\116\141\x6d\145"])) || count($parameters["\x73\x74\x61\x6e\144\x61\x72\144\x44\x61\164\x61"]) == 0) { vt_loge(__METHOD__ . "\72" . "\120\x61\162\x61\155\x65\164\x65\162\x73\40\141\162\145\40\151\x6e\166\141\x6c\151\x64\x20\x64\141\164\141\x3a\x20" . json_encode($parameters)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $standardDataItems = array(); foreach ($parameters["\163\164\141\156\144\141\162\x64\104\x61\x74\141"] as $data) { $standardData = SStandardDataItem::constructWithParameter($data); if (!isset($standardData)) { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } array_push($standardDataItems, $standardData); } $this->load->model("\123\x74\141\x6e\x64\141\x72\144\104\x61\164\141\x5f\x6d\x6f\x64\x65\x6c"); $ret = $this->StandardData_model->post_StandardData(trim($parameters["\x72\141\143\x65\x4e\x61\155\x65"]), $standardDataItems); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function StandardDataCopyByRace_post() { $parameters = $this->post(); if (!isset($parameters["\x73\157\x75\x72\143\145\122\141\143\x65\x4e\x61\x6d\145"]) || !isset($parameters["\x74\x61\x72\147\145\164\122\x61\143\145\116\x61\155\145"]) || empty(trim($parameters["\x73\157\165\162\143\145\122\141\143\145\x4e\141\155\x65"])) || empty($parameters["\164\x61\x72\147\x65\164\x52\x61\143\x65\x4e\x61\x6d\145"])) { vt_loge(__METHOD__ . "\x3a" . "\x50\x61\162\x61\x6d\145\x74\145\x72\163\40\141\162\145\40\151\156\x76\141\x6c\151\144\40\144\x61\x74\141\x3a\40" . json_encode($parameters)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\123\x74\141\156\x64\141\162\x64\104\141\164\x61\137\155\x6f\144\x65\154"); $ret = $this->StandardData_model->post_StandardDataCopyByRace($parameters["\163\x6f\x75\162\x63\145\122\141\143\145\116\x61\x6d\145"], $parameters["\164\x61\162\x67\145\x74\122\x61\143\145\x4e\x61\155\x65"]); if ($ret["\x65\162\x72\x6f\x72\x43\x6f\144\145"] == VERR_COMMON_SUCCESS) { return $this->set_response($ret, REST_Controller::HTTP_OK); } else { return $this->set_response($ret, REST_Controller::HTTP_BAD_REQUEST); } } public function TreatmentCategories_get() { $this->load->model("\124\162\145\141\x74\x6d\x65\156\x74\x43\141\164\x65\x67\x6f\162\x69\145\x73\x5f\x6d\157\144\145\154"); $ret = $this->TreatmentCategories_model->get_TreatmentCategories(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function TreatmentCategories_put() { $sCategoryArray = STreatmentCategory::constructWithParameter($this->put("\x63\x61\x74\x65\147\x6f\162\x69\145\163")); if (!isset($sCategoryArray) && count($sCategoryArray) > 0) { vt_loge(__METHOD__ . "\72" . "\120\141\162\x61\x6d\x65\164\x65\x72\163\x20\141\x72\145\40\151\x6e\166\141\154\151\144\x20\x64\x61\164\141\x3a\40" . json_encode($sCategoryArray)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x54\x72\x65\x61\x74\155\x65\156\164\103\141\x74\145\x67\157\x72\151\145\163\x5f\x6d\157\x64\145\154"); $ret = $this->TreatmentCategories_model->put_TreatmentCategories($sCategoryArray); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function VTOSTOControlPoints_get() { $this->load->model("\x56\x54\x4f\123\124\x4f\x43\157\x6e\x74\162\157\x6c\x50\x6f\x69\156\164\x73\x5f\155\x6f\144\x65\x6c"); $ret = $this->VTOSTOControlPoints_model->get_VTOSTOControlPoints(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function VTOSTOData_get() { $chartno = trim(urldecode($this->get("\143\150\141\x72\x74\156\157"))); $createddate = trim($this->get("\x63\162\145\x61\x74\145\144\x64\x61\x74\145")); $seqno = trim(urldecode($this->get("\x73\145\x71\156\157"))); if (empty($chartno) || empty($createddate) || empty($seqno)) { vt_loge(__METHOD__ . "\72" . "\x50\x61\162\141\x6d\145\x74\x65\x72\163\x20\x61\162\145\40\x69\x6e\166\x61\x6c\x69\x64\40\x64\x61\x74\x61\x3a\x20" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\126\x54\117\123\x54\x4f\104\141\164\x61\x5f\x6d\157\144\x65\x6c"); $ret = $this->VTOSTOData_model->get_VTOSTOData($chartno, $createddate, $seqno); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function VTOSTOData_post() { $sVTOSTOData = SVTOSTOData::constructWithPostParameter($this->post()); if (!isset($sVTOSTOData)) { vt_loge(__METHOD__ . "\72" . "\x50\141\162\x61\x6d\x65\164\145\162\163\x20\141\x72\x65\x20\x69\156\166\141\x6c\x69\144\40\144\x61\164\x61\72\x20" . json_encode($sVTOSTOData)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\126\124\x4f\x53\x54\x4f\x44\141\x74\141\x5f\155\157\144\145\154"); $ret = $this->VTOSTOData_model->post_VTOSTOData($sVTOSTOData); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function VTOSTOData_put() { $sVTOSTOData = SVTOSTOData::constructWithPutParameter($this->put()); if (!isset($sVTOSTOData)) { vt_loge(__METHOD__ . "\x3a" . "\x50\x61\x72\141\155\145\164\145\x72\x73\40\x61\162\x65\x20\x69\156\x76\141\x6c\151\144\x20\144\141\x74\x61\72\x20" . json_encode($sVTOSTOData)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\126\124\x4f\123\124\117\104\141\164\141\137\x6d\157\x64\145\x6c"); $ret = $this->VTOSTOData_model->put_VTOSTOData($sVTOSTOData); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function VTOSTOData_delete() { $chartno = trim(urldecode($this->get("\143\150\141\x72\x74\x6e\157"))); $createddate = trim($this->get("\143\162\145\x61\164\145\x64\144\141\164\145")); $seqno = trim(urldecode($this->get("\163\145\161\x6e\157"))); $dataname = trim(urldecode($this->get("\144\141\x74\x61\156\x61\x6d\x65"))); if (empty($chartno) || empty($createddate) || empty($seqno) || empty($dataname)) { vt_loge(__METHOD__ . "\72" . "\120\141\x72\141\x6d\x65\x74\x65\x72\163\40\x61\162\145\x20\151\x6e\x76\x61\x6c\x69\144\40\x64\141\x74\141\x3a\40" . json_encode($this->get())); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $this->load->model("\x56\x54\117\x53\124\117\104\141\164\141\x5f\x6d\x6f\144\x65\x6c"); $ret = $this->VTOSTOData_model->delete_VTOSTOData($chartno, $createddate, $seqno, $dataname); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function VTOSTOSettings_get() { $this->load->model("\126\x54\117\123\x54\117\123\x65\164\164\x69\156\x67\x73\137\x6d\x6f\x64\x65\x6c"); $ret = $this->VTOSTOSettings_model->get_VTOSTOSettings(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function VTOSTOSettings_put() { $parameters = $this->put(); if (!isset($parameters["\x63\x6c\141\163\163\x4e\x61\155\145"]) || !isset($parameters["\x6c\x61\156\x64\x6d\141\162\153\116\141\155\x65"]) || !isset($parameters["\163\157\x66\164\x54\151\x73\x73\165\145\x4c\141\x6e\144\x6d\141\162\x6b\x4d\157\x76\145\x6d\x65\x6e\x74\x73"]) || empty(trim($parameters["\143\154\x61\x73\163\x4e\141\x6d\145"])) || empty(trim($parameters["\x6c\x61\156\x64\x6d\x61\162\x6b\x4e\x61\x6d\x65"])) || count($parameters["\163\x6f\146\164\124\151\163\163\165\145\x4c\141\x6e\144\155\141\x72\153\x4d\x6f\166\x65\x6d\145\156\164\x73"]) == 0) { vt_loge(__METHOD__ . "\x3a" . "\x50\x61\162\141\x6d\x65\x74\x65\162\x73\x20\x61\162\145\x20\151\156\166\x61\154\151\144\x20\x64\x61\164\x61\x2e" . json_encode($parameters)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } if (isset($parameters["\x72\x61\x63\x65\116\x61\155\x65"])) { $raceName = trim($parameters["\162\x61\x63\x65\116\x61\x6d\x65"]); } $className = trim($parameters["\x63\154\141\x73\x73\116\x61\x6d\145"]); $landmarkName = trim($parameters["\x6c\141\x6e\x64\x6d\141\x72\x6b\116\141\155\145"]); $softTissueLandmarkMovements = $parameters["\163\x6f\146\164\x54\151\x73\163\x75\145\x4c\x61\x6e\144\x6d\141\x72\153\115\157\166\145\x6d\x65\156\x74\163"]; $this->load->model("\x56\x54\x4f\123\x54\117\123\145\x74\164\151\x6e\x67\x73\x5f\155\x6f\144\x65\x6c"); $ret = $this->VTOSTOSettings_model->put_VTOSTOSettings($raceName, $className, $landmarkName, $softTissueLandmarkMovements); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function Classifications_get() { $this->load->model("\103\x6c\x61\163\163\x69\146\x69\x63\141\x74\x69\x6f\x6e\x73\x5f\x6d\157\144\145\x6c"); $ret = $this->Classifications_model->get_Classifications(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function RecordsetStages_get() { $this->load->model("\x52\x65\x63\157\x72\144\163\x65\x74\123\164\141\x67\x65\163\137\155\157\x64\x65\x6c"); $ret = $this->RecordsetStages_model->get_RecordsetStages(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function RecordsetModalities_get() { $this->load->model("\x52\x65\x63\x6f\162\x64\163\145\164\x4d\157\144\141\154\x69\x74\151\x65\163\137\x6d\x6f\x64\145\154"); $ret = $this->RecordsetModalities_model->get_RecordsetModalities(); return $this->set_response($ret, REST_Controller::HTTP_OK); } public function RecordsetModalitiesP2_get() { $this->load->model("\122\x65\x63\157\x72\144\x73\x65\x74\115\157\x64\x61\154\x69\x74\x69\145\163\x5f\155\x6f\144\145\x6c"); $ret = $this->RecordsetModalities_model->get_RecordsetModalitiesP2(); return $this->set_response($ret, REST_Controller::HTTP_OK); } } diff --git a/server/original/www/ezwebserver/src/application/controllers/v1/Settings.php b/server/original/www/ezwebserver/src/application/controllers/v1/Settings.php new file mode 100644 index 0000000..891bb27 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/controllers/v1/Settings.php @@ -0,0 +1,7 @@ +Settings_model->get_fileServerSettings(); if ($ret === VERR_INI_INVALID_PATH) { return $this->set_response(["\145\x72\x72\157\162\103\157\144\x65" => VERR_INI_INVALID_PATH, "\106\151\x6c\x65\123\x65\162\166\145\162\123\145\164\164\151\x6e\x67\163" => array()], REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } elseif ($ret === VERR_INI_INVALID_SECTION) { return $this->set_response(["\145\x72\x72\x6f\162\x43\x6f\x64\145" => VERR_INI_INVALID_SECTION, "\x46\x69\x6c\x65\x53\145\x72\x76\x65\x72\123\x65\164\164\151\156\x67\163" => array()], REST_Controller::HTTP_BAD_REQUEST); } elseif ($ret === VERR_COMMON_INVALID) { return $this->set_response(["\145\x72\x72\157\x72\x43\157\x64\x65" => VERR_COMMON_INVALID, "\x46\x69\154\145\x53\x65\x72\166\x65\x72\123\x65\x74\x74\151\x6e\147\x73" => array()], REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(["\145\x72\162\157\x72\103\x6f\144\145" => VERR_COMMON_SUCCESS, "\106\151\154\x65\x53\145\162\x76\x65\x72\x53\x65\164\x74\151\156\x67\163" => $ret], REST_Controller::HTTP_OK); } } public function fileServerSettings_post() { $parameters = $this->post(); $settingValueList = $parameters["\x73\x65\164\164\151\x6e\147\126\x61\154\165\145\114\x69\163\x74"]; if (!isset($settingValueList[0]["\x73\145\x63\x74\151\x6f\x6e"])) { vt_loge(__METHOD__ . "\x3a" . "\120\141\162\141\x6d\145\x74\145\162\163\x20\141\162\145\x20\x69\156\166\x61\154\x69\144\40\x64\141\164\x61\x3a\40" . json_encode($parameters)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $token = $parameters["\x63\163\x72\x66\x5f\x74\x6f\153\x65\x6e"]; if ($token != $_SESSION["\163\x65\x74\164\151\x6e\x67\137\x63\x73\162\146\x5f\x74\x6f\153\x65\x6e"]) { return $this->set_response(["\x65\x72\162\157\x72\103\157\144\x65" => VERR_COMMON_INVALID, "\104\x42\123\145\x72\x76\x65\162\123\x65\x74\164\151\x6e\147\163" => array()], REST_Controller::HTTP_OK); } $ret = $this->Settings_model->post_fileServerSettings($settingValueList); if ($ret === VERR_INI_INVALID_PATH) { return $this->set_response(["\x65\x72\x72\x6f\x72\x43\x6f\x64\145" => VERR_INI_INVALID_PATH, "\104\x42\x53\145\x72\166\145\162\x53\x65\x74\164\x69\x6e\147\x73" => array()], REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } elseif ($ret === VERR_INI_INVALID_SECTION) { return $this->set_response(["\x65\162\162\x6f\162\x43\x6f\x64\x65" => VERR_INI_INVALID_SECTION, "\104\x42\123\145\162\166\145\162\123\145\164\x74\x69\x6e\147\x73" => array()], REST_Controller::HTTP_BAD_REQUEST); } elseif ($ret === VERR_COMMON_INVALID) { return $this->set_response(["\x65\162\162\x6f\162\x43\157\144\145" => VERR_COMMON_INVALID, "\x44\102\123\145\x72\x76\x65\162\123\145\x74\x74\x69\156\147\x73" => array()], REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(["\145\x72\162\x6f\x72\x43\x6f\x64\145" => VERR_COMMON_SUCCESS, "\x44\102\123\145\x72\166\145\x72\x53\145\164\164\151\156\147\x73" => $ret], REST_Controller::HTTP_OK); } } public function FileServerSettings_put() { $paramsPutFileServerSettings = $this->put("\160\141\x72\x61\155\x73\x50\x75\164\x46\x69\x6c\x65\x53\x65\162\166\145\x72\123\145\164\164\151\x6e\x67\163"); $data = $this->Settings_model->put_FileServerSettings($this->put()); if ($data === VERR_COMMON_SUCCESS) { return $this->set_response(["\145\x72\x72\x6f\162\103\x6f\144\145" => VERR_COMMON_SUCCESS], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\x6f\162\x43\157\144\x65" => VERR_COMMON_IO, "\145\x72\x72\x6f\162\111\156\120\x61\164\150\163" => $data], REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } public function DirsForAccessible_post() { $data = $this->Settings_model->post_DirsForAccessible($this->post()); return $this->set_response(["\x65\x72\162\x6f\x72\103\x6f\144\145" => VERR_COMMON_SUCCESS, "\x64\151\x72\x73" => $data], REST_Controller::HTTP_OK); } public function dbServerSettings_get() { $ret = $this->Settings_model->get_dbServerSettings(); if ($ret === VERR_INI_INVALID_PATH) { return $this->set_response(["\x65\162\x72\157\162\x43\157\x64\x65" => VERR_INI_INVALID_PATH, "\104\x42\123\145\162\166\145\x72\123\145\164\x74\x69\156\x67\163" => array()], REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } elseif ($ret === VERR_INI_INVALID_SECTION) { return $this->set_response(["\x65\x72\x72\157\x72\x43\157\144\145" => VERR_INI_INVALID_SECTION, "\x44\102\x53\145\162\166\145\x72\123\145\x74\164\x69\156\x67\163" => array()], REST_Controller::HTTP_BAD_REQUEST); } elseif ($ret === VERR_COMMON_INVALID) { return $this->set_response(["\145\162\162\x6f\162\103\157\144\145" => VERR_COMMON_INVALID, "\x44\102\x53\x65\x72\x76\145\162\x53\x65\x74\164\151\x6e\147\163" => array()], REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(["\145\x72\x72\x6f\162\x43\x6f\144\x65" => VERR_COMMON_SUCCESS, "\104\102\123\145\162\x76\x65\162\123\145\164\x74\x69\x6e\147\x73" => $ret], REST_Controller::HTTP_OK); } } public function saveToken_post() { $token = md5(uniqid()); $this->session->set_userdata("\x73\145\164\164\151\156\147\x5f\143\163\x72\x66\x5f\x74\x6f\153\145\156", $token); return $this->set_response(["\164\157\153\145\x6e" => $token], REST_Controller::HTTP_OK); } public function dbServerSettings_post() { $token = $this->post("\143\x73\162\146\x5f\x74\157\x6b\145\156"); if ($token != $_SESSION["\x73\145\x74\x74\x69\156\147\x5f\143\x73\x72\146\x5f\x74\157\153\145\x6e"]) { vt_loge(sprintf("\x25\x73\x3a\x20\x69\x6e\x76\x61\154\x69\x64\x20\x63\x73\x72\x66\40\x74\x6f\153\145\x6e", __METHOD__)); return $this->set_response(["\145\x72\x72\157\162\103\157\x64\145" => VERR_COMMON_INVALID, "\x44\102\123\145\x72\x76\145\x72\123\145\x74\164\151\156\x67\163" => array()], REST_Controller::HTTP_BAD_REQUEST); } $ret = $this->Settings_model->post_dbServerSettings($this->post()); if ($ret === VERR_INI_INVALID_PATH) { return $this->set_response(["\145\x72\x72\x6f\162\x43\x6f\144\145" => VERR_INI_INVALID_PATH, "\x44\x42\x53\145\x72\166\x65\162\123\145\164\x74\x69\x6e\x67\x73" => array()], REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } elseif ($ret === VERR_INI_INVALID_SECTION) { return $this->set_response(["\x65\x72\162\x6f\x72\x43\x6f\x64\145" => VERR_INI_INVALID_SECTION, "\104\102\x53\x65\x72\166\x65\x72\123\145\x74\x74\x69\156\x67\163" => array()], REST_Controller::HTTP_BAD_REQUEST); } elseif ($ret === VERR_COMMON_INVALID) { return $this->set_response(["\145\162\162\157\x72\103\157\x64\145" => VERR_COMMON_INVALID, "\x44\x42\x53\x65\x72\x76\145\162\123\x65\164\164\151\x6e\x67\x73" => array()], REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(["\145\x72\x72\157\x72\103\157\x64\x65" => VERR_COMMON_SUCCESS, "\x44\x42\123\145\x72\x76\x65\x72\123\x65\x74\164\x69\156\147\x73" => $ret], REST_Controller::HTTP_OK); } } public function DBServerSettings_put() { $ret = $this->Settings_model->put_dbServerSettings($this->put()); if ($ret["\x65\162\x72\x6f\x72\103\x6f\x64\x65"] === VERR_INI_INVALID_PATH) { return $this->set_response(createResponse($ret["\x65\162\x72\x6f\162\x43\x6f\144\x65"]), REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } elseif ($ret["\145\x72\x72\157\162\103\157\x64\x65"] === VERR_INI_INVALID_SECTION) { return $this->set_response(createResponse($ret["\x65\162\162\157\162\x43\x6f\x64\x65"]), REST_Controller::HTTP_BAD_REQUEST); } elseif ($ret["\145\162\x72\x6f\162\103\157\x64\145"] === VERR_COMMON_INVALID) { return $this->set_response(createResponse($ret["\x65\x72\x72\x6f\x72\x43\x6f\144\145"]), REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(createResponse($ret["\x65\x72\162\x6f\x72\103\157\144\145"]), REST_Controller::HTTP_OK); } } public function checkExistDirectory_post() { $ret = $this->Settings_model->post_checkExistDirectory($this->post()); return $this->set_response(["\145\162\x72\x6f\162\x43\157\x64\145" => VERR_COMMON_SUCCESS, "\x45\x78\151\x73\164\x44\151\162\x65\143\x74\157\x72\171\x4c\x69\x73\x74\163" => $ret], REST_Controller::HTTP_OK); } public function checkValidDBConnection_post() { $ret = $this->Settings_model->post_checkValidDBConnection($this->post()); if ($ret === VERR_INI_INVALID_PATH) { return $this->set_response(["\x65\162\162\157\x72\103\157\x64\x65" => VERR_INI_INVALID_PATH, "\x56\x61\154\x69\x64\x44\x42\103\x6f\x6e\156\x65\143\164\151\x6f\156" => false], REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } elseif ($ret === VERR_INI_INVALID_SECTION) { return $this->set_response(["\145\x72\162\x6f\x72\103\x6f\144\145" => VERR_INI_INVALID_SECTION, "\x56\x61\x6c\151\144\104\102\103\157\x6e\156\145\x63\x74\x69\x6f\156" => false], REST_Controller::HTTP_BAD_REQUEST); } elseif ($ret === VERR_COMMON_INVALID) { return $this->set_response(["\x65\x72\162\x6f\x72\103\x6f\144\145" => VERR_COMMON_INVALID, "\126\x61\154\151\144\x44\x42\x43\157\x6e\156\x65\x63\x74\x69\157\x6e" => false], REST_Controller::HTTP_BAD_REQUEST); } else { return $this->set_response(["\x65\162\x72\157\162\103\157\144\x65" => VERR_COMMON_SUCCESS, "\126\141\154\x69\144\104\x42\x43\157\x6e\156\x65\x63\164\x69\x6f\x6e" => $ret], REST_Controller::HTTP_OK); } } public function serverPorts_get() { $data = $this->ServerPorts_model->get_serverPorts($this->get()); if ($data[self::ERROR_CODE_FIELD] === VERR_COMMON_SUCCESS) { $this->set_response(array(self::ERROR_CODE_FIELD => VERR_COMMON_SUCCESS, "\160\157\x72\x74" => $data["\160\x6f\162\x74"]), REST_Controller::HTTP_OK); } else { $this->set_response($data, REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } public function serverPorts_put() { $parametersPutServerPorts = $this->put(); $data = $this->ServerPorts_model->put_serverPorts($this->put()); if ($data[self::ERROR_CODE_FIELD] === VERR_COMMON_SUCCESS) { $this->set_response(array(self::ERROR_CODE_FIELD => VERR_COMMON_SUCCESS), REST_Controller::HTTP_OK); } else { $this->set_response($data, REST_Controller::HTTP_INTERNAL_SERVER_ERROR); } } public function SettingValues_get() { $section = $this->get("\163\145\143\x74\151\x6f\156"); if (!isset($section) || empty($section)) { vt_loge(__METHOD__ . "\x3a" . "\x50\141\162\141\155\145\x74\x65\x72\x73\40\x61\x72\x65\40\151\156\x76\x61\x6c\x69\x64\40\x64\x61\x74\141\x3a\x20" . json_encode($section)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $data = $this->SettingValues_model->get_SettingValues($this->get("\163\x65\143\164\x69\x6f\x6e")); if (count($data) > 0) { return $this->set_response(["\145\x72\x72\x6f\x72\103\x6f\x64\145" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\162\162\157\162\103\157\144\145"], "\x64\141\164\x61" => $data], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\162\x72\x6f\x72\x43\x6f\144\145" => returnSetResponse(VERR_DB_NOSUCHDATA)["\145\x72\x72\157\162\103\157\x64\145"], "\x64\x61\x74\x61" => $data], REST_Controller::HTTP_OK); } } public function SettingValuesP2_get() { $parameters = $this->get(); $section = $parameters["\163\145\x63\x74\x69\x6f\156"]; $key = $parameters["\x6b\145\171"]; if (!isset($section) || !isset($key) || empty($section) || empty($key)) { vt_loge(__METHOD__ . "\72" . "\x50\x61\162\x61\155\x65\x74\145\162\163\x20\x61\x72\x65\40\x69\156\x76\x61\x6c\x69\144\40\x64\x61\x74\141\72\x20" . json_encode($parameters)); return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } $data = $this->SettingValues_model->get_SettingValuesP2($this->get()); if (count($data) > 0) { return $this->set_response(["\145\162\162\157\162\103\157\x64\x65" => returnSetResponse(VERR_COMMON_SUCCESS)["\x65\x72\162\x6f\x72\103\157\x64\145"], "\144\141\x74\141" => $data], REST_Controller::HTTP_OK); } else { return $this->set_response(["\x65\x72\162\x6f\162\x43\157\144\x65" => returnSetResponse(VERR_DB_NOSUCHDATA)["\x65\x72\162\x6f\162\103\157\144\145"], "\x64\x61\164\141" => $data], REST_Controller::HTTP_OK); } } public function SettingValues_post() { $parametersPostSettingValues = $this->post("\x70\x61\x72\x61\x6d\145\164\x65\x72\163\x50\157\x73\164\123\145\164\x74\x69\156\x67\x56\x61\x6c\x75\145\163"); $data = $this->SettingValues_model->post_SettingValues($this->post()); if ($data == VERR_COMMON_SUCCESS) { return $this->set_response(returnSetResponse(VERR_COMMON_SUCCESS), REST_Controller::HTTP_OK); } else { return $this->set_response(returnSetResponse(VERR_COMMON_INVALID), REST_Controller::HTTP_BAD_REQUEST); } } } diff --git a/server/original/www/ezwebserver/src/application/core/REST_Loader.php b/server/original/www/ezwebserver/src/application/core/REST_Loader.php new file mode 100644 index 0000000..bc6074f --- /dev/null +++ b/server/original/www/ezwebserver/src/application/core/REST_Loader.php @@ -0,0 +1,7 @@ +{$object_name} = new $class_name(); } else { show_error("\x55\156\141\x62\154\x65\x20\164\157\x20\154\157\141\x64\x20\164\150\145\40\162\145\161\x75\x65\x73\164\145\x64\40\143\157\156\164\x72\x6f\154\x6c\x65\162\x20\x63\154\141\163\163\x3a\x20" . $class_name); } } public function enum() { $file_name = "\105\156\165\155"; $CI =& get_instance(); $file_path = APPPATH . "\154\151\x62\162\x61\x72\151\x65\163\57" . $file_name . "\x2e\x70\150\x70"; $object_name = $file_name; $class_name = ucfirst($file_name); if (file_exists($file_path)) { require_once $file_path; $CI->{$object_name} = new $class_name(); } else { show_error("\x55\x6e\x61\x62\x6c\x65\40\x74\157\40\x6c\x6f\141\144\40\164\150\145\40\162\145\161\165\x65\163\164\x65\x64\40\143\157\156\164\x72\157\x6c\154\145\162\40\143\x6c\141\x73\163\72\x20" . $class_name); } } public function struct() { $CI =& get_instance(); if (func_num_args() == 0) { $structName = "\123\x74\162\165\x63\164"; $file_path = APPPATH . "\x6c\151\x62\x72\141\162\x69\x65\x73\x2f" . $structName . "\x2e\160\150\160"; $object_name = $structName; $class_name = ucfirst($structName); if (file_exists($file_path)) { require_once $file_path; } else { } } else { if (func_num_args() >= 1) { $args = func_get_args(); for ($i = 0; $i < count($args); $i++) { if (is_array($args[$i])) { $structs = $args[$i]; for ($j = 0; $j < count($structs); $j++) { $structName = $structs[$j]; $file_path = APPPATH . "\x6c\x69\x62\x72\141\x72\151\145\163\57" . $structName . "\x2e\x70\150\x70"; $object_name = $structName; $class_name = ucfirst($structName); if (file_exists($file_path)) { require_once $file_path; } else { } } } else { $structName = $args[$i]; $file_path = APPPATH . "\154\x69\x62\162\x61\x72\151\145\163\x2f" . $structName . "\x2e\160\150\160"; $object_name = $structName; $class_name = ucfirst($structName); if (file_exists($file_path)) { require_once $file_path; } else { } } } } } } public function error() { $CI =& get_instance(); $CI->load->helper("\x65\162\162\x6f\162"); } } diff --git a/server/original/www/ezwebserver/src/application/core/REST_Log.php b/server/original/www/ezwebserver/src/application/core/REST_Log.php new file mode 100644 index 0000000..e279df1 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/core/REST_Log.php @@ -0,0 +1,7 @@ + "\x31", "\104\105\x42\125\107" => "\x32", "\x49\x4e\106\x4f" => "\63", "\x57\x41\x52\116\x49\x4e\107" => "\64", "\105\x56\x45\x4e\124" => "\65", "\x41\114\114" => "\x39\71"); public function __construct($config = array()) { parent::__construct($config); } } diff --git a/server/original/www/ezwebserver/src/application/core/index.html b/server/original/www/ezwebserver/src/application/core/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/server/original/www/ezwebserver/src/application/core/index.html @@ -0,0 +1,11 @@ + + + +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/helpers/error_helper.php b/server/original/www/ezwebserver/src/application/helpers/error_helper.php new file mode 100644 index 0000000..f8a2761 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/error_helper.php @@ -0,0 +1,7 @@ + VERR_AUTH_UNAUTHENTICATED, "\x65\x72\x72\157\x72\115\145\163\163\141\x67\x65" => "\x49\156\x76\141\154\x69\144\40\x75\x73\145\x72\x20\x6e\x61\x6d\145\40\x6f\162\x20\160\141\163\163\x77\x6f\162\144\x2e"); if (!isset($codeOrKeyword)) { log_message("\x65\x72\x72\157\x72", "\116\157\x20\145\x72\162\x6f\x72\40\143\x6f\x64\145\x2e"); return array("\145\162\x72\157\x72\103\157\x64\x65" => VFAILURE, "\x65\x72\x72\157\162\x4d\145\x73\163\141\147\x65" => "\156\157\x74\x20\x65\x72\x72\157\x72\x20\143\x6f\x64\x65"); } if (is_numeric($codeOrKeyword)) { foreach ($errorMsg as $key => $item) { if (array_key_exists("\145\162\162\x6f\162\x43\157\144\x65", $item) && $item["\145\x72\162\x6f\162\103\x6f\144\145"] == (int) $codeOrKeyword) { return $item; } } } $converted = eval("\x72\145\x74\x75\x72\156\x20" . $codeOrKeyword . "\x3b"); if (array_key_exists($converted, $errorMsg)) { return $errorMsg[$converted]; } else { log_message("\145\x72\162\x6f\162", $codeOrKeyword . "\40\151\x73\x20\165\156\x64\x65\x66\151\x6e\145\144\40\x65\162\x72\x6f\x72\x20\143\x6f\x64\145\x2e"); return array("\145\x72\x72\x6f\162\103\x6f\x64\x65" => 1, "\145\x72\162\x6f\162\115\x65\163\163\x61\147\x65" => "\x6e\x6f\x74\40\163\x65\141\x72\x63\150\x20\x65\162\162\x6f\x72\137\x63\157\x64\145"); } } } if (!function_exists("\x63\x72\x65\x61\x74\145\x52\145\163\x70\157\156\x73\x65")) { function createResponse($errorCode) { $errorCodes = get_vterror_messages(); if (!isset($errorCode) || !array_key_exists($errorCode, $errorCodes)) { vt_loge("\116\157\40\x65\162\x72\x6f\162\40\x63\157\144\x65\40\x69\x6e\x20\143\162\x65\x61\x74\151\156\147\x20\162\145\163\160\x6f\156\163\145\56"); $errorCode = VERR_COMMON_INVALID; } return $errorCodes[$errorCode]; } } if (!function_exists("\143\162\x65\141\x74\x65\x52\145\163\x70\157\156\x73\x65\x42\x79\105\x72\162\x6f\162\x43\x6f\144\x65\123\164\162\x69\x6e\x67")) { function createResponseByErrorCodeString($errorCodeString) { $errorCode = eval("\x72\145\164\x75\x72\156\40" . $errorCodeString . "\73"); return createResponse($errorCode); } } diff --git a/server/original/www/ezwebserver/src/application/helpers/fs_helper.php b/server/original/www/ezwebserver/src/application/helpers/fs_helper.php new file mode 100644 index 0000000..32d39f2 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/fs_helper.php @@ -0,0 +1,7 @@ + $diskFreeSpace, "\153\151\154\x6c\157\x42\x79\164\145" => $diskFreeSpace / 1024, "\155\145\147\x61\102\171\x74\145" => $diskFreeSpace / 1024 / 1024, "\147\x69\147\x61\x42\171\164\x65" => $diskFreeSpace / 1024 / 1024 / 1024); } } if (!function_exists("\147\x65\x74\124\157\164\141\x6c\123\160\141\x63\145")) { function getTotalSpace() { $config = get_ini_array(APPPATH . INI_CONFIG_PATH); $diskTotalSpace = disk_total_space($config["\105\x7a\x57\x65\x62\x53\145\x72\166\x65\x72"]["\146\155\x5f\x74\157\x70\x5f\x64\151\x72"]); if ($diskTotalSpace === false) { return false; } return array("\x62\171\164\145" => $diskTotalSpace, "\153\x69\154\154\x6f\102\x79\164\x65" => $diskTotalSpace / 1024, "\155\145\147\x61\x42\171\164\x65" => $diskTotalSpace / 1024 / 1024, "\147\151\147\141\x42\171\164\x65" => $diskTotalSpace / 1024 / 1024 / 1024); } } if (!function_exists("\147\145\x74\104\x69\x72\114\151\x73\x74")) { function getDirList($dirPath) { $dirs = array(); $items = scanDirSafe($dirPath); foreach ($items as $dir) { if ($dir !== "\56" and $dir !== "\x2e\x2e") { if (is_dir($dirPath . "\57" . $dir)) { array_push($dirs, $dir); } else { } } else { } } return $dirs; } } if (!function_exists("\x73\x63\141\156\104\151\x72\x53\141\x66\x65")) { function scanDirSafe($dirPath) { if (file_exists($dirPath)) { return scandir($dirPath); } else { return array(); } } } if (!function_exists("\143\157\x6d\142\x69\156\145\106\151\154\x65\120\141\x74\150")) { function combineFilePath($filePaths) { $filePath = ''; foreach ($filePaths as $value) { if ($filePath != '') { $filePath .= "\x2f"; } $filePath .= $value; } return $filePath; } } if (!function_exists("\143\150\x65\143\153\x44\157\x74\x44\x6f\164\x49\156\104\151\162\x65\x63\x74\x6f\162\171")) { function checkDotDotInDirectory($dirPath) { if (strstr($dirPath, "\x2e\56")) { vt_loge("\124\x68\x65\40\x64\x69\162\160\x61\164\150\x20\143\x6f\156\x74\141\151\156\x73\40\56\56\x2c\x20\144\151\x72\120\x61\x74\x68\75" . $dirPath); return false; } else { } } } if (!function_exists("\155\x61\x6b\145\104\x69\x72")) { function makeDir($dirPath) { if (!file_exists($dirPath)) { if (!@mkdir($dirPath, 0777, true)) { return FALSE; } } return TRUE; } } if (!function_exists("\x72\x65\156\x61\155\145\104\151\x72")) { function renameDir($fromPath, $toPath) { if (file_exists($fromPath) === false) { vt_loge("\146\162\157\155\120\x61\164\x68\x20\x64\157\145\x73\x20\156\157\164\40\145\x78\x69\163\164\54\40\146\x72\157\155\x50\141\164\150\75" . $fromPath); return VERR_COMMON_INVALID; } if (file_exists($toPath) === true) { vt_loge("\164\157\x50\141\164\150\x20\x61\x6c\162\145\141\144\x79\x20\x65\x78\151\x73\x74\163\56\x2c\40\x74\157\120\141\x74\x68\75" . $toPath); return VERR_DELIVERER_FILEMANAGER_FILE_EXISTS; } $toBaseDir = dirname($toPath); if (!file_exists($toBaseDir)) { makeDir($toBaseDir); } if (!rename($fromPath, $toPath)) { vt_loge("\122\x65\x6e\141\155\145\x20\x66\x61\151\154\x65\x64\56"); return VERR_COMMON_IO; } return VERR_COMMON_SUCCESS; } } if (!function_exists("\143\x6f\160\x79\x44\x69\162")) { function copyDir($fromPath, $toPath) { if (file_exists($fromPath) === false) { vt_loge("\146\x72\x6f\x6d\x50\x61\164\150\40\144\x6f\x65\x73\40\x6e\157\164\x20\145\170\x69\x73\164\54\x20\x66\x72\x6f\x6d\x50\141\x74\150\75" . $fromPath); return FALSE; } if (file_exists($toPath) === true) { vt_loge("\x74\157\x50\x61\164\x68\x20\x61\x6c\x72\x65\141\144\x79\40\145\x78\151\x73\164\163\x2e\54\40\164\x6f\x50\x61\164\150\75" . $toPath); return FALSE; } makeDir($toPath); $ret = _copyDirRecursive($fromPath, $toPath); if ($ret == VERR_COMMON_IO) { vt_loge("\103\157\160\171\x20\146\x61\x69\x6c\145\144\56"); } return $ret; } function _copyDirRecursive($src, $dst) { $ret = VERR_COMMON_IO; $dir = opendir($src); @mkdir($dst); while (false !== ($file = readdir($dir))) { if ($file != "\56" && $file != "\x2e\56") { if (is_dir($src . "\57" . $file)) { _copyDirRecursive($src . "\57" . $file, $dst . "\57" . $file); } else { $ret = true; copy($src . "\x2f" . $file, $dst . "\57" . $file); } } } closedir($dir); return $ret; } } if (!function_exists("\x66\157\162\143\145\137\x64\157\167\x6e\154\x6f\141\x64")) { function force_download($filename = '', $data = '', $set_mime = FALSE) { if ($filename === '' or $data === '') { return FALSE; } elseif ($data === NULL) { if (@is_file($filename) && ($filesize = @filesize($filename)) !== FALSE) { $filepath = $filename; $filename = explode("\57", str_replace(DIRECTORY_SEPARATOR, "\x2f", $filename)); $filename = end($filename); } else { return FALSE; } } else { $filesize = strlen($data); } $mime = "\141\160\x70\154\x69\x63\x61\164\151\157\x6e\57\x6f\143\x74\x65\164\55\163\164\x72\x65\x61\x6d"; $x = explode("\56", $filename); $extension = end($x); if ($set_mime === TRUE) { if (count($x) === 1 or $extension === '') { return FALSE; } $mimes =& get_mimes(); if (isset($mimes[$extension])) { $mime = is_array($mimes[$extension]) ? $mimes[$extension][0] : $mimes[$extension]; } } if (count($x) !== 1 && isset($_SERVER["\110\x54\x54\x50\x5f\125\x53\105\122\x5f\x41\107\105\x4e\124"]) && preg_match("\57\x41\156\144\x72\x6f\151\144\x5c\x73\x28\61\174\62\x5c\56\x5b\60\x31\x5d\51\57", $_SERVER["\110\124\x54\x50\x5f\x55\x53\105\x52\137\x41\x47\x45\x4e\124"])) { $x[count($x) - 1] = strtoupper($extension); $filename = implode("\x2e", $x); } if ($data === NULL && ($fp = @fopen($filepath, "\162\x62")) === FALSE) { return FALSE; } if (ob_get_level() !== 0 && @ob_end_clean() === FALSE) { @ob_clean(); } header("\x43\157\x6e\164\x65\x6e\164\x2d\x54\x79\x70\x65\x3a\40" . $mime); header("\103\157\156\x74\x65\x6e\164\x2d\104\x69\163\x70\157\x73\x69\164\x69\157\156\x3a\40\141\x74\164\x61\143\x68\155\145\156\164\x3b\x20\146\x69\x6c\145\x6e\x61\x6d\x65\x3d\x22" . $filename . "\x22"); header("\105\170\x70\151\x72\145\163\72\x20\x30"); header("\103\157\x6e\164\x65\x6e\x74\x2d\x54\x72\x61\x6e\x73\x66\145\x72\55\x45\x6e\143\x6f\x64\151\x6e\x67\72\x20\142\x69\x6e\141\162\171"); header("\x43\x6f\x6e\164\x65\156\164\55\x4c\x65\156\x67\164\x68\72\x20" . $filesize); if (isset($_SERVER["\110\124\x54\120\137\125\x53\105\122\137\x41\x47\x45\x4e\124"]) && strpos($_SERVER["\110\x54\124\120\x5f\x55\123\105\x52\x5f\101\x47\105\116\124"], "\x4d\x53\x49\105") !== FALSE) { header("\x43\x61\x63\150\145\55\x43\157\x6e\x74\x72\157\x6c\72\40\156\157\55\143\141\x63\150\145\x2c\x20\x6e\157\55\x73\164\157\x72\145\54\40\x6d\165\x73\x74\x2d\162\145\x76\141\154\151\144\x61\x74\x65"); } header("\120\x72\x61\147\x6d\x61\x3a\x20\156\x6f\55\143\x61\x63\150\x65"); if ($data !== NULL) { exit($data); } fpassthru($fp); fclose($fp); exit; } } if (!function_exists("\151\x73\x43\124\x50\x61\x74\150\116\141\x6d\x65")) { function isCTPathName($fileName) { return strncmp($fileName, "\x43\x54", 2) == 0; } } if (!function_exists("\151\x73\x44\151\x63\157\155\x46\x69\154\x65\116\141\x6d\145")) { function isDicomFileName($fileName) { return isDicomFileExt(getFileExtension($fileName)); } } if (!function_exists("\147\145\x74\x41\x63\161\x75\151\163\x69\164\x69\157\x6e\x54\151\155\x65\x73\x74\141\x6d\x70")) { function getAcquisitionTimestamp($dicomHandler = null, $acqTime = '') { $acquisitionTimestamp = null; $filters = array(new UserDateTimeFilter($acqTime), new DicomTagDateTimeFilter($dicomHandler, tagInstanceCreationDate, tagInstanceCreationTime), new DicomTagDateTimeFilter($dicomHandler, tagAcquisitionDate, tagAcquisitionTime), new DicomTagDateTimeFilter($dicomHandler, tagSeriesDate, tagSeriesTime), new DicomTagDateTimeFilter($dicomHandler, tagStudyDate, tagStudyTime), new CurrentDateTimeFilter($acqTime)); foreach ($filters as $filter) { if ($filter->filter($acquisitionTimestamp)) { break; } } return $acquisitionTimestamp; } } if (!function_exists("\x72\145\x6d\157\x76\145\x46\x69\154\145\105\x78\x74\x65\156\163\x69\157\156")) { function removeFileExtension($fileName) { $pos = strrpos($fileName, "\x2e"); if ($pos === false) { return $fileName; } return substr($fileName, 0, $pos); } } if (!function_exists("\147\x65\164\106\151\154\145\105\170\164\x65\x6e\163\x69\157\156")) { function getFileExtension($filePath) { return pathinfo($filePath, PATHINFO_EXTENSION); } } if (!function_exists("\x63\150\141\x6e\147\145\106\151\154\x65\105\x78\x74\x65\156\x73\x69\x6f\x6e")) { function changeFileExtension($filePath, $fileExt) { $dot_pos = strripos($filePath, "\x2e"); if ($dot_pos === false) { return $filePath . "\x2e" . $fileExt; } else { return substr($filePath, 0, $dot_pos) . "\56" . $fileExt; } } } if (!function_exists("\x67\x65\164\106\x69\154\145\x45\x78\164\145\x6e\x73\x69\x6f\x6e")) { function getFileExtension($fileName) { $pos = strrpos($fileName, "\x2e"); if ($pos == false) { return ''; } return substr($fileName, $pos + 1); } } if (!function_exists("\143\150\x65\x63\153\120\x6f\163\x74\125\x70\154\x6f\141\x64\x46\x69\154\145")) { function checkPostUploadFile($fileField, $uploadFilePath, $dieWhenError = true) { if (!array_key_exists($fileField, $_FILES)) { vt_loge(__METHOD__ . "\x3a\x20\x4b\x65\171\x20\156\157\164\x20\146\157\x75\x6e\x64\40\151\x6e\40\x66\x69\154\145\163\56\x20\x6b\x65\171\x3d" . $fileField); return FALSE; } if ($_FILES[$fileField]["\145\x72\162\157\x72"] > 0 || $_FILES[$fileField]["\x73\151\x7a\145"] <= 0) { vt_loge(__METHOD__ . "\x3a\40\x45\162\162\157\162\40\x69\156\x20\x75\x70\x6c\157\141\x64\40\x66\x69\154\x65\x2e\40\146\151\154\145\x73\40\x6f\162\x20\163\151\172\145\x20\151\163\40\172\145\x72\157\56\x20\145\x72\x72\x6f\x72\x3d" . $_FILES[$fileField]["\145\162\x72\157\162"] . "\54\40\163\151\x7a\x65\75" . $_FILES[$fileField]["\x73\x69\172\145"]); return FALSE; } $tmp_file_name = $_FILES[$fileField]["\x74\155\160\137\x6e\141\155\x65"]; $is_uploaded_file = is_uploaded_file($tmp_file_name); if (!$is_uploaded_file) { vt_loge(sprintf("\45\163\x3a\x20\124\150\145\40\x66\x69\x6c\x65\x20\151\163\x20\x6e\x6f\164\40\x75\x70\x6c\157\141\x64\x65\144\x20\166\151\x61\40\150\x74\164\x70\x20\160\x6f\163\164\x3a\x20\133\x25\163\x5d\x5b\x25\x73\135", __METHOD__, $_FILES[$fileField]["\x74\x6d\160\137\x6e\141\155\x65"], json_encode($_FILES))); if (!is_writable($tmp_file_name)) { vt_loge(sprintf("\x25\x73\x3a\40\124\150\145\x20\x66\151\154\x65\40\151\163\40\156\x6f\x74\40\167\x72\151\164\141\x62\x6c\x65\x3a\x20\x5b\x25\x73\x5d\x5b\x25\163\135", __METHOD__, $_FILES[$fileField]["\164\x6d\x70\137\x6e\x61\155\x65"], json_encode($_FILES))); return FALSE; } else { } } deleteLinkFile($uploadFilePath); $uploadFilePath = str_replace(array("\x2f", "\134"), DIRECTORY_SEPARATOR, $uploadFilePath); makeDirRecursive(dirname($uploadFilePath)); if ($is_uploaded_file) { if (!move_uploaded_file($tmp_file_name, $uploadFilePath)) { vt_loge(sprintf("\x25\163\x3a\x20\105\162\x72\x6f\162\40\151\x6e\x20\155\157\166\151\156\147\40\165\160\154\x6f\141\x64\x65\144\40\x66\151\154\145\72\40", __METHOD__, $tmp_file_name)); return FALSE; } } else { $ret_rename = rename($tmp_file_name, $uploadFilePath); if (!$ret_rename) { vt_loge(sprintf("\x25\x73\72\40\106\x61\151\154\145\x64\40\x74\x6f\40\x72\x65\156\141\155\145\x20\164\x6d\160\40\x66\x69\x6c\145\72\x20", __METHOD__, $tmp_file_name)); return FALSE; } } return TRUE; } } if (!function_exists("\x72\x65\x61\144\x44\x69\143\x6f\x6d\x48\145\141\144\145\x72")) { function readDicomHeader($dicomFile) { return new MyDicom(array("\144\151\x63\x6f\x6d\x66\151\x6c\x65" => $dicomFile)); } } if (!function_exists("\x69\163\104\x69\x63\x6f\x6d\x46\151\x6c\145\105\170\x74")) { function isDicomFileExt($fileExt) { return strcasecmp($fileExt, "\144\143\155") == 0; } } if (!function_exists("\143\150\145\143\x6b\x43\x61\143\150\x65\105\x78\x69\x73\164\x73")) { function checkCacheExistsByTypeAndName($type = '', $name = '') { return file_exists(APPPATH . "\x63\x61\x63\150\145\134" . $type . "\134" . sha1($name, FALSE)) ? APPPATH . "\x63\141\143\150\x65\x5c" . $type . "\134" . sha1($name, FALSE) : FALSE; } } if (!function_exists("\163\x74\x72\x65\141\155\151\156\x67")) { function streaming($path) { if (!($stream = fopen($path, "\x72\x62"))) { return FALSE; } $buffer = 102400; $start = -1; $end = -1; $size = 0; ob_get_clean(); header("\x43\157\x6e\164\145\156\164\55\x54\x79\160\145\72\40\x76\x69\144\145\x6f\57\155\x70\64"); header("\103\141\x63\x68\x65\x2d\x43\x6f\156\164\x72\157\x6c\x3a\x20\155\141\x78\55\141\x67\145\x3d\62\x35\71\62\60\x30\x30\54\40\x70\165\x62\x6c\151\x63"); header("\105\170\160\x69\162\145\x73\x3a\x20" . gmdate("\104\x2c\40\x64\40\x4d\40\131\40\x48\x3a\x69\72\163", time() + 2592000) . "\x20\107\115\x54"); header("\114\x61\163\x74\x2d\115\157\x64\x69\146\151\145\x64\72\x20" . gmdate("\x44\x2c\x20\144\x20\115\x20\x59\40\x48\72\x69\72\x73", @filemtime($path)) . "\40\107\x4d\124"); $start = 0; $size = filesize($path); $end = $size - 1; header("\101\x63\x63\145\x70\164\x2d\x52\141\x6e\x67\145\x73\72\40\x30\55" . $end); if (isset($_SERVER["\110\124\x54\x50\137\x52\x41\116\107\105"])) { $c_start = $start; $c_end = $end; list(, $range) = explode("\x3d", $_SERVER["\x48\x54\124\120\137\122\101\x4e\x47\x45"], 2); if (strpos($range, "\x2c") !== false) { header("\110\x54\124\x50\x2f\61\x2e\x31\40\x34\61\x36\x20\x52\x65\161\165\x65\x73\164\145\144\40\122\x61\x6e\x67\x65\x20\x4e\x6f\164\40\x53\x61\x74\151\163\x66\x69\141\142\x6c\145"); header("\103\x6f\156\x74\x65\156\x74\x2d\122\x61\x6e\x67\x65\72\40\142\x79\x74\145\x73\40{$start}\x2d{$end}\57{$size}"); exit; } if ($range == "\55") { $c_start = $size - substr($range, 1); } else { $range = explode("\x2d", $range); $c_start = $range[0]; $c_end = isset($range[1]) && is_numeric($range[1]) ? $range[1] : $c_end; } $c_end = $c_end > $end ? $end : $c_end; if ($c_start > $c_end || $c_start > $size - 1 || $c_end >= $size) { header("\110\x54\124\x50\x2f\x31\56\x31\x20\64\x31\66\40\122\145\x71\x75\145\163\x74\145\144\x20\x52\141\x6e\x67\145\x20\x4e\157\x74\x20\x53\x61\x74\151\163\146\151\x61\x62\154\x65"); header("\103\157\x6e\164\x65\x6e\164\55\122\x61\156\x67\x65\x3a\40\x62\x79\x74\145\163\40{$start}\55{$end}\57{$size}"); exit; } $start = $c_start; $end = $c_end; $length = $end - $start + 1; fseek($stream, $start); header("\x48\x54\124\x50\x2f\61\56\61\40\x32\x30\x36\40\x50\x61\x72\164\x69\141\154\40\103\157\x6e\x74\x65\156\164"); header("\103\x6f\x6e\164\x65\156\164\55\114\145\x6e\147\x74\150\72\x20" . $length); header("\103\x6f\x6e\x74\x65\156\164\55\x52\141\156\x67\145\72\40\x62\171\x74\145\163\x20{$start}\x2d{$end}\57" . $size); } else { header("\103\157\x6e\164\145\x6e\x74\x2d\114\145\x6e\x67\x74\150\72\x20" . $size); } $i = $start; set_time_limit(0); while (!feof($stream) && $i <= $end) { $bytesToRead = $buffer; if ($i + $bytesToRead > $end) { $bytesToRead = $end - $i + 1; } $data = fread($stream, $bytesToRead); echo $data; flush(); $i += $bytesToRead; } fclose($stream); } } if (!function_exists("\143\x72\x65\x61\x74\x65\x4f\156\x65\x44\151\143\x6f\x6d\x46\151\x6c\145\x46\162\x6f\155\103\124")) { function createOneDicomFileFromCT($ctFilePath, $tempDirPath) { $dicomFilePath = extractOneFileFromCT($ctFilePath, $tempDirPath, 0); return $dicomFilePath; } } if (!function_exists("\145\170\164\162\x61\x63\164\117\x6e\145\106\x69\x6c\x65\x46\162\157\x6d\x43\124")) { function extractOneFileFromCT($ctFilePath, $tempDirPath, $pos = 1) { $zip = new ZipArchive(); $ret = null; $path_info = pathinfo($ctFilePath); if ($zip->open($ctFilePath) === TRUE) { if (strtoupper($path_info["\x65\170\164\x65\156\163\151\157\x6e"]) === "\x43\x54\x58") { $key = getSmartPayDataKeyCode(); $zip->setPassword($key); } $fileName = $zip->getNameIndex($pos == 1 ? $zip->numFiles / 2 : 0); if ($fileName) { if ($zip->extractTo($tempDirPath, $fileName) === TRUE) { $ret = $tempDirPath . "\57" . $fileName; } } $zip->close(); } return $ret; } function getSmartPayDataKeyCode() { $anSmartPayDataKeyCode = array(119 + 0, 77 + 1, 124 + 2, 74 + 3, 94 + 4, 108 + 5, 33 + 6, 38 + 7, 96 + 8, 109 + 9, 52 + 10, 64 + 11, 104 + 12, 76 + 13, 103 + 14, 121 + 15, 88 + 16, 98 + 17, 122 + 18, 60 + 19, 77 + 20, 106 + 21, 36 + 22, 68 + 23, 58 + 24, 59 + 25, 123 + 26, 32 + 27, 45 + 28, 109 + 29, 79 + 30, 63 + 31, 101 + 32, 54 + 33, 34 + 34, 95 + 35, 62 + 36, 70 + 37, 78 + 38, 75 + 39, 86 + 40, 88 + 41, 82 + 42, 120 + 43, 81 + 44, 35 + 45, 68 + 46, 78 + 47, 48 + 48, 120 + 49, 85 + 50, 58 + 51, 32 + 52, 118 + 53, 124 + 54, 117 + 55, 56 + 56, 98 + 57, 106 + 58, 117 + 59, 102 + 60, 99 + 61, 39 + 62, 53 + 63, 118 + 64, 71 + 65, 88 + 66, 96 + 67, 125 + 68, 42 + 69, 61 + 70, 38 + 71, 92 + 72, 66 + 73, 58 + 74, 40 + 75, 58 + 76, 118 + 77, 91 + 78, 102 + 79, 87 + 80, 41 + 81, 73 + 82, 72 + 83, 101 + 84, 79 + 85, 84 + 86, 77 + 87, 117 + 88, 58 + 89, 98 + 90, 37 + 91, 60 + 92, 76 + 93, 107 + 94, 38 + 95, 45 + 96, 77 + 97, 90 + 98, 38 + 99, 72 + 100, 60 + 101, 41 + 102, 86 + 103, 119 + 104, 57 + 105, 66 + 106, 56 + 107, 101 + 108, 36 + 109, 104 + 110, 81 + 111, 82 + 112, 44 + 113, 115 + 114, 74 + 115, 103 + 116, 89 + 117, 104 + 118, 58 + 119, 111 + 120, 47 + 121, 56 + 122, 99 + 123, 73 + 124, 64 + 125, 108 + 126); $strKey = ''; $size = sizeof($anSmartPayDataKeyCode); for ($i = 0; $i < $size; $i++) { $strKey .= chr($anSmartPayDataKeyCode[$i] - $i); } return $strKey; } } if (!function_exists("\147\x65\x74\103\164\116\x61\x6d\x65\106\162\157\155\x54\x68\165\155\142\156\x61\151\154\x4e\141\x6d\145")) { function getCtNameFromThumbnailName($name) { $name = str_replace("\164\x5f", "\x5f", $name); $name = removeFileExtension($name); return $name; } } if (!function_exists("\143\162\x65\x61\164\145\124\150\x75\155\x62\x6e\141\x69\x6c\106\x69\x6c\145\106\x72\157\155\x43\124")) { function createThumbnailFileFromCT($thumbnailFilePath, $ctFilePath, &$dicom = null) { $tempDirPath = dirname($ctFilePath); $dicomFilePath = extractOneFileFromCT($ctFilePath, $tempDirPath, 1); $ret = createThumbnailFileFromImage($thumbnailFilePath, $dicomFilePath); return $ret; } } if (!function_exists("\143\x72\x65\141\164\145\124\x68\x75\x6d\x62\156\x61\x69\154\106\151\x6c\145\106\x72\x6f\x6d\111\x6d\x61\147\145")) { function createThumbnailFileFromImage($thumbnailFilePath, $imageFilePath) { makeDirRecursive(dirname($thumbnailFilePath)); $path_info = pathinfo($imageFilePath); $fileExt = $path_info["\145\x78\164\x65\156\163\x69\x6f\156"]; if (strtoupper($fileExt) == "\x4c\111\x4e\113") { $config = get_ini_array(APPPATH . INI_CONFIG_PATH); $linkBaseDirs = explode("\x7c", $config["\x45\x7a\x57\x65\142\x53\145\162\166\x65\x72"]["\x6c\x69\156\x6b\x5f\x62\141\x73\145\x5f\x64\x69\x72\x73"]); $imageFilePath = getSrcFilePathFromLinkFile($path_info["\x64\x69\x72\x6e\141\x6d\145"] . DIRECTORY_SEPARATOR . $path_info["\x66\151\154\145\x6e\x61\x6d\x65"], $linkBaseDirs); if ($imageFilePath == false) { return VERR_COMMON_INVALID; } } $imgOption = ["\x74\x68\x75\155\142\x6e\x61\x69\x6c" => true, "\x77\151\x64\x74\150" => THUMBNAIL_WIDTH, "\150\145\x69\147\x68\164" => THUMBNAIL_HEIGHT, "\142\145\x73\164\x66\x69\x74" => true, "\146\151\154\154" => false, "\x71\165\x61\x6c\151\x74\x79" => 100]; $ret = convertImage($thumbnailFilePath, $imageFilePath, $imgOption); return $ret; } } if (!function_exists("\x6d\141\153\145\104\x69\x72\122\x65\143\165\162\163\x69\166\145")) { function makeDirRecursive($dirPath) { if (!file_exists($dirPath)) { if (!mkdir($dirPath, 0777, true)) { vt_loge(__METHOD__ . "\x3a\x20\106\141\x69\154\x65\x64\40\x74\157\x20\155\141\153\x65\x20\x64\151\x72\x2e\x20\x64\151\162\x3d" . $dirPath); } } } } if (!function_exists("\x64\x65\154\x65\164\x65\x46\x69\154\145\111\x66\x45\170\x69\163\164")) { function deleteFileIfExist($file) { if (file_exists($file)) { $ret = unlink($file); } deleteLinkFile($file); if (isset($ret)) { return $ret; } } } if (!function_exists("\x72\x6d\x44\151\162\x52\145\x63\x75\162\x73\151\166\x65")) { function rmDirRecursive($dir) { if (is_dir($dir)) { $objects = scanDirSafe($dir); foreach ($objects as $object) { if ($object != "\x2e" && $object != "\56\x2e") { if (filetype($dir . "\x2f" . $object) == "\144\x69\x72") { rmDirRecursive($dir . "\57" . $object); } else { unlink($dir . "\x2f" . $object); } } else { } } reset($objects); $isDirEmpty = !(new \FilesystemIterator($dir))->valid(); if ($isDirEmpty) { rmdir($dir); } return true; } else { return false; } } } if (!function_exists("\147\145\164\123\165\142\x44\151\x72\116\x61\x6d\x65")) { function getSubDirName($baseUniqueName) { $subDir = "\x53\x75\x62" . substr($baseUniqueName, 1, 6); return $subDir; } } if (!function_exists("\147\x65\x74\x42\141\163\x65\125\156\x69\x71\x75\145\x4e\141\155\x65")) { function getBaseUniqueName($timestamp = null) { if ($timestamp == null) { $timestamp = time(); } $date = new DateTime(); date_timestamp_set($date, $timestamp); list($usec, $sec) = explode("\x20", microtime()); $msec = sprintf("\x25\x30\64\144", round($usec * 10000)); $uniqueName = date_format($date, "\131\x6d\144\x5f\110\x69\163") . "\x5f" . $msec; return $uniqueName; } } if (!function_exists("\147\x65\164\122\x65\163\x6f\165\162\x63\145\125\x6e\x69\x71\165\x65\111\156\144\x65\170")) { function getResourceUniqueIndex() { $randvalue = rand(0, 99999999); return sprintf("\45\x30\x38\144", $randvalue); } } diff --git a/server/original/www/ezwebserver/src/application/helpers/http_helper.php b/server/original/www/ezwebserver/src/application/helpers/http_helper.php new file mode 100644 index 0000000..234e1aa --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/http_helper.php @@ -0,0 +1,7 @@ + + + +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/helpers/ini_helper.php b/server/original/www/ezwebserver/src/application/helpers/ini_helper.php new file mode 100644 index 0000000..6c08dba --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/ini_helper.php @@ -0,0 +1,7 @@ +get($section, $key); } } if (!function_exists("\x67\145\x74\137\x69\156\151\x5f\x61\x72\162\x61\x79")) { function get_ini_array($config_file) { $ini_file = IniFile::load($config_file); return $ini_file->toArray(); } } if (!function_exists("\163\145\164\x5f\151\x6e\151")) { function set_ini($config_file, $settingValueList) { $ini_file = IniFile::load($config_file); $settingArr = $ini_file->toArray(); foreach ($settingValueList as $settingValue) { if (array_key_exists($settingValue["\163\145\x63\x74\x69\157\x6e"], $settingArr)) { if (array_key_exists($settingValue["\153\x65\171"], $settingArr[$settingValue["\x73\x65\x63\164\151\x6f\156"]])) { $settingArr[$settingValue["\163\145\x63\x74\x69\x6f\156"]][$settingValue["\x6b\x65\x79"]] = $settingValue["\166\141\x6c\165\x65"]; } } } $iniSave = new IniFile(); foreach ($settingArr as $key => $val) { $section = new IniSection($key); foreach ($settingArr[$key] as $aKey => $aVal) { $section->set($aKey, $aVal); } $iniSave->addSection($section); } $iniSave->save($config_file); } } if (!function_exists("\163\x61\166\145\x5f\151\x6e\x69")) { function save_ini($config_file, $settingValueList) { $iniSave = new IniFile(); foreach ($settingValueList as $key => $val) { $section = new IniSection($key); foreach ($settingValueList[$key] as $aKey => $aVal) { $section->set($aKey, $aVal); } $iniSave->addSection($section); } $iniSave->save($config_file); } } diff --git a/server/original/www/ezwebserver/src/application/helpers/model_helper.php b/server/original/www/ezwebserver/src/application/helpers/model_helper.php new file mode 100644 index 0000000..2093904 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/model_helper.php @@ -0,0 +1,7 @@ +db = $dbConns[$dbName]; } else { $model->db = DB($dbName, NULL); $dbConns[$dbName] = $model->db; } return; } } if (!function_exists("\147\145\x74\x5f\x6f\x66\146\x73\145\x74")) { function get_offset($numItems, $pageNum) { return $pageNum * $numItems; } } if (!function_exists("\154\157\141\x64\137\x6d\x6f\144\145\x6c")) { function load_model($class, $modelName) { if (ENVIRONMENT == "\164\x65\163\x74\x69\156\x67") { StaticModelLoader::load($class, $modelName); } else { $class->load->model($modelName); } } } diff --git a/server/original/www/ezwebserver/src/application/helpers/type_helper.php b/server/original/www/ezwebserver/src/application/helpers/type_helper.php new file mode 100644 index 0000000..9227317 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/type_helper.php @@ -0,0 +1,7 @@ +eImagePayPerView)) { return "\x50\141\x79\120\x65\162\x56\x69\145\x77"; } else { if ($EImagePayType == enumToString(new EImagePayType(), (new EImagePayType())->eImageMonthlyPrepaid)) { return "\x4d\157\x6e\x74\150\x6c\171\120\x72\145\160\141\151\x64"; } else { if ($EImagePayType == enumToString(new EImagePayType(), (new EImagePayType())->eImageMonthlyFlatA)) { return "\115\x6f\156\164\x68\x6c\171\106\154\141\164\101"; } else { if ($EImagePayType == enumToString(new EImagePayType(), (new EImagePayType())->eImageMonthlyFlatB)) { return "\x4d\x6f\x6e\x74\x68\x6c\x79\x46\x6c\x61\x74\102"; } else { if ($EImagePayType == enumToString(new EImagePayType(), (new EImagePayType())->eImageUnpaidType)) { return "\125\156\x70\141\x69\x64"; } else { if ($EImagePayType == enumToString(new EImagePayType(), (new EImagePayType())->eImagePayTestType)) { return "\124\145\163\x74"; } else { return ''; } } } } } } } } if (!function_exists("\111\155\141\147\145\120\x61\x79\123\x74\141\x74\165\163\124\157\123\x74\x72\151\156\x67")) { function ImagePayStatusToString($imagePayStatus) { if ($imagePayStatus == enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImagePayStausNone)) { return "\x4e\x6f\156\x65"; } else { if ($imagePayStatus == enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImageUnpaidStatus)) { return "\125\156\x70\x61\x69\x64"; } else { if ($imagePayStatus == enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImagePaidStatus)) { return "\x50\x61\x69\x64"; } else { return ''; } } } } } if (!function_exists("\154\x69\143\145\x6e\163\145\103\x6f\x6e\144\151\x74\151\157\x6e\124\157\101\x72\x72\141\171")) { function licenseConditionToIntArr($licenseCondition) { preg_match_all("\x2f\133\x30\x2d\71\135\x2b\x2f", $licenseCondition, $licenseArray); return $licenseArray[0]; } } if (!function_exists("\163\x65\164\102\x6f\x6f\x6c\x56\141\x6c")) { function setBoolVal($bool) { return $bool == "\x74" ? TRUE : FALSE; } } if (!function_exists("\104\x65\x76\151\143\x65\120\x61\x79\x53\164\x61\x74\165\163\x54\157\x53\164\x72\x69\x6e\x67")) { function DevicePayStatusToString($eDevicePayStatus) { $strDevicePayStatus = ''; switch ($eDevicePayStatus) { case enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDeviceUnpaid): $strDevicePayStatus = "\x55\x6e\x70\141\151\x64"; break; case enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDevicePayOverdue): $strDevicePayStatus = "\x4f\x76\145\162\x64\x75\145"; break; case enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDevicePaid): $strDevicePayStatus = "\120\x61\x69\144"; break; case enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDevicePayCancel): $strDevicePayStatus = "\x43\141\x6e\143\x65\154\x65\144"; break; case enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDevicePayRefund): $strDevicePayStatus = "\122\x65\146\x75\x6e\144\x65\x64"; break; default: break; } return $strDevicePayStatus; } } if (!function_exists("\104\145\x76\151\x63\x65\120\141\171\x54\171\160\145\124\x6f\123\x74\162\x69\x6e\x67")) { function DevicePayTypeToString($eDevicePayType) { switch ($eDevicePayType) { case enumToString(new EDevicePayType(), (new EDevicePayType())->eDevicePayPerView): $strDevicePayStatus = "\x50\x61\x79\x50\x65\162\x56\x69\x65\167"; break; case enumToString(new EDevicePayType(), (new EDevicePayType())->eDeviceMonthlyPrepaid): $strDevicePayStatus = "\115\x6f\156\164\150\154\171\120\162\x65\x70\141\x69\144"; break; case enumToString(new EDevicePayType(), (new EDevicePayType())->eDeviceMonthlyFlatA): $strDevicePayStatus = "\x4d\157\x6e\164\150\154\x79\x46\x6c\x61\164\x41"; break; case enumToString(new EDevicePayType(), (new EDevicePayType())->eDeviceMonthlyFlatB): $strDevicePayStatus = "\x4d\x6f\156\164\150\x6c\171\106\x6c\141\164\102"; break; default: break; } return $strDevicePayStatus; } } if (!function_exists("\104\x65\166\x69\143\145\x53\141\x6c\x65\x73\124\171\x70\145\x54\x6f\x53\164\x72\151\x6e\147")) { function DeviceSalesTypeToString($eDeviceSalesType) { $strDeviceSalesType = ''; switch ($eDeviceSalesType) { case enumToString(new EDeviceSalesType(), (new EDeviceSalesType())->eNormalDevice): $strDeviceSalesType = "\x4e\157\162\x6d\141\154"; break; case enumToString(new EDeviceSalesType(), (new EDeviceSalesType())->eSmartPayDevice): $strDeviceSalesType = "\x53\x6d\x61\162\x74\x50\x61\171"; break; default: $strDeviceSalesType = "\x55\x6e\153\x6e\x6f\x77\x6e"; break; } return $strDeviceSalesType; } } if (!function_exists("\x73\x74\x72\x69\x6e\x67\124\157\104\145\166\x69\x63\145\x50\x61\171\x54\x79\160\x65")) { function stringToDevicePayType($string) { if ($string == "\x50\x61\x79\120\x65\x72\x56\151\x65\167") { return enumToString(new EDevicePayType(), (new EDevicePayType())->eDevicePayPerView); } else { if ($string == "\115\157\x6e\x74\x68\154\171\x50\162\145\160\x61\151\x64") { return enumToString(new EDevicePayType(), (new EDevicePayType())->eDeviceMonthlyPrepaid); } else { if ($string == "\x4d\x6f\156\x74\x68\x6c\x79\106\154\x61\x74\x41") { return enumToString(new EDevicePayType(), (new EDevicePayType())->eDeviceMonthlyFlatA); } else { if ($string == "\115\x6f\156\164\150\x6c\x79\x46\154\141\164\x42") { return enumToString(new EDevicePayType(), (new EDevicePayType())->eDeviceMonthlyFlatB); } else { return enumToString(new EDevicePayType(), (new EDevicePayType())->eDevicePayTypeNone); } } } } } } if (!function_exists("\x73\x74\x72\x69\156\147\124\x6f\x44\x65\x76\x69\x63\145\x50\x61\x79\123\164\141\x74\165\163")) { function stringToDevicePayStatus($string) { if ($string == "\125\156\160\x61\151\x64") { return enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDeviceUnpaid); } else { if ($string == "\117\x76\145\x72\144\165\145") { return enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDevicePayOverdue); } else { if ($string == "\x50\x61\x69\144") { return enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDevicePaid); } else { if ($string == "\103\x61\x6e\x63\x65\154\145\x64") { return enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDevicePayCancel); } else { if ($string == "\x52\145\146\165\156\x64\x65\x64") { return enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDevicePayRefund); } else { return enumToString(new EDevicePayStatus(), (new EDevicePayStatus())->eDevicePayStatusNone); } } } } } } } if (!function_exists("\163\164\162\x69\156\147\x54\157\x44\145\x76\151\x63\145\x53\x61\x6c\x65\163\x54\x79\x70\x65")) { function stringToDeviceSalesType($string) { if ($string == "\x4e\157\x72\x6d\141\x6c") { return enumToString(new EDeviceSalesType(), (new EDeviceSalesType())->eNormalDevice); } else { if ($string == "\123\155\x61\x72\164\120\x61\171") { return enumToString(new EDeviceSalesType(), (new EDeviceSalesType())->eSmartPayDevice); } else { return enumToString(new EDeviceSalesType(), (new EDeviceSalesType())->eUnknownDevice); } } } } if (!function_exists("\x75\164\x66\x38\x5f\x6f\162\144")) { function utf8_ord($ch) { $len = strlen($ch); if ($len <= 0) { return false; } $h = ord($ch[0]); if ($h <= 0x7f) { return $h; } if ($h < 0xc2) { return false; } if ($h <= 0xdf && $len > 1) { return ($h & 0x1f) << 6 | ord($ch[1]) & 0x3f; } if ($h <= 0xef && $len > 2) { return ($h & 0xf) << 12 | (ord($ch[1]) & 0x3f) << 6 | ord($ch[2]) & 0x3f; } if ($h <= 0xf4 && $len > 3) { return ($h & 0xf) << 18 | (ord($ch[1]) & 0x3f) << 12 | (ord($ch[2]) & 0x3f) << 6 | ord($ch[3]) & 0x3f; } return false; } } if (!function_exists("\147\145\164\x43\x68\157\x53\x75\156\x67")) { function getChoSung($str) { $cho = array("\343\x84\xb1", "\xe3\x84\262", "\343\204\xb4", "\xe3\x84\267", "\343\204\270", "\xe3\x84\xb9", "\343\x85\201", "\xe3\x85\202", "\343\205\x83", "\xe3\205\x85", "\xe3\x85\206", "\343\x85\207", "\343\x85\210", "\343\205\211", "\343\x85\212", "\343\205\213", "\xe3\205\214", "\xe3\x85\x8d", "\xe3\205\x8e"); $result = ''; for ($i = 0; $i < mb_strlen($str, "\125\x54\x46\x2d\70"); $i++) { $code = utf8_ord(mb_substr($str, $i, 1, "\x55\x54\106\55\70")) - 44032; if ($code > -1 && $code < 11172) { $cho_idx = $code / 588; $result .= $cho[$cho_idx]; } } return $result; } } if (!function_exists("\x63\165\x72\x72\145\156\164\104\x61\x74\145\102\171\x46\x6f\x72\155\x61\164")) { function currentDateByFormat($format = DATEFORMAT_ISO8601) { if (array_key_exists($format, DATAFORMAT)) { return date(DATAFORMAT[$format]); } else { return date(DATAFORMAT[DATEFORMAT_ISO8601]); } } } if (!function_exists("\143\x6f\156\166\145\162\x74\104\141\164\x65\x42\x79\106\157\162\x6d\x61\x74")) { function convertDateByFormat($format, $date) { try { $dateTime = new DateTime($date); } catch (Exception $e) { vt_loge("\124\150\x65\40\144\x61\164\145\x54\151\155\x65\40\x66\x6f\162\x6d\141\164\40\151\163\40\156\x6f\x74\40\x76\x61\154\151\x64\x2e\54\40\44\144\141\164\145\75" . $date); $dateTime = new DateTime(); } if (array_key_exists($format, DATAFORMAT)) { return $dateTime->format(DATAFORMAT[$format]); } else { return $dateTime->format(DATAFORMAT[DATEFORMAT_ISO8601]); } } } if (!function_exists("\x63\x75\x72\x72\x65\156\164\104\141\x74\145\x46\x6f\x72\155\141\164")) { function currentDateFormat() { if (func_num_args() == 0) { return currentDateByFormat(DATEFORMAT_ISO8601); } else { if (func_num_args() == 1) { $args = func_get_args(); return currentDateByFormat($args[0]); } else { if (func_num_args() == 2) { $args = func_get_args(); return convertDateByFormat($args[0], $args[1]); } } } } } if (!function_exists("\144\x62\x4d\157\144\141\154\x69\164\x79\x53\x74\162\x69\x6e\x67\124\157\105\x6d\157\x64\141\x6c\x69\x74\171")) { function dbModalityStringToEmodality($string) { if ($string == "\x50\141\x6e\x6f\162\x61\x6d\141") { return "\x65\x50\141\x6e\x6f\x72\141\x6d\x61"; } if ($string == "\103\145\x70\x68\x61\x6c\x6f") { return "\145\x43\x65\x70\150\x61\154\x6f"; } if ($string == "\x43\x54") { return "\145\103\124"; } if ($string == "\x49\117\x53\x65\156\x73\157\x72") { return "\145\x49\117\123\145\156\163\157\x72"; } if ($string == "\111\117\103\x61\x6d\x65\x72\141") { return "\x65\111\117\x43\141\155\145\162\x61"; } if ($string == "\111\117\x58\x52\x61\x79") { return "\145\x49\x4f\130\x52\x61\171"; } if ($string == "\104\123\x4c\122") { return "\145\104\123\x4c\122"; } if ($string == "\124\150\162\x65\x65\104\x50\150\x6f\164\x6f") { return "\145\x54\150\162\x65\145\104\x50\150\157\x74\x6f"; } if ($string == "\x49\155\160\162\145\x73\x73\151\157\156") { return "\145\111\x6d\x70\x72\x65\x73\x73\x69\x6f\x6e"; } if ($string == "\x49\117\123\x63\141\x6e\x6e\x65\x72") { return "\x65\x49\x4f\123\x63\141\156\x6e\145\162"; } if ($string == "\103\x61\x70\164\x75\x72\145") { return "\x65\x43\x61\x70\164\x75\x72\x65"; } if ($string == "\117\164\150\145\x72") { return "\x65\117\x74\x68\145\162"; } if ($string == "\106\151\x6c\x65") { return "\145\x46\151\x6c\x65"; } if ($string == "\x44\x6f\156\x74\x43\x61\162\x65") { return "\145\104\x6f\156\164\x43\x61\x72\x65"; } if ($string == "\101\156\x79\x4d\157\x64\141\154\x69\164\171") { return "\x65\101\x6e\x79\x4d\157\x64\141\154\151\164\171"; } if ($string == "\x54\150\162\145\x65\x44\117\x62\152\x65\x63\164") { return "\145\x54\x68\162\145\145\x44\x4f\x62\152\x65\x63\x74"; } return "\x65\x55\156\x6b\x6e\157\167\x6e"; } } if (!function_exists("\163\x68\157\x77\x44\102\x4d\157\144\x61\x6c\x69\164\171\x53\x74\x72\x69\156\x67\x54\x6f\105\x6d\157\x64\141\154\151\x74\x79")) { function showDBModalityStringToEmodality($string) { return dbModalityStringToEmodality($string); } } if (!function_exists("\x6d\x6f\x64\141\154\x69\164\171\x5f\x61\x70\x69\137\x73\164\162\137\164\x6f\x5f\x6d\157\x64\141\x6c\x69\164\x79\137\144\142\137\163\x74\162")) { function modality_api_str_to_modality_db_str($string) { $modality = EmodalityTransfer::StringToEmodality($string); return EmodalityTransfer::EModalityToStringDeliverer($modality); } } if (!function_exists("\x73\164\x72\x69\156\147\x54\157\x49\155\x61\x67\145\120\x61\171\123\x74\141\164\x75\x73")) { function stringToImagePayStatus($strImagePayStatus) { if ($strImagePayStatus === "\x55\x6e\160\141\151\144") { return enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImageUnpaidStatus); } else { if ($strImagePayStatus === "\x50\141\x69\144") { return enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImagePaidStatus); } else { return enumToString(new EImagePayStatus(), (new EImagePayStatus())->eImagePayStausNone); } } } } if (!function_exists("\163\164\162\151\156\147\x54\x6f\x49\155\x61\x67\x65\122\145\x70\x6f\x72\164\x53\164\141\164\x75\x73")) { function stringToImageReportStatus($strImageReportStatus) { if ($strImageReportStatus == "\x4e\x6f\x74\122\145\x70\157\x72\164\x65\x64") { return enumToString(new EImageReportStatus(), (new EImageReportStatus())->eImageNotReported); } else { if ($strImageReportStatus == "\122\x65\160\157\162\164\145\144") { return enumToString(new EImageReportStatus(), (new EImageReportStatus())->eImageReported); } else { return enumToString(new EImageReportStatus(), (new EImageReportStatus())->eImageReportStatusNone); } } } } if (!function_exists("\111\x6d\141\147\x65\122\x65\x70\x6f\162\164\x53\164\x61\164\165\163\124\157\x53\164\162\151\156\147")) { function ImageReportStatusToString($eImageReportStatus) { if ($eImageReportStatus == enumToString(new EImageReportStatus(), (new EImageReportStatus())->eImageReportStatusNone)) { return "\116\x6f\x6e\145"; } else { if ($eImageReportStatus == enumToString(new EImageReportStatus(), (new EImageReportStatus())->eImageNotReported)) { return "\x4e\x6f\x74\122\145\x70\157\162\x74\145\x64"; } else { if ($eImageReportStatus == enumToString(new EImageReportStatus(), (new EImageReportStatus())->eImageReported)) { return "\x52\145\x70\157\162\164\x65\x64"; } else { return ''; } } } } } if (!function_exists("\163\x74\x72\151\156\147\124\x6f\x49\x6d\141\147\x65\x50\x61\171\x54\171\160\145")) { function stringToImagePayType($strImagePayType) { if ($strImagePayType === "\x50\x61\171\x50\x65\x72\x56\151\x65\167") { return enumToString(new EImagePayType(), (new EImagePayType())->eImagePayPerView); } else { if ($strImagePayType === "\x4d\x6f\x6e\x74\150\x6c\x79\x50\x72\145\x70\141\151\x64") { return enumToString(new EImagePayType(), (new EImagePayType())->eImageMonthlyPrepaid); } else { if ($strImagePayType === "\x4d\x6f\x6e\x74\x68\x6c\171\106\x6c\x61\164\101") { return enumToString(new EImagePayType(), (new EImagePayType())->eImageMonthlyFlatA); } else { if ($strImagePayType === "\115\157\x6e\x74\x68\x6c\x79\x46\154\141\x74\102") { return enumToString(new EImagePayType(), (new EImagePayType())->eImageMonthlyFlatB); } else { if ($strImagePayType === "\x55\156\160\x61\x69\144") { return enumToString(new EImagePayType(), (new EImagePayType())->eImageUnpaidType); } else { if ($strImagePayType === "\124\145\163\x74") { return enumToString(new EImagePayType(), (new EImagePayType())->eImagePayTestType); } else { return enumToString(new EImagePayType(), (new EImagePayType())->eImagePayTypeNone); } } } } } } } } if (!function_exists("\x65\156\165\155\x54\x6f\x53\164\162\151\x6e\x67")) { function enumToString($enum, $name) { $properties = get_object_vars($enum); foreach ($properties as $key => $value) { if ($value == $name) { return $key; } } return false; } } if (!function_exists("\x73\157\165\x72\x63\x65\x54\x79\160\x65\105\156\165\x6d\62\x53\x74\x72\151\156\147")) { function sourceTypeEnum2String($sourceType) { switch ($sourceType) { case "\x65\125\x6e\x6b\x6e\x6f\167\x6e\123\157\x75\162\x63\x65\124\171\x70\x65": return "\x55\x6e\153\x6e\157\167\156"; case "\145\114\151\x6e\x6b\x61\x67\x65\137\x78\155\154\123\x6f\x75\162\143\x65\124\x79\160\x65": return "\114\x69\156\153\x61\x67\145\x2e\x78\155\154"; case "\145\x45\172\120\151\143\x6b\145\162\123\157\165\162\x63\145\124\x79\160\x65": return "\x45\x7a\120\151\x63\x6b\x65\x72"; case "\145\x45\172\x42\x72\x69\144\x67\x65\x53\157\x75\162\143\145\x54\171\x70\x65": return "\x45\x7a\x42\x72\x69\x64\x67\145"; case "\x65\x45\x53\123\x79\x6e\143\x72\157\x53\x6f\165\x72\143\x65\124\x79\160\x65": return "\105\123\123\x79\x6e\x63\162\157"; case "\x65\x45\172\104\145\156\164\x5f\x69\123\x6f\x75\x72\143\145\124\171\160\145": return "\105\172\x44\x65\x6e\x74\55\x69"; case "\x65\x45\172\x33\x44\137\x69\123\x6f\x75\x72\143\x65\124\x79\x70\x65": return "\x45\x7a\63\104\x2d\151"; case "\145\x45\172\63\104\x50\x6c\165\163\x53\x6f\165\162\x63\x65\x54\x79\x70\145": return "\105\172\63\104\120\x6c\x75\163"; case "\145\x45\172\x4f\162\x74\x68\x6f\x53\157\x75\162\x63\145\124\171\160\x65": return "\x45\x7a\117\162\164\150\157"; case "\x65\x4d\x69\147\x72\141\164\151\x6f\156\x53\x6f\x75\162\x63\x65\124\171\160\x65": return "\115\151\147\x72\x61\x74\151\x6f\156"; case "\145\x45\164\143\x53\157\165\162\143\145\124\x79\160\x65": return "\105\x74\x63"; case "\145\105\172\117\x72\164\150\x6f\115\151\x67\162\x61\164\151\x6f\x6e\123\157\x75\x72\143\x65\x54\x79\x70\145": return "\x45\172\x4f\x72\164\150\x6f\x4d\151\x67\x72\141\164\151\157\x6e"; default: return "\x55\x6e\x6b\x6e\157\167\x6e"; } } } diff --git a/server/original/www/ezwebserver/src/application/helpers/vt_config_helper.php b/server/original/www/ezwebserver/src/application/helpers/vt_config_helper.php new file mode 100644 index 0000000..f7dd8c8 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/vt_config_helper.php @@ -0,0 +1,7 @@ +format = "\152\160\x67"; $options->quality = $imgOption["\x71\x75\x61\x6c\151\x74\171"]; $options->widthPixels = $imgOption["\167\x69\x64\x74\150"]; $options->heightPixels = $imgOption["\150\x65\151\147\150\x74"]; $options->voiWindow = 1; $convertCT = new DCMTKWrapper(); $ret = $convertCT->convert($dstImgPath, $srcImgPath, $options); if ($ret != VSUCCESS) { vt_loge("\105\x72\162\x6f\162\x20\164\x6f\40\x63\x6f\x6e\x76\145\162\x74\x20\x69\155\141\147\x65\40\146\x72\157\x6d\x20\x28" . $srcImgPath . "\51\x20\x74\x6f\40\50" . $dstImgPath . "\x29"); return $ret; } } else { $img = new Imagick($srcImgPath); if ($imgOption["\164\x68\165\x6d\x62\156\x61\x69\154"]) { $img->thumbnailImage($imgOption["\x77\151\x64\x74\x68"], $imgOption["\x68\145\151\x67\150\164"], $imgOption["\142\145\163\x74\146\151\164"], $imgOption["\x66\x69\154\x6c"]); $img->setcompressionquality($imgOption["\x71\x75\141\x6c\x69\x74\x79"]); $img->writeImage($dstImgPath); } $img->destroy(); } } catch (Exception $ex) { vt_loge("\105\162\x72\157\x72\40\x69\x6e\x20\x6d\141\153\x69\x6e\x67\x20\x61\40\x74\150\165\155\142\x6e\x61\151\x6c\40\146\x69\x6c\x65\40\x66\162\157\155\40\50" . $srcImgPath . "\51\x20\167\151\x74\x68\x20\50" . $imgOption["\x74\150\165\155\x62\x6e\141\151\154"] . "\x29"); return VERR_COMMON_IO; } return VSUCCESS; } } diff --git a/server/original/www/ezwebserver/src/application/helpers/vt_iosensor_helper.php b/server/original/www/ezwebserver/src/application/helpers/vt_iosensor_helper.php new file mode 100644 index 0000000..788acb1 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/vt_iosensor_helper.php @@ -0,0 +1,7 @@ +EventsR2_model->post_EventsR2(["\x65\166\x65\x6e\x74\124\171\160\x65" => $evtLogType, "\141\x70\x70\x4e\141\x6d\145" => $appName, "\x75\x73\x65\162\x4e\141\155\x65" => $accountName, "\155\x65\163\163\141\147\145" => $message]); } } } diff --git a/server/original/www/ezwebserver/src/application/helpers/vt_pg_json_helper.php b/server/original/www/ezwebserver/src/application/helpers/vt_pg_json_helper.php new file mode 100644 index 0000000..f439307 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/vt_pg_json_helper.php @@ -0,0 +1,7 @@ +db->select("{$idColumnName}\x2c{$jsonColumnName}"); $model->db->from($tableName); $model->db->like("\143\x61\163\x74\x28{$jsonColumnName}\x20\141\x73\40\166\141\162\x63\x68\141\162\x29", "\42{$value}\42"); $ret = $model->db->get()->result_array(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $paramjson = json_decode($row[$jsonColumnName]); foreach ($paramjson->{"\x70\x61\x72\x61\155\x73"} as $paramrow) { if (strcasecmp($paramrow->{"{$keyName}"}, $value) == 0) { array_push($items, $row[$idColumnName]); break; } } } } return $items; } } if (!function_exists("\147\145\164\126\x61\154\165\x65\x73\111\x6e\x54\x61\142\x6c\145\112\x73\x6f\x6e\x50\141\x72\141\x6d\163")) { function getValuesInTableJsonParams($model, $tableName, $jsonColumnName, $keyName) { $model->db->select("{$jsonColumnName}"); $model->db->from($tableName); $model->db->like("\x63\141\x73\164\50{$jsonColumnName}\40\141\x73\40\x76\141\x72\x63\150\x61\x72\x29", "\42{$keyName}\x22"); $ret = $model->db->get()->result_array(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $paramjson = json_decode($row[$jsonColumnName]); $items = array_merge($items, array_column(array_values($paramjson->{"\160\141\x72\x61\155\x73"}), $keyName)); } } return $items; } } if (!function_exists("\x67\145\x74\x56\x61\154\x75\145\163\x49\x6e\112\x73\x6f\x6e\x50\x61\162\141\155\x73")) { function getValuesInJsonParams($rows, $jsonColumnName, $keyName) { $items = array(); foreach ($rows as $row) { $paramjson = json_decode($row[$jsonColumnName]); $items = array_merge($items, array_column(array_values($paramjson->{"\160\x61\x72\141\x6d\163"}), $keyName)); } return $items; } } if (!function_exists("\x72\x65\x6d\157\166\x65\106\162\157\x6d\x4a\163\x6f\156\x50\x61\x72\x61\x6d\163")) { function removeFromJsonParams($model, $tableName, $jsonColumnName, $idColumnName, $keyName, $value) { $model->db->select("{$idColumnName}\x2c{$jsonColumnName}"); $model->db->from($tableName); $model->db->like("\x63\x61\x73\x74\x28{$jsonColumnName}\40\x61\x73\40\166\x61\x72\143\x68\141\162\51", "\x22{$value}\x22"); $ret = $model->db->get()->result_array(); $items = array(); if (count($ret) > 0) { foreach ($ret as $row) { $removed = FALSE; $paramjson = json_decode($row[$jsonColumnName]); $params = $paramjson->{"\160\x61\x72\x61\x6d\x73"}; foreach ($params as $key => $paramrow) { if (strcasecmp($paramrow->{"{$keyName}"}, $value) == 0) { unset($params[$key]); $removed = TRUE; } } if ($removed == TRUE) { $model->db->set($jsonColumnName, json_encode(array("\160\141\162\x61\x6d\163" => array_values($params)))); $model->db->where($idColumnName, $row[$idColumnName]); $model->db->update($tableName); } } } } } diff --git a/server/original/www/ezwebserver/src/application/helpers/vt_video_file_helper.php b/server/original/www/ezwebserver/src/application/helpers/vt_video_file_helper.php new file mode 100644 index 0000000..de7eea6 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/helpers/vt_video_file_helper.php @@ -0,0 +1,7 @@ + $ffmpeg_path . "\134\142\x69\x6e\x5c\x66\x66\155\x70\145\x67\x2e\145\170\145", "\146\146\x70\x72\x6f\x62\x65\x2e\x62\151\x6e\x61\x72\151\145\163" => $ffmpeg_path . "\134\x62\x69\156\134\146\x66\160\162\x6f\142\x65\56\x65\x78\x65", "\x74\x69\155\145\x6f\165\164" => 3600, "\146\146\x6d\160\145\147\56\x74\150\162\x65\141\x64\163" => 12]); $video = $ffmpeg->open($input_file); $format = new FFMpeg\Format\Video\X264(); $format->setAudioCodec("\x6c\x69\142\155\x70\x33\x6c\141\x6d\x65")->setAudioChannels(1)->setAdditionalParameters(array("\x2d\x78\x32\66\64\157\x70\164\163", "\153\x65\171\151\x6e\x74\75\61\x30"))->setKiloBitrate(158)->setAudioKiloBitrate(158); $video->save($format, $output_file_mp4); rename($output_file_mp4, $output_file); return TRUE; } catch (Exception $ex) { return $ex->getMessage(); } } } if (!function_exists("\144\x65\x63\162\x79\160\164\137\x70\x72\157\x76\x69\x64\145\144\x5f\143\x6f\156\163\165\154\x74\137\166\x69\x64\x65\x6f")) { function decrypt_provided_consult_video($input_file, $decrypted_file) { $VT_CONSULT_FILE_SIGNATURE = "\x56\x54\123\120\x4f\x49\114\105\122"; $VT_CONSULT_FILE_SIGNATURE_SIZE = 9; $fileBefore = file_get_contents($input_file); if ($VT_CONSULT_FILE_SIGNATURE === substr($fileBefore, 0, $VT_CONSULT_FILE_SIGNATURE_SIZE)) { $data = strrev($fileBefore); file_put_contents($decrypted_file, $data); chmod($decrypted_file, 0777); } } } diff --git a/server/original/www/ezwebserver/src/application/hooks/DisplayHook.php b/server/original/www/ezwebserver/src/application/hooks/DisplayHook.php new file mode 100644 index 0000000..0d993a7 --- /dev/null +++ b/server/original/www/ezwebserver/src/application/hooks/DisplayHook.php @@ -0,0 +1,7 @@ +CI =& get_instance(); $output = $this->CI->output->get_output(); if (ENVIRONMENT != "\x74\145\163\x74\151\x6e\x67") { echo $output; } } } diff --git a/server/original/www/ezwebserver/src/application/hooks/index.html b/server/original/www/ezwebserver/src/application/hooks/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/server/original/www/ezwebserver/src/application/hooks/index.html @@ -0,0 +1,11 @@ + + + +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/index.html b/server/original/www/ezwebserver/src/application/index.html new file mode 100644 index 0000000..b702fbc --- /dev/null +++ b/server/original/www/ezwebserver/src/application/index.html @@ -0,0 +1,11 @@ + + + +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/language/arabic/calendar_lang.php b/server/original/www/ezwebserver/src/application/language/arabic/calendar_lang.php new file mode 100644 index 0000000..6d1addc --- /dev/null +++ b/server/original/www/ezwebserver/src/application/language/arabic/calendar_lang.php @@ -0,0 +1,7 @@ + + + +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/language/arabic/migration_lang.php b/server/original/www/ezwebserver/src/application/language/arabic/migration_lang.php new file mode 100644 index 0000000..213e1ed --- /dev/null +++ b/server/original/www/ezwebserver/src/application/language/arabic/migration_lang.php @@ -0,0 +1,7 @@ + + + +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/language/armenian/migration_lang.php b/server/original/www/ezwebserver/src/application/language/armenian/migration_lang.php new file mode 100644 index 0000000..1aa92cb --- /dev/null +++ b/server/original/www/ezwebserver/src/application/language/armenian/migration_lang.php @@ -0,0 +1,7 @@ + + + +Directory access is forbidden.
+ + + diff --git a/server/original/www/ezwebserver/src/application/language/azerbaijani/migration_lang.php b/server/original/www/ezwebserver/src/application/language/azerbaijani/migration_lang.php new file mode 100644 index 0000000..e9d4e8d --- /dev/null +++ b/server/original/www/ezwebserver/src/application/language/azerbaijani/migration_lang.php @@ -0,0 +1,7 @@ + + +Directory access is forbidden.
+ + +