Esempio n. 1
0
    function themecheck_do_page()
    {
        if (!current_user_can('manage_options')) {
            wp_die(__('You do not have sufficient permissions to access this page.', 'theme-check'));
        }
        add_filter('extra_theme_headers', array($this, 'tc_add_headers'));
        include 'checkbase.php';
        include 'main.php';
        ?>
		<div id="theme-check" class="wrap">
		<h1><?php 
        _ex('Theme Check', 'title of the main page', 'theme-check');
        ?>
</h1>
		<div class="theme-check">
		<?php 
        tc_form();
        if (!isset($_POST['themename'])) {
            tc_intro();
        }
        if (isset($_POST['themename'])) {
            if (isset($_POST['trac'])) {
                define('TC_TRAC', true);
            }
            if (defined('WP_MAX_MEMORY_LIMIT')) {
                @ini_set('memory_limit', WP_MAX_MEMORY_LIMIT);
            }
            check_main($_POST['themename']);
        }
        ?>
		</div> <!-- .theme-check-->
		</div>
		<?php 
    }
Esempio n. 2
0
 function themecheck_do_page()
 {
     if (!current_user_can('manage_options')) {
         wp_die(__('You do not have sufficient permissions to access this page.', 'theme-check'));
     }
     add_filter('extra_theme_headers', array($this, 'tc_add_headers'));
     include 'checkbase.php';
     include 'main.php';
     echo '<div id="theme-check" class="wrap">';
     echo '<div id="icon-themes" class="icon32"><br /></div><h2>Theme-Check</h2>';
     echo '<div class="theme-check">';
     tc_form();
     if (!isset($_POST['themename'])) {
         tc_intro();
     }
     if (isset($_POST['themename'])) {
         if (isset($_POST['trac'])) {
             define('TC_TRAC', true);
         }
         check_main($_POST['themename']);
     }
     echo '</div> <!-- .theme-check-->';
     echo '</div>';
 }