create default index-file also in subfolders if newly created (and enabled), needs testing, fixes #68
This commit is contained in:
20
lib/functions/froxlor/function.getLoginNameByUid.php
Normal file
20
lib/functions/froxlor/function.getLoginNameByUid.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* returns the loginname of a customer by given uid
|
||||
*
|
||||
* @param int $uid uid of customer
|
||||
*
|
||||
* @return string customers loginname
|
||||
*/
|
||||
function getLoginNameByUid($uid = null)
|
||||
{
|
||||
global $db;
|
||||
|
||||
$result = $db->query_first("SELECT `loginname` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `guid` = '".(int)$uid."'");
|
||||
if($db->num_rows($result) > 0)
|
||||
{
|
||||
return $result['loginname'];
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user