当前位置: 首页>>代码示例>>PHP>>正文


PHP url_rel_to_same_host函数代码示例

本文整理汇总了PHP中url_rel_to_same_host函数的典型用法代码示例。如果您正苦于以下问题:PHP url_rel_to_same_host函数的具体用法?PHP url_rel_to_same_host怎么用?PHP url_rel_to_same_host使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了url_rel_to_same_host函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: test_url_rel_to_same_host

 /**
  * Test {@link url_rel_to_same_host()}
  */
 function test_url_rel_to_same_host()
 {
     $this->assertEqual(url_rel_to_same_host('http://example.com/foobar', 'http://example.com/barfoo'), '/foobar');
     $this->assertEqual(url_rel_to_same_host('http://example.com/foobar', 'https://example.com/barfoo'), 'http://example.com/foobar');
     $this->assertEqual(url_rel_to_same_host('http://example.com/foobar', '/barfoo'), '/foobar');
     $this->assertEqual(url_rel_to_same_host('foobar', 'http://example.com/barfoo'), 'foobar');
     $this->assertEqual(url_rel_to_same_host('http://example.com/barfoo?f=b', 'https://example.com/barfoo'), 'http://example.com/barfoo?f=b');
     $this->assertEqual(url_rel_to_same_host('https://example.com/barfoo?f=b#a', 'https://user:pass@example.com/barfoo'), 'https://example.com/barfoo?f=b#a');
     $this->assertEqual(url_rel_to_same_host('foobar', 'http://example.com/barfoo'), 'foobar');
     // Tests for URLs without protocol
     // URL has protocol info, keep it.
     $this->assertEqual(url_rel_to_same_host('http://host/bar', '//host/baz'), 'http://host/bar');
     // Target URL has protocol info, URL is protocol ambivalent.
     $this->assertEqual(url_rel_to_same_host('//host/bar', 'https://host/baz'), '/bar');
     $this->assertEqual(url_rel_to_same_host('//host/bar', '//host/baz'), '/bar');
     $this->assertEqual(url_rel_to_same_host('//hostA/bar', '//hostB/baz'), '//hostA/bar');
     $this->assertEqual(url_rel_to_same_host('http://host/?query#fragment', 'http://host/'), '/?query#fragment');
     $this->assertEqual(url_rel_to_same_host('http://host/0?0#0', 'http://host/'), '/0?0#0');
 }
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:22,代码来源:url.funcs.simpletest.php

示例2: get_msgform_link

 /**
  * Template helper function: Get a link to a message form for this user.
  *
  * @param string url of the message form
  * @param string to display before link
  * @param string to display after link
  * @param string link text
  * @param string link title
  * @param string class name
  */
 function get_msgform_link($form_url = NULL, $before = ' ', $after = ' ', $text = '#', $title = '#', $class = '')
 {
     if (empty($this->email)) {
         // We have no email for this User :(
         return false;
     }
     if (empty($this->allow_msgform)) {
         return false;
     }
     if (is_null($form_url)) {
         global $Blog;
         $form_url = isset($Blog) ? $Blog->get('msgformurl') : '';
     }
     $form_url = url_add_param($form_url, 'recipient_id=' . $this->ID . '&redirect_to=' . rawurlencode(url_rel_to_same_host(regenerate_url('', '', '', '&'), $form_url)));
     if ($title == '#') {
         $title = T_('Send email to user');
     }
     if ($text == '#') {
         $text = get_icon('email', 'imgtag', array('class' => 'middle', 'title' => $title));
     }
     $r = '';
     $r .= $before;
     $r .= '<a href="' . $form_url . '" title="' . $title . '"';
     if (!empty($class)) {
         $r .= ' class="' . $class . '"';
     }
     $r .= '>' . $text . '</a>';
     $r .= $after;
     return $r;
 }
开发者ID:LFSF,项目名称:oras,代码行数:40,代码来源:_user.class.php

