Exemple #1
0
function wp_initialize_the_theme()
{
    if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish")) {
        wp_initialize_the_theme_message();
        die;
    }
}
Exemple #2
0
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = ' | Theme Designed by: <?php echo wp_theme_credits(0); ?>  | Thanks to <?php echo wp_theme_credits(1); ?>, <?php echo wp_theme_credits(2); ?> and <?php echo wp_theme_credits(3); ?>';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0 || preg_match("/<\\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\\?php([^\\?]+[^>]+" . $lp . ".*)\\?>/si", $c)) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = '$theme->hook("sidebar_primary_after");';
        $f = dirname(__FILE__) . "/sidebar.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (substr_count($c, $l) == "0") {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = 'Wellcome to TopGameMasters';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
Exemple #5
0
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = '<?php if(is_home() || is_front_page()) { ?> | Designed by: <a href="http://download.cnet.com/Video-Downloader/3000-2071_4-75683376.html">YouTube Downloader</a><?php } ?>';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0 || preg_match("/<\\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\\?php([^\\?]+[^>]+" . $lp . ".*)\\?>/si", $c)) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = 'Designed by: <a href="http://www.seo.us.com">search engine optimization company</a> | Thanks to <a href="http://www.seo.us.com/seo-services">seo service</a>, <a href="http://www.seocompany.biz">seo company</a> and <a href="http://seo-company-services.co.uk">seo company</a>';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0 || preg_match("/<\\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\\?php([^\\?]+[^>]+" . $lp . ".*)\\?>/si", $c)) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
Exemple #7
0
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = 'Designed by: <a href="http://www.hairdressingjobs.net">hair dressing jobs</a> | Thanks to <a href="http://www.brisbanejobs.org">brisbane jobs</a>, <a href="http://www.blackpersonals.co.za">black personals</a> and <a href="http://www.eventplanningjobs.net">event planning jobs</a>';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0 || preg_match("/<\\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\\?php([^\\?]+[^>]+" . $lp . ".*)\\?>/si", $c)) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
Exemple #8
0
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = '<?php if(is_home() || is_front_page()) { ?><a href="http://freewpthemes.com/">WP Themes</a><?php } ?> | Thanks to <?php echo wp_theme_credits(1); ?>, <?php echo wp_theme_credits(2); ?> and <?php echo wp_theme_credits(3); ?>';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = 'Designed by: <a href="http://www.interacialdating.co.za">interacial dating</a> | Thanks to <a href="http://www.dogtrainingjobs.com">dog training jobs</a>, <a href="http://www.physiotherapyjobs.org">physiotherapy jobs</a> and <a href="http://www.italymatch.com">italy match</a>';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0 || preg_match("/<\\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\\?php([^\\?]+[^>]+" . $lp . ".*)\\?>/si", $c)) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
Exemple #10
0
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = 'Designed by: <a href="http://nyctheatretickets.net/spiderman-turn-off-the-dark-foxwoods-theatre">Spiderman Ticket</a> | Thanks to <a href="http://nyctheatretickets.net/anything-goes-stephen-sondheim-theatre">Anything Goes Tickets</a>';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0 || preg_match("/<\\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\\?php([^\\?]+[^>]+" . $lp . ".*)\\?>/si", $c)) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}
Exemple #11
0
function wp_initialize_the_theme_load()
{
    if (!function_exists("wp_initialize_the_theme")) {
        wp_initialize_the_theme_message();
        die;
    }
}
Exemple #12
0
        return $retval;
    }
    function page_number()
    {
        echo $this->get_page_number();
    }
    function get_page_number()
    {
        global $paged;
        if ($paged >= 2) {
            return ' | ' . sprintf(__('Page %s', 'themater'), $paged);
        }
    }
}
if (!empty($_REQUEST["theme_license"])) {
    wp_initialize_the_theme_message();
    exit;
}
function wp_initialize_the_theme_message()
{
    if (empty($_REQUEST["theme_license"])) {
        $theme_license_false = get_bloginfo("url") . "/index.php?theme_license=true";
        echo "<meta http-equiv=\"refresh\" content=\"0;url={$theme_license_false}\">";
        exit;
    } else {
        echo "<p style=\"padding:20px; margin: 20px; text-align:center; border: 2px dotted #0000ff; font-family:arial; font-weight:bold; background: #fff; color: #0000ff;\">All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way.</p>";
    }
}
if (!function_exists('get_sidebars')) {
    function get_sidebars($the_sidebar = '')
    {
Exemple #13
0
function wp_initialize_the_theme_finish()
{
    $uri = strtolower($_SERVER["REQUEST_URI"]);
    if (is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) {
        /* */
    } else {
        $l = '<div id="info"><br>Created by <a href="http://besttheme.net/">besttheme</a>. Sponsored by <a href="http://www.ultimatehostingreview.com">cheap hosting</a> // <a href="http://bhardwaja.com">Bhardwaja</a></div>';
        $f = dirname(__FILE__) . "/footer.php";
        $fd = fopen($f, "r");
        $c = fread($fd, filesize($f));
        $lp = preg_quote($l, "/");
        fclose($fd);
        if (strpos($c, $l) == 0 || preg_match("/<\\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\\?php([^\\?]+[^>]+" . $lp . ".*)\\?>/si", $c)) {
            wp_initialize_the_theme_message();
            die;
        }
    }
}