本文整理汇总了PHP中CKunenaTools::fbRemoveXSS方法的典型用法代码示例。如果您正苦于以下问题:PHP CKunenaTools::fbRemoveXSS方法的具体用法?PHP CKunenaTools::fbRemoveXSS怎么用?PHP CKunenaTools::fbRemoveXSS使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CKunenaTools
的用法示例。
在下文中一共展示了CKunenaTools::fbRemoveXSS方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unlink
}
if (file_exists($fileLocation_l)) {
CKunenaFile::delete($fileLocation_l);
}
CKunenaFile::copy($src_file, $fileLocation);
break;
}
// delete original file
unlink($src_file);
$kunena_db->setQuery("UPDATE #__fb_users SET avatar='{$newFileName}' WHERE userid={$kunena_my->id}");
$kunena_db->query() or trigger_dberror("Unable to update avatar.");
$app->redirect(JRoute::_(KUNENA_LIVEURLREL . '&func=myprofile'), _UPLOAD_UPLOADED);
case 'gallery':
require_once KUNENA_PATH_LIB . DS . 'kunena.helpers.php';
$newAvatar = JRequest::getVar('newAvatar', '');
$newAvatar = CKunenaTools::fbRemoveXSS($newAvatar);
if ($newAvatar == '') {
$app->enqueueMessage(_UPLOAD_ERROR_CHOOSE, 'notice');
$app->redirect(JRoute::_(KUNENA_LIVEURLREL . '&func=myprofile&do=avatar'));
}
$kunena_db->setQuery("UPDATE #__fb_users SET avatar='{$kunena_db->getEscaped($newAvatar)}' WHERE userid={$kunena_my->id}");
$kunena_db->query() or trigger_dberror("Unable to update user avatar.");
$app->redirect(JRoute::_(KUNENA_LIVEURLREL . '&func=myprofile'), _UPLOAD_UPLOADED);
break;
}
if ($task == 'default') {
if ($fbConfig->allowavatar) {
?>
<td class = "fb_myprofile_right" valign = "top">
<!-- B:My Profile Right -->
<!-- B: My AVATAR -->