git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
d4b2da8
Branches
Tags
master
ticket
webinterface.git
modules
su
include
su.php
Su-Login für Admins
bernd
commited
d4b2da8
at 2007-07-30 13:02:55
su.php
Blame
History
Raw
<?php function list_system_users() { require_role(ROLE_SYSADMIN); $result = db_query("SELECT uid,username FROM system.v_useraccounts ORDER BY username"); $ret = array(); while ($item = mysql_fetch_object($result)) array_push($ret, $item); return $ret; } function list_customers() { require_role(ROLE_SYSADMIN); $result = db_query("SELECT id, IF(firma IS NULL, CONCAT_WS(' ', vorname, nachname), CONCAT(firma, ' (', CONCAT_WS(' ', vorname, nachname), ')')) AS name FROM kundendaten.kunden"); $ret = array(); while ($item = mysql_fetch_object($result)) array_push($ret, $item); return $ret; } ?>