本文整理汇总了PHP中sp_url函数的典型用法代码示例。如果您正苦于以下问题:PHP sp_url函数的具体用法?PHP sp_url怎么用?PHP sp_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sp_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sp_do_sp_ProfileLinkTag
function sp_do_sp_ProfileLinkTag($args = '')
{
#check if forum displayed
if (sp_abort_display_forum()) {
return;
}
global $spThisUser;
sp_forum_api_support();
if ($spThisUser->ID == 0 && $spThisUser->ID == '') {
return;
}
$defs = array('linkText' => __('Your Profile', 'sp-ttags'), 'beforeLink' => '', 'afterLink' => '', 'echo' => 1);
$a = wp_parse_args($args, $defs);
$a = apply_filters('sph_ProfileLinkTag_args', $a);
extract($a, EXTR_SKIP);
# sanitize before use
$linkText = sp_filter_title_display($linkText);
$beforeLink = sp_filter_title_display($beforeLink);
$afterLink = sp_filter_title_display($afterLink);
$echo = (int) $echo;
if (!empty($beforeLink)) {
$beforeLink = trim($beforeLink) . ' ';
}
if (!empty($afterLink)) {
$afterLink = ' ' . trim($afterLink);
}
$out = '';
$out .= "<span>{$beforeLink}<a href='" . sp_url('profile') . "'>{$linkText}</a>{$afterLink}</span>\n";
if ($echo) {
echo $out;
} else {
return $out;
}
}
示例2: sp_build_qurl
function sp_build_qurl($param1, $param2 = '', $param3 = '', $param4 = '', $param5 = '', $param6 = '', $param7 = '')
{
trigger_error('The function sp_build_qurl() has been deprecated and will be removed in a future update. Use WordPress function add_query_arg() instead.', E_USER_WARNING);
$url = sp_url();
# first does it need the ?
if (strpos($url, '?') === false) {
$url .= '?';
$and = '';
} else {
$and = '&';
}
$url .= $and . $param1;
$and = '&';
if (!empty($param2)) {
$url .= $and . $param2;
}
if (!empty($param3)) {
$url .= $and . $param3;
}
if (!empty($param4)) {
$url .= $and . $param4;
}
if (!empty($param5)) {
$url .= $and . $param5;
}
if (!empty($param6)) {
$url .= $and . $param6;
}
if (!empty($param7)) {
$url .= $and . $param7;
}
return $url;
}
示例3: sp_akismet
function sp_akismet($newpost)
{
global $spThisUser;
if (sp_get_auth('bypass_akismet', $newpost['forumid'])) {
return $newpost;
}
if (function_exists('akismet_http_post') == false) {
return $newpost;
}
$akismet = sp_get_option('spAkismet');
if (empty($akismet) || $akismet == 1) {
return $newpost;
}
$spam = sp_check_akismet($newpost);
if (true == $spam) {
if ($akismet == 2) {
$newpost['poststatus'] = 2;
}
if ($akismet == 3) {
sp_notify(1, __('This post has been identified as spam and has been rejected', 'spab'));
wp_redirect(sp_url());
die;
}
}
return $newpost;
}
示例4: sp_build_url
function sp_build_url($forumslug, $topicslug, $pageid, $postid = 0, $postindex = 0, $rss = 0)
{
if ($postid != 0 && $pageid == 0) {
$pageid = sp_determine_page($forumslug, $topicslug, sp_esc_int($postid), sp_esc_int($postindex));
}
$url = trailingslashit(sp_url());
if ($forumslug) {
$url .= $forumslug;
}
if ($topicslug) {
$url .= '/' . $topicslug;
}
if ($rss) {
if (!empty($forumslug) || !empty($topicslug)) {
$url .= '/';
}
$url .= 'rss';
}
if ($pageid > 1) {
$url .= '/page-' . $pageid;
}
$url = user_trailingslashit($url);
if ($postid) {
$url .= '#p' . $postid;
}
return esc_url($url);
}
示例5: wp_new_user_notification
function wp_new_user_notification($user_id, $notify = '')
{
$user = new WP_User($user_id);
$sflogin = sp_get_option('sflogin');
$eol = "\r\n";
$user_login = $user->user_login;
$user_email = $user->user_email;
$message = '';
$message .= sp_text_noesc('New user registration on your website') . ': ' . get_option('blogname') . $eol . $eol;
$message .= sp_text_noesc('Username') . ': ' . $user_login . $eol;
$message .= sp_text_noesc('E-mail') . ': ' . $user_email . $eol;
$message .= sp_text_noesc('Registration IP') . ': ' . sp_get_ip() . $eol;
$address = apply_filters('sph_admin_new_user_email_addrress', get_option('admin_email'), $user_id);
$subject = apply_filters('sph_admin_new_user_email_subject', get_option('blogname') . ' ' . sp_text_noesc('New User Registration'), $user_id);
$msg = apply_filters('sph_admin_new_user_email_msg', $message, $user_id);
sp_send_email($address, $subject, $msg);
if ('admin' === $notify || empty($notify)) {
return;
}
# Generate something random for a password reset key.
$key = wp_generate_password(20, false);
/** This action is documented in wp-login.php */
do_action('retrieve_password_key', $user_login, $key);
# Now insert the key, hashed, into the DB.
if (empty($wp_hasher)) {
require_once ABSPATH . WPINC . '/class-phpass.php';
$wp_hasher = new PasswordHash(8, true);
}
$hashed = time() . ':' . $wp_hasher->HashPassword($key);
global $wpdb;
$wpdb->update($wpdb->users, array('user_activation_key' => $hashed), array('user_login' => $user_login));
$mailoptions = sp_get_option('sfnewusermail');
$subject = stripslashes($mailoptions['sfnewusersubject']);
$body = stripslashes($mailoptions['sfnewusertext']);
if (empty($subject) || empty($body)) {
$subject = get_option('blogname') . ' ' . sp_text_noesc('Your username') . $eol . $eol;
$body = sp_text_noesc('Username') . ': ' . $user_login . $eol;
$body .= sp_text_noesc('Login URL') . ': ' . $sflogin['sfloginemailurl'] . $eol;
$body .= sp_text_noesc('Password Reset URL') . ': ' . network_site_url("wp-login.php?action=rp&key={$key}&login=" . rawurlencode($user_login), 'login') . $eol;
} else {
$blogname = get_bloginfo('name');
$subject = str_replace('%USERNAME%', $user_login, $subject);
$subject = str_replace('%BLOGNAME%', $blogname, $subject);
$subject = str_replace('%SITEURL%', sp_url(), $subject);
$subject = str_replace('%LOGINURL%', $sflogin['sfloginemailurl'], $subject);
$subject = str_replace('%PWURL%', network_site_url("wp-login.php?action=rp&key={$key}&login=" . rawurlencode($user_login), 'login'), $subject);
$body = str_replace('%USERNAME%', $user_login, $body);
$body = str_replace('%BLOGNAME%', $blogname, $body);
$body = str_replace('%SITEURL%', sp_url(), $body);
$body = str_replace('%LOGINURL%', $sflogin['sfloginemailurl'], $body);
$body = str_replace('%PWURL%', network_site_url("wp-login.php?action=rp&key={$key}&login=" . rawurlencode($user_login), 'login'), $body);
$body = str_replace('%NEWLINE%', $eol, $body);
}
str_replace('<br />', $eol, $body);
$address = apply_filters('sph_user_new_user_email_addrress', $user_email, $user_id);
$subject = apply_filters('sph_user_new_user_email_subject', get_option('blogname') . ' ' . sp_text_noesc('New User Registration'), $user_id);
$msg = apply_filters('sph_user_new_user_email_msg', $body, $user_id, $user_pass);
sp_send_email($user_email, $subject, $msg);
}
示例6: sp_do_sp_GroupLinkTag
function sp_do_sp_GroupLinkTag($args = '')
{
#check if forum displayed
if (sp_abort_display_forum()) {
return;
}
$defs = array('groupId' => '', 'linkText' => '%GROUPNAME%', 'beforeLink' => '', 'afterLink' => '', 'listTags' => 0, 'echo' => 1);
$a = wp_parse_args($args, $defs);
$a = apply_filters('sph_GroupLinkTag_args', $a);
extract($a, EXTR_SKIP);
# sanitize before use
$groupId = (int) $groupId;
$linkText = esc_attr($linkText);
$beforeLink = sp_filter_title_display($beforeLink);
$afterLink = sp_filter_title_display($afterLink);
$listTags = (int) $listTags;
$echo = (int) $echo;
if (empty($groupId)) {
return '';
}
sp_forum_api_support();
if (!empty($beforeLink)) {
$beforeLink = trim($beforeLink) . ' ';
}
if (!empty($afterLink)) {
$afterLink = ' ' . trim($afterLink);
}
# check user has access to at kleast ine forum in group
$canview = false;
$forums = spdb_table(SFFORUMS, "group_id={$groupId}");
if ($forums) {
foreach ($forums as $forum) {
if (sp_can_view($forum->forum_id, 'forum-title')) {
$canview = true;
}
}
}
if ($forums && $canview) {
$grouprec = spdb_table(SFGROUPS, "group_id={$groupId}", 'row');
$out = '';
$linkText = str_replace("%GROUPNAME%", sp_filter_title_display($grouprec->group_name), $linkText);
if (empty($linkText)) {
$linkText = sp_filter_title_display($grouprec->group_name);
}
if ($listTags) {
$out .= '<li>';
}
$out .= '<span>' . $beforeLink . '<a href="' . add_query_arg(array('group' => $groupId), sp_url()) . '">' . $linkText . '</a>' . $afterLink . '</span>';
if ($listTags) {
$out .= '</li>';
}
}
$out = apply_filters('sph_GroupLinkTag', $out);
if ($echo) {
echo $out;
} else {
return $out;
}
}
示例7: spa_save_login_data
function spa_save_login_data()
{
check_admin_referer('forum-adminform_login', 'forum-adminform_login');
# login
$sflogin = sp_get_option('sflogin');
$sflogin['sfregmath'] = isset($_POST['sfregmath']);
if (!empty($_POST['sfloginurl'])) {
$sflogin['sfloginurl'] = sp_filter_save_cleanurl($_POST['sfloginurl']);
} else {
$sflogin['sfloginurl'] = '';
}
if (!empty($_POST['sflogouturl'])) {
$sflogin['sflogouturl'] = sp_filter_save_cleanurl($_POST['sflogouturl']);
} else {
$sflogin['sflogouturl'] = '';
}
if (!empty($_POST['sfregisterurl'])) {
$sflogin['sfregisterurl'] = sp_filter_save_cleanurl($_POST['sfregisterurl']);
} else {
$sflogin['sfregisterurl'] = '';
}
if (!empty($_POST['sfloginemailurl'])) {
$sflogin['sfloginemailurl'] = sp_filter_save_cleanurl($_POST['sfloginemailurl']);
} else {
$sflogin['sfloginemailurl'] = esc_url(wp_login_url(sp_url()));
}
if (!empty($_POST['sptimeout'])) {
$timeout = sp_esc_int($_POST['sptimeout']);
}
if (!$timeout) {
$timeout = 20;
}
$sflogin['sptimeout'] = $timeout;
sp_update_option('sflogin', $sflogin);
# RPX support
$sfrpx = sp_get_option('sfrpx');
$oldrpx = $sfrpx['sfrpxenable'];
$sfrpx['sfrpxenable'] = isset($_POST['sfrpxenable']);
$sfrpx['sfrpxkey'] = sp_esc_str($_POST['sfrpxkey']);
$sfrpx['sfrpxredirect'] = sp_filter_save_cleanurl($_POST['sfrpxredirect']);
# change in RPX support?
if (!$oldrpx && $sfrpx['sfrpxenable']) {
include_once SPBOOT . 'site/credentials/sp-rpx.php';
$post_data = array('apiKey' => $_POST['sfrpxkey'], 'format' => 'json');
$raw = sp_rpx_http_post('https://rpxnow.com/plugin/lookup_rp', $post_data);
$r = sp_rpx_parse_lookup_rp($raw);
if ($r) {
$sfrpx['sfrpxrealm'] = $r['realm'];
} else {
$mess = spa_text('Error in RPX API data!');
return $mess;
}
}
sp_update_option('sfrpx', $sfrpx);
do_action('sph_component_login_save');
$mess = spa_text('Login and registration component updated');
return $mess;
}
示例8: wp_new_user_notification
function wp_new_user_notification($user_id, $user_pass = '')
{
$user = new WP_User($user_id);
$sflogin = sp_get_option('sflogin');
$eol = "\r\n";
$user_login = $user->user_login;
$user_email = $user->user_email;
$message = '';
$message .= sp_text_noesc('New user registration on your website') . ': ' . get_option('blogname') . $eol . $eol;
$message .= sp_text_noesc('Username') . ': ' . $user_login . $eol;
$message .= sp_text_noesc('E-mail') . ': ' . $user_email . $eol;
$message .= sp_text_noesc('Registration IP') . ': ' . sp_get_ip() . $eol;
$address = apply_filters('sph_admin_new_user_email_addrress', get_option('admin_email'), $user_id);
$subject = apply_filters('sph_admin_new_user_email_subject', get_option('blogname') . ' ' . sp_text_noesc('New User Registration'), $user_id);
$msg = apply_filters('sph_admin_new_user_email_msg', $message, $user_id);
sp_send_email($address, $subject, $msg);
if (empty($user_pass)) {
return;
}
$mailoptions = sp_get_option('sfnewusermail');
$subject = stripslashes($mailoptions['sfnewusersubject']);
$body = stripslashes($mailoptions['sfnewusertext']);
if (empty($subject) || empty($body)) {
$subject = get_option('blogname') . ' ' . sp_text_noesc('Your username and password') . $eol . $eol;
$body = sp_text_noesc('Username') . ': ' . $user_login . $eol;
$body .= sp_text_noesc('Password') . ': ' . $user_pass . $eol . $eol;
$body .= $sflogin['sfloginemailurl'] . $eol;
} else {
$blogname = get_bloginfo('name');
$subject = str_replace('%USERNAME%', $user_login, $subject);
$subject = str_replace('%PASSWORD%', $user_pass, $subject);
$subject = str_replace('%BLOGNAME%', $blogname, $subject);
$subject = str_replace('%SITEURL%', sp_url(), $subject);
$subject = str_replace('%LOGINURL%', $sflogin['sfloginemailurl'], $subject);
$body = str_replace('%USERNAME%', $user_login, $body);
$body = str_replace('%PASSWORD%', $user_pass, $body);
$body = str_replace('%BLOGNAME%', $blogname, $body);
$body = str_replace('%SITEURL%', sp_url(), $body);
$body = str_replace('%LOGINURL%', $sflogin['sfloginemailurl'], $body);
$body = str_replace('%NEWLINE%', $eol, $body);
}
str_replace('<br />', $eol, $body);
$address = apply_filters('sph_user_new_user_email_addrress', $user_email, $user_id);
$subject = apply_filters('sph_user_new_user_email_subject', get_option('blogname') . ' ' . sp_text_noesc('New User Registration'), $user_id);
$msg = apply_filters('sph_user_new_user_email_msg', $body, $user_id, $user_pass);
sp_send_email($user_email, $subject, $msg);
}
示例9: dis_bread_crumbs
function dis_bread_crumbs($str, $mstr = '>')
{
if (empty($mstr)) {
$mstr = '>';
}
if (substr($_SERVER['REQUEST_URI'], -1) == '/') {
return '';
}
$pstr = ' <a href="' . dis_base_url() . '" title="' . $_SERVER['HTTP_HOST'] . '">' . $_SERVER['HTTP_HOST'] . '</a> ';
$pstr .= $mstr . ' ';
$r = sp_url();
if ($r) {
if ($r['typename'] == ART_STR) {
//文章页
//获取分类链接
$catname = safe_field('Category1', 'textpattern', 'id=' . $r['id']);
$row = safe_row('id,name,parent,title', 'txp_category', "type='article' and name='" . $catname . "'");
if ($row) {
if ($row['parent'] != '' && $row['parent'] != 'root') {
//有上级分类
$row1 = safe_row('id,name,parent,title', 'txp_category', "type='article' and name='" . $row['parent'] . "'");
if ($row1) {
$url1 = get_url($row1['id'], $row1['title'], 'cat');
$padd = str_replace('_title_', $row1['title'], $str);
$padd = str_replace('_text_', $row1['title'], $padd);
$padd = str_replace('_href_', $url1, $padd);
$pstr .= $padd . ' ';
$pstr .= $mstr . ' ';
}
}
$url = get_url($row['id'], $row['title'], 'cat');
$padd = str_replace('_title_', $row['title'], $str);
$padd = str_replace('_text_', $row['title'], $padd);
$padd = str_replace('_href_', $url, $padd);
$pstr .= $padd . ' ';
}
} elseif ($r['typename'] == CATE_STR) {
//分类页
$r['title'] = safe_field('name', 'txp_category', 'id=\'' . $r['id'] . '\'');
$padd = str_replace('_title_', $r['title'], $str);
$padd = str_replace('_text_', $r['title'], $padd);
$padd = str_replace('_href_', '#', $padd);
$pstr .= $padd . ' ';
}
}
return $pstr;
}
示例10: sp_wp_list_pages
function sp_wp_list_pages($ptext)
{
global $spVars, $spGlobals;
if (!empty($spVars['seotitle'])) {
$seotitle = $spVars['seotitle'];
$ptext = str_replace($seotitle, SFPAGETITLE, $ptext);
$seotitle = html_entity_decode($seotitle, ENT_QUOTES);
$seotitle = htmlspecialchars($seotitle, ENT_QUOTES, SFCHARSET);
$ptext = str_replace($seotitle, SFPAGETITLE, $ptext);
$seotitle = sp_filter_title_save($seotitle);
$ptext = str_replace($seotitle, SFPAGETITLE, $ptext);
$ptext = str_replace(strtoupper($seotitle), SFPAGETITLE, $ptext);
} else {
if ($spGlobals['display']['pagetitle']['banner'] || $spGlobals['display']['pagetitle']['notitle']) {
$ptext = str_replace(sp_url() . '"></a>', sp_url() . '">' . SFPAGETITLE . '</a>', $ptext);
}
}
return $ptext;
}
示例11: die
<?php
/*
Simple:Press
Barebones SP Theme Custom Test AHAH call
$LastChangedDate: 2014-09-12 07:30:12 +0100 (Fri, 12 Sep 2014) $
$Rev: 11958 $
*/
if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) {
die('Access denied - you cannot directly call this file');
}
$url = sp_url() . '?test=on';
echo '<iframe height="100%" width="100%" src="' . $url . '"><iframe>';
die;
示例12: die
/*
Simple:Press
general ahah routines
$LastChangedDate: 2015-08-12 07:21:39 -0700 (Wed, 12 Aug 2015) $
$Rev: 13286 $
*/
if (preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) {
die('Access denied - you cannot directly call this file');
}
sp_forum_api_support();
# get out of here if no action specified
if (empty($_GET['action'])) {
die;
}
$action = sp_esc_str($_GET['action']);
if ($action == 'page-popup') {
sp_text('Jump to page:');
$permalink = trailingslashit(sp_esc_str($_GET['url']));
$max = sp_esc_str($_GET['max']);
$out = '<div id="spMainContainer">';
$out .= '<form action="' . sp_url() . '" method="post" id ="pagejump" name="pagejump">' . "\n";
$out .= '<input type="hidden" id="url" name="url" value="' . $permalink . '" />' . "\n";
$out .= '<input type="hidden" id="max" name="max" value="' . $max . '" />' . "\n";
$out .= '<label>' . sp_text('Enter page you want to go to:') . '</label>';
$out .= '<input class="spSubmit" type="text" id="page" name="page" value="" />' . "\n";
$out .= '<div style="text-align:center"><p><input type="submit" class="spButton" name="pagejump" value="' . sp_text('Go') . '" onclick="spjPageJump(); return false;" /></p></div>';
$out .= '</form></div>' . "\n";
echo apply_filters('sph_jump_page', $out);
}
die;
示例13: spa_dashboard_forum
function spa_dashboard_forum()
{
global $spGlobals, $spThisUser, $spStatus;
$out = '';
# check we have an installed version
if ($spStatus != 'ok') {
$out .= '<div style="border: 1px solid #eeeeee; padding: 10px; font-weight: bold;">' . "\n";
$out .= '<p><img style="vertical-align:bottom;border:none;" src="' . sp_paint_file_icon(SPTHEMEICONSURL, 'sp_Information.png') . '" alt="" />' . "\n";
$out .= ' ' . sprintf(spa_text('The forum is temporarily unavailable while awaiting %s'), $spStatus) . '</p>';
if ($spThisUser->admin) {
$out .= ' <a style="text-decoration: underline;" href="' . SFADMINUPGRADE . '">' . spa_text('Perform Upgrade') . '</a>';
}
$out .= '</div>';
echo $out;
return;
}
$out .= '<div id="sf-dashboard">';
echo $out;
do_action('sph_dashboard_start');
if ($spGlobals['admin']['sfdashboardstats']) {
include_once SF_PLUGIN_DIR . '/forum/content/sp-common-view-functions.php';
include_once SF_PLUGIN_DIR . '/forum/content/sp-template-control.php';
echo '<br /><table class="sfdashtable">';
echo '<tr>';
echo '<td>';
sp_OnlineStats('link_names=0', '<b>' . spa_text('Most Users Ever Online') . ': </b>', '<b>' . spa_text('Currently Online') . ': </b>', '<b>' . spa_text('Currently Browsing this Page') . ': </b>', spa_text('Guest(s)'));
echo '</td>';
echo '<td>';
sp_ForumStats('', '<b>' . spa_text('Forum Stats') . ': </b>', spa_text('Groups') . ': ', spa_text('Forums') . ': ', spa_text('Topics') . ': ', spa_text('Posts') . ': ');
echo '</td>';
echo '<td>';
sp_MembershipStats('', '<b>' . spa_text('Member Stats') . ': </b>', spa_text('There are %COUNT% Members'), spa_text('There have been %COUNT% Guest Posters'), spa_text('There are %COUNT% Moderators'), spa_text('There are %COUNT% Admins'));
echo '</td>';
echo '<td>';
sp_TopPostersStats('link_names=0', '<b>' . spa_text('Top Posters') . ': </b>');
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td colspan="4">';
sp_NewMembers('link_names=0', '<b>' . spa_text('Newest Members') . ': </b>');
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td colspan="4">';
sp_ModsList('link_names=0', '<b>' . spa_text('Moderators') . ': </b>');
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td colspan="4">';
sp_AdminsList('link_names=0', '<b>' . spa_text('Administrators') . ': </b>');
echo '</td>';
echo '</tr></table><br />';
}
do_action('sph_dashboard_end');
$out = '';
$out .= '<p><br /><a href="' . sp_url() . '">' . spa_text('Go To Forum') . '</a></p>';
$out .= '</div>';
echo $out;
}
示例14: current
$first = current($spPostList->listData);
reset($spPostList->listData);
# Define channel elements for each feed type
switch ($feed) {
case 'all':
$rssTitle = get_bloginfo('name') . ' - ' . sp_text('All Forums');
$rssLink = sp_url();
if (isset($rssopt['sfrssfeedkey']) && $rssopt['sfrssfeedkey'] && isset($spThisUser->feedkey)) {
$atomLink = trailingslashit(sp_build_url('', '', 0, 0, 0, 1)) . user_trailingslashit($spThisUser->feedkey);
} else {
$atomLink = sp_build_url('', '', 0, 0, 0, 1);
}
break;
case 'group':
$rssTitle = get_bloginfo('name') . ' - ' . sp_text('Group') . ': ' . $first->group_name;
$rssLink = add_query_arg(array('group' => $groupid), sp_url());
if (isset($rssopt['sfrssfeedkey']) && $rssopt['sfrssfeedkey'] && isset($spThisUser->feedkey)) {
$atomLink = sp_get_sfqurl(trailingslashit(sp_build_url('', '', 0, 0, 0, 1)) . user_trailingslashit($spThisUser->feedkey)) . 'group=' . $groupid;
} else {
$atomLink = sp_get_sfqurl(sp_build_url('', '', 0, 0, 0, 1)) . 'group=' . $groupid;
}
break;
case 'forum':
$rssTitle = get_bloginfo('name') . ' - ' . sp_text('Forum') . ': ' . $first->forum_name;
$rssLink = sp_build_url($first->forum_slug, '', 0, 0);
if (isset($rssopt['sfrssfeedkey']) && $rssopt['sfrssfeedkey'] && isset($spThisUser->feedkey)) {
$atomLink = trailingslashit(sp_build_url($first->forum_slug, '', 0, 0, 0, 1)) . user_trailingslashit($spThisUser->feedkey);
} else {
$atomLink = sp_build_url($first->forum_slug, '', 0, 0, 0, 1);
}
break;
示例15: isset
<?php
/*
Simple:Press
DESC:
$LastChangedDate: 2014-06-21 20:33:29 -0700 (Sat, 21 Jun 2014) $
$Rev: 11585 $
*/
# ==========================================================================================
#
# FORUM PAGE
# This file loads for forum page loads only
#
# ==========================================================================================
global $spStatus;
$redirect = isset($_SERVER['REDIRECT_URL']) ? $_SERVER['REDIRECT_URL'] : '';
if (!defined('SPMEMBERLIST')) {
define('SPMEMBERLIST', sp_url('members'));
}
# hack to get around wp_list_pages() bug
if ($spStatus == 'ok') {
# go for whole row so it gets cached.
$t = spdb_table(SFWPPOSTS, 'ID=' . sp_get_option('sfpage'), 'row');
if (!defined('SFPAGETITLE')) {
define('SFPAGETITLE', $t->post_title);
}
}
do_action('sph_forum_constants');