diff --git a/.gitignore b/.gitignore index 141c23e..d29257c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ rpmbuild/ .env.* -xmlrpc/src/vendor flexiapi/node_modules flexiapi/public/hot flexiapi/public/storage diff --git a/.gitlab-ci-files/package.yml b/.gitlab-ci-files/package.yml index 8d3b177..abf8c18 100644 --- a/.gitlab-ci-files/package.yml +++ b/.gitlab-ci-files/package.yml @@ -17,7 +17,6 @@ remi-phpredis-package: needs: - remi-igbinary-package - remi-msgpack-package - - remi-xmlrpc-package variables: PACKAGE: $PHP_REDIS_REMI_VERSION @@ -31,11 +30,6 @@ remi-msgpack-package: variables: PACKAGE: $PHP_MSGPACK_REMI_VERSION -remi-xmlrpc-package: - extends: .remi-package - variables: - PACKAGE: $PHP_XMLRPC_REMI_VERSION - .remi-package: extends: .package image: gitlab.linphone.org:4567/bc/public/docker/rocky8-php:$ROCKY_8_IMAGE_VERSION diff --git a/.gitlab-ci-files/test.yml b/.gitlab-ci-files/test.yml index 9c1558d..28add12 100644 --- a/.gitlab-ci-files/test.yml +++ b/.gitlab-ci-files/test.yml @@ -3,7 +3,6 @@ rocky8-test: image: gitlab.linphone.org:4567/bc/public/docker/rocky8-php:$ROCKY_8_IMAGE_VERSION needs: - rocky8-package - - remi-xmlrpc-package script: - yum -y localinstall build/*.rpm - cd /opt/belledonne-communications/share/flexisip-account-manager/flexiapi diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 293c5cc..be1d1a2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,6 @@ variables: PHP_REDIS_REMI_VERSION: php-pecl-redis5-5.3.6-1 PHP_IGBINARY_REMI_VERSION: php-pecl-igbinary-3.2.14-1 PHP_MSGPACK_REMI_VERSION: php-pecl-msgpack-2.2.0-1 - PHP_XMLRPC_REMI_VERSION: php-pecl-xmlrpc-1.0.0~rc3-2 include: - '.gitlab-ci-files/package.yml' diff --git a/Makefile b/Makefile index 6c59e1e..0379a46 100644 --- a/Makefile +++ b/Makefile @@ -24,11 +24,9 @@ cleanup-package-semvers: prepare: cd flexiapi && php composer.phar install --ignore-platform-req=ext-redis --no-dev - cd xmlrpc/src && cp ../../flexiapi/composer.phar . && php composer.phar install --ignore-platform-req=ext-redis --no-dev prepare-dev: cd flexiapi && php composer.phar install --ignore-platform-req=ext-redis - cd xmlrpc/src && cp ../../flexiapi/composer.phar . && php composer.phar install --ignore-platform-req=ext-redis package-common: rm -rf $(OUTPUT_DIR)/flexisip-account-manager @@ -36,16 +34,10 @@ package-common: mkdir -p $(OUTPUT_DIR)/rpmbuild/SPECS mkdir -p $(OUTPUT_DIR)/rpmbuild/SOURCES - # XMLRPC - cp -R --parents xmlrpc/src/**/*.php $(OUTPUT_DIR)/flexisip-account-manager/ - cp -R --parents xmlrpc/src/vendor/**/* $(OUTPUT_DIR)/flexisip-account-manager/ - cp -R --parents xmlrpc/src/api/**/*.php $(OUTPUT_DIR)/flexisip-account-manager/ - cp -R --parents conf/*.conf $(OUTPUT_DIR)/flexisip-account-manager/ - # FlexiAPI cp -R --parents flexiapi/**/* $(OUTPUT_DIR)/flexisip-account-manager/ cp flexiapi/composer* $(OUTPUT_DIR)/flexisip-account-manager/flexiapi/ - cp README.md $(OUTPUT_DIR)/flexisip-account-manager/flexiapi/ + cp README.md $(OUTPUT_DIR)/flexisip-account-manager/ cp flexiapi/.env.example $(OUTPUT_DIR)/flexisip-account-manager/flexiapi/.env.example cp flexiapi/artisan $(OUTPUT_DIR)/flexisip-account-manager/flexiapi/ cp flexiapi/phpunit.xml $(OUTPUT_DIR)/flexisip-account-manager/flexiapi/ @@ -53,7 +45,6 @@ package-common: cp flexiapi/phpmd.xml $(OUTPUT_DIR)/flexisip-account-manager/flexiapi/ # General - cp xmlrpc/README.md $(OUTPUT_DIR)/flexisip-account-manager/ cp -R httpd/ $(OUTPUT_DIR)/flexisip-account-manager/ cp -R cron/ $(OUTPUT_DIR)/flexisip-account-manager/ cp flexisip-account-manager.spec.run $(OUTPUT_DIR)/rpmbuild/SPECS/flexisip-account-manager.spec diff --git a/README.md b/README.md index 33ab256..fb760f8 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,6 @@ Flexisip Account Manager brings several tools in one: - a web portal, powered by FlexiAPI - a remote provisioning server, able to generate configuration files compatible with Linphone's QrCode-based or URL-based remote provisioning feature -It replaces the historical XMLRPC tool that is still available in `xmlrpc/` for retrocompatibility purpose. - # License Copyright © Belledonne Communications diff --git a/conf/accounts.conf b/conf/accounts.conf deleted file mode 100644 index ea52a5a..0000000 --- a/conf/accounts.conf +++ /dev/null @@ -1,94 +0,0 @@ -?;:[]{}\| - */ -define("GENERATED_PASSWORD_CHARACTERS", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789``-=~!@#$%^&*()_+,./<>?;:[]{}\|"); - -/* - * The length of the passwords that will be generated. - * - * Default value: 8 - */ -define("GENERATED_PASSWORD_LENGTH", 8); - -/* - * The default algorithm to use if not specified in the request - * - * Default value: MD5 - */ -define("DEFAULT_ALGORITHM", "MD5"); - -/* - * A string with each character allowed in the username generation. - * - * Default value: abcdefghijklmnopqrstuvwxyz0123456789.-_ - */ -define("GENERATED_USERNAME_CHARACTERS", "abcdefghijklmnopqrstuvwxyz0123456789.-_"); - -/* - * The length of the username that will be generated. - * - * Default value: 12 - */ -define("GENERATED_USERNAME_LENGTH", 12); - -/* - * If set to True, a created account will automatically be activated and it's expiration date set to now + TRIAL_DURATION_DAYS, - * otherwise expiration date for trial will be set when account is activated via a different xml rpc call. - */ -define('AUTO_ACTIVATE_ACCOUNT', False); - -/* - * Send an email to activate the account when it is created. - */ -define('SEND_ACTIVATION_EMAIL', True); - -/* - * Send a sms to activate the phone account when it is created. - */ -define('SEND_ACTIVATION_SMS', True); - -/* - * If false, creating an account with an email that is already used for another account will trigger an error - */ -define('ALLOW_SAME_EMAILS_ON_MULTILPLE_ACCOUNTS', True); - -/* - * If true, when an account creation request is received for an existing number, assumes recover procedure - */ -define('RECOVER_ACCOUNT_IF_EXISTS', False); - -/* - * Enabling geoloc of accounts in user_info table. - * When this option is set, the fields coutry_name and country_code will be filled - * with a call to api.ipapi.com - * - * Default value: False - */ -define("ENABLE_NEW_ACCOUNTS_GEOLOC", False); - -/* API key for geoloc. If you need geoloc and don't have a key, - * ask it on ipapi.com - */ - -define("GEOLOC_ACCESS_KEY", ""); - -?> diff --git a/conf/auth.conf b/conf/auth.conf deleted file mode 100644 index e174879..0000000 --- a/conf/auth.conf +++ /dev/null @@ -1,34 +0,0 @@ - \ No newline at end of file diff --git a/conf/db.conf b/conf/db.conf deleted file mode 100644 index a4c85c3..0000000 --- a/conf/db.conf +++ /dev/null @@ -1,126 +0,0 @@ - diff --git a/conf/emails.conf b/conf/emails.conf deleted file mode 100644 index f5acab6..0000000 --- a/conf/emails.conf +++ /dev/null @@ -1,76 +0,0 @@ -
Hello,
Activation pending for using your Linphone account.
Please use the link bellow to activate your account :
Regards,
The Linphone team.