Cheetah
flash
modules
im
inc
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
{
13
global
$sModulesUrl
;
14
if
(
ChWsbInstallerUtils::isModuleInstalled
(
"videos"
))
15
return
$sModulesUrl
.
"video/videoslink.php?id=#user#"
;
16
17
return
""
;
18
}
19
20
function
getUserMusicLink
()
21
{
22
global
$sModulesUrl
;
23
if
(
ChWsbInstallerUtils::isModuleInstalled
(
"sounds"
))
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
Generated by
1.8.20