From 3d8eaf86a5b7d999969d620276c57321dfa02574 Mon Sep 17 00:00:00 2001 From: badcast Date: Thu, 21 Dec 2023 22:20:26 +0600 Subject: [PATCH] ReStructure dirs for -> frontend < - > backend Fix some bugs --- .gitignore | 5 +- CMakeLists.txt | 72 +---------------- README.md | 2 +- client-frontend/dragon-tea/CMakeLists.txt | 74 ++++++++++++++++++ VERSION => client-frontend/dragon-tea/VERSION | 0 .../dragon-tea/builtin}/builtin_template.c | 0 .../dragon-tea/builtin}/server1.url | 0 .../dragon-tea/builtin}/server2.url | 0 .../dragon-tea/builtin}/server3.url | 0 .../dragon-tea/include}/tea.h | 0 .../dragon-tea/include}/tea_api.h | 0 .../dragon-tea/include}/tea_localization.h | 0 .../dragon-tea/include}/tea_structs.h | 0 .../dragon-tea/include}/ui_callbacks.h | 0 .../dragon-tea/localization}/locale-gen.sh | 0 .../locale/kz_KZ/LC_MESSAGES/dragon-tea.mo | Bin .../locale/ru_RU/LC_MESSAGES/dragon-tea.mo | Bin .../dragon-tea/localization}/messages.pot | 0 .../localization}/translates/kz_KZ.po | 0 .../localization}/translates/ru_RU.po | 0 .../localization}/translates/ru_RU.po~ | 0 .../dragon-tea/src}/core/ui.c | 0 .../dragon-tea/src}/core/ui_about.c | 0 .../dragon-tea/src}/core/ui_authorize.c | 0 .../dragon-tea/src}/core/ui_callbacks.c | 0 .../dragon-tea/src}/core/ui_chat.c | 0 .../dragon-tea/src}/core/ui_logs.c | 0 .../dragon-tea/src}/core/ui_settings.c | 0 .../dragon-tea/src}/main.c | 0 .../dragon-tea/src}/net/tea_net_api.c | 0 {src => client-frontend/dragon-tea/src}/tea.c | 0 .../webclient}/index.html | 0 .../webclient}/styles/design.css | 0 .../webclient}/styles/form.css | 0 .../webclient}/tea_api.js | 0 .../webclient}/tea_ui.js | 0 run-server-php.sh | 2 +- {server-php => server-backend/php}/LICENSE | 0 .../php}/api/TEA_SERVER_VERSION | 0 .../php}/api/WELCOME.txt | 0 .../php}/api/auth.php | 0 .../php}/api/const.php | 0 .../php}/api/get_users.php | 0 .../php}/api/messageHandler.php | 0 .../php}/api/register.php | 0 .../php}/api/sender.php | 0 .../php}/api/user.php | 0 .../php}/api/user_delete.php | 0 .../php}/api/user_stat.php | 0 .../php}/messagedb.php | 0 .../php}/server_config.php | 0 51 files changed, 80 insertions(+), 75 deletions(-) create mode 100644 client-frontend/dragon-tea/CMakeLists.txt rename VERSION => client-frontend/dragon-tea/VERSION (100%) rename {builtin => client-frontend/dragon-tea/builtin}/builtin_template.c (100%) rename {builtin => client-frontend/dragon-tea/builtin}/server1.url (100%) rename {builtin => client-frontend/dragon-tea/builtin}/server2.url (100%) rename {builtin => client-frontend/dragon-tea/builtin}/server3.url (100%) rename {include => client-frontend/dragon-tea/include}/tea.h (100%) rename {include => client-frontend/dragon-tea/include}/tea_api.h (100%) rename {include => client-frontend/dragon-tea/include}/tea_localization.h (100%) rename {include => client-frontend/dragon-tea/include}/tea_structs.h (100%) rename {include => client-frontend/dragon-tea/include}/ui_callbacks.h (100%) rename {localization => client-frontend/dragon-tea/localization}/locale-gen.sh (100%) rename {localization => client-frontend/dragon-tea/localization}/locale/kz_KZ/LC_MESSAGES/dragon-tea.mo (100%) rename {localization => client-frontend/dragon-tea/localization}/locale/ru_RU/LC_MESSAGES/dragon-tea.mo (100%) rename {localization => client-frontend/dragon-tea/localization}/messages.pot (100%) rename {localization => client-frontend/dragon-tea/localization}/translates/kz_KZ.po (100%) rename {localization => client-frontend/dragon-tea/localization}/translates/ru_RU.po (100%) rename {localization => client-frontend/dragon-tea/localization}/translates/ru_RU.po~ (100%) rename {src => client-frontend/dragon-tea/src}/core/ui.c (100%) rename {src => client-frontend/dragon-tea/src}/core/ui_about.c (100%) rename {src => client-frontend/dragon-tea/src}/core/ui_authorize.c (100%) rename {src => client-frontend/dragon-tea/src}/core/ui_callbacks.c (100%) rename {src => client-frontend/dragon-tea/src}/core/ui_chat.c (100%) rename {src => client-frontend/dragon-tea/src}/core/ui_logs.c (100%) rename {src => client-frontend/dragon-tea/src}/core/ui_settings.c (100%) rename {src => client-frontend/dragon-tea/src}/main.c (100%) rename {src => client-frontend/dragon-tea/src}/net/tea_net_api.c (100%) rename {src => client-frontend/dragon-tea/src}/tea.c (100%) rename {webclient => client-frontend/webclient}/index.html (100%) rename {webclient => client-frontend/webclient}/styles/design.css (100%) rename {webclient => client-frontend/webclient}/styles/form.css (100%) rename {webclient => client-frontend/webclient}/tea_api.js (100%) rename {webclient => client-frontend/webclient}/tea_ui.js (100%) rename {server-php => server-backend/php}/LICENSE (100%) rename {server-php => server-backend/php}/api/TEA_SERVER_VERSION (100%) rename {server-php => server-backend/php}/api/WELCOME.txt (100%) rename {server-php => server-backend/php}/api/auth.php (100%) rename {server-php => server-backend/php}/api/const.php (100%) rename {server-php => server-backend/php}/api/get_users.php (100%) rename {server-php => server-backend/php}/api/messageHandler.php (100%) rename {server-php => server-backend/php}/api/register.php (100%) rename {server-php => server-backend/php}/api/sender.php (100%) rename {server-php => server-backend/php}/api/user.php (100%) rename {server-php => server-backend/php}/api/user_delete.php (100%) rename {server-php => server-backend/php}/api/user_stat.php (100%) rename {server-php => server-backend/php}/messagedb.php (100%) rename {server-php => server-backend/php}/server_config.php (100%) diff --git a/.gitignore b/.gitignore index c4d9dfa..bfa078e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -server-php/users/* -server-php/messages/* +server-backend/php/users +server-backend/php/messages .vscode CMakeLists.txt.user +CMakeLists.txt.user* diff --git a/CMakeLists.txt b/CMakeLists.txt index 34f63f2..8cd58be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,73 +1,3 @@ cmake_minimum_required(VERSION 3.10) -# READ VERSION -file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DRAGON_TEA_VERSION) - -string(STRIP "${DRAGON_TEA_VERSION}" DRAGON_TEA_VERSION) - -project( - DragonTea - VERSION ${DRAGON_TEA_VERSION} - LANGUAGES C) - -find_package(PkgConfig REQUIRED) -pkg_check_modules(gtk3ui REQUIRED gtk+-3.0) -pkg_check_modules(libcurl REQUIRED libcurl) -pkg_check_modules(json REQUIRED json-c) -pkg_check_modules(gthread REQUIRED gthread-2.0) - -file(GLOB_RECURSE DRAGONTEA_SOURCES "${CMAKE_SOURCE_DIR}/src/*.c" - "${CMAKE_SOURCE_DIR}/include/*.h") - -add_executable(dragontea) - -# COMPILE BUILTIN SERVERS -set(BUILTIN_TEMPLATE_FILE "${CMAKE_BINARY_DIR}/builtin_template.c") - -file(GLOB BUILTIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/builtin/*.url") -list(LENGTH BUILTIN_FILES BF_LENGTH) - -if(NOT EXISTS "${BUILTIN_TEMPLATE_FILE}") - if(BF_LENGTH GREATER 0) - file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/builtin/builtin_template.c" - DESTINATION ${CMAKE_BINARY_DIR}) - - foreach(F ${BUILTIN_FILES}) - file(READ ${F} F_CONTENT) - string(STRIP ${F_CONTENT} F_CONTENT) - file(APPEND ${BUILTIN_TEMPLATE_FILE} "\"${F_CONTENT}\",\n") - endforeach() - file(APPEND ${BUILTIN_TEMPLATE_FILE} "};") - endif() -endif() - -if(EXISTS "${BUILTIN_TEMPLATE_FILE}") - list(APPEND DRAGONTEA_SOURCES ${BUILTIN_TEMPLATE_FILE}) - target_compile_definitions(dragontea PUBLIC BUILTIN_SERVERS=ON - BUILTIN_SERVERS_N=${BF_LENGTH}) -endif() - -target_sources(dragontea PUBLIC ${DRAGONTEA_SOURCES}) - -target_include_directories( - dragontea - PUBLIC "${CMAKE_SOURCE_DIR}/include/" ${gtk3ui_INCLUDE_DIRS} - ${gthread_INCLUDE_DIRS} ${libcurl_INCLUDE_DIRS} ${json_INCLUDE_DIRS}) - -target_link_libraries(dragontea ${gtk3ui_LIBRARIES} ${libcurl_LIBRARIES} - ${json_LIBRARIES} ${gthread_LIBRARIES}) - -target_compile_definitions(dragontea - PUBLIC DRAGON_TEA_VERSION="${DRAGON_TEA_VERSION}") - -if(UNIX OR LINUX) - set(LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale") - target_compile_definitions(dragontea - PUBLIC DRAGON_TEA_LOCALE_DIR="${LOCALE_DIR}") - - install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/localization/locale" - DESTINATION "${CMAKE_INSTALL_PREFIX}/share") - - install(FILES "${CMAKE_BINARY_DIR}/dragontea" - DESTINATION "${CMAKE_INSTALL_PREFIX}/bin/") -endif() +add_subdirectory(client-frontend/dragon-tea) diff --git a/README.md b/README.md index e1031e5..6f5c4b7 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Dragon Tea. Free Messenger ## How to customization server? ----- -```Server (backend):``` The file located at [server_config](./server-php/server_config.php) contains the server configuration settings. +```Server (backend):``` The file located at [server_config](./server-backend/php/server_config.php) contains the server configuration settings. ```Client (frontend):``` The file located at ```$HOME/.config/DragonTea/tea-config.json``` contains the client configuration settings diff --git a/client-frontend/dragon-tea/CMakeLists.txt b/client-frontend/dragon-tea/CMakeLists.txt new file mode 100644 index 0000000..26e3417 --- /dev/null +++ b/client-frontend/dragon-tea/CMakeLists.txt @@ -0,0 +1,74 @@ +# READ VERSION +file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DRAGON_TEA_VERSION) + +string(STRIP "${DRAGON_TEA_VERSION}" DRAGON_TEA_VERSION) + +project( + DragonTea + VERSION ${DRAGON_TEA_VERSION} + LANGUAGES C) + +find_package(PkgConfig REQUIRED) +pkg_check_modules(gtk3ui REQUIRED gtk+-3.0) +pkg_check_modules(libcurl REQUIRED libcurl) +pkg_check_modules(json REQUIRED json-c) +pkg_check_modules(gthread REQUIRED gthread-2.0) + +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) + +file(GLOB_RECURSE DRAGONTEA_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.c" + "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h") + +add_executable(dragontea) + +# COMPILE BUILTIN SERVERS +set(BUILTIN_TEMPLATE_FILE "${CMAKE_BINARY_DIR}/builtin_template.c") + +file(GLOB BUILTIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/builtin/*.url") +list(LENGTH BUILTIN_FILES BF_LENGTH) + +if(NOT EXISTS "${BUILTIN_TEMPLATE_FILE}") + if(BF_LENGTH GREATER 0) + file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/builtin/builtin_template.c" + DESTINATION ${CMAKE_BINARY_DIR}) + + foreach(F ${BUILTIN_FILES}) + file(READ ${F} F_CONTENT) + string(STRIP ${F_CONTENT} F_CONTENT) + file(APPEND ${BUILTIN_TEMPLATE_FILE} "\"${F_CONTENT}\",\n") + endforeach() + file(APPEND ${BUILTIN_TEMPLATE_FILE} "};") + endif() +endif() + +if(EXISTS "${BUILTIN_TEMPLATE_FILE}") + list(APPEND DRAGONTEA_SOURCES ${BUILTIN_TEMPLATE_FILE}) + target_compile_definitions(dragontea PUBLIC BUILTIN_SERVERS=ON + BUILTIN_SERVERS_N=${BF_LENGTH}) +endif() + +target_sources(dragontea PUBLIC ${DRAGONTEA_SOURCES}) + +target_include_directories( + dragontea + PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include/" ${gtk3ui_INCLUDE_DIRS} + ${gthread_INCLUDE_DIRS} ${libcurl_INCLUDE_DIRS} ${json_INCLUDE_DIRS}) + +target_link_libraries(dragontea ${gtk3ui_LIBRARIES} ${libcurl_LIBRARIES} + ${json_LIBRARIES} ${gthread_LIBRARIES}) + +target_compile_definitions(dragontea + PUBLIC DRAGON_TEA_VERSION="${DRAGON_TEA_VERSION}") + +if(UNIX OR LINUX) + set(LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale") + target_compile_definitions(dragontea + PUBLIC DRAGON_TEA_LOCALE_DIR="${LOCALE_DIR}") + + install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/localization/locale" + DESTINATION "${CMAKE_INSTALL_PREFIX}/share") + + install(FILES "${CMAKE_BINARY_DIR}/dragontea" + DESTINATION "${CMAKE_INSTALL_PREFIX}/bin/") +endif() diff --git a/VERSION b/client-frontend/dragon-tea/VERSION similarity index 100% rename from VERSION rename to client-frontend/dragon-tea/VERSION diff --git a/builtin/builtin_template.c b/client-frontend/dragon-tea/builtin/builtin_template.c similarity index 100% rename from builtin/builtin_template.c rename to client-frontend/dragon-tea/builtin/builtin_template.c diff --git a/builtin/server1.url b/client-frontend/dragon-tea/builtin/server1.url similarity index 100% rename from builtin/server1.url rename to client-frontend/dragon-tea/builtin/server1.url diff --git a/builtin/server2.url b/client-frontend/dragon-tea/builtin/server2.url similarity index 100% rename from builtin/server2.url rename to client-frontend/dragon-tea/builtin/server2.url diff --git a/builtin/server3.url b/client-frontend/dragon-tea/builtin/server3.url similarity index 100% rename from builtin/server3.url rename to client-frontend/dragon-tea/builtin/server3.url diff --git a/include/tea.h b/client-frontend/dragon-tea/include/tea.h similarity index 100% rename from include/tea.h rename to client-frontend/dragon-tea/include/tea.h diff --git a/include/tea_api.h b/client-frontend/dragon-tea/include/tea_api.h similarity index 100% rename from include/tea_api.h rename to client-frontend/dragon-tea/include/tea_api.h diff --git a/include/tea_localization.h b/client-frontend/dragon-tea/include/tea_localization.h similarity index 100% rename from include/tea_localization.h rename to client-frontend/dragon-tea/include/tea_localization.h diff --git a/include/tea_structs.h b/client-frontend/dragon-tea/include/tea_structs.h similarity index 100% rename from include/tea_structs.h rename to client-frontend/dragon-tea/include/tea_structs.h diff --git a/include/ui_callbacks.h b/client-frontend/dragon-tea/include/ui_callbacks.h similarity index 100% rename from include/ui_callbacks.h rename to client-frontend/dragon-tea/include/ui_callbacks.h diff --git a/localization/locale-gen.sh b/client-frontend/dragon-tea/localization/locale-gen.sh similarity index 100% rename from localization/locale-gen.sh rename to client-frontend/dragon-tea/localization/locale-gen.sh diff --git a/localization/locale/kz_KZ/LC_MESSAGES/dragon-tea.mo b/client-frontend/dragon-tea/localization/locale/kz_KZ/LC_MESSAGES/dragon-tea.mo similarity index 100% rename from localization/locale/kz_KZ/LC_MESSAGES/dragon-tea.mo rename to client-frontend/dragon-tea/localization/locale/kz_KZ/LC_MESSAGES/dragon-tea.mo diff --git a/localization/locale/ru_RU/LC_MESSAGES/dragon-tea.mo b/client-frontend/dragon-tea/localization/locale/ru_RU/LC_MESSAGES/dragon-tea.mo similarity index 100% rename from localization/locale/ru_RU/LC_MESSAGES/dragon-tea.mo rename to client-frontend/dragon-tea/localization/locale/ru_RU/LC_MESSAGES/dragon-tea.mo diff --git a/localization/messages.pot b/client-frontend/dragon-tea/localization/messages.pot similarity index 100% rename from localization/messages.pot rename to client-frontend/dragon-tea/localization/messages.pot diff --git a/localization/translates/kz_KZ.po b/client-frontend/dragon-tea/localization/translates/kz_KZ.po similarity index 100% rename from localization/translates/kz_KZ.po rename to client-frontend/dragon-tea/localization/translates/kz_KZ.po diff --git a/localization/translates/ru_RU.po b/client-frontend/dragon-tea/localization/translates/ru_RU.po similarity index 100% rename from localization/translates/ru_RU.po rename to client-frontend/dragon-tea/localization/translates/ru_RU.po diff --git a/localization/translates/ru_RU.po~ b/client-frontend/dragon-tea/localization/translates/ru_RU.po~ similarity index 100% rename from localization/translates/ru_RU.po~ rename to client-frontend/dragon-tea/localization/translates/ru_RU.po~ diff --git a/src/core/ui.c b/client-frontend/dragon-tea/src/core/ui.c similarity index 100% rename from src/core/ui.c rename to client-frontend/dragon-tea/src/core/ui.c diff --git a/src/core/ui_about.c b/client-frontend/dragon-tea/src/core/ui_about.c similarity index 100% rename from src/core/ui_about.c rename to client-frontend/dragon-tea/src/core/ui_about.c diff --git a/src/core/ui_authorize.c b/client-frontend/dragon-tea/src/core/ui_authorize.c similarity index 100% rename from src/core/ui_authorize.c rename to client-frontend/dragon-tea/src/core/ui_authorize.c diff --git a/src/core/ui_callbacks.c b/client-frontend/dragon-tea/src/core/ui_callbacks.c similarity index 100% rename from src/core/ui_callbacks.c rename to client-frontend/dragon-tea/src/core/ui_callbacks.c diff --git a/src/core/ui_chat.c b/client-frontend/dragon-tea/src/core/ui_chat.c similarity index 100% rename from src/core/ui_chat.c rename to client-frontend/dragon-tea/src/core/ui_chat.c diff --git a/src/core/ui_logs.c b/client-frontend/dragon-tea/src/core/ui_logs.c similarity index 100% rename from src/core/ui_logs.c rename to client-frontend/dragon-tea/src/core/ui_logs.c diff --git a/src/core/ui_settings.c b/client-frontend/dragon-tea/src/core/ui_settings.c similarity index 100% rename from src/core/ui_settings.c rename to client-frontend/dragon-tea/src/core/ui_settings.c diff --git a/src/main.c b/client-frontend/dragon-tea/src/main.c similarity index 100% rename from src/main.c rename to client-frontend/dragon-tea/src/main.c diff --git a/src/net/tea_net_api.c b/client-frontend/dragon-tea/src/net/tea_net_api.c similarity index 100% rename from src/net/tea_net_api.c rename to client-frontend/dragon-tea/src/net/tea_net_api.c diff --git a/src/tea.c b/client-frontend/dragon-tea/src/tea.c similarity index 100% rename from src/tea.c rename to client-frontend/dragon-tea/src/tea.c diff --git a/webclient/index.html b/client-frontend/webclient/index.html similarity index 100% rename from webclient/index.html rename to client-frontend/webclient/index.html diff --git a/webclient/styles/design.css b/client-frontend/webclient/styles/design.css similarity index 100% rename from webclient/styles/design.css rename to client-frontend/webclient/styles/design.css diff --git a/webclient/styles/form.css b/client-frontend/webclient/styles/form.css similarity index 100% rename from webclient/styles/form.css rename to client-frontend/webclient/styles/form.css diff --git a/webclient/tea_api.js b/client-frontend/webclient/tea_api.js similarity index 100% rename from webclient/tea_api.js rename to client-frontend/webclient/tea_api.js diff --git a/webclient/tea_ui.js b/client-frontend/webclient/tea_ui.js similarity index 100% rename from webclient/tea_ui.js rename to client-frontend/webclient/tea_ui.js diff --git a/run-server-php.sh b/run-server-php.sh index 959cf18..33acdaa 100644 --- a/run-server-php.sh +++ b/run-server-php.sh @@ -1,4 +1,4 @@ #!/usr/bin/sh +php -S localhost:8000 -t ./server-backend/php xdg-open localhost:8000/api/auth.php -php -S localhost:8000 -t ./server-php diff --git a/server-php/LICENSE b/server-backend/php/LICENSE similarity index 100% rename from server-php/LICENSE rename to server-backend/php/LICENSE diff --git a/server-php/api/TEA_SERVER_VERSION b/server-backend/php/api/TEA_SERVER_VERSION similarity index 100% rename from server-php/api/TEA_SERVER_VERSION rename to server-backend/php/api/TEA_SERVER_VERSION diff --git a/server-php/api/WELCOME.txt b/server-backend/php/api/WELCOME.txt similarity index 100% rename from server-php/api/WELCOME.txt rename to server-backend/php/api/WELCOME.txt diff --git a/server-php/api/auth.php b/server-backend/php/api/auth.php similarity index 100% rename from server-php/api/auth.php rename to server-backend/php/api/auth.php diff --git a/server-php/api/const.php b/server-backend/php/api/const.php similarity index 100% rename from server-php/api/const.php rename to server-backend/php/api/const.php diff --git a/server-php/api/get_users.php b/server-backend/php/api/get_users.php similarity index 100% rename from server-php/api/get_users.php rename to server-backend/php/api/get_users.php diff --git a/server-php/api/messageHandler.php b/server-backend/php/api/messageHandler.php similarity index 100% rename from server-php/api/messageHandler.php rename to server-backend/php/api/messageHandler.php diff --git a/server-php/api/register.php b/server-backend/php/api/register.php similarity index 100% rename from server-php/api/register.php rename to server-backend/php/api/register.php diff --git a/server-php/api/sender.php b/server-backend/php/api/sender.php similarity index 100% rename from server-php/api/sender.php rename to server-backend/php/api/sender.php diff --git a/server-php/api/user.php b/server-backend/php/api/user.php similarity index 100% rename from server-php/api/user.php rename to server-backend/php/api/user.php diff --git a/server-php/api/user_delete.php b/server-backend/php/api/user_delete.php similarity index 100% rename from server-php/api/user_delete.php rename to server-backend/php/api/user_delete.php diff --git a/server-php/api/user_stat.php b/server-backend/php/api/user_stat.php similarity index 100% rename from server-php/api/user_stat.php rename to server-backend/php/api/user_stat.php diff --git a/server-php/messagedb.php b/server-backend/php/messagedb.php similarity index 100% rename from server-php/messagedb.php rename to server-backend/php/messagedb.php diff --git a/server-php/server_config.php b/server-backend/php/server_config.php similarity index 100% rename from server-php/server_config.php rename to server-backend/php/server_config.php