示例3: T_

    case 'mobile':
        $block_item_Widget->title = T_('Choose a Mobile Phone skin');
        $display_same_as_normal = true;
        break;
    case 'tablet':
        $block_item_Widget->title = T_('Choose a Tablet skin');
        $display_same_as_normal = true;
        break;
    default:
        debug_die('Invalid skin type!');
}
// Get what is the current skin ID from this kind of skin type
$current_skin_ID = $edited_Blog->get_setting($skin_type . '_skin_ID', true);
if ($current_User->check_perm('options', 'edit', false)) {
    // We have permission to modify:
    $block_item_Widget->global_icon(T_('Install new skin...'), 'new', $dispatcher . '?ctrl=skins&amp;action=new&amp;redirect_to=' . rawurlencode(url_rel_to_same_host(regenerate_url('', 'skinpage=selection', '', '&'), $admin_url)), T_('Install new'), 3, 4);
    $block_item_Widget->global_icon(T_('Keep current skin!'), 'close', regenerate_url('skinpage'), ' ' . T_('Don\'t change'), 3, 4);
}
$block_item_Widget->disp_template_replaced('block_start');
$SkinCache =& get_SkinCache();
$SkinCache->load_all();
if ($display_same_as_normal) {
    $skinshot_title = T_('Same as normal skin');
    $select_url = '?ctrl=coll_settings&tab=skin&blog=' . $edited_Blog->ID . '&amp;action=update&amp;skinpage=selection&amp;' . $skin_type . '_skin_ID=0&amp;' . url_crumb('collection');
    $disp_params = array('function' => 'select', 'selected' => $current_skin_ID == '0', 'select_url' => $select_url);
    Skin::disp_skinshot($skinshot_title, $skinshot_title, $disp_params);
}
$SkinCache->rewind();
while (($iterator_Skin =& $SkinCache->get_next()) != NULL) {
    if ($iterator_Skin->type != $skin_type) {
        // This skin cannot be used here...
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_coll_skin.view.php

示例4: msgform_link

 /**
  * Provide link to message form for this comment's author
  *
  * @param string url of the message form
  * @param string to display before link
  * @param string to display after link
  * @param string link text
  * @param string link title
  * @param string class name
  */
 function msgform_link($form_url, $before = ' ', $after = ' ', $text = '#', $title = '#', $class = '')
 {
     if ($this->get_author_User()) {
         // This comment is from a registered user:
         $msg_type = $this->author_User->get_msgform_possibility();
         if (empty($msg_type)) {
             // message form is not allowed
             return false;
         }
         $form_url = url_add_param($form_url, 'recipient_id=' . $this->author_User->ID);
     } else {
         // This comment is from a visitor:
         if (empty($this->author_email)) {
             // We have no email for this comment :(
             return false;
         } elseif (empty($this->allow_msgform)) {
             // Anonymous commentator does not allow message form (for this comment)
             return false;
         }
         $msg_type = 'email';
     }
     $form_url = url_add_param($form_url, 'recipient_id=0&amp;comment_id=' . $this->ID . '&amp;post_id=' . $this->item_ID . '&amp;redirect_to=' . rawurlencode(url_rel_to_same_host(regenerate_url('', '', '', '&'), $form_url)));
     if ($title == '#') {
         if ($msg_type == 'email') {
             $title = T_('Send email to comment author');
         } else {
             $title = T_('Send message to comment author');
         }
     }
     if ($text == '#') {
         $text = get_icon('email', 'imgtag', array('class' => 'middle', 'title' => $title));
     }
     echo $before;
     echo '<a href="' . $form_url . '" title="' . $title . '"';
     if (!empty($class)) {
         echo ' class="' . $class . '"';
     }
     // TODO: have an SEO setting for nofollow here, default to nofollow
     echo ' rel="nofollow"';
     echo '>' . $text . '</a>';
     echo $after;
     return true;
 }
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:53,代码来源:_comment.class.php

示例5: T_

echo '<ol>';
echo '<li>' . T_('Please confirm your email address below.') . '</li>';
echo '<li>' . T_('An email will be sent to this address immediately.') . '</li>';
echo '<li>' . T_('As soon as you receive the email, click on the link therein to activate your account.') . '</li>';
echo '</ol>';
$Form->text_input('email', $email, 16, T_('Email'), '', array('maxlength' => 255, 'class' => 'input_text', 'required' => true));
$Plugins->trigger_event('DisplayValidateAccountFormFieldset', array('Form' => &$Form));
// TODO: the form submit value is too wide (in Konqueror and most probably in IE!)
$Form->end_form(array(array('name' => 'form_validatemail_submit', 'value' => T_('Send me an email now!'), 'class' => 'ActionButton')));
// display hidden fields etc
if ($current_User->group_ID == 1) {
    // allow admin users to validate themselves by a single click:
    $Form =& new Form($htsrv_url_sensitive . 'login.php', 'form_validatemail', 'post', 'fieldset');
    $Form->begin_form('fform');
    $Form->hidden('action', 'validatemail');
    $Form->hidden('redirect_to', url_rel_to_same_host($redirect_to, $htsrv_url_sensitive));
    $Form->hidden('reqID', 1);
    $Form->hidden('sessID', $Session->ID);
    $Form->begin_fieldset();
    echo '<p>' . sprintf(T_('Since you are an admin user, you can validate your email address (%s) by a single click.'), $current_User->email) . '</p>';
    // TODO: the form submit value is too wide (in Konqueror and most probably in IE!)
    $Form->end_form(array(array('name' => 'form_validatemail_admin_submit', 'value' => T_('Activate my account!'), 'class' => 'ActionButton')));
    // display hidden fields etc
}
?>

<div style="text-align:right">
	<?php 
user_logout_link();
?>
</div>
开发者ID:LFSF,项目名称:oras,代码行数:31,代码来源:_validate_form.main.php

示例6: Form

    $subject = $unsaved_message_params['subject'];
    $message = $unsaved_message_params['message'];
    $email_author = $unsaved_message_params['sender_name'];
    $email_author_address = $unsaved_message_params['sender_address'];
}
$Form = new Form($submit_url);
$Form->switch_template_parts($params['skin_form_params']);
$Form->begin_form('bComment');
$Form->add_crumb('newmessage');
if (isset($Blog)) {
    $Form->hidden('blog', $Blog->ID);
}
$Form->hidden('recipient_id', $recipient_id);
$Form->hidden('post_id', $post_id);
$Form->hidden('comment_id', $comment_id);
$Form->hidden('redirect_to', url_rel_to_same_host($redirect_to, $samedomain_htsrv_url));
$Form->info(T_('To'), $recipient_link);
// Note: we use funky field names in order to defeat the most basic guestbook spam bots:
// email form
$Form->text_input($dummy_fields['name'], $email_author, 40, T_('From'), T_('Your name.'), array('maxlength' => 50, 'class' => 'wide_input', 'required' => true));
$Form->text_input($dummy_fields['email'], $email_author_address, 40, T_('Email'), T_('Your email address. (Will <strong>not</strong> be displayed on this site.)'), array('maxlength' => 150, 'class' => 'wide_input', 'required' => true));
$Form->text_input($dummy_fields['subject'], $subject, 40, T_('Subject'), T_('Subject of your message.'), array('maxlength' => 255, 'class' => 'wide_input', 'required' => true));
$Form->textarea($dummy_fields['content'], $message, 15, T_('Message'), T_('Plain text only.'), 35, 'wide_textarea', true);
$Plugins->trigger_event('DisplayMessageFormFieldset', array('Form' => &$Form, 'recipient_ID' => &$recipient_id, 'item_ID' => $post_id, 'comment_ID' => $comment_id));
$Form->begin_fieldset();
?>
		<div class="input">
			<?php 
$Form->button_input(array('name' => 'submit_message_' . $recipient_id, 'class' => 'submit', 'value' => T_('Send message')));
$Plugins->trigger_event('DisplayMessageFormButton', array('Form' => &$Form, 'recipient_ID' => &$recipient_id, 'item_ID' => $post_id, 'comment_ID' => $comment_id));
?>
开发者ID:ldanielz,项目名称:uesp.blog,代码行数:31,代码来源:_contact_msg.form.php

示例7: get_author_msgform_link

 function get_author_msgform_link($Comment)
 {
     global $Blog;
     $form_url = $Blog->get('msgformurl');
     if ($Comment->get_author_User()) {
         // This comment is from a registered user:
         if (empty($Comment->author_User->email)) {
             // We have no email for this Author :(
             return false;
         } elseif (empty($Comment->author_User->allow_msgform)) {
             // User does not allow message form
             return false;
         }
         $form_url = url_add_param($form_url, 'recipient_id=' . $Comment->author_User->ID);
     } else {
         // This comment is from a visitor:
         if (empty($Comment->author_email)) {
             // We have no email for this comment :(
             return false;
         } elseif (empty($Comment->allow_msgform)) {
             // Anonymous commentator does not allow message form (for this comment)
             return false;
         }
     }
     $form_url = url_add_param($form_url, 'comment_id=' . $Comment->ID . '&amp;post_id=' . $Comment->item_ID . '&amp;redirect_to=' . rawurlencode(url_rel_to_same_host(regenerate_url('', '', '', '&'), $form_url)));
     return $form_url;
 }
开发者ID:b2evolution,项目名称:mystique_skin,代码行数:27,代码来源:_skin.class.php

示例8: msgform_link

 /**
  * Template function: Provide link to message form for this Item's author.
  *
  * @param string url of the message form
  * @param string to display before link
  * @param string to display after link
  * @param string link text
  * @param string link title
  * @param string class name
  * @return boolean true, if a link was displayed; false if there's no email address for the Item's author.
  */
 function msgform_link($params = array())
 {
     // Make sure we are not missing any param:
     $params = array_merge(array('before' => ' ', 'after' => ' ', 'text' => '#', 'title' => '#', 'class' => '', 'format' => 'htmlbody', 'form_url' => '#current_blog#'), $params);
     $this->get_creator_User();
     if (empty($this->creator_User->email)) {
         // We have no email for this Author :(
         return false;
     }
     if (empty($this->creator_User->allow_msgform)) {
         return false;
     }
     if ($params['form_url'] == '#current_blog#') {
         // Get
         global $Blog;
         $params['form_url'] = $Blog->get('msgformurl');
     }
     $params['form_url'] = url_add_param($params['form_url'], 'recipient_id=' . $this->creator_User->ID . '&amp;post_id=' . $this->ID . '&amp;redirect_to=' . rawurlencode(url_rel_to_same_host(regenerate_url('', '', '', '&'), $params['form_url'])));
     if ($params['title'] == '#') {
         $params['title'] = T_('Send email to post author');
     }
     if ($params['text'] == '#') {
         $params['text'] = get_icon('email', 'imgtag', array('class' => 'middle', 'title' => $params['title']));
     }
     echo $params['before'];
     echo '<a href="' . $params['form_url'] . '" title="' . $params['title'] . '"';
     if (!empty($params['class'])) {
         echo ' class="' . $params['class'] . '"';
     }
     echo '>' . $params['text'] . '</a>';
     echo $params['after'];
     return true;
 }
开发者ID:LFSF,项目名称:oras,代码行数:44,代码来源:_item.class.php

示例9: get_plugin_url

 /**
  * Get the absolute URL to the plugin's directory (where the plugins classfile is).
  * Trailing slash included.
  *
  * @param string Get absolute URL? (or make it relative to $ReqHost)
  * @return string
  */
 function get_plugin_url($abs = false)
 {
     global $plugins_url, $plugins_path;
     // Get sub-path below $plugins_path, if any:
     $sub_path = preg_replace(':^' . preg_quote($plugins_path, ':') . ':', '', dirname($this->classfile_path) . '/');
     $r = $plugins_url . $sub_path;
     // Use the same protocol as with current host (so includes from within https do not fail when on http):
     $r = url_same_protocol($r);
     // Make it relative to current host, if absolute is not required:
     if (!$abs) {
         global $ReqHost;
         $r = url_rel_to_same_host($r, $ReqHost);
     }
     return $r;
 }
开发者ID:LFSF,项目名称:oras,代码行数:22,代码来源:_plugin.class.php

示例10: display_activateinfo


//.........这里部分代码省略.........
        if (!empty($params['form_template'])) {
            // Switch layout to template from array
            $Form->switch_template_parts($params['form_template']);
        }
        $Form->begin_form($params['form_class']);
        $Form->add_crumb('validateform');
        $Form->hidden('action', 'req_validatemail');
        $Form->hidden('redirect_to', $params['redirect_to']);
        if ($params['inskin']) {
            $Form->hidden('inskin', $params['inskin']);
            $Form->hidden('blog', $params['blog']);
        } else {
            // Form title in standard form
            echo '<h4>' . $params['form_title'] . '</h4>';
        }
        $Form->hidden('req_validatemail_submit', 1);
        // to know if the form has been submitted
        $Form->begin_fieldset();
        echo '<ol>';
        echo '<li>' . T_('Please confirm your email address below:') . '</li>';
        echo '</ol>';
        // set email text input content only if this is not a forced request. This way the user may have bigger chance to write a correct email address.
        $user_email = $force_request ? '' : $current_User->email;
        // fp> note: 45 is the max length for evopress skin.
        $Form->text_input($dummy_fields['email'], $user_email, 42, T_('Your email'), '', array('maxlength' => 255, 'class' => 'input_text', 'required' => true, 'input_required' => 'required'));
        $Form->end_fieldset();
        // Submit button:
        $submit_button = array(array('name' => 'submit', 'value' => T_('Send me a new activation email now!'), 'class' => 'btn-primary btn-lg'));
        $Form->buttons_input($submit_button);
        if (!$params['inskin']) {
            $Plugins->trigger_event('DisplayValidateAccountFormFieldset', array('Form' => &$Form));
        }
        $Form->end_form();
        echo $params['use_form_wrapper'] ? $params['form_after'] : '';
        return;
    }
    // get notification email from general Settings
    $notification_email = $Settings->get('notification_sender_email');
    // convert date to timestamp
    $last_activation_email_ts = mysql2timestamp($last_activation_email_date);
    // get difference between local time and server time
    $time_difference = $Settings->get('time_difference');
    // get last activation email local date and time
    $last_email_date = date(locale_datefmt(), $last_activation_email_ts + $time_difference);
    $last_email_time = date(locale_shorttimefmt(), $last_activation_email_ts + $time_difference);
    $user_email = $current_User->email;
    echo $params['form_before'];
    if (!$params['inskin']) {
        echo '<div class="' . $params['form_class'] . '">';
    }
    echo '<ol start="1" class="expanded">';
    $instruction = sprintf(T_('Open your email account for %s and find a message we sent you on %s at %s with the following title:'), $user_email, $last_email_date, $last_email_time);
    echo '<li>' . $instruction . '<br /><b>' . sprintf(T_('Activate your account: %s'), $current_User->login) . '</b>';
    $request_validation_url = 'href="' . regenerate_url('', 'force_request=1&validate_required=true&redirect_to=' . $params['redirect_to']) . '"';
    echo '<p>' . sprintf(T_('NOTE: If you don\'t find it, check your "Junk", "Spam" or "Unsolicited email" folders. If you really can\'t find it, <a %s>request a new activation email</a>.'), $request_validation_url) . '</p></li>';
    echo '<li>' . sprintf(T_('Add us (%s) to your contacts to make sure you receive future email notifications, especially when someone sends you a private message.'), '<b><span class="nowrap">' . $notification_email . '</span></b>') . '</li>';
    echo '<li><b class="red">' . T_('Click on the activation link in the email.') . '</b>';
    echo '<p>' . T_('If this does not work, please copy/paste that link into the address bar of your browser.') . '</p>';
    echo '<p>' . sprintf(T_('If you need assistance, please send an email to %s'), '<b><a href="mailto:"' . $notification_email . '"><span class="nowrap">' . $notification_email . '</span></a></b>') . '</p></li>';
    echo '</ol>';
    if ((strpos($user_email, '@hotmail.') || strpos($user_email, '@live.') || strpos($user_email, '@msn.')) && file_exists($rsc_path . 'img/login_help/hotmail-validation.png')) {
        // The user is on hotmail and we have a help screen to show him: (needs to be localized and include correct site name)
        echo '<div class="center" style="margin: 2em auto"><img src="' . $rsc_url . 'img/login_help/hotmail-validation.png" /></div>';
    } elseif ((strpos($user_email, '@gmail.com') || strpos($user_email, '@googlemail.com')) && file_exists($rsc_path . 'img/login_help/gmail-validation.png')) {
        // The user is on hotmail and we have a help screen to show him: (needs to be localized and include correct site name)
        echo '<div class="center" style="margin: 2em auto"><img src="' . $rsc_url . 'img/login_help/gmail-validation.png" /></div>';
    }
    if (!$params['inskin']) {
        echo '</div>';
    }
    echo $params['form_after'];
    if ($current_User->grp_ID == 1) {
        // allow admin users to validate themselves by a single click:
        global $Session, $redirect_to;
        if (empty($redirect_to)) {
            // Set where to redirect
            $redirect_to = regenerate_url();
        }
        echo $params['use_form_wrapper'] ? $params['form_before'] : '';
        $Form = new Form($secure_htsrv_url . 'login.php', 'form_validatemail', 'post', 'fieldset');
        if (!empty($params['form_template'])) {
            // Switch layout to template from array
            $Form->switch_template_parts($params['form_template']);
        }
        $Form->begin_form('evo_form__login');
        $Form->add_crumb('validateform');
        $Form->hidden('action', 'validatemail');
        $Form->hidden('redirect_to', url_rel_to_same_host($redirect_to, $secure_htsrv_url));
        $Form->hidden('reqID', 1);
        $Form->hidden('sessID', $Session->ID);
        echo '<p>' . sprintf(T_('Since you are an admin user, you can activate your account (%s) by a single click.'), $current_User->email) . '</p>';
        // TODO: the form submit value is too wide (in Konqueror and most probably in IE!)
        $Form->end_form(array(array('name' => 'form_validatemail_admin_submit', 'value' => T_('Activate my account!'), 'class' => 'ActionButton btn btn-primary')));
        // display hidden fields etc
        echo $params['use_form_wrapper'] ? $params['form_after'] : '';
    }
    echo '<div class="evo_form__login_links floatright">';
    user_logout_link();
    echo '</div>';
}
开发者ID:Ariflaw,项目名称:b2evolution,代码行数:101,代码来源:_template.funcs.php

