403Webshell
Server IP : 10.19.1.101  /  Your IP : 216.73.216.158
Web Server : Apache
System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User : schererimoveisrs ( 170628)
PHP Version : 7.4.33
Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/schererimoveisrs/www/pre backup/wp-content/themes/sauron/inc/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/schererimoveisrs/www/pre backup/wp-content/themes/sauron/inc/admin/WDWT_admin_cpanel.php
<?php 


 
///// initial menu
add_action('admin_menu','wdwt_admin_menu');
add_action( 'admin_init', 'wdwt_register_settings' );



function wdwt_admin_menu(){
    
  $menu=add_theme_page( WDWT_TITLE, WDWT_TITLE, 'edit_theme_options', WDWT_SLUG, 'wdwt_admin_options_page' ); 
  add_action('admin_print_styles-' . $menu, 'wdwt_admin_scripts'); 
}



function wdwt_register_settings() {
  $wdwt_tabs = wdwt_get_tabs();

  $option_parameters = wdwt_get_option_parameters();

/*ttt!!!*/
  register_setting(   'wdwt_options', WDWT_OPT,  'wdwt_options_validate' ); 
  

}





function wdwt_get_settings_by_tab() {
  $tabs = wdwt_get_tabs();
  $settingsbytab = array();
  foreach ( $tabs as $tab ) {
    $tabname = $tab['name'];
    $settingsbytab[] = $tabname;
  }
  $option_parameters = wdwt_get_option_parameters();
  foreach ( $option_parameters as $option_parameter ) {
    $optionname =  (isset($option_parameter['name']) && $option_parameter['name'] !='' ) ? $option_parameter['name'] : false;
    if($optionname){
      $optiontab = $option_parameter['tab'];
      $settingsbytab[$optiontab][] = $optionname;
      $settingsbytab['all'][] = $optionname;
    }
  }
  return $settingsbytab;
}

function wdwt_get_current_tab() {

  
  
    if ( isset( $_GET['tab'] ) ) {
        $current = $_GET['tab'];
    }
    else {
      $current = 'licensing';
    } 
  return apply_filters( 'wdwt_get_current_tab', $current );
}




function wdwt_admin_options_page() {
  global $wdwt_options;
  global $wdwt_licensing_page;

  $currenttab = wdwt_get_current_tab();
  $tabs = wdwt_get_tabs();
  $options = $wdwt_options;
  
  $current_settings_sections = 'wdwt_' . $currenttab . '_tab'; 
  $tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'licensing' ); 

  ?>

  <div class="wrap free" id="main_<?php echo $currenttab; ?>_page">
    <h1 class="screen-reader-text"><?php echo WDWT_TITLE; ?></h1>
    <?php 
      if(WDWT_LOGO_SHOW){
      ?>
      <a href="<?php echo WDWT_HOMEPAGE ?>/wordpress-themes.html" target="_blank">
        <div style="background:url(<?php echo WDWT_IMG_INC; ?>adminheader.jpg) no-repeat; background-size: auto 100%; background-position:center; width:calc(100% - 4px); height:72px; margin:2px;"></div>
      </a>
      <?php } 
      
      wdwt_admin_options_page_tabs(); 
      if ( isset( $_GET['settings-updated']) ){
        echo "<div class='updated'><p>".__('Theme settings updated successfully', "sauron")."</p></div>";
      }
      /*pages without option submit forms*/
      if ($currenttab == 'licensing'):
        echo $wdwt_licensing_page->view_licensing();
      else : 
        echo $wdwt_licensing_page->view_licensing();
      endif; 
      ?>
   </div>
  <?php 
}


function wdwt_admin_scripts(){
  /*seee which scripts are not necessary!!! ttt!!!*/

  wp_enqueue_script( 'common' );
  wp_enqueue_script( 'jquery-color' );
  wp_print_scripts('editor');
  if (function_exists('add_thickbox')) {
    add_thickbox();
  }
  wp_print_scripts('media-upload');
  wp_admin_css();
  wp_enqueue_script('utils');
  do_action("admin_print_styles-post-php");
  do_action('admin_print_styles');
  wp_enqueue_script('wp-color-picker');
  wp_enqueue_style( 'wp-color-picker' );

  wp_enqueue_style( WDWT_VAR.'_admin_stylesheet', WDWT_URL . '/inc/css/admin.css', array(), WDWT_VERSION );
  wp_enqueue_script( WDWT_VAR.'_admin_element_view_script', WDWT_URL.'/inc/lib/WDWT_elements.js',array( ), WDWT_VERSION, true);
  wp_localize_script( WDWT_VAR.'_admin_element_view_script', 'wdwt_slide_warning', __("You cannot delete the last slide! Try to turn off the slider", "sauron") );


}



?>

Youez - 2016 - github.com/yon3zu
LinuXploit