@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb011 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
wordpress
/
wp-content
/
plugins
/
ktai_style
/
admin
/
Path :
Upload File :
New :
File
Dir
//homepage/wordpress/wp-content/plugins/ktai_style/admin/options.php
<?php /* ================================================== * Ktai Admin Options * based on wp-admin/options-writing.php of WP 2.3 ================================================== */ require_once dirname(__FILE__) . '/admin.php'; $title = __('Options'); $this_file = 'options.php'; $parent_file = 'options-writing.php'; wp_reset_vars(array('action')); if (! current_user_can('manage_options')) { Ktai_Style::ks_die(__('Cheatin’ uh?')); } switch($action) { case 'update': $any_changed = 0; check_admin_referer('update-options'); if ( !$_POST['page_options'] ) { foreach ( (array) $_POST as $key => $value) { if ( !in_array($key, array('_wpnonce', '_wp_http_referer')) ) $options[] = $key; } } else { $options = explode(',', stripslashes($_POST['page_options'])); } if ($options) { foreach ($options as $option) { $option = trim($option); $value = $_POST[$option]; if (!is_array($value)) { $value = trim($value); } $value = stripslashes_deep($value); update_option($option, $value); } } $goback = add_query_arg('updated', 'true', wp_get_referer()); $KS_Admin->redirect($goback); break; default: $KS_Admin->redirect('options-writing.php'); break; } // end switch include dirname(__FILE__) . '/admin-footer.php'; ?>