Bu Lisans kodu nasıl kırılır?

<?php if (file_exists(TEMPLATEPATH . "/lisans.php")) { require "lisans.php"; $lisans["site"] = getenv("HTTP_HOST"); if (substr($lisans["site"], 0, 4) == "www.") {...

PHP:
<?php

if (file_exists(TEMPLATEPATH . "/lisans.php")) {
    require "lisans.php";
    $lisans["site"] = getenv("HTTP_HOST");
    if (substr($lisans["site"], 0, 4) == "www.") {
        $lisans["site"] = substr($lisans["site"], 4);
    }
    $lisans["hash"] = wordwrap(strtoupper(md5(base64_encode(sha1(md5(crc32(md5(sha1($lisans["site"])))))))), 4, "-", true);
    if ($lisans["hash"] !== $lisans_anahtar) {
        exit("Lisans anahtarınız bu site için geçerli değildir.");
    }
    unset($lisans);
    include_once "framework/diziplus.php";
    include_once "framework/features.php";
    include_once "framework/tema-dili.php";
    include_once "framework/widgets/listpopular.php";
    include_once "framework/tema-kurulumu.php";
    add_filter("show_admin_bar", "__return_false");
    remove_action("personal_options", "_admin_bar_preferences");
    remove_action("wp_head", "rel_canonical");
    global $wp_rewrite;
    $wp_rewrite->author_base = "profil";
    add_action("init", "register_my_menus");
    function register_my_menus()
    {
        register_nav_menus(array("header-nav" => __("diziplus Header Menüsü")));
    }
    register_sidebar(array("name" => "Anasayfa Bölümü", "id" => "anasayfa", "before_widget" => "<div class=\"incontent\">", "after_widget" => "</div>", "before_title" => "<div class=\"yazitip\">", "after_title" => "</div>"));
    function diziplus_meta($isim, $alan, $sonra)
    {
        global $post;
        $ozel = get_post_meta($post->ID, "" . $alan . "", true);
        if ($ozel != "") {
            echo "<p><span>" . $isim . "</span>: " . $ozel . "</p>";
        } else {
            echo "" . $sonra . "";
        }
    }
    function diziplus_resim($uzunluk, $genislik, $hasresim)
    {
        global $post;
        $resim = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "" . $hasresim . "");
        $resmim = get_post_meta($post->ID, "resim", true);
        $resim_bul = diziplus_resim_bulucu();
        if (has_post_thumbnail()) {
            echo "<img src=\"" . $resim[0] . "\" alt=\"" . get_the_title($post->ID) . "\" height=\"" . $uzunluk . "\" width=\"" . $genislik . "\" />";
        } else {
            if ($resmim != "") {
                echo "<img src=\"" . $resmim . "\" alt=\"" . get_the_title($post->ID) . "\" height=\"" . $uzunluk . "\" width=\"" . $genislik . "\" />";
            } else {
                echo "<img src=\"" . $resim_bul . "\" alt=\"" . get_the_title($post->ID) . "\" height=\"" . $uzunluk . "\" width=\"" . $genislik . "\" />";
            }
        }
    }
    function diziplus_zaman($type = "post")
    {
        $d = "comment" == $type ? "get_comment_time" : "get_post_time";
        return human_time_diff($d("U"), current_time("timestamp")) . " " . __("önce", "diziplus");
    }
    function nezaman_yazildi()
    {
        $gun = get_the_date("d");
        $ay = get_the_date("m");
        $yil = get_the_date("Y");
        $bugun = date("d");
        $buay = date("m");
        $buyil = date("Y");
        if ($yil == $buyil) {
            if ($ay == $buay) {
                if ($gun == $bugun) {
                    echo "Bugün eklendi.";
                } else {
                    $gunonce = $bugun - $gun;
                    if (6 < $gunonce) {
                        $haftaonce = round($gunonce / 7);
                        echo $haftaonce . " hafta önce eklendi.";
                    } else {
                        if ($gunonce == 1) {
                            echo "Dün eklendi.";
                        } else {
                            echo $gunonce . " gün önce eklendi.";
                        }
                    }
                }
            } else {
                $ayonce = $buay - $ay;
                echo $ayonce . " ay önce eklendi.";
            }
        } else {
            $yilonce = $buyil - $yil;
            if ($yilonce < 2) {
                $ayonce = 12 - $ay + $buay;
                echo $ayonce . " ay önce eklendi.";
            } else {
                echo $yilonce . " yıl önce eklendi..";
            }
        }
    }
    function diziplus_resim_bulucu()
    {
        global $post;
        global $posts;
        $first_img = "";
        ob_start();
        ob_end_clean();
        $output = preg_match_all("/<img.+src=['\"]([^'\"]+)['\"][^>]*>/i", $post->post_content, $matches);
        $first_img = $matches[1][0];
        $adres = get_bloginfo("template_url");
        if (empty($first_img)) {
            $first_img = (string) $adres . "/images/no-thumbnail.png";
        }
        return $first_img;
    }
    function bilgi_part($args = "")
    {
        global $post;
        $bilgi = get_post_meta($post->ID, "partbilgi", true);
        if ($bilgi != "") {
            echo "<span class=\"bolumkalite\">" . $bilgi . "</span>";
        } else {
            echo "<span style=\"text-transform: none; padding-right: 5px; padding-left: 6px; background: #3d1dbf;\">Full HD</span>";
        }
    }
    function diziplus_part_sistemi($args = "")
    {
        $defaults = array("before" => "" . __("" . $bilgi . ""), "after" => "", "link_before" => "<span>", "link_after" => "</span>", "echo" => 1);
        $r = wp_parse_args($args, $defaults);
        extract($r, EXTR_SKIP);
        global $page;
        global $numpages;
        global $multipage;
        global $more;
        global $pagenow;
        global $pages;
        $bilgi_bir = get_option("diziplus_part_bir");
        $output = "";
        if ($multipage) {
            $output .= $before;
            $i = 1;
            while ($i < $numpages + 1) {
                $part_content = $pages[$i - 1];
                $has_part_title = strpos($part_content, "<!--baslik:");
                if (0 === $has_part_title) {
                    $end = strpos($part_content, "-->");
                    $title = trim(str_replace("<!--baslik:", "", substr($part_content, 0, $end)));
                }
                $output .= " ";
                if ($i != $page || !$more && $page == 1) {
                    $output .= _wp_link_page($i);
                }
                $title = isset($title) && 0 < strlen($title) ? $title : "" . $bilgi_bir . "";
                $output .= $link_before . $title . $link_after;
                if ($i != $page || !$more && $page == 1) {
                    $output .= "</a>";
                }
                $i = $i + 1;
            }
            $output .= $after;
        }
        if ($echo) {
            echo $output;
        }
        return $output;
    }
    function diziplus_comment($comment, $args, $depth)
    {
        $GLOBALS["comment"] = $comment;
        echo "   <li ";
        comment_class();
        echo " id=\"li-comment-";
        comment_ID();
        echo "\">\r\n     <div id=\"comment-";
        comment_ID();
        echo "\">\r\n      <div class=\"comment-author vcard\">\r\n         ";
        echo get_avatar($comment->comment_author_email, "30", $default = get_template_directory_uri() . "/images/gravatar.gif");
        echo "         ";
        printf(__("<cite class=\"fn\">%s</cite> <span class=\"says\"> - </span>"), get_comment_author_link());
        echo "<span class=\"comment-zaman\">";
        echo diziplus_zaman("comment");
        echo " demiş ki:</span>\r\n      </div>\r\n      ";
        if ($comment->comment_approved == "0") {
            echo "         <em>";
            _e("Your comment is awaiting moderation.");
            echo "</em>\r\n         <br />\r\n      ";
        }
        echo "      <div class=\"comment-meta commentmetadata\"><a href=\"";
        echo esc_url(get_comment_link($comment->comment_ID));
        echo "\">";
        printf(__("%1\$s"), get_comment_date(__("F j, Y")));
        echo "</a> 'de yazıldı.";
        edit_comment_link(__("(Edit)"), "  ", "");
        echo "</div>\r\n      ";
        comment_text();
        echo "     </div>\r\n";
    }
    function diziplus_facebook()
    {
        global $post;
        $fb_resim = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "single-resim");
        $fb_resmim = get_post_meta($post->ID, "resim", true);
        if (is_single()) {
            if (has_post_thumbnail()) {
                echo "<meta property=\"og:image\" content=\"" . $fb_resim[0] . "\" />";
            } else {
                if ($fb_resmim != "") {
                    echo "<meta property=\"og:image\" content=\"" . $fb_resmim . "\" />";
                } else {
                    echo "<meta property=\"og:image\" content=\"" . diziplus_resim_bulucu() . "\" />";
                }
            }
            echo "\r\n<meta property=\"og:title\" content=\"";
            wp_title("|", true, "right");
            bloginfo("name");
            echo "\" />\r\n<meta property=\"og:site_name\" content=\"";
            bloginfo("name");
            echo "\" />\r\n<meta property=\"og:url\" content=\"";
            the_permalink();
            echo "\" />\r\n\r\n\r\n";
        }
    }
    if (!function_exists("PozHtml_73_Advenced")) {
        function PozHtml_73_Advenced()
        {
            echo "        <script type=\"text/javascript\">\r\n\t\tedButtons[edButtons.length]=new edButton(\"ed_pdiziplus\",\"NextPage\",\"<!--nextpage-->\");\r\n\t\tedButtons[edButtons.length]=new edButton(\"ed_qdiziplus\",\"NextPage Başlık\",\"<!--baslik:\",\"-->\",\"qdiziplus\");\r\n        </script>\r\n\r\n    ";
        }
        add_action("admin_print_footer_scripts", "PozHtml_73_Advenced");
    }
} else {
    exit("Lisans anahtarının bulunduğundan emin olun.");
}

?>
 
131,774Konular
3,271,225Mesajlar
316,148Kullanıcılar
Üst Alt