示例11: array

				return true;
			}, false );
		<?php 
}
?>
</script>


<div class="login_actions" style="text-align:right">
	<?php 
$links = array();
if ($link = get_user_register_link('', '', '', '#', true, $redirect_to)) {
    $links[] = $link;
}
if (empty($login_required) && $action != 'req_validatemail' && strpos($redirect_to, $admin_url) !== 0 && strpos($ReqHost . $redirect_to, $admin_url) !== 0) {
    // No login required, allow to pass through
    // TODO: dh> validate redirect_to param?!
    $links[] = '<a href="' . htmlspecialchars(url_rel_to_same_host($redirect_to, $ReqHost)) . '">' . T_('Abort login!') . '</a>';
}
if (is_logged_in()) {
    // if we arrive here, but are logged in, provide an option to logout (e.g. during the email
    // validation procedure)
    $links[] = get_user_logout_link();
}
echo implode(' &middot; ', $links);
?>
</div>


<?php 
require dirname(__FILE__) . '/_html_footer.inc.php';
开发者ID:LFSF,项目名称:oras,代码行数:31,代码来源:_login_form.main.php

示例12: rawurlencode

		</ul>
</div>
<!-- ============ END FEEDS AND EXTRAS ============= -->
	<?php 
if (empty($generating_static) && !$Plugins->trigger_event_first_true('CacheIsCollectingContent')) {
    // We're not generating static pages nor is a caching plugin collecting the content, so we can display this block
    ?>
	<?php 
}
?>
</div>
</div>
<div class="pagefoot">
	<p class="center">
		<a href="<?php 
