本文整理汇总了PHP中dttheme_wp_kses函数的典型用法代码示例。如果您正苦于以下问题:PHP dttheme_wp_kses函数的具体用法?PHP dttheme_wp_kses怎么用?PHP dttheme_wp_kses使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dttheme_wp_kses函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dt_sc_newsletter_section
function dt_sc_newsletter_section($atts, $content = null)
{
extract(shortcode_atts(array('title' => ''), $atts));
$content = DTCoreShortcodesDefination::dtShortcodeHelper($content);
$out = '<section id="newsletter">
<h2 class="border-title aligncenter">' . $title . '</h2>
<h6> ' . $content . ' </h6>
<form name="frmsubscribe" method="post" class="dt-sc-subscribe-frm">
<input type="email" name="dt_sc_mc_emailid" required="" placeholder="' . __('Your Email Address', 'dt_themes') . '" />
<input type="hidden" name="dt_sc_mc_listid" value="' . stripslashes(dttheme_option('general', 'mailchimp-listid')) . '" />
<input type="submit" name="submit" class="dt-sc-button small" value="' . __('Subscribe', 'dt_themes') . '" />
</form>';
if (isset($_REQUEST['dt_sc_mc_emailid'])) {
require_once IAMD_FW . "theme_widgets/mailchimp/MCAPI.class.php";
$mcapi = new MCAPI(dttheme_wp_kses(dttheme_option('general', 'mailchimp-key')));
$list_id = dttheme_option('general', 'mailchimp-listid');
if ($mcapi->listSubscribe($list_id, $_REQUEST['dt_sc_mc_emailid'])) {
$msg = '<span class="success-msg">' . __('Success! Check your inbox or spam folder for a message containing a confirmation link.', 'dt_themes') . '</span>';
} else {
$msg = '<span class="error-msg"><b>' . __('Error:', 'dt_themes') . '</b> ' . $mcapi->errorMessage . '</span>';
}
}
if (isset($msg)) {
$out .= '<div class="dt_sc_mc_result">' . $msg . '</div>';
}
$out .= '</section>';
return $out;
}
示例2: widget
function widget($args, $instance)
{
extract($args);
echo $before_widget;
$title = empty($instance['title']) ? '' : strip_tags($instance['title']);
$title = apply_filters('widget_title', $title);
$desc = empty($instance['desc']) ? '' : strip_tags($instance['desc']);
$list_id = isset($instance['list_id']) ? $instance['list_id'] : '';
if (!empty($title)) {
echo $before_title . $title . $after_title;
}
if (!empty($desc)) {
echo "<p>{$desc}</p>";
}
if (isset($_REQUEST['mythem_mc_emailid'])) {
require_once IAMD_FW . "theme_widgets/mailchimp/MCAPI.class.php";
$mcapi = new MCAPI(dttheme_wp_kses(dttheme_option('general', 'mailchimp-key')));
$merge_vars = array('EMAIL' => $_REQUEST['mythem_mc_emailid']);
$list_id = $instance['list_id'];
if ($mcapi->listSubscribe($list_id, $_REQUEST['mythem_mc_emailid'], $merge_vars)) {
// It worked!
$msg = '<span class="success-msg">' . __('Success! Please check your inbox or spam folder.', 'dt_themes') . '</span>';
} else {
// An error ocurred, return error message
$msg = '<span class="error-msg"><b>' . __('Error:', 'dt_themes') . '</b> ' . $mcapi->errorMessage . '</span>';
}
}
echo '<form method="post" class="mailchimp-form">';
echo ' <input type="email" placeholder="' . __('Enter Email Address', 'dt_themes') . '" name="mythem_mc_emailid" value="" required/>';
echo "\t<input type='hidden' name='mythem_mc_listid' value='{$list_id}' />";
echo ' <input type="submit" name="submit" class="nl-submit" value="Signup" />';
echo '</form>';
if (isset($msg)) {
echo '<span class="zn_mailchimp_result">' . $msg . '</span>';
}
echo $after_widget;
}
示例3: register_sidebar
register_sidebar(array('name' => __("Search Sidebar Right", 'dt_themes'), 'id' => 'search-sidebar-right', 'description' => __("Search page sidebar that appears on the right.", "dt_themes"), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'));
}
}
#404 Page Layout
$layout_404 = dttheme_option('specialty', 'not-found-404-layout');
$layout_404 = !empty($layout_404) ? $layout_404 : "content-full-width";
if ($layout_404 != "content-full-width") {
if ($layout_404 == "with-left-sidebar" || $layout_404 == "both-sidebar") {
register_sidebar(array('name' => __('Not Found ( 404 ) Sidebar Left', 'dt_themes'), 'id' => 'not-found-404-sidebar-left', 'description' => __("404 page sidebar that appears on the left.", "dt_themes"), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'));
}
if ($layout_404 == "with-right-sidebar" || $layout_404 == "both-sidebar") {
register_sidebar(array('name' => __('Not Found ( 404 ) Sidebar Right', 'dt_themes'), 'id' => 'not-found-404-sidebar-right', 'description' => __("404 page sidebar that appears on the right.", "dt_themes"), 'before_widget' => '<aside id="%1$s" class="widget %2$s">', 'after_widget' => '</aside>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'));
}
}
#Custom Mega Menu Sidebars
$widgets = dttheme_wp_kses(dttheme_option('widgetarea', 'megamenu'));
$widgets = is_array($widgets) ? array_unique($widgets) : array();
$widgets = array_filter($widgets);
foreach ($widgets as $key => $value) {
$id = mb_convert_case($value, MB_CASE_LOWER, "UTF-8");
$id = str_replace(" ", "-", $id);
register_sidebar(array('name' => $value, 'id' => $id, 'description' => __("A unique mega menu sidebar that is created in Admin panel", "dt_themes"), 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'));
}
#Footer Columnns
$footer_columns = dttheme_option('general', 'footer-columns');
dttheme_footer_widgetarea($footer_columns);
if (class_exists('woocommerce')) {
#Custom Left Sidebars for Product
$products = dttheme_option("widgetarea", "left-products");
$products = !empty($products) ? $products : array();
$widget_areas_for_products = array_filter(array_unique($products));
示例4: dttheme_option
<?php
$dt_bp_data = dttheme_option("bp");
$dt_bp_data = is_array($dt_bp_data) ? $dt_bp_data : array();
$dt_per_page = array_key_exists("members-per-page", $dt_bp_data) ? dttheme_wp_kses($dt_bp_data["members-per-page"]) : 10;
$dt_per_page - intval($dt_per_page);
?>
<?php
do_action('bp_before_members_loop');
$columns = $post_class = "";
$members_page_layout = dttheme_option('bp', "members-page-layout");
switch ($members_page_layout) {
case "one-half-column":
$columns = 2;
$post_class = "column dt-sc-one-half";
break;
case "one-third-column":
$columns = 3;
$post_class = "column dt-sc-one-third";
break;
case "one-fourth-column":
$columns = 4;
$post_class = "column dt-sc-one-fourth";
break;
default:
$columns = 4;
$post_class = "column dt-sc-one-fourth";
break;
}
if (bp_has_members(bp_ajax_querystring('members') . '&per_page=' . $dt_per_page)) {
示例5: the_post
the_post();
$post_id = get_the_ID();
$dt_assignment_course = get_post_meta($post_id, "dt-assignment-course", true);
if (isset($dt_assignment_course) && $dt_assignment_course != '') {
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class('dt-sc-assignment-single');
?>
>
<?php
$assignment_subtitle = dttheme_wp_kses(get_post_meta($post_id, "assignment-subtitle", true));
$assignment_maximum_mark = get_post_meta($post_id, "assignment-maximum-mark", true);
$assignment_enable_textarea = get_post_meta($post_id, "assignment-enable-textarea", true);
$assignment_enable_attachment = get_post_meta($post_id, "assignment-enable-attachment", true);
?>
<h2><?php
the_title();
?>
</h2>
<h5><?php
echo $assignment_subtitle;
?>
</h5>
<?php
the_content();
示例6: __
$out .= '</li>';
$j++;
}
$out .= '</ul>';
}
} else {
if ($question_type == 'boolean') {
$out .= '<div class="dt-boolean">';
$out .= '<input type="radio" name="dt-question-' . $question_id . '" value="true" /> <label>' . __('True', 'dt_themes') . '</label>';
$out .= '<input type="radio" name="dt-question-' . $question_id . '" value="false" /> <label>' . __('False', 'dt_themes') . '</label>';
$out .= '</div>';
} else {
if ($question_type == 'gap-fill') {
$text_before_gap = dttheme_wp_kses(get_post_meta($question_id, 'text-before-gap', TRUE));
$text_before_gap = !empty($text_before_gap) ? $text_before_gap : '';
$text_after_gap = dttheme_wp_kses(get_post_meta($question_id, 'text-after-gap', TRUE));
$text_after_gap = !empty($text_after_gap) ? $text_after_gap : '';
$out .= '<div class="dt-gapfill">';
$out .= $text_before_gap . ' <input type="text" name="dt-question-' . $question_id . '" value="" class="dt-gap" /> ' . $text_after_gap;
$out .= '</div>';
} else {
if ($question_type == 'single-line') {
$out .= '<input type="text" name="dt-question-' . $question_id . '" value="" />';
} else {
if ($question_type == 'multi-line') {
$out .= '<textarea name="dt-question-' . $question_id . '"></textarea>';
}
}
}
}
}
示例7: dt_list_questions_with_answers
"></div>
<div id="dt-sc-ajax-load-image" style="display:none;"><img src="<?php
echo IAMD_BASE_URL . "images/loading.png";
?>
" alt="" /></div>
<div id="dt-quiz-questions-container">
<?php
if (isset($_REQUEST['dttype']) && $_REQUEST['dttype'] != '') {
dt_list_questions_with_answers($dt_lesson_course, $lessons[0]->ID);
} else {
if (IAMD_USER_ROLE == 's2member_level2' || IAMD_USER_ROLE == 's2member_level3' || IAMD_USER_ROLE == 's2member_level4' || current_user_can($s2_level) || is_user_logged_in() && $private_lesson == '') {
$user_id = get_current_user_id();
$dt_gradings = dt_get_user_gradings_array($dt_lesson_course, $lessons[0]->ID, $quiz_id, $user_id);
$dt_grade_post = get_posts($dt_gradings);
$quiz_duration = dttheme_wp_kses(get_post_meta($quiz_id, "quiz-duration", true));
$quiz_duration = isset($quiz_duration) && $quiz_duration > 0 ? $quiz_duration : 0;
if (isset($dt_grade_post[0])) {
$grade = get_post_meta($dt_grade_post[0]->ID, "graded", true);
if (isset($grade) && $grade != '') {
echo '<div class="dt-sc-info-box">' . __('Your quiz have been graded already, please check your dashboard for futher details!', 'dt_themes') . '</div>';
} else {
if (dt_can_user_retake_quiz($dt_lesson_course, $lessons[0]->ID, $quiz_id, $user_id)) {
if ($quiz_duration > 0) {
echo '<p class="dt-sc-info-box">';
echo '<strong>' . __('Note: ', 'dt_themes') . '</strong>';
echo sprintf(__('You have to complete the quiz in %dmin(s). Timer will be triggered once you press the "Start Quiz" button.', 'dt_themes'), $quiz_duration);
echo '</p>';
}
echo '<a class="dt-sc-button small filled" name="start_quiz" id="dt-start-quiz">' . __('Start Quiz', 'dt_themes') . '</a>';
} else {
示例8: array
if (isset($terms) && !empty($terms)) {
$lesson_terms = array();
foreach ($terms as $term) {
if ($private_lesson != '') {
$lesson_terms[] = $term->name;
} else {
$lesson_terms[] = '<a href="' . get_term_link($term->slug, 'lesson_complexity') . '">' . $term->name . '</a>';
}
}
$lesson_terms = join(", ", $lesson_terms);
}
$lesson_course = get_post_meta($lesson_item->ID, "dt_lesson_course", true);
$lesson_course_data = get_post($lesson_course);
$lesson_meta_data = get_post_meta($lesson_item->ID, '_lesson_settings');
if (isset($lesson_meta_data[0]['lesson-duration']) && $lesson_meta_data[0]['lesson-duration'] != '') {
$duration = dttheme_wp_kses($lesson_meta_data[0]['lesson-duration']) . ' mins';
} else {
$duration = '';
}
echo '<tr>
<td class="lessons-table-course"><a href="' . get_permalink($lesson_course_data->ID) . '">' . $lesson_course_data->post_title . '</a></td>
<td class="lessons-table-title"><a href="' . get_permalink($lesson_item->ID) . '">' . $lesson_item->post_title . '</a></td>
<td class="lessons-table-type">' . $lesson_terms . '</td>
<td class="lessons-table-length">' . $duration . '</td>
</tr>';
}
echo '</tbody>';
echo '</table>';
}
?>
示例9: _e
<div class="bpanel-box">
<div class="box-title">
<h3><?php
_e('General', 'dt_themes');
?>
</h3>
</div>
<div class="box-content">
<div class="column one-third"><label><?php
_e('Currency Symbol', 'dt_themes');
?>
</label></div>
<div class="column two-third last">
<input name="mytheme[dt_course][currency]" type="text" class="small" value="<?php
echo trim(stripslashes(dttheme_wp_kses(dttheme_option('dt_course', 'currency'))));
?>
" />
<p class="note"><?php
_e('Please set default currency symbol which will be used in front end display', 'dt_themes');
?>
</p>
</div>
<div class="hr_invisible"> </div>
<div class="column one-third"><label><?php
_e('Currency Symbol Position', 'dt_themes');
?>
</label></div>
<div class="column two-third last">
示例10: while
while (have_posts()) {
the_post();
$the_id = get_the_ID();
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class('dt-sc-certificate-single');
?>
>
<?php
$background_image = get_post_meta($post->ID, 'background-image', TRUE);
$custom_class = dttheme_wp_kses(get_post_meta($post->ID, 'custom-class', TRUE));
$enable_print = get_post_meta($post->ID, 'enable-print', TRUE);
if (is_user_logged_in() && isset($enable_print) && $enable_print != '') {
echo '<a href="#" class="dt_print_certificate"><span class="fa fa-print"></span>' . __('Print', 'dt_themes') . '</a>';
}
echo '<div class="dt-sc-certificate-container ' . $custom_class . '" style="background-image:' . $background_image . '">';
echo do_shortcode(get_the_content());
echo '</div>';
?>
</article>
<?php
}
}
示例11: start_el
//.........这里部分代码省略.........
echo $value;
?>
">
<span class="description"><?php
_e('Please use font awesome icon ', 'dt_themes');
?>
</span>
</label>
</p>
<?php
$selected = get_post_meta($item->ID, '_dt-menu-widget', true);
?>
<p class="field-dt-submenu-widget description description-wide">
<label for="edit-menu-item-dt-submenu-widget-<?php
echo $item_id;
?>
">
<?php
_e('Display Widget Area', 'dt_themes');
?>
<br />
<select id="edit-menu-item-dt-submenu-widget-<?php
echo $item_id;
?>
" class="widefat edit-menu-item-dt-submenu-widget" name="dt-submenu-widget[<?php
echo $item_id;
?>
]">
<option value=""><?php
_e('Select', 'dt_themes');
?>
</option><?php
$widgets = dttheme_wp_kses(dttheme_option('widgetarea', 'megamenu'));
$widgets = is_array($widgets) ? array_unique($widgets) : array();
$widgets = array_filter($widgets);
foreach ($widgets as $widget) {
$id = mb_convert_case($widget, MB_CASE_LOWER, "UTF-8");
$id = str_replace(" ", "-", $id);
echo "<option value='{$id}' " . selected($selected, $id, false) . ">{$widget}</option>";
}
?>
</select>
<span class="description"><?php
_e('Select widget area to show.', 'dt_themes');
?>
</span>
</label>
</p>
<?php
$value = get_post_meta($item->ID, '_dt-fill-columns', true);
?>
<p class="field-dt-widgetarea-column description description-wide">
<label for="edit-menu-item-dt-submenu-column-<?php
echo $item_id;
?>
">
<?php
_e('Fill Widget Area Layout', 'dt_themes');
?>
<br />
<select id="edit-menu-item-dt-widgetarea-column-<?php
echo $item_id;
?>
" class="widefat edit-menu-item-dt-submenu-column" name="dt-widgetarea-column[<?php
示例12: dttheme_custom_widgetarea_list
function dttheme_custom_widgetarea_list($id, $selected = "", $class = "mytheme_select", $sidebar)
{
$name = explode(",", $id);
if (count($name) > 1) {
$name = "[{$name[0]}][{$name[1]}]";
} else {
$name = "[{$name[0]}]";
}
$name = $class == "multidropdown" ? "mytheme{$name}[]" : "mytheme{$name}";
$widgets = dttheme_wp_kses(dttheme_option('widgetarea', $sidebar));
$widgets = is_array($widgets) ? array_unique($widgets) : array();
$widgets = array_filter($widgets);
$output = "<select name='{$name}' class='{$class}'>";
$output .= "<option value=''>" . __('Select Widget Area', 'dt_themes') . "</option>";
foreach ($widgets as $widget) {
$id = mb_convert_case($widget, MB_CASE_LOWER, "UTF-8");
$id = str_replace(" ", "-", $widget);
$output .= "<option value='{$id}' " . selected($selected, $id, false) . ">{$widget}</option>";
}
$output .= "</select>\n";
return $output;
}
示例13: dttheme_appearance_css
//.........这里部分代码省略.........
#Footer Title Font : Google Font
$footer_content_font = dttheme_option("appearance", "footer-content-font");
}
$footer_content_font_color = dttheme_option("appearance", "footer-content-font-color");
$footer_content_font_size = dttheme_option("appearance", "footer-content-font-size");
if (!empty($footer_content_font) || (!empty($footer_content_font_color) and $footer_content_font_color != "#") || !empty($footer_content_font_size)) {
$output .= "#footer .widget.widget_recent_entries .entry-metadata .author, #footer .widget.widget_recent_entries .entry-meta .date, #footer label, #footer .widget ul li, #footer .widget ul li:hover, .copyright, #footer .widget.widget_recent_entries .entry-metadata .tags, #footer .categories, #footer .widget p {";
if (!empty($footer_content_font)) {
$output .= "font-family:{$footer_content_font} !important; ";
}
if (!empty($footer_content_font_color) && $footer_content_font_color != '#') {
$output .= "color:{$footer_content_font_color} !important; ";
}
if (!empty($footer_content_font_size)) {
$output .= "font-size:{$footer_content_font_size}px !important; ";
}
if (!empty($style)) {
$output .= "font-style: {$style}";
}
$output .= "}\r\t";
}
if (!empty($footer_bg_color) and $footer_bg_color != "#") {
$output .= "#footer .footer-widgets-wrapper { background: {$footer_bg_color}; }";
}
if (!empty($copyright_bg_color) and $copyright_bg_color != "#") {
$output .= "#footer .copyright { background: {$copyright_bg_color}; }";
}
}
#Footer Section End
#Typography Settings
$disable_typo = dttheme_option("appearance", "disable-typography-settings");
if (empty($disable_typo)) {
for ($i = 1; $i <= 6; $i++) {
$font_type = dttheme_option("appearance", "H{$i}-font-type");
$style = dttheme_option("appearance", "H{$i}-standard-font-style");
if (!empty($font_type)) {
#Menu Font: Standard
$font = dttheme_option("appearance", "H{$i}-standard-font");
} else {
#Menu Font: Google
$font = dttheme_option("appearance", "H{$i}-font");
}
$color = dttheme_option("appearance", "H{$i}-font-color");
$size = dttheme_option("appearance", "H{$i}-size");
if (!empty($font) || (!empty($color) and $color != "#") || !empty($size)) {
$output .= "H{$i} {";
if (!empty($font)) {
$output .= "font-family:{$font}; ";
}
if (!empty($color) && $color != '#') {
$output .= "color:{$color}; ";
}
if (!empty($size)) {
$output .= "font-size:{$size}px; ";
}
$output .= "}\r\t";
}
}
}
#Typography Settings end
#404 Settings
$disable_404_settings = dttheme_option("specialty", "disable-404-font-settings");
if (empty($disable_404_settings)) {
$font = dttheme_option("specialty", "message-font");
$color = dttheme_option("specialty", "message-font-color");
$size = dttheme_option("specialty", "message-font-size");
if (!empty($font) || (!empty($color) and $color != "#") || !empty($size)) {
$output .= "div.error-info { ";
if (!empty($font)) {
$output .= "font-family:{$font}; ";
}
if (!empty($color) && $color != '#') {
$output .= "color:{$color}; ";
}
if (!empty($size)) {
$output .= "font-size:{$size}px; ";
}
$output .= "}\r\t";
$output .= "div.error-info h1, div.error-info h2, div.error-info h3,div.error-info h4,div.error-info h5,div.error-info h6 { ";
if (!empty($font)) {
$output .= "font-family:{$font}; ";
}
if (!empty($color) && $color != '#') {
$output .= "color:{$color}; ";
}
$output .= "}\r\t";
}
}
#404 Settings end
#custom CSS
if (dttheme_option('integration', 'enable-custom-css')) {
$css = dttheme_option('integration', 'custom-css');
$output .= dttheme_wp_kses(stripcslashes($css));
}
#custom CSS eND
if (!empty($output)) {
$output = "\r" . '<style type="text/css">' . "\r\t" . $output . "\r" . '</style>' . "\r";
echo $output;
}
}
示例14: do_shortcode
"><?php
echo do_shortcode(get_option('blogname'));
?>
</a></h2><?php
}
?>
</div>
<!-- **Contact Details** -->
<div class="contact-details">
<p class="phone-no"> <span class="fa fa-phone"> </span> <?php
echo dttheme_wp_kses(dttheme_option('general', 'h4-phoneno'));
?>
</p>
<?php
$email = dttheme_wp_kses(dttheme_option('general', 'h4-emailid'));
$email = !empty($email) ? $email : get_option('admin_email');
?>
<p class="mail"> <span class="fa fa-envelope-o"> </span> <a href="mailto:<?php
echo $email;
?>
" title=""><?php
echo $email;
?>
</a> </p>
</div><!-- **Contact Details - End** -->
</div><!-- container end -->
<!-- **Main Menu Wrapper** -->
<div class="main-menu-wrapper">
<div class="container">
示例15: dt_generate_certificate
function dt_generate_certificate()
{
if (!wp_verify_nonce($_REQUEST['nonce'], "dt_certificate_nonce")) {
exit;
}
$out = '';
$certificate_id = $_REQUEST['certificate_id'];
$args = array('post_type' => 'dt_certificates', 'p' => $certificate_id);
$the_query = new WP_Query($args);
if ($the_query->have_posts()) {
while ($the_query->have_posts()) {
$the_query->the_post();
$post_id = get_the_ID();
$background_image = get_post_meta($post_id, 'background-image', TRUE);
$custom_class = dttheme_wp_kses(get_post_meta($post_id, 'custom-class', TRUE));
$custom_css = dttheme_wp_kses(get_post_meta($post_id, 'custom-css', TRUE));
$enable_print = get_post_meta($post_id, 'enable-print', TRUE);
if (isset($enable_print) && $enable_print != '') {
$out .= '<a href="#" class="dt_print_certificate"><span class="fa fa-print"></span>' . __('Print', 'dt_themes') . '</a>';
}
$out .= '<div class="dt-sc-certificate-container ' . $custom_class . '" style="background:url(' . $background_image . ')">';
$out .= do_shortcode(get_the_content());
$out .= '</div>';
if (!empty($custom_css)) {
$output = "\r" . '<style type="text/css">' . "\r" . $custom_css . "\r" . '</style>' . "\r";
$out .= $output;
}
}
}
if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
echo $out;
} else {
header("Location: " . $_SERVER["HTTP_REFERER"]);
}
die;
}