diff --git a/web/skins/classic/views/user.php b/web/skins/classic/views/user.php index ee0c7428c..95ed639a5 100644 --- a/web/skins/classic/views/user.php +++ b/web/skins/classic/views/user.php @@ -20,15 +20,14 @@ $selfEdit = ZM_USER_SELF_EDIT && $_REQUEST['uid'] == $user['Id']; -if ( !canEdit( 'System' ) && !$selfEdit ) -{ - $view = "error"; - return; +if ( !canEdit('System') && !$selfEdit ) { + $view = 'error'; + return; } if ( $_REQUEST['uid'] ) { - if ( !($newUser = dbFetchOne( 'SELECT * FROM Users WHERE Id = ?', NULL, ARRAY($_REQUEST['uid'])) ) ) { - $view = "error"; + if ( !($newUser = dbFetchOne('SELECT * FROM Users WHERE Id = ?', NULL, ARRAY($_REQUEST['uid']))) ) { + $view = 'error'; return; } } else { @@ -38,29 +37,28 @@ if ( $_REQUEST['uid'] ) { $newUser['MonitorIds'] = ''; } -$monitorIds = array_flip(explode( ',', $newUser['MonitorIds'] )); +$monitorIds = array_flip(explode(',', $newUser['MonitorIds'])); $yesno = array( 0=>translate('No'), 1=>translate('Yes') ); $nv = array( 'None'=>translate('None'), 'View'=>translate('View') ); $nve = array( 'None'=>translate('None'), 'View'=>translate('View'), 'Edit'=>translate('Edit') ); -$bandwidths = array_merge( array( ""=>"" ), $bandwidth_options ); -$langs = array_merge( array( ""=>"" ), getLanguages() ); +$bandwidths = array_merge( array( ''=>'' ), $bandwidth_options ); +$langs = array_merge( array( ''=>'' ), getLanguages() ); -$sql = "select Id,Name from Monitors order by Sequence asc"; +$sql = 'SELECT Id,Name FROM Monitors ORDER BY Sequence ASC'; $monitors = array(); -foreach( dbFetchAll( $sql ) as $monitor ) -{ - $monitors[] = $monitor; +foreach( dbFetchAll($sql) as $monitor ) { + $monitors[] = $monitor; } $focusWindow = true; -xhtmlHeaders(__FILE__, translate('User')." - ".$newUser['Username'] ); +xhtmlHeaders(__FILE__, translate('User').' - '.$newUser['Username']); ?>
@@ -68,11 +66,10 @@ xhtmlHeaders(__FILE__, translate('User')." - ".$newUser['Username'] ); - +
@@ -83,19 +80,18 @@ if ( canEdit( 'System' ) ) ?> - + - + @@ -134,14 +130,12 @@ if ( canEdit( 'System' ) )
@@ -153,7 +147,8 @@ if ( canEdit( 'System' ) )
- + +