Server IP : 103.119.228.120 / Your IP : 3.149.243.86 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/hendraso/public_html/old/wp-content/plugins/secure-wordpress/res/pages/ |
Upload File : |
<?php if(! SwpaUtil::canLoad()) { return; } ?> <?php if(! SwpaUtil::isAdministrator()) { return; } ?> <?php $rm = strtoupper($_SERVER['REQUEST_METHOD']); //#! get settings $settings = SwpaPlugin::getSettings(); $rssWidgetData = get_option('WSD-RSS-WGT-DISPLAY'); $rssWidgetChecked = false; if(!empty($rssWidgetData) && ($rssWidgetData == 'yes')){ $rssWidgetChecked = true; } if('POST' == $rm) { // check nonce if(isset($_POST['wsdplugin_update_settings_field'])){ if(!wp_verify_nonce($_POST['wsdplugin_update_settings_field'],'wsdplugin_update_settings')){ wp_die(__('Invalid request.')); } } else {wp_die(__('Invalid request.'));} //#! UPDATE SETTINGS if(isset($_POST['updateSettingsButton'])) { // validate and save settings $postData = $_POST['chk_options']; parse_str($postData, $checkboxes); if(empty($checkboxes)){ foreach($settings as &$entry){ $entry['value'] = 0; } } else { foreach($checkboxes as $method => $value){ $settings[$method]['value'] = $value; } } // rss widget if(empty($_POST['chk_rss_wgt_display'])){ // hide $rssWidgetChecked = false; update_option('WSD-RSS-WGT-DISPLAY', 'no'); } else { // show $rssWidgetChecked = true; update_option('WSD-RSS-WGT-DISPLAY', 'yes'); } update_option(SWPA_PLUGIN_SETTINGS_OPTION_NAME, $settings); $settings = get_option(SWPA_PLUGIN_SETTINGS_OPTION_NAME); } //#! DELETE OPTIONS elseif(isset($_POST['deleteRssDataButton'])) { delete_option('wsd_feed_data'); } } ?> <div class="wrap wsdplugin_content"> <h2><?php echo SWPA_PLUGIN_NAME.' - '. __('Settings');?></h2> <p class="clear"></p> <div style="clear: both; display: block;"> <div class="metabox-holder"> <div class="inner-sidebar1 postbox"> <h3 class="hndle" style="cursor: default;"><span><?php echo __('Settings');?></span></h3> <div class="inside acx-section-box" style="padding-left:0;"> <form method="post"> <?php wp_nonce_field('wsdplugin_update_settings','wsdplugin_update_settings_field'); ?> <?php $i = 0; foreach($settings as $k => $entry){ if(is_array($entry)) { $chkID = "chk-$i"; echo '<div class="acx-section-box wsdplugin-overflow">'; echo '<label for="'.$chkID.'" class="wsdplugin-overflow">'; echo '<span class="chk-settings wsdplugin_checkbox'.($entry['value'] ? ' wsdplugin_checkbox-active' : '').'" id="'.$chkID.'" data-bind="'.$entry['name'].'"><a> </a></span>'; echo '<span>'.$entry['desc'].'</span>'; echo '</label>'; echo '</div>'; $i++; } } ?> <?php // the rss dashboard widget // all the below settings must have present the chk-extra class echo '<div class="acx-section-box wsdplugin-overflow">'; echo '<label for="wsd_feed_data" class="wsdplugin-overflow">'; echo '<span class="chk-extra wsdplugin_checkbox'.($rssWidgetChecked ? ' wsdplugin_checkbox-active' : '').'" id="wsd_feed_data"><a> </a></span>'; echo '<span>'.__('Show the RSS widget in the dashboard').'</span>'; echo '</label>'; echo '</div>'; ?> <input type="hidden" name="chk_options" id="chk_options" /> <input type="hidden" name="chk_rss_wgt_display" id="chk_rss_wgt_display" /> <div class="acx-section-box wsdplugin-overflow"> <input type="button" id="_resetButton" class="button button-secondary" style="width: 70px;"/> <input type="submit" value="Update settings" class="button button-primary" name="updateSettingsButton"/> <input type="submit" value="Delete rss data" class="button button-primary" name="deleteRssDataButton"/> </div> </form> </div> </div> </div> </div> </div> <script type="text/javascript"> jQuery(document).ready(function($){ var resetButton = $('#_resetButton'); var oneChecked = false; var checkboxes = $('.wsdplugin_checkbox'); var entriesLiveTrafficInput = $('#max_number_live_traffic'); // update state + bind click listeners $.each(checkboxes, function(i,v){ var self = $(v); if(self.hasClass('wsdplugin_checkbox-active')){ oneChecked = true; } self.parent('label').on('click', function(){ if(self.hasClass('wsdplugin_checkbox-active')){ self.removeClass('wsdplugin_checkbox-active'); } else { self.addClass('wsdplugin_checkbox-active'); } }); }); // update reset button if(oneChecked){ resetButton.val('Clear all'); } else { resetButton.val('Select all'); } resetButton.click(function(){ $(this).text(function(i, text){ if($(this).val() == 'Clear all'){ $.each(checkboxes,function(i,v){ $(v).removeClass('wsdplugin_checkbox-active'); }); $(this).val('Select all'); } else { $.each(checkboxes,function(i,v){ $(v).addClass('wsdplugin_checkbox-active',true); }); $(this).val('Clear all'); } }); }); $('form').submit(function(){ $('#chk_options').val(''); var data = $('.chk-settings').map(function(){ var self = $(this); return {name: self.attr('data-bind'), value: self.hasClass('wsdplugin_checkbox-active')?1:0}; }).get(); $('#chk_options').val($.param(data)); $('#chk_rss_wgt_display').val($('.chk-extra').hasClass('wsdplugin_checkbox-active')?1:0); }); }); </script>