Cheetah
customFunctions.inc.php
Go to the documentation of this file.
1 <?php
2 
8 require_once(CH_DIRECTORY_PATH_INC . "utils.inc.php");
9 require_once(CH_DIRECTORY_PATH_CLASSES . "ChWsbInstallerUtils.php");
10 
11 function getUserVideoLink()
12 {
15  return $sModulesUrl . "video/videoslink.php?id=#user#";
16 
17  return "";
18 }
19 
20 function getUserMusicLink()
21 {
24  return $sModulesUrl . "mp3/soundslink.php?id=#user#";
25  return "";
26 }
27 
28 function getBlockedUsers($sBlockerId)
29 {
30  $aUsers = array();
31  $rResult = getResult("SELECT `Profile` FROM `sys_block_list` WHERE `ID`='" . $sBlockerId . "'");
32  while($aUser = $rResult->fetch())
33  $aUsers[] = $aUser['Profile'];
34  return $aUsers;
35 }
getBlockedUsers
getBlockedUsers($sBlockerId)
Definition: customFunctions.inc.php:28
getUserVideoLink
getUserVideoLink()
Definition: customFunctions.inc.php:48
$sModulesUrl
$sModulesUrl
Definition: header.inc.php:52
php
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
getUserMusicLink
getUserMusicLink()
Definition: customFunctions.inc.php:56
$aUser
$aUser
Definition: profiles.inc.php:74
ChWsbInstallerUtils\isModuleInstalled
static isModuleInstalled($sUri)
Definition: ChWsbInstallerUtils.php:38
getResult
getResult($sQuery)
Definition: db.inc.php:45