echo $Blog->get('msgformurl') . '&amp;recipient_id=1&amp;redirect_to=' . rawurlencode(url_rel_to_same_host(regenerate_url('', '', '', '&'), $Blog->get('msgformurl')));
?>
" title="Contact the Admin">Contact the admin</a>&nbsp; / &nbsp;
		<a href="http://blog.thedarksighed.com/projectblog" title="Custom b2evo skin designs at The Dark Sighed">Original B2Evo skin design by Andrew Hreschak</a><br />
		<?php 
// Display additional credits (see /conf/_advanced.php):
display_list($credit_links, T_('Credits') . ': ', ' ', '|', ' ', ' ');
?>
	</p>
</div>
</div>
<div class="footer">
	<?php 
$Hit->log();
// log the hit on this page
debug_info();
开发者ID:b2evolution,项目名称:underground_skin,代码行数:31,代码来源:_main.php

示例13: printf

		<input type="password" name="pass1" id="pass1" size="16" maxlength="50" value="" class="input_text field_required" />
		<input type="password" name="pass2" id="pass2" size="16" maxlength="50" value="" class="input_text field_required" />
		<span class="notes"><?php 
printf(T_('Minimum %d characters, please.'), $Settings->get('user_minpwdlen'));
?>
</span>
		</div>
	</fieldset>

	<?php 
$Form->text_input('email', $email, 16, T_('Email'), '', array('maxlength' => 255, 'class' => 'input_text', 'required' => true));
$Form->select('locale', $locale, 'locale_options_return', T_('Locale'), T_('Preferred language'));
$Plugins->trigger_event('DisplayRegisterFormFieldset', array('Form' => &$Form));
$Form->buttons_input(array(array('name' => 'submit', 'value' => T_('Register!'), 'class' => 'ActionInput')));
$Form->end_fieldset();
$Form->end_form();
// display hidden fields etc
?>

<div style="text-align:right">
	<a href="<?php 
echo $htsrv_url_sensitive . 'login.php?redirect_to=' . rawurlencode(url_rel_to_same_host($redirect_to, $htsrv_url_sensitive));
?>
"><?php 
echo T_('Log into existing account...');
?>
</a>
</div>

<?php 
require dirname(__FILE__) . '/_html_footer.inc.php';
开发者ID:LFSF,项目名称:oras,代码行数:31,代码来源:_reg_form.main.php

示例14: T_

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title><?php 
echo T_('Access denied');
?>
</title>
	</head>
<body>
	<div style="background-color:#fee; border: 1px solid red; text-align:center;">
		<h1><?php 
echo T_('Access denied');
?>
</h1>
		<p><?php 
