diff --git a/.gitignore b/.gitignore index e95dbcc..88c52db 100644 --- a/.gitignore +++ b/.gitignore @@ -1,49 +1,50 @@ -# Python -__pycache__/ -*.py[cod] -*$py.class -*.so -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg - -# Virtual Environment -venv/ -ENV/ -env/ - -# IDE -.vscode/ -.idea/ -*.swp -*.swo -*~ - -# Konfiguration (enthält Credentials!) -config.ini - -# Logs -*.log -logs/ - -# Betriebssystem -.DS_Store -Thumbs.db - -# Temporäre Dateien -*.tmp -*.bak -*.backup +# Python +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# Virtual Environment +venv/ +ENV/ +env/ + +# IDE +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# Konfiguration (enthält Credentials!) +config.ini +restricted/mysql.php + +# Logs +*.log +logs/ + +# Betriebssystem +.DS_Store +Thumbs.db + +# Temporäre Dateien +*.tmp +*.bak +*.backup diff --git a/ajax/getForecastData.php b/ajax/getForecastData.php index 24c090b..1729184 100644 --- a/ajax/getForecastData.php +++ b/ajax/getForecastData.php @@ -43,11 +43,7 @@ $linecolors["Vorhersage"] = "#4444FF"; if (checkLogin()) { - $mysql_server = "localhost:3310"; - $mysql_user = "solarLog"; - $mysql_pass = "ENTFERNT_MYSQL_SOLARPASS"; - $mysql_db = "solarLog"; - $mysql = new mysqli($mysql_server, $mysql_user, $mysql_pass, $mysql_db); + $mysql = new mysqli($mysql_server, $mysql_solarUser, $mysql_solarPass, $mysql_solarDB); $consEst = mysqli_query($mysql, $consEstQuery); $prodEst = mysqli_query($mysql,$prodEstQuery); $prodReal = mysqli_query($mysql,$prodRealQuery); diff --git a/authServer.php b/authServer.php index 9dd7458..dc3faca 100644 --- a/authServer.php +++ b/authServer.php @@ -215,10 +215,6 @@ try { // looking up correspondending public key of the credential id // you should also validate that only ids of the given user name // are taken for the login. - $mysql_server = "localhost:3310"; - $mysql_user = "Logins"; - $mysql_pass = "ENTFERNT_MYSQL_PASS"; - $mysql_db = "Logins"; $mysql = new mysqli($mysql_server,$mysql_user,$mysql_pass,$mysql_db); $result = mysqli_query($mysql,"SELECT credentialPublicKey, userId, name FROM users WHERE credentialId = '".base64_encode($id)."';"); if(!$result){ diff --git a/restricted/mysql.php.example b/restricted/mysql.php.example new file mode 100644 index 0000000..63bdc0f --- /dev/null +++ b/restricted/mysql.php.example @@ -0,0 +1,17 @@ + \ No newline at end of file