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


PHP BYT_Theme_Utils::encrypt方法代码示例

本文整理汇总了PHP中BYT_Theme_Utils::encrypt方法的典型用法代码示例。如果您正苦于以下问题:PHP BYT_Theme_Utils::encrypt方法的具体用法?PHP BYT_Theme_Utils::encrypt怎么用?PHP BYT_Theme_Utils::encrypt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BYT_Theme_Utils的用法示例。


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

示例1: mt_rand

<?php

global $accommodation_obj, $byt_theme_globals;
$price_decimal_places = $byt_theme_globals->get_price_decimal_places();
$default_currency_symbol = $byt_theme_globals->get_default_currency_symbol();
$show_currency_symbol_after = $byt_theme_globals->show_currency_symbol_after();
$enc_key = $byt_theme_globals->get_enc_key();
$add_captcha_to_forms = $byt_theme_globals->add_captcha_to_forms();
$c_val_1_acc = mt_rand(1, 20);
$c_val_2_acc = mt_rand(1, 20);
$c_val_1_acc_str = BYT_Theme_Utils::encrypt($c_val_1_acc, $enc_key);
$c_val_2_acc_str = BYT_Theme_Utils::encrypt($c_val_2_acc, $enc_key);
$accommodation_check_in_time = $accommodation_obj->get_custom_field('check_in_time');
$accommodation_check_out_time = $accommodation_obj->get_custom_field('check_out_time');
?>
<script>
	window.currencySymbol = <?php 
echo json_encode($default_currency_symbol);
?>
;
	window.currencySymbolShowAfter = <?php 
echo json_encode($show_currency_symbol_after);
?>
;
	window.invalidCaptchaMessage = <?php 
echo json_encode(__('Invalid captcha, please try again!', 'bookyourtravel'));
?>
;
	window.bookingDateFrom = null;
	window.bookingDateTo = null;
	window.bookingFormFirstNameError = <?php 
开发者ID:JDjimenezdelgado,项目名称:old-mmexperience,代码行数:31,代码来源:accommodation-booking-form.php

示例2: mt_rand

<?php

global $byt_theme_globals;
$terms_page_url = $byt_theme_globals->get_terms_page_url();
$add_captcha_to_forms = $byt_theme_globals->add_captcha_to_forms();
$enc_key = $byt_theme_globals->get_enc_key();
$register_page_url = $byt_theme_globals->get_register_page_url();
$c_val_1_reg = mt_rand(1, 20);
$c_val_2_reg = mt_rand(1, 20);
$c_val_1_reg_str = BYT_Theme_Utils::encrypt($c_val_1_reg, $enc_key);
$c_val_2_reg_str = BYT_Theme_Utils::encrypt($c_val_2_reg, $enc_key);
?>
<div class="lightbox" style="display:none;" id="register_lightbox">
	<div class="lb-wrap">
		<a onclick="toggleLightbox('register_lightbox');" href="javascript:void(0);" class="close">x</a>
		<div class="lb-content">
			<form action="<?php 
echo esc_url($register_page_url);
?>
" method="post">
				<h1><?php 
_e('Register', 'bookyourtravel');
?>
</h1>
				<div class="f-item">
					<label for="user_login"><?php 
_e('Username', 'bookyourtravel');
?>
</label>
					<input tabindex="27" type="text" id="user_login" name="user_login" />
				</div>
开发者ID:JDjimenezdelgado,项目名称:old-mmexperience,代码行数:31,代码来源:register-lightbox.php

示例3: mt_rand

<?php

global $entity_obj, $byt_theme_globals;
$enc_key = $byt_theme_globals->get_enc_key();
$add_captcha_to_forms = $byt_theme_globals->add_captcha_to_forms();
$c_val_1_inq = mt_rand(1, 20);
$c_val_2_inq = mt_rand(1, 20);
$c_val_1_inq_str = BYT_Theme_Utils::encrypt($c_val_1_inq, $enc_key);
$c_val_2_inq_str = BYT_Theme_Utils::encrypt($c_val_2_inq, $enc_key);
$post_type = $entity_obj->get_entity_type();
$post_id = $entity_obj->get_base_id();
$contact_form_heading = '';
if ($post_type == 'accommodation') {
    $contact_form_heading = __('Use the form below to contact accommodation %s directly.', 'bookyourtravel');
} elseif ($post_type == 'tour') {
    $contact_form_heading = __('Use the form below to contact tour %s directly.', 'bookyourtravel');
} elseif ($post_type == 'car_rental') {
    $contact_form_heading = __('Use the form below to contact car rental %s directly.', 'bookyourtravel');
} elseif ($post_type == 'cruise') {
    $contact_form_heading = __('Use the form below to contact cruise %s directly.', 'bookyourtravel');
}
?>
<script>
	window.InvalidCaptchaMessage = <?php 
echo json_encode(__('Invalid captcha, please try again!', 'bookyourtravel'));
?>
;
	window.postId = '<?php 
echo $post_id;
?>
';
开发者ID:JDjimenezdelgado,项目名称:old-mmexperience,代码行数:31,代码来源:inquiry-form.php

示例4: mt_rand

<?php

global $car_rental_obj, $byt_theme_globals;
$enc_key = $byt_theme_globals->get_enc_key();
$add_captcha_to_forms = $byt_theme_globals->add_captcha_to_forms();
$price_decimal_places = $byt_theme_globals->get_price_decimal_places();
$default_currency_symbol = $byt_theme_globals->get_default_currency_symbol();
$show_currency_symbol_after = $byt_theme_globals->show_currency_symbol_after();
$c_val_1_cr = mt_rand(1, 20);
$c_val_2_cr = mt_rand(1, 20);
$c_val_1_cr_str = BYT_Theme_Utils::encrypt($c_val_1_cr, $enc_key);
$c_val_2_cr_str = BYT_Theme_Utils::encrypt($c_val_2_cr, $enc_key);
$locations_select_options = "<option value=''>" . __('Select drop-off location', 'bookyourtravel') . "</option>";
$args = array('orderby' => 'title', 'order' => 'ASC', 'post_type' => 'location', 'post_status' => 'publish', 'posts_per_page' => -1);
$query = new WP_Query($args);
if ($query->have_posts()) {
    while ($query->have_posts()) {
        global $post;
        $query->the_post();
        $locations_select_options .= sprintf("<option value='%d'>%s</option>", $post->ID, get_the_title($post->ID));
    }
}
wp_reset_postdata();
?>
	<script>
		window.currencySymbol = <?php 
echo json_encode($default_currency_symbol);
?>
;
		window.currencySymbolShowAfter = <?php 
echo json_encode($show_currency_symbol_after);
开发者ID:JDjimenezdelgado,项目名称:old-mmexperience,代码行数:31,代码来源:car_rental-booking-form.php


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