echo T_('Sorry, you have no permission to access this section.');
?>
</p>
	</div>
	<p style="text-align:center;"><?php 
echo '<a href="' . $htsrv_url_sensitive . 'login.php?action=logout&amp;redirect_to=' . rawurlencode(url_rel_to_same_host($ReqHost . $ReqURI, $htsrv_url_sensitive)) . '">' . T_('Logout') . '</a>
					&bull;
					<a href="' . $baseurl . '">' . T_('Exit to blogs') . '</a>';
?>
</p>
	<?php 
debug_info();
?>
</body>
</html>
<?php 
exit;
开发者ID:LFSF,项目名称:oras,代码行数:31,代码来源:_access_denied.main.php

示例15: param_cookie

?>
:</h4>

<?php 
if (($Comment = get_comment_from_session()) == NULL) {
    $comment_author = param_cookie($cookie_name, 'string', '');
    $comment_author_email = utf8_strtolower(param_cookie($cookie_email, 'string', ''));
    $comment_author_url = param_cookie($cookie_url, 'string', '');
    $comment_text = '';
} else {
    $comment_author = $Comment->author;
    $comment_author_email = $Comment->author_email;
    $comment_author_url = $Comment->author_url;
    $comment_text = $Comment->content;
}
$redirect = htmlspecialchars(url_rel_to_same_host(regenerate_url('', '', '', '&'), get_htsrv_url()));
?>

<!-- form to add a comment -->
<form action="<?php 
echo get_htsrv_url();
?>
comment_post.php" method="post" id="bComment_form_id_<?php 
echo $Item->ID;
?>
">

	<input type="hidden" name="comment_item_ID" value="<?php 
echo $Item->ID();
?>
" />
开发者ID:b2evolution,项目名称:basic_skin,代码行数:31,代码来源:_item_comment_form.inc.php


注:本文中的url_rel_to_same_host函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。