summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/page.inc.php
diff options
context:
space:
mode:
authorJannik Schönartz2017-02-21 17:32:26 +0100
committerJannik Schönartz2017-02-21 17:32:26 +0100
commitfe4993a7bc08bc20b7d84c82597f852e6e7f7282 (patch)
tree25907032851c58d9260a294b0f4cee09170179df /modules-available/locationinfo/page.inc.php
parentTypos behoben, und die cretendials werden auserhalb der Klasse gesetzt (diff)
downloadslx-admin-fe4993a7bc08bc20b7d84c82597f852e6e7f7282.tar.gz
slx-admin-fe4993a7bc08bc20b7d84c82597f852e6e7f7282.tar.xz
slx-admin-fe4993a7bc08bc20b7d84c82597f852e6e7f7282.zip
Database: Changed login/passwd to credentials. install.php needs to be executed.
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r--modules-available/locationinfo/page.inc.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php
index 13ac09b1..7dae0762 100644
--- a/modules-available/locationinfo/page.inc.php
+++ b/modules-available/locationinfo/page.inc.php
@@ -61,14 +61,12 @@ class Page_LocationInfo extends Page
private function updateServer() {
$id = Request::post('id', 0, 'int');
if ($id == 0) {
- Database::exec("INSERT INTO `setting_location_info` (servername, serverurl, servertype, login, passwd) VALUES (:name, :url, :type, :login, :passwd)",
- array('name' => Request::post('name', '', 'string'), 'url' => Request::post('url', '', 'string'), 'type' => Request::post('type', '', 'string'),
- 'login' => Request::post('user', '', 'string'), 'passwd' => Request::post('password', '', 'string')));
+ Database::exec("INSERT INTO `setting_location_info` (servername, serverurl, servertype) VALUES (:name, :url, :type)",
+ array('name' => Request::post('name', '', 'string'), 'url' => Request::post('url', '', 'string'), 'type' => Request::post('type', '', 'string')));
} else {
- Database::exec("INSERT INTO `setting_location_info` (serverid, servername, servertype, serverurl, login, passwd) VALUES (:id, :name, :type, :url, :login, :passwd)
- ON DUPLICATE KEY UPDATE servername=:name, serverurl=:url, servertype=:type, login=:login, passwd=:passwd",
- array('id' => $id, 'name' => Request::post('name', '', 'string'), 'url' => Request::post('url', '', 'string'), 'type' => Request::post('type', '', 'string'),
- 'login' => Request::post('user', '', 'string'), 'passwd' => Request::post('password', '', 'string')));
+ Database::exec("INSERT INTO `setting_location_info` (serverid, servername, servertype, serverurl) VALUES (:id, :name, :type, :url)
+ ON DUPLICATE KEY UPDATE servername=:name, serverurl=:url, servertype=:type",
+ array('id' => $id, 'name' => Request::post('name', '', 'string'), 'url' => Request::post('url', '', 'string'), 'type' => Request::post('type', '', 'string')));
}
Util::redirect('?do=locationinfo&action=infoscreen');
}
@@ -349,8 +347,8 @@ class Page_LocationInfo extends Page
}
*/
$server['url'] = $db['serverurl'];
- $server['user'] = $db['login'];
- $server['password'] = $db['passwd'];
+ $server['user'] = "TODO: Auth";
+ $server['password'] = "Needs a change to Auth";
$serverlist[] = $server;
}