From 7fe908c50c8dbc5cc05f571dbe11d66141caacd4 Mon Sep 17 00:00:00 2001 From: Marius Cramer <m.cramer@pixcept.de> Date: Thu, 14 Nov 2013 09:01:22 -0500 Subject: [PATCH] Cleaning up code to match coding guidelines --- interface/web/admin/login_as.php | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/interface/web/admin/login_as.php b/interface/web/admin/login_as.php index f7103b7..a5a34f1 100644 --- a/interface/web/admin/login_as.php +++ b/interface/web/admin/login_as.php @@ -28,8 +28,8 @@ */ -require_once('../../lib/config.inc.php'); -require_once('../../lib/app.inc.php'); +require_once '../../lib/config.inc.php'; +require_once '../../lib/app.inc.php'; /* Check permissions for module */ $app->auth->check_module_permissions('admin'); @@ -41,7 +41,7 @@ /* get the id of the user (must be int!) */ if (!isset($_GET['id']) && !isset($_GET['cid'])){ - die ("No user selected!"); + die ("No user selected!"); } if(isset($_GET['id'])) { @@ -61,16 +61,16 @@ * Get the data to login as user x */ $dbData = $app->db->queryOneRecord( - "SELECT username, passwort FROM sys_user WHERE userid = " . $userId); + "SELECT username, passwort FROM sys_user WHERE userid = " . $userId); /* * Now generate the login-Form * TODO: move the login_as form to a template file -> themeability */ - - $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_login_as.lng'; -include($lng_file); - + +$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_login_as.lng'; +include $lng_file; + echo ' <br /> <br /> <br /> <br /> '.$wb['login_1_txt'].' ' . $dbData['username'] . '?<br /> -- Gitblit v1.9.1