本文整理汇总了PHP中SocialManager::verifyUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP SocialManager::verifyUrl方法的具体用法?PHP SocialManager::verifyUrl怎么用?PHP SocialManager::verifyUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SocialManager
的用法示例。
在下文中一共展示了SocialManager::verifyUrl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) - 1 : 0;
$length = isset($_REQUEST['length']) ? intval($_REQUEST['length']) : 10;
$userId = isset($_REQUEST['u']) ? intval($_REQUEST['u']) : api_get_user_id();
$friendId = $userId;
$array = SocialManager::getWallMessagesPostHTML($userId, $friendId, null, $length, $start);
if (!empty($array)) {
ksort($array);
$html = '';
for ($i = 0; $i < count($array); $i++) {
$post = $array[$i]['html'];
$comment = SocialManager::getWallMessagesHTML($userId, $friendId, $array[$i]['id']);
$html .= '<div class="panel panel-info"><div class="panel-body">' . $post . $comment . '</div></div>';
}
$html .= Display::div(Display::url(get_lang('SeeMore'), api_get_self() . '?u=' . $userId . '&a=listWallMessage&start=' . ($start + $length + 1) . '&length=' . $length, array('class' => 'nextPage')), array('class' => 'next'));
echo $html;
}
break;
// Read the Url using OpenGraph and returns the hyperlinks content
// Read the Url using OpenGraph and returns the hyperlinks content
case 'readUrlWithOpenGraph':
$url = isset($_POST['social_wall_new_msg_main']) ? $_POST['social_wall_new_msg_main'] : '';
$html = '';
if (SocialManager::verifyUrl($url) == true) {
$html = Security::remove_XSS(SocialManager::readContentWithOpenGraph($url));
}
echo utf8_decode($html);
break;
default:
echo '';
}
exit;
示例2: ucfirst
}
$extra_information_value .= '<li class="list-group-item">' . ucfirst($extraFieldInfo['display_text']) . ': ' . ' ' . implode(' ', $value_options) . '</li>';
break;
case ExtraField::FIELD_TYPE_TAG:
$user_tags = UserManager::get_user_tags($user_id, $extraFieldInfo['id']);
$tag_tmp = array();
foreach ($user_tags as $tags) {
$tag_tmp[] = '<a class="label label_tag"' . ' href="' . api_get_path(WEB_PATH) . 'main/social/search.php?q=' . $tags['tag'] . '">' . $tags['tag'] . '</a>';
}
if (is_array($user_tags) && count($user_tags) > 0) {
$extra_information_value .= '<li class="list-group-item">' . ucfirst($extraFieldInfo['display_text']) . ': ' . ' ' . implode('', $tag_tmp) . '</li>';
}
break;
case ExtraField::FIELD_TYPE_SOCIAL_PROFILE:
$icon_path = UserManager::get_favicon_from_url($data);
if (SocialManager::verifyUrl($icon_path) == false) {
break;
}
$bottom = '0.2';
//quick hack for hi5
$domain = parse_url($icon_path, PHP_URL_HOST);
if ($domain == 'www.hi5.com' or $domain == 'hi5.com') {
$bottom = '-0.8';
}
$data = '<a href="' . $data . '">' . '<img src="' . $icon_path . '" alt="icon"' . ' style="margin-right:0.5em;margin-bottom:' . $bottom . 'em;" />' . $extraFieldInfo['display_text'] . '</a>';
$extra_information_value .= '<li class="list-group-item">' . $data . '</li>';
break;
default:
if (!empty($data)) {
$extra_field_title = ucfirst($extraFieldInfo['display_text']);
if ($extra_field_title == 'Skype') {