add needed sql-root-data to customer-mysql

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-25 10:01:39 +01:00
parent 7297ce88b5
commit c5937077c4

View File

@@ -18,11 +18,14 @@
*/
define('AREA', 'customer');
$need_db_sql_data = true;
$need_root_db_sql_data = true;
require './lib/init.php';
// get sql-root access data
Database::needRoot(true);
Database::needSqlData(true);
$sql_root = Database::getSqlData();
Database::needRoot(false);
if (isset($_POST['id'])) {
$id = intval($_POST['id']);
} elseif(isset($_GET['id'])) {