Arkadaşlar kendi yaptığım ve şuan üç sitede kullanılan PHP lisanslama sistemini tanıtmak istiyorum. Eğer Domain lisanslı değilse ekranda boş bir sayfa gözüküyor. Bunu yaptığım birçok işe ekledim ve şifreleme de yapmıyorum.

Şimdi hem güvenirliliğini, hem sağlamlığını test etmek için sizlerden yardım bekliyorum.

Verdiğim WORDPRESS fonksiyon dosyasında lisanslama sistemini çözebilen, ha ben buldum, bak şu şöyle oluyor diye açıklayabilen olursa, 100 TL Paypal ve 2 Adet domain hediye edeceğim.
NOT: Lisans olaYı çağırılan JS dosyalarında falan değildir, bizzat verdiğim kodların içine gizledim.

İŞTE KOD:

// menuler

function register_main_menus() {

register_nav_menus(

array(

'primary-nav' => __( 'Birinci Menu' ),

'secondary-nav' => __( 'Ana Menu' ),

)

);

}



if (function_exists('register_nav_menus')) add_action( 'init', 'register_main_menus' );



// JS dosyalarını çağırıyorum burada

if(!is_admin()) {
add_action( 'wp_print_scripts', 'my_register_scripts', 100 );
}



function my_register_scripts() {


wp_enqueue_script('jquery-mgxnt', get_bloginfo('template_url').'/includes/js/mgxnt.js', false, '1.7.2');

wp_enqueue_script('jquery-hover', get_bloginfo('template_url').'/includes/js/hover.js', false, '1.7.2');



wp_enqueue_script('jquery', get_bloginfo('template_url').'/includes/js/jquery.min.js', false, '1.7.2');

wp_enqueue_script('jquery-ui', get_template_directory_uri().'/includes/js/jquery-ui-1.8.5.custom.min.js', false, '1.8.5');

wp_enqueue_script('jquery-superfish', get_bloginfo('template_url').'/includes/js/superfish.js', false, '1.4.2');

wp_enqueue_script('jquery-slider', get_bloginfo('template_url').'/includes/js/slides.min.jquery.js', false, '1.1.9');

wp_enqueue_script('jquery-custom', get_bloginfo('template_url').'/includes/js/custom.js', false, '1.4.2');

wp_enqueue_script('html5', get_bloginfo('template_url').'/includes/js/html5.js', false, '1.0');



if ( is_singular() && get_option('thread_comments') ) wp_enqueue_script( 'comment-reply' );

}



// Aciklama uzunlugu

function tT_content_limit($max_char, $more_link_text = '', $stripteaser = 0, $more_file = '') {

$content = get_the_content($more_link_text, $stripteaser, $more_file);

$content = apply_filters('the_content', $content);

$content = str_replace(']]>', ']]>', $content);

$content = strip_tags($content);



if (strlen($_GET['p']) > 0) {

echo "";

echo $content;

echo " ...";

}

else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {

$content = substr($content, 0, $espacio);

$content = $content;

echo "";

echo $content;

echo " ...";

}

else {

echo "";

echo $content;

}

}



// Aciklama uzunlugu sinirlandırılmş versiyon

function tt_excerpt_length( $length ) {

return 23;

}

add_filter( 'excerpt_length', 'tt_excerpt_length' );



// Devamı yazisi

function tt_excerpt_more($post) {

return '… '.__('devamı »','tatiltemasi').'';

}

add_filter('excerpt_more', 'tt_excerpt_more');





function tt_exclude_pages($query) {

if ($query->is_search) {

$query->set('post_type', 'post');

}

return $query;

}

add_filter('pre_get_posts','tt_exclude_pages');





if ( !function_exists( 'tt_twitter_script') ) {

function tt_twitter_script($unique_id,$username,$limit) {

?>

<script>

!]]>

</script>

<script>.json?callback=twitterCallback2&count=&include_rts=t"></script>


}

}



/* benzer Yazilar */

function tt_related_posts() {

global $post, $wpdb;

$backup = $post;

$tags = wp_get_post_tags($post->ID);

$tagIDs = array();

if ($tags) {

$tagcount = count($tags);

for ($i = 0; $i < $tagcount; $i++) {

$tagIDs[$i] = $tags[$i]->term_id;

}



$showposts = get_theme_mod('related_postnum');

$showposts = !empty($showposts) ? $showposts : 5;



$args=array(

'tag__in' => $tagIDs,

'post__not_in' => array($post->ID),

'showposts'=>$showposts,

'caller_get_posts'=>1

);

$my_query = new WP_Query($args);

if( $my_query->have_posts() ) { $related_post_found = true; ?>





    have_posts()) : $my_query->the_post(); ?>












}



//benzer yazi yoksa eger

if(!$related_post_found){ ?>






    $posts = get_posts('numberposts='.$showposts.'&offset=0');

    foreach($posts as $post) { ?>














}

wp_reset_query();

}



/* Twitter */



function tj_save_tweet_link($id) {

$url = sprintf('%s?p=%s', get_bloginfo('url').'/', $id);



add_post_meta($id, 'tweet_trim_url_2', $url);



return $url;

}



function tj_the_tweet_link() {

if (!$url = get_post_meta(get_the_ID(), 'tweet_trim_url_2', true)) {

$url = tj_save_tweet_link(get_the_ID());

}



if ($old_url = get_post_meta(get_the_ID(), 'tweet_trim_url', true)) {

delete_post_meta(get_the_ID(), 'tweet_trim_url');

}



$output_url = sprintf(

'http://twitter.com/home?status=%s%s%s',

urlencode(get_the_title()),

urlencode(' - '),

$url

);

$output_url = str_replace('+','%20',$output_url);

return $output_url;

}



/* Sosyal Aglar */

function tj_social_bookmarks() {

global $wp_query, $post;







// blog data

$blogname = urlencode(get_bloginfo('name')." ".get_bloginfo('description'));

$post = $wp_query->post;





// aciklama

$excerpt = urlencode(strip_tags(strip_shortcodes($post->post_excerpt)));

if ($excerpt == "") {

$excerpt = urlencode(substr(strip_tags(strip_shortcodes($post->post_content)),0,250));

}



// aciklama silme temizleme kodlari

$excerpt = str_replace('+','%20',$excerpt);

$excerpt = str_replace('%0D%0A','',$excerpt);

$permalink = urlencode(get_permalink($post->ID));

$title = str_replace('+','%20',urlencode($post->post_title));



foreach($sociable_sites as $bookmark) {

$url = $bookmark['url'];

$url = str_replace('TITLE', $title, $url);

$url = str_replace('BLOGNAME', $blogname, $url);

$url = str_replace('EXCERPT', $excerpt, $url);

$url = str_replace('PERMALINK', $permalink, $url);



$output .= '
  • ';

    $output .= '';

    $output .= $bookmark['name'].'
    ';

    $output .= '
  • ';

    }



    return '
      '.$output.'
    ';

    }



    ?>