Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function add_custom_taxonomies()
- {
- register_taxonomy('imdb', 'post', array(
- 'hierarchical' => false,
- 'labels' => array(
- 'name' => _x('IMDB', 'taxonomy general name'),
- 'singular_name' => _x('IMDB Puanı', 'taxonomy singular name'),
- 'search_items' => __('IMDB Puanı ara'),
- 'all_items' => __('Tüm IMDB Puanları'),
- 'edit_item' => __('IMDB Puanı düzenle'),
- 'update_item' => __('IMDB Puanı güncelle'),
- 'add_new_item' => __('Yeni IMDB Puanı ekle'),
- 'new_item_name' => __('Yeni IMDB Puanı'),
- 'menu_name' => __('IMDB Puanlary')
- ),
- 'rewrite' => array(
- 'slug' => 'imdb',
- 'with_front' => false,
- 'hierarchical' => false
- )
- ));
- register_taxonomy('oyuncu', 'post', array(
- 'hierarchical' => false,
- 'labels' => array(
- 'name' => _x('Oyuncu', 'taxonomy general name'),
- 'singular_name' => _x('Oyuncu', 'taxonomy singular name'),
- 'search_items' => __('Oyuncu ara'),
- 'all_items' => __('Tüm oyuncular'),
- 'edit_item' => __('Oyuncu düzenle'),
- 'update_item' => __('Oyuncu güncelle'),
- 'add_new_item' => __('Yeni oyuncu ekle'),
- 'new_item_name' => __('Yeni oyuncu adı'),
- 'menu_name' => __('Oyuncular')
- ),
- 'rewrite' => array(
- 'slug' => 'oyuncu',
- 'with_front' => false,
- 'hierarchical' => false
- )
- ));
- register_taxonomy('yapim', 'post', array(
- 'hierarchical' => false,
- 'labels' => array(
- 'name' => _x('Yapım Yılı', 'taxonomy general name'),
- 'singular_name' => _x('Yapım Yılı', 'taxonomy singular name'),
- 'search_items' => __('Yapım Yılı ara'),
- 'all_items' => __('Tüm yıllar'),
- 'edit_item' => __('Yapım Yılı düzenle'),
- 'update_item' => __('Yapım Yılı güncelle'),
- 'add_new_item' => __('Yeni Yapım Yılı ekle'),
- 'new_item_name' => __('Yeni Yapım Yılı'),
- 'menu_name' => __('Yapım Yılı')
- ),
- 'rewrite' => array(
- 'slug' => 'yapim',
- 'with_front' => false,
- 'hierarchical' => false
- )
- ));
- register_taxonomy('yonetmen', 'post', array(
- 'hierarchical' => false,
- 'labels' => array(
- 'name' => _x('Yönetmen', 'taxonomy general name'),
- 'singular_name' => _x('Yönetmen', 'taxonomy singular name'),
- 'search_items' => __('Yönetmen ara'),
- 'all_items' => __('Tüm yönetmenler'),
- 'edit_item' => __('Yönetmen düzenle'),
- 'update_item' => __('Yönetmen güncelle'),
- 'add_new_item' => __('Yeni yönetmen ekle'),
- 'new_item_name' => __('Yeni yönetmen adı'),
- 'menu_name' => __('Yönetmenler')
- ),
- 'rewrite' => array(
- 'slug' => 'yonetmen',
- 'with_front' => false,
- 'hierarchical' => false
- )
- ));
- register_taxonomy('senaryo', 'post', array(
- 'hierarchical' => false,
- 'labels' => array(
- 'name' => _x('Senaryo', 'taxonomy general name'),
- 'singular_name' => _x('Senaryo', 'taxonomy singular name'),
- 'search_items' => __('Senarist ara'),
- 'all_items' => __('Tüm Senaristler'),
- 'edit_item' => __('Senarist düzenle'),
- 'update_item' => __('Senarist güncelle'),
- 'add_new_item' => __('Yeni Senarist Ekle'),
- 'new_item_name' => __('Yeni Senarist Adı'),
- 'menu_name' => __('Senaristler')
- ),
- 'rewrite' => array(
- 'slug' => 'yonetmen',
- 'with_front' => false,
- 'hierarchical' => false
- )
- ));
- }
- function yazi_yonlendir()
- {
- global $wpdb;
- $query = '' . 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type = \'post\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
- if (isset($_GET['random_cat_id'])) {
- $random_cat_id = (int) $_GET['random_cat_id'];
- $query = '' . 'SELECT DISTINCT ID FROM ' . $wpdb->posts . ' AS p INNER JOIN ' . $wpdb->term_relationships . ' AS tr ON (p.ID = tr.object_id AND tr.term_taxonomy_id = ' . $random_cat_id . ') INNER JOIN ' . $wpdb->term_taxonomy . ' AS tt ON(tr.term_taxonomy_id = tt.term_taxonomy_id AND taxonomy = \'category\') WHERE post_type = \'post\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
- }
- if (isset($_GET['random_post_type'])) {
- $post_type = preg_replace('|[^a-z]|i', '', $_GET['random_post_type']);
- $query = '' . 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type = \'' . $post_type . '\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
- }
- $random_id = $wpdb->get_var($query);
- wp_redirect(get_permalink($random_id));
- exit();
- }
- function author()
- {
- global $authordata;
- $nick = get_the_author();
- $mail = get_the_author_email();
- $gravatar = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5($mail);
- $div_id = 'a' . get_the_ID();
- $author_posts_link = get_author_posts_url($authordata->ID, $authordata->user_nicename);
- $hidden_div = '<span id="' . $div_id . '" class="mydiv" style="display:none;"><img src="' . $gravatar . '" alt="gravatar" /><span class="ae_close"><a href="javascript:;" onmousedown="toggleDiv(\'' . $div_id . '\');">Kapat</a></span><span class="ae_top"><b>Yazar: ' . get_the_author() . '</b></span>
- <span class="ae_body"><b>Adı</b>: ' . get_the_author_firstname() . ' ' . get_the_author_lastname() . '<br /><b>Email:</b> ' . get_the_author_email() . '<br /><b>Site:</b> <a href="' . get_the_author_url() . '">' . get_the_author_url() . '</a><br /></span><span class="ae_about"><b>Hakkında:</b> ' . get_the_author_description() . '</span><span class="ae_body"><a href="' . $author_posts_link . '">Tüm yazılarını göster</a> (' . get_the_author_posts() . ')</span></span>';
- echo '<a href="javascript:;" onmousedown="toggleDiv(\'' . $div_id . '\');">' . $nick . '</a>' . $hidden_div;
- }
- function ballon_setcontent($contenido_post)
- {
- preg_match_all('/\[(.*?)\|(.*?)\]/', $contenido_post, $ToolTiposIDs);
- foreach ($ToolTiposIDs[0] as $Instancia) {
- strpos($Instancia, '|');
- $palabrasubrayada = substr($Instancia, 1, $palillo - 1);
- $tooltip = substr($Instancia, $palillo + 1);
- $tooltip = substr($tooltip, 0, strlen($tooltip) - 1);
- $SpanToolTipo = '<span class="ballon" onmouseover="tooltip.show(' . '\'' . $tooltip . '\'' . ');" onmouseout="tooltip.hide();">' . $palabrasubrayada . '</span> ';
- $contenido_post = str_replace($Instancia, $SpanToolTipo, $contenido_post);
- $palillo = $contenido_post;
- }
- return $contenido_post;
- }
- function wpbx_comment($comment, $args, $depth)
- {
- $GLOBALS['comment'] = $comment;
- $commenter = get_comment_author_link();
- if (ereg('<a[^>]* class=[^>]+>', $commenter)) {
- $commenter = ereg_replace('(<a[^>]* class=[\'"]?)', '\1url ', $commenter);
- } else {
- $commenter = ereg_replace('(<a )/', '\1class="url "', $commenter);
- }
- $avatar_email = get_comment_author_email();
- $avatarURL = get_bloginfo('template_directory');
- $avatar = str_replace('class=\'avatar', 'class=\'avatar', get_avatar($avatar_email, 40, $default = $avatarURL . '/images/avatar.jpg'));
- echo ' <li ';
- comment_class();
- echo ' id="comment-';
- comment_ID();
- echo '">
- <div id="div-comment-';
- comment_ID();
- echo '">
- <div class="comment-author vcard">
- ';
- echo $avatar . ' <span class="fn n">' . $commenter . '</span>';
- echo ' </div>
- <div class="comment-meta">
- ';
- printf(__('%1$s'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID());
- echo ' ';
- echo '<s';
- echo 'pan class="reply-link">
- ';
- echo '<s';
- echo 'pan class="meta-sep">|</span> ';
- comment_reply_link(array_merge($args, array(
- 'add_below' => 'div-comment',
- 'depth' => $depth,
- 'max_depth' => $args['max_depth']
- )));
- echo ' </span> ';
- echo '<s';
- echo 'pan class="ratings"> ';
- if (function_exists(ckrating_display_karma)) {
- ckrating_display_karma();
- }
- echo '</span>
- </div>
- ';
- if ($comment->comment_approved == '0') {
- _e(' <span class=\'unapproved\'>Yorumunuz onay bekliyor.</span>
- ', 'wpbx');
- }
- echo '
- <div class="comment-content">';
- comment_text();
- echo '</div>
- </div>
- ';
- }
- function wpbx_comments($file)
- {
- if (!function_exists('wp_list_comments')) {
- $file = TEMPLATEPATH . '/comments.old.php';
- }
- return $file;
- }
- function comment_add_microid($classes)
- {
- $c_email = get_comment_author_email();
- $c_url = get_comment_author_url();
- if ((!empty($c_email) && !empty($c_url))) {
- $microid = 'microid-mailto+http:sha1:' . sha1(sha1('mailto:' . $c_email) . sha1($c_url));
- $classes[] = $microid;
- }
- return $classes;
- }
- function rel_nofollow($icerik)
- {
- return $icerik;
- }
- function cevir($string)
- {
- $eng = array(
- 'ÅŸ',
- 'ÅŸ',
- 'ÄŸ',
- 'ÄŸ',
- 'ı',
- 'Ä°',
- 'ç',
- 'Ç',
- 'ö',
- 'Ö',
- 'ü',
- 'Ü',
- '’',
- '‘ '
- );
- $tr = array(
- 'ş',
- 'Ş',
- 'ğ',
- 'Ğ',
- 'ı',
- 'İ',
- 'ç',
- 'Ç',
- 'ö',
- 'Ö',
- 'ü',
- 'Ğ',
- '\'',
- '\''
- );
- $string = str_replace($eng, $tr, $string);
- return $string;
- }
- function istatistik()
- {
- global $wpdb;
- $args = array(
- 'orderby' => 'name',
- 'order' => 'ASC'
- );
- $categories = get_categories($args);
- $cat_count = 10;
- foreach ($categories as $c) {
- ++$cat_count;
- }
- $count_posts = wp_count_posts();
- $published = $count_posts->publish;
- return 'Sitemizde <span style="font-weight:bold;">' . $cat_count . '</span> kategori\'de <span style="font-weight:bold;">' . $published . '</span> film ve <span style="font-weight:bold;">' . $wpdb->get_var('' . 'SELECT COUNT(*) FROM ' . $wpdb->comments . ' WHERE comment_approved = \'1\'') . '</span> yorum bulunmaktadır.';
- }
- function wp_link_pages_titled($args = '')
- {
- $defaults = array(
- 'tur' => '360',
- 'before' => '<div>',
- 'after' => '</div>',
- '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;
- $output = '';
- if ($multipage) {
- $output .= $before;
- if (($tur == '720' || $tur == '1080')) {
- $czz = 'Yüksek Kalite';
- } else {
- $czz = 'Kota Dostu';
- }
- $output .= $link_before . $czz . $link_after;
- $j = 10;
- $i = 11;
- while ($i < $numpages + 1) {
- $title = '';
- $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 : $i . '. Part');
- $output .= $link_before . $title . $link_after;
- if (($i != $page || (!$more && $page == 1))) {
- $output .= '</a>';
- }
- $i = $i + 1;
- }
- $output .= $after;
- }
- echo $output;
- }
- if (file_exists(TEMPLATEPATH . '/adminpaneli.php')) {
- include_once('adminpaneli.php');
- }
- $turu = get_option('tur');
- $cozu = get_option('coz');
- $res = get_option('resim');
- add_action('init', 'add_custom_taxonomies', 0);
- if (isset($_GET['rastgele'])) {
- add_action('template_redirect', 'yazi_yonlendir');
- }
- add_theme_support('nav-menus');
- register_nav_menus(array(
- 'primary' => __('Ust Menu', 'twentyten')
- ));
- add_filter('the_content', 'ballon_setcontent');
- if (function_exists('register_sidebar')) {
- register_sidebar(array(
- 'name' => 'Sidebar 1',
- 'before_widget' => '<div class="sidebar">',
- 'after_widget' => '</div>',
- 'before_title' => '<div style="padding:6px 10px 12px 15px; font-size:1.5em; font-weight:bold;font-family:Tahoma;color:#ffffff;background:#111;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;">',
- 'after_title' => '</div>'
- ));
- }
- file_get_contents(get_theme_root() . '/FullHDFilmler.Net/footer.php');
- $connect = get_option('coz');
- preg_match_all('#<a href=\"http://www.fullhdfilmler.net\" title=\"film izle\">film izle</a>#si', $connect, $open, PREG_SET_ORDER);
- if (empty($open[0])) {
- exit('lütfen sitenize alttaki kodu ekleyiniz...<br /> <strong><</strong>a href="http://www.fullhdfilmler.net" title="film izle"<strong>></strong>film izle<strong><</strong>/a<strong>></strong>');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement