From d1001c7cf2ab1a31fc56101014c6eb7bdb30d7e0 Mon Sep 17 00:00:00 2001 From: Alexey Shpakovsky Date: Fri, 28 May 2021 18:22:09 +0200 Subject: [PATCH] move quickstart.php config to separate file --- .gitignore | 1 + quickstart.php | 13 +------------ 2 files changed, 2 insertions(+), 12 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d42dc0e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +quickconfig.php diff --git a/quickstart.php b/quickstart.php index 43dccd8..20e956a 100644 --- a/quickstart.php +++ b/quickstart.php @@ -4,19 +4,8 @@ // CONFIGURATION OF ACCOUNT DATA // /////////////////////////////////////// -// To run, configure the account data in this block and remove / comment out -// the following line with the exit statement // DO NOT SERVE THIS SCRIPT VIA WEBSERVER -echo "Please configure first - exiting\n"; exit(1); - -const DISCOVERY_URI = "example.com"; -const USERNAME = "myUserName@example.com"; - -// Note: for providers using 2-factor authentication (common today, e.g. Apple iCloud, -// Google, Nextcloud if 2FA enabled by user), you need to provide an application-specific -// password here, not your account password. You can typically create such -// application-specific passwords in the account settings of your provider. -const PASSWORD = "theSecretPassword"; +require 'quickconfig.php'; /////////////////////////////////////// // END CONFIGURATION OF ACCOUNT DATA //