Advertisement
Guest User

functions.php

a guest
Mar 25th, 2013
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.53 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. **/
  13.  
  14. function add_custom_taxonomies() {
  15. 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 ) ) );
  16. 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 ) ) );
  17. 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 ) ) );
  18. 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 ) ) );
  19. 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 ) ) );
  20. }
  21.  
  22. function menurenk($items) {
  23. global $sonradanrenk;
  24. global $arkarenk;
  25.  
  26. foreach ($items as ) {
  27. $item = &[0];
  28.  
  29. $item->classes[] = $sonradanrenk . ' ' . $arkarenk;
  30. }
  31.  
  32. return $items;
  33. }
  34.  
  35. function manset() {
  36. global $arkarenk;
  37. global $mansetgetir;
  38. global $manset;
  39. global $res;
  40. global $turu;
  41. global $cozu;
  42. global $otomatik;
  43.  
  44. if (( is_home( ) && !is_paged( ) )) {
  45. if ($manset == 1) {
  46. echo '<div style="margin:0px auto;">';
  47. $i = 12;
  48. WP_Query;
  49. new ( $mansetgetir );
  50. $post = ;
  51.  
  52. while ($post->have_posts( )) {
  53. $post->the_post( );
  54. ++$i;
  55.  
  56. if (( ( ( ( ( ( ( $i == 1 || $i == 4 ) || $i == 7 ) || $i == 10 ) || $i == 13 ) || $i == 16 ) || $i == 19 ) || $i == 22 )) {
  57. echo '<div class="sliderbox">';
  58. }
  59.  
  60.  
  61. if (( ( ( ( ( ( ( $i == 1 || $i == 6 ) || $i == 7 ) || $i == 12 ) || $i == 13 ) || $i == 18 ) || $i == 19 ) || $i == 24 )) {
  62. $width = 143;
  63. $height = 184;
  64. $class = 'buyuk';
  65. }
  66. else {
  67. $width = 75;
  68. $height = 97;
  69. $class = 'kucuk';
  70. }
  71.  
  72. echo '
  73. <a href="';
  74. the_permalink( );
  75. echo '" title="';
  76. the_title( );
  77. echo '"><img src="';
  78.  
  79. if ($otomatik == 'yes') {
  80. echo get_option( 'home' );
  81. echo '/wp-content/themes/FullHDFilmler.Net/boyut.php?src=';
  82. echo get_post_meta( get_the_ID( ), $res, true );
  83. echo '&w=';
  84. echo $width;
  85. echo '&h=';
  86. echo $height;
  87. echo '&a=c ';
  88. }
  89. else {
  90. echo get_post_meta( get_the_ID( ), $res, true );
  91. }
  92.  
  93. echo '" width="';
  94. echo $width;
  95. echo '" height="';
  96. echo $height;
  97. echo '" alt="';
  98. the_title( );
  99. echo '" class="sliderresim';
  100. echo $class;
  101. echo '" /></a>
  102. ';
  103.  
  104. if (( ( ( ( ( ( ( $i == 3 || $i == 6 ) || $i == 9 ) || $i == 12 ) || $i == 15 ) || $i == 18 ) || $i == 21 ) || $i == 24 )) {
  105. echo '</div>';
  106. continue;
  107. }
  108. }
  109.  
  110. echo '</div>
  111. </div>
  112. <div id="content" style="margin-top:4px;" class="' . $arkarenk . ' oval3">';
  113. return null;
  114. }
  115.  
  116.  
  117. if ($manset == 2) {
  118. echo ' <div id="manset-ayesoft" class="jcarousel-container jcarousel-container-horizontal">
  119. <div style="overflow: hidden; position: relative;" class="jcarousel-clip jcarousel-clip-horizontal">
  120. <ul style="overflow: hidden; position: relative; top: 0px; margin: 0px; padding: 0px; left: 0px; width: 2292px;" class="jcarousel-list jcarousel-list-horizontal" id="mans">
  121. ';
  122. WP_Query;
  123. new ( $mansetgetir );
  124. $post = ;
  125.  
  126. while ($post->have_posts( )) {
  127. $post->the_post( );
  128. echo '
  129. <li jcarouselindex="1" style="float: left; list-style: none outside none;" class="jcarousel-item jcarousel-item-horizontal jcarousel-item-1 jcarousel-item-1-horizontal">
  130. <div class="ayelist2">
  131. ';
  132. get_post_meta( get_the_ID( ), $turu, 'true' );
  133. $tur = ;
  134.  
  135. if (!$tur) {
  136. get_option( 'turdefault' );
  137. $tur = ;
  138. }
  139.  
  140. echo '<div class="ayelist2-tur ' . $tur . '">&nbsp;</div>';
  141. echo '
  142. ';
  143. get_post_meta( get_the_ID( ), $res, true );
  144. $resim = ;
  145.  
  146. if (!$resim) {
  147. get_option( 'resimdefault' );
  148. $resim = ;
  149. }
  150.  
  151. echo ' <a href="';
  152. the_permalink( );
  153. echo '" title="';
  154. the_title( );
  155. echo ' izle"><img class="ayelist-resim" src="';
  156.  
  157. if ($otomatik == 'yes') {
  158. echo get_option( 'home' );
  159. echo '/wp-content/themes/FullHDFilmler.Net/boyut.php?src=';
  160. echo get_post_meta( get_the_ID( ), $res, true );
  161. echo '&w=160&h=250&a=c ';
  162. }
  163. else {
  164. echo get_post_meta( get_the_ID( ), $res, true );
  165. }
  166.  
  167. echo '" alt="';
  168. the_title( );
  169. echo '" width="160" height="250" /></a>
  170. <div class="spp ';
  171. echo $arkarenk;
  172. echo '">
  173. <a href="';
  174. the_permalink( );
  175. echo '" rel="bookmark" title="';
  176. the_title_attribute( );
  177. echo '">';
  178. echo get_the_title( );
  179. echo '</a>
  180. </div>
  181. <div class="ayelist2-alt">
  182. <div class="ayelist2-alt-izlenme">';
  183.  
  184. if (function_exists( 'the_views' )) {
  185. the_views( );
  186. }
  187.  
  188. echo '</div>
  189. ';
  190. get_post_meta( get_the_ID( ), $cozu, 'true' );
  191. $coz = ;
  192.  
  193. if (!$coz) {
  194. get_option( 'cozdefault' );
  195. $coz = ;
  196. }
  197.  
  198. echo '<div class="sagla p' . $coz . '">&nbsp;</div>';
  199. echo '
  200. </div>
  201. </div>
  202. </li>
  203. ';
  204. }
  205.  
  206. echo '
  207. </ul>
  208. </div>
  209. </div>
  210. </div>
  211. <div id="content" style="margin-top:4px;" class="';
  212. echo $arkarenk;
  213. echo ' oval3">
  214. ';
  215. }
  216. }
  217.  
  218. }
  219.  
  220. function gununfilmi() {
  221. global $res;
  222. global $renk;
  223.  
  224. if (get_option( 'gununfilmigoster' ) == 'yes') {
  225. query_posts( 'showposts=1&cat=' . get_option( 'gununfilmikategori' ) );
  226.  
  227. while (have_posts( )) {
  228. the_post( );
  229. echo '
  230. <div class="gununfilmi ';
  231. echo $renk;
  232. echo '">
  233. <img src="';
  234. bloginfo( 'template_url' );
  235. echo '/images/gununfilmi.png" alt="gunun filmi" class="gunfilm" width="90" height="253" />
  236. <a href="';
  237. the_permalink( );
  238. echo '" title="';
  239. the_title( );
  240. echo '"><img src="';
  241.  
  242. if ($otomatik == 'yes') {
  243. echo get_option( 'home' );
  244. echo '/wp-content/themes/FullHDFilmler.Net/boyut.php?src=';
  245. echo get_post_meta( get_the_ID( ), $res, true );
  246. echo '&w=168&h=253&a=c ';
  247. }
  248. else {
  249. echo get_post_meta( get_the_ID( ), $res, true );
  250. }
  251.  
  252. echo '" width="168" height="253" alt="';
  253. the_title( );
  254. echo '" class="guncover" /></a>
  255. </div>
  256. ';
  257. }
  258. }
  259.  
  260. }
  261.  
  262. function headtags() {
  263. global $manset;
  264. global $lazy;
  265.  
  266. echo '
  267. <head profile="http://gmpg.org/xfn/11">
  268. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  269. <link rel="stylesheet" href="';
  270. bloginfo( 'stylesheet_url' );
  271. echo '" type="text/css" media="screen" />
  272. <link rel="alternate" type="application/rss+xml" title="';
  273. bloginfo( 'name' );
  274. echo ' RSS Feed" href="';
  275. bloginfo( 'rss2_url' );
  276. echo '" />
  277. <link rel="pingback" href="';
  278. bloginfo( 'pingback_url' );
  279. echo '" />
  280. <title>';
  281. bloginfo( 'name' );
  282. echo ' ';
  283.  
  284. if (is_single( )) {
  285. echo ' ';
  286. }
  287.  
  288. echo ' ';
  289. wp_title( );
  290. echo '</title>
  291. ';
  292. echo '<s';
  293. echo 'cript type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
  294. ';
  295. echo '<s';
  296. echo 'cript type="text/javascript" src="';
  297. bloginfo( 'template_url' );
  298. echo '/js/ayesoft.js"></script>
  299. ';
  300.  
  301. if ($lazy == 'yes') {
  302. echo '<script type="text/javascript" src="';
  303. bloginfo( 'template_url' );
  304. echo '/js/jquery.lazyload.js"></script>';
  305. }
  306.  
  307. echo ' ';
  308.  
  309. if (get_option( 'bgurl' )) {
  310. echo '<style>body { background:#000 url(\'' . get_option( 'bgurl' ) . '\') top center repeat;background-attachment:fixed; }</style>';
  311. }
  312. else {
  313. if (get_option( 'bgcl' )) {
  314. echo '<style>body { background:#' . get_option( 'bgcl' ) . '; }</style>';
  315. }
  316. }
  317.  
  318. echo '
  319. ';
  320. wp_head( );
  321. echo ' ';
  322.  
  323. if ($manset == 2) {
  324. echo ' ';
  325. echo '<s';
  326. echo 'cript type="text/javascript" src="';
  327. bloginfo( 'template_url' );
  328. echo '/js/jquery.jcarousel.min.js"></script>
  329. ';
  330. echo '<s';
  331. echo 'cript type="text/javascript">
  332. function mycarousel_initCallback(carousel)
  333. {
  334. carousel.buttonNext.hover(function() {
  335. carousel.stopAuto();
  336. }, function() {
  337. carousel.startAuto();
  338. });
  339. carousel.buttonPrev.hover(function() {
  340. carousel.stopAuto();
  341. }, function() {
  342. carousel.startAuto();
  343. });
  344. // Pause autoscrolling if the user moves with the cursor over the clip.
  345. carousel.clip.h';
  346. echo 'over(function() {
  347. carousel.stopAuto();
  348. }, function() {
  349. carousel.startAuto();
  350. });
  351. };
  352. jQuery(document).ready(function() {
  353. jQuery(\'#manset-ayesoft\').jcarousel({
  354. auto: 2,
  355. wrap: \'circular\',
  356. initCallback: mycarousel_initCallback
  357. });
  358. });
  359. </script>
  360. ';
  361. }
  362.  
  363. echo get_option( 'head' );
  364. echo '
  365. ';
  366. }
  367.  
  368. function yazi_yonlendir() {
  369. global $wpdb;
  370.  
  371. $query = '' . 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type = \'post\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
  372.  
  373. if (isset( $_GET['random_cat_id'] )) {
  374. $random_cat_id = (int)$_GET['random_cat_id'];
  375. $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';
  376. }
  377.  
  378.  
  379. if (isset( $_GET['random_post_type'] )) {
  380. preg_replace( '|[^a-z]|i', '', $_GET['random_post_type'] );
  381. $post_type = ;
  382. $query = '' . 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type = \'' . $post_type . '\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
  383. }
  384.  
  385. $wpdb->get_var( $query );
  386. $random_id = ;
  387. wp_redirect( get_permalink( $random_id ) );
  388. exit( );
  389. }
  390.  
  391. function author() {
  392. global $authordata;
  393.  
  394. get_the_author( );
  395. $nick = ;
  396. get_the_author_email( );
  397. $mail = ;
  398. $gravatar = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5( $mail );
  399. $div_id = 'a' . get_the_ID( );
  400. get_author_posts_url( $authordata->ID, $authordata->user_nicename );
  401. $author_posts_link = ;
  402. $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>
  403. <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>';
  404. echo '<a href="javascript:;" onmousedown="toggleDiv(\'' . $div_id . '\');">' . $nick . '</a>' . $hidden_div;
  405. }
  406.  
  407. function ballon_setcontent($contenido_post) {
  408. preg_match_all( '/\[(.*?)\|(.*?)\]/', $contenido_post, $ToolTiposIDs );
  409. foreach ($ToolTiposIDs[0] as $tooltip) {
  410. $Instancia = ;
  411. strpos( $Instancia, '|' );
  412. $palillo = ;
  413. substr( $Instancia, 1, $palillo - 1 );
  414. $palabrasubrayada = ;
  415. $tooltip = ;
  416. substr( $tooltip, 0, strlen( $tooltip ) - 1 );
  417. $SpanToolTipo = '<span class="ballon" onmouseover="tooltip.show(' . '\'' . $tooltip . '\'' . ');" onmouseout="tooltip.hide();">' . $palabrasubrayada . '</span>&nbsp;';
  418. str_replace( $Instancia, $SpanToolTipo, $contenido_post );
  419. $contenido_post = substr( $Instancia, $palillo + 1 );
  420. }
  421.  
  422. return $contenido_post;
  423. }
  424.  
  425. function wpbx_comment($comment, $args, $depth) {
  426. $GLOBALS['comment'] = $comment;
  427. get_comment_author_link( );
  428. $commenter = ;
  429.  
  430. if (ereg( '<a[^>]* class=[^>]+>', $commenter )) {
  431. ereg_replace( '(<a[^>]* class=[\'"]?)', '\1url ', $commenter );
  432. $commenter = ;
  433. }
  434. else {
  435. ereg_replace( '(<a )/', '\1class="url "', $commenter );
  436. $commenter = ;
  437. }
  438.  
  439. get_comment_author_email( );
  440. $avatar_email = ;
  441. get_bloginfo( 'template_directory' );
  442. $avatarURL = ;
  443. str_replace( 'class=\'avatar', 'class=\'avatar', get_avatar( $avatar_email, 40, $default = $avatarURL . '/images/avatar.jpg' ) );
  444. $avatar = ;
  445. echo ' <li ';
  446. comment_class( );
  447. echo ' id="comment-';
  448. comment_ID( );
  449. echo '">
  450. <div id="div-comment-';
  451. comment_ID( );
  452. echo '">
  453. <div class="comment-author vcard">
  454. ';
  455. echo $avatar . ' <span class="fn n">' . $commenter . '</span>';
  456. echo ' </div>
  457.  
  458. <div class="comment-meta">
  459. ';
  460. printf( __( '%1$s' ), get_comment_date( ), get_comment_time( ), '#comment-' . get_comment_ID( ) );
  461. echo ' ';
  462. echo '<s';
  463. echo 'pan class="reply-link">
  464. ';
  465. echo '<s';
  466. echo 'pan class="meta-sep">|</span> ';
  467. comment_reply_link( array_merge( $args, array( 'add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) );
  468. echo ' </span> ';
  469. echo '<s';
  470. echo 'pan class="ratings"> ';
  471.  
  472. if (function_exists( ckrating_display_karma )) {
  473. ckrating_display_karma( );
  474. }
  475.  
  476. echo '</span>
  477. </div>
  478.  
  479. ';
  480.  
  481. if ($comment->comment_approved == '0') {
  482. _e( ' <span class=\'unapproved\'>Yorumunuz onay bekliyor.</span>
  483. ', 'wpbx' );
  484. }
  485.  
  486. echo '
  487. <div class="comment-content">';
  488. comment_text( );
  489. echo '</div>
  490.  
  491. </div>
  492. ';
  493. }
  494.  
  495. function wpbx_comments($file) {
  496. if (!function_exists( 'wp_list_comments' )) {
  497. $file = TEMPLATEPATH . '/comments.old.php';
  498. }
  499.  
  500. return $file;
  501. }
  502.  
  503. function comment_add_microid($classes) {
  504. get_comment_author_email( );
  505. $c_email = ;
  506. get_comment_author_url( );
  507. $c_url = ;
  508.  
  509. if (( !empty( $c_email ) && !empty( $c_url ) )) {
  510. $microid = 'microid-mailto+http:sha1:' . sha1( sha1( 'mailto:' . $c_email ) . sha1( $c_url ) );
  511. $classes[] = $microid;
  512. }
  513.  
  514. return $classes;
  515. }
  516.  
  517. function rel_nofollow($icerik) {
  518. return $icerik;
  519. }
  520.  
  521. function cevir($string) {
  522. $eng = array( 'ş', 'ş', 'ğ', 'ğ', 'ı', 'İ', 'ç', 'Ç', 'ö', 'Ö', 'ü', 'Ü', '’', '‘ ' );
  523. $tr = array( 'ş', 'Ş', 'ğ', 'Ğ', 'ı', 'İ', 'ç', 'Ç', 'ö', 'Ö', 'ü', 'Ğ', '\'', '\'' );
  524. $string = str_replace( $eng, $tr, $string );
  525. return $string;
  526. }
  527.  
  528. function istatistik() {
  529. global $wpdb;
  530.  
  531. $args = array( 'orderby' => 'name', 'order' => 'ASC' );
  532. $categories = ;
  533. $cat_count = 11;
  534. foreach ($categories as ) {
  535. [0];
  536. $c = ;
  537. ++$cat_count;
  538. }
  539.  
  540. wp_count_posts( );
  541. $count_posts = get_categories( $args );
  542. $count_posts->publish;
  543. $published = ;
  544. 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.';
  545. }
  546.  
  547. function wp_link_pages_titled($args = '') {
  548. global $renk;
  549. global $sonradanrenk;
  550. global $arkarenk;
  551.  
  552. $defaults = array( 'before' => '<div class="nav_link">', 'after' => '</div>', 'link_before' => '<span class="page_number ' . $sonradanrenk . ' ' . $arkarenk . ' oval3">', 'link_before_none' => '<span class="page_number ' . $renk . ' oval3">', 'link_after' => '</span>', 'link_after_none' => '</span>', 'echo' => 1 );
  553. wp_parse_args( $args, $defaults );
  554. $r = ;
  555. extract( $r, EXTR_SKIP );
  556. global $page;
  557. global $numpages;
  558. global $multipage;
  559. global $more;
  560. global $pagenow;
  561. global $pages;
  562.  
  563. $output = '';
  564.  
  565. if ($multipage) {
  566. $before;
  567. $output .= ;
  568. $j = 11;
  569. $i = 12;
  570.  
  571. while ($i < $numpages + 1) {
  572. $title = '';
  573. $link = 11;
  574. $pages[$i - 1];
  575. $part_content = ;
  576. strpos( $part_content, '<!--baslik:' );
  577. $has_part_title = ;
  578.  
  579. if (0 === $has_part_title) {
  580. strpos( $part_content, '-->' );
  581. $end = ;
  582. trim( str_replace( '<!--baslik:', '', substr( $part_content, 0, $end ) ) );
  583. $title = ;
  584. }
  585.  
  586. $output .= ' ';
  587.  
  588. if (( $i != $page || ( !$more && $page == 1 ) )) {
  589. _wp_link_page( $i );
  590. $output .= ;
  591. $link = 12;
  592. }
  593.  
  594. $title = (( isset( $title ) && 0 < strlen( $title ) ) ? $title : $i . '. Part');
  595.  
  596. if ($link == 1) {
  597. $output .= $link_before . $title . $link_after;
  598. }
  599. else {
  600. $output .= $link_before_none . $title . $link_after_none;
  601. }
  602.  
  603.  
  604. if (( $i != $page || ( !$more && $page == 1 ) )) {
  605. $output .= '</a>';
  606. }
  607.  
  608. $i = $i + 1;
  609. }
  610.  
  611. $after;
  612. $output .= ;
  613. }
  614.  
  615. echo $output;
  616. }
  617.  
  618. function filmsecenekleri() {
  619. wp_enqueue_script( 'media-upload' );
  620. wp_enqueue_script( 'thickbox' );
  621. wp_enqueue_style( 'thickbox' );
  622. wp_register_script( 'fors-upload', '/wp-content/themes/FullHDFilmler.Net/js/upload.js', array( 'jquery' ) );
  623. wp_enqueue_script( 'fors-upload' );
  624. add_meta_box( 'post-meta-boxes', __( 'Film Bilgileri', 'ayesoft' ), 'kutu_getir', 'post', 'normal', 'high' );
  625. }
  626.  
  627. function kutular() {
  628. global $turu;
  629. global $cozu;
  630. global $res;
  631. global $ackk;
  632.  
  633. $meta_boxes = array( $ackk => array( 'name' => $ackk, 'title' => __( 'Açıklama:', 'ayesfot' ), 'type' => 'textarea' ), $res => array( 'name' => $res, 'title' => __( 'Resim:', 'ayesoft' ), 'type' => 'text', 'desc' => '' ), $turu => array( 'name' => $turu, 'title' => __( 'Dublaj:', 'ayesoft' ), 'type' => 'selecttur', 'options' => array( 'Türkçe Dublaj', 'Türkçe Altyazılı', 'Yerli Yapım', 'Fragman/Yakında' ), 'options2' => array( 'td', 'ta', 'yy', 'yk' ) ), $cozu => array( 'name' => $cozu, 'title' => __( 'Kalite:', 'ayesoft' ), 'type' => 'selecttur', 'options' => array( '240p', '360p', '480p', '720p [HD]', '1080p [FULL HD]' ), 'options2' => array( '240', '360', '480', '720', '1080' ) ) );
  634. return apply_filters( 'kutular', $meta_boxes );
  635. }
  636.  
  637. function kutu_getir() {
  638. global $post;
  639.  
  640. kutular( );
  641. $meta_boxes = ;
  642. echo ' <table class="form-table">
  643. ';
  644. foreach ($meta_boxes as ) {
  645. [0];
  646. $meta = ;
  647. get_post_meta( $post->ID, $meta['name'], true );
  648. $value = ;
  649.  
  650. if ($meta['type'] == 'text') {
  651. kutu_input( $meta, $value );
  652. continue;
  653. }
  654.  
  655.  
  656. if ($meta['type'] == 'textarea') {
  657. kutu_textarea( $meta, $value );
  658. continue;
  659. }
  660.  
  661.  
  662. if ($meta['type'] == 'selecttur') {
  663. kutu_selecttur( $meta, $value );
  664. continue;
  665. }
  666. }
  667.  
  668. echo ' </table>
  669. ';
  670. }
  671.  
  672. function kutu_input($args = array( ), $value = false) {
  673. extract( $args );
  674. echo ' <tr>
  675. <th style="width:20%;">
  676. <label for="';
  677. echo $name;
  678. echo '">';
  679. echo $title;
  680. echo '</label><br />
  681. <img id="fors-logo-img" src="';
  682. echo wp_specialchars( $value, 1 );
  683. echo '" width="80">
  684. </th>
  685. <td>
  686. <input type="text" class="fors-upload" name="';
  687. echo $name;
  688. echo '" id="';
  689. echo $name;
  690. echo '" value="';
  691. echo wp_specialchars( $value, 1 );
  692. echo '" size="30" tabindex="30" style="width: 400px;margin-top:-3px;" />
  693. <input id="fors-upload-button" type="button" class="button" value="Resim Yükle" />
  694. <input type="hidden" name="';
  695. echo $name;
  696. echo '_noncename" id="';
  697. echo $name;
  698. echo '_noncename" value="';
  699. echo wp_create_nonce( plugin_basename( __FILE__ ) );
  700. echo '" />
  701. <br />
  702. <p class="description">';
  703. echo $desc;
  704. echo '</p>
  705. </td>
  706. </tr>
  707. ';
  708. }
  709.  
  710. function kutu_selecttur($args = array( ), $value = false) {
  711. extract( $args );
  712. echo ' <tr>
  713. <th style="width:20%;">
  714. <label for="';
  715. echo $name;
  716. echo '">';
  717. echo $title;
  718. echo '</label>
  719. </th>
  720. <td>
  721. ';
  722. echo '<s';
  723. echo 'elect style="width:372px;" name="';
  724. echo $name;
  725. echo '" id="';
  726. echo $name;
  727. echo '">
  728. ';
  729. $i = 11;
  730. foreach ($options as ) {
  731. [0];
  732. $option = ;
  733. echo ' <option ';
  734.  
  735. if (htmlentities( $value, ENT_QUOTES ) == $options2[$i]) {
  736. echo ' selected="selected"';
  737. }
  738.  
  739. echo ' value="';
  740. echo $options2[$i];
  741. echo '">
  742. ';
  743. echo $option;
  744. echo ' </option>
  745. ';
  746. ++$i;
  747. }
  748.  
  749. echo ' </select>
  750. <input type="hidden" name="';
  751. echo $name;
  752. echo '_noncename" id="';
  753. echo $name;
  754. echo '_noncename" value="';
  755. echo wp_create_nonce( plugin_basename( __FILE__ ) );
  756. echo '" />
  757. </td>
  758. </tr>
  759. ';
  760. }
  761.  
  762. function kutu_textarea($args = array( ), $value = false) {
  763. extract( $args );
  764. echo ' <tr>
  765. <th style="width:20%;">
  766. <label for="';
  767. echo $name;
  768. echo '">';
  769. echo $title;
  770. echo '</label>
  771. </th>
  772. <td>
  773. <textarea name="';
  774. echo $name;
  775. echo '" id="';
  776. echo $name;
  777. echo '" cols="60" rows="4" tabindex="30" style="width: 97%;margin-top:-3px;">';
  778. echo wp_specialchars( $value, 1 );
  779. echo '</textarea>
  780. <input type="hidden" name="';
  781. echo $name;
  782. echo '_noncename" id="';
  783. echo $name;
  784. echo '_noncename" value="';
  785. echo wp_create_nonce( plugin_basename( __FILE__ ) );
  786. echo '" />
  787. <p class="description">';
  788. echo $desc;
  789. echo '</p>
  790. </td>
  791. </tr>
  792. ';
  793. }
  794.  
  795. function secenekkaydet($post_id) {
  796. global $post;
  797.  
  798. array_merge( kutular( ) );
  799. $meta_boxes = ;
  800. foreach ($meta_boxes as ) {
  801. [0];
  802. $meta_box = ;
  803.  
  804. if (!wp_verify_nonce( $_POST[$meta_box['name'] . '_noncename'], plugin_basename( __FILE__ ) )) {
  805. return $post_id;
  806. }
  807.  
  808.  
  809. if (( 'post' == $_POST['post_type'] && !current_user_can( 'edit_post', $post_id ) )) {
  810. return $post_id;
  811. }
  812.  
  813. stripslashes( $_POST[$meta_box['name']] );
  814. $data = ;
  815.  
  816. if (get_post_meta( $post_id, $meta_box['name'] ) == '') {
  817. add_post_meta( $post_id, $meta_box['name'], $data, true );
  818. continue;
  819. }
  820.  
  821.  
  822. if ($data != get_post_meta( $post_id, $meta_box['name'], true )) {
  823. update_post_meta( $post_id, $meta_box['name'], $data );
  824. continue;
  825. }
  826.  
  827.  
  828. if ($data == '') {
  829. delete_post_meta( $post_id, $meta_box['name'], get_post_meta( $post_id, $meta_box['name'], true ) );
  830. continue;
  831. }
  832. }
  833.  
  834. }
  835.  
  836.  
  837. if (file_exists( TEMPLATEPATH . '/lisans.php' )) {
  838. include_once( 'lisans.php' );
  839. }
  840.  
  841.  
  842. if (( $key && $key != 'AYESOFT-freelicanse' )) {
  843. str_replace( 'www.', '', $_SERVER['HTTP_HOST'] );
  844. $domain = ;
  845. sha1( $domain . 'Kırılmayan0313Lisans0515Sistemi0717İstiyoruz0919' . dechex( ord( $domain[3] ) ) );
  846. $domain = ;
  847. $domain = 'AYESOFT-' . md5( $domain ) . $keycont;
  848.  
  849. if ($key == $domain) {
  850. $kontrol = 12;
  851. }
  852. }
  853.  
  854.  
  855. if ($kontrol != 2) {
  856. $y_url = 'http://www.fullfilmdiziizle.net/';
  857. @file_get_contents( @dirname( __FILE__ ) . '/footer.php' );
  858. $output = ;
  859.  
  860. if (!is_admin( )) {
  861. $check = '<a href="http://www.fullfilmdiziizle.net" title="film izle">film izle</a>';
  862.  
  863. if (!strpos( $output, $check )) {
  864. exit( '<script>window.location="' . $y_url . '";</script>' );
  865. }
  866.  
  867. strrev( substr( $output, 0, strpos( $output, $check ) ) );
  868. $tmp = ;
  869. strpos( $tmp, '--!<' );
  870. $pos1 = ;
  871. strpos( $tmp, '>--' );
  872. $pos2 = ;
  873.  
  874. if (( $pos1 < $pos2 || ( $pos1 && !$pos2 ) )) {
  875. exit( '<script>window.location="' . $y_url . '";</script>' );
  876. }
  877.  
  878.  
  879. if (( preg_match( '/\/\*/', $tmp ) || preg_match( '/\*\//', $tmp ) )) {
  880. exit( '<script>window.location="' . $y_url . '";</script>' );
  881. }
  882. }
  883. }
  884.  
  885.  
  886. if (file_exists( TEMPLATEPATH . '/adminpaneli.php' )) {
  887. include_once( 'adminpaneli.php' );
  888. }
  889.  
  890. get_option( 'tur' );
  891. $turu = ;
  892. get_option( 'coz' );
  893. $cozu = ;
  894. get_option( 'resim' );
  895. $res = ;
  896. get_option( 'lazy' );
  897. $lazy = ;
  898. get_option( 'aciklama' );
  899. $ackk = ;
  900. $arkarenk = get_option( 'arkaplan' ) . get_option( 'arkaplansaydam' );
  901. $arkarenk2 = 'siyah80';
  902. $renk = get_option( '2renk' ) . get_option( '2renksaydam' );
  903. $sonradanrenk = 'sonradan' . get_option( '2renk' ) . get_option( '2renksaydam' );
  904. get_option( 'anasayfa' );
  905. $stil = ;
  906. get_option( 'gosterim' );
  907. $gosterim = ;
  908. $begenilengetir = 'post_type=post&r_sortby=highest_rated&r_orderby=desc';
  909. $izlenengetir = 'post_type=post&v_sortby=views&v_orderby=desc';
  910. $yorumlanangetir = 'post_type=post&orderby=comment_count&v_orderby=desc';
  911. $p240 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=240';
  912. $p360 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=360';
  913. $p480 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=480';
  914. $p720 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=720';
  915. $p1080 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=1080';
  916. $turkcedublaj = 'meta_key=' . $turu . '&orderby=date&order=DESC&meta_value=td';
  917. $turkcealtyazi = 'meta_key=' . $turu . '&orderby=date&order=DESC&meta_value=ta';
  918. $yerliyapim = 'meta_key=' . $turu . '&orderby=date&order=DESC&meta_value=yy';
  919. $fragman = 'meta_key=' . $turu . '&orderby=date&order=DESC&meta_value=yk';
  920. get_option( 'dublajgoster' );
  921. $dublajgoster = ;
  922. get_option( 'manset' );
  923. $manset = ;
  924. get_option( 'otomatikboyut' );
  925. $otomatik = ;
  926. get_option( 'mansettur' );
  927. $mansettur = ;
  928. get_option( 'mansetkategori' );
  929. $mansetkategori = ;
  930.  
  931. if ($mansettur == 1) {
  932. $mansetgetir = $begenilengetir . '&showposts=21';
  933. }
  934. else {
  935. if ($mansettur == 2) {
  936. $mansetgetir = $izlenengetir . '&showposts=21';
  937. }
  938. else {
  939. if ($mansettur == 3) {
  940. $mansetgetir = $yorumlanangetir . '&showposts=21';
  941. }
  942. else {
  943. if ($mansettur == 4) {
  944. $mansetgetir = 'post_type=post&showposts=21';
  945. }
  946. else {
  947. if ($mansettur == 5) {
  948. $mansetgetir = 'post_type=post&cat=' . $mansetkategori . '&showposts=21';
  949. }
  950. else {
  951. if ($mansettur == 6) {
  952. $mansetgetir = 'post_type=post&showposts=21&orderby=rand';
  953. }
  954. else {
  955. if ($mansettur == 7) {
  956. $mansetgetir = 'post_type=post&cat=' . $mansetkategori . '&showposts=21&orderby=rand';
  957. }
  958. }
  959. }
  960. }
  961. }
  962. }
  963. }
  964.  
  965.  
  966. if ($stil == 1) {
  967. $genislik = 220;
  968. $yukseklik = 330;
  969. }
  970. else {
  971. if ($stil == 2) {
  972. $genislik = 170;
  973. $yukseklik = 260;
  974. }
  975. else {
  976. if ($stil == 3) {
  977. $genislik = 170;
  978. $yukseklik = 130;
  979. }
  980. }
  981. }
  982.  
  983. add_action( 'init', 'add_custom_taxonomies', 0 );
  984. add_filter( 'wp_nav_menu_objects', 'menurenk' );
  985.  
  986. if (isset( $_GET['rastgele'] )) {
  987. add_action( 'template_redirect', 'yazi_yonlendir' );
  988. }
  989.  
  990. add_theme_support( 'nav-menus' );
  991. register_nav_menus( array( 'primary' => __( 'Ust Menu', 'twentyten' ) ) );
  992. add_filter( 'the_content', 'ballon_setcontent' );
  993.  
  994. if (function_exists( 'register_sidebar' )) {
  995. register_sidebar( array( 'name' => 'Sidebar 1', 'before_widget' => '<div class="sidebar oval3 ' . $arkarenk . '">', 'after_widget' => '</div>', 'before_title' => '<div class="labels ' . $renk . ' oval3" style="padding-top:10px;">', 'after_title' => '</div>' ) );
  996. }
  997.  
  998. add_action( 'admin_menu', 'filmsecenekleri' );
  999. add_action( 'save_post', 'secenekkaydet' );
  1000. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement