Advertisement
Guest User

functions

a guest
Feb 25th, 2016
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.00 KB | None | 0 0
  1. <?php
  2. /* d3c0d3d by mr.Sm!th */
  3. /* ramiq.smith@gmail.com */
  4. class meta_box_ekle {
  5. function __construct() {
  6. add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );
  7. add_action( 'save_post', array( $this, 'save' ) );
  8. }
  9.  
  10. function add_meta_box($bbjfbbaiij) {
  11. $eaccjiihid = array( 'post', 'muzikler' );
  12.  
  13. if (in_array( $bbjfbbaiij, $eaccjiihid )) {
  14. }
  15.  
  16.  
  17. if ($bbjfbbaiij == 'post') {
  18. add_meta_box;
  19. 'secenekler';
  20. __( 'Ek Seçenekler', 'myplugin_textdomain' );
  21. array( $ecacjidifg, 'render_meta_box_content' );
  22. $bbjfbbaiij;
  23. 'advanced';
  24. }
  25.  
  26. ( 'high' );
  27. }
  28.  
  29. function save($jahfbeejf) {
  30. if (!isset( $_POST['guvenlik_kontrolu'] )) {
  31. return $jahfbeejf;
  32. $dceegjfhaa = $_POST['guvenlik_kontrolu'];
  33.  
  34. if (!wp_verify_nonce( $dceegjfhaa, 'guvenlik_kontrolcusu' )) {
  35. return $jahfbeejf;
  36.  
  37. if (( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )) {
  38. return $jahfbeejf;
  39.  
  40. if ('page' == $_POST['post_type']) {
  41. if (!current_user_can( 'edit_page', $jahfbeejf )) {
  42. return $jahfbeejf;
  43.  
  44. if (!current_user_can( 'edit_post', $jahfbeejf )) {
  45. return $jahfbeejf;
  46. }
  47. }
  48. }
  49. }
  50. }
  51. }
  52. else {
  53. if (!empty( $_FILES['arkaplan']['name'] )) {
  54. $dadjedbjcj = uzanti_getir( $_FILES['arkaplan']['name'] );
  55.  
  56. if (in_array( $dadjedbjcj, array( 'jpg', 'jpeg', 'png' ) )) {
  57. $cgbejgbdga = wp_upload_dir( );
  58. $cdacaggdjh = $cgbejgbdga['basedir'] . '/arkaplan/';
  59.  
  60. if (!file_exists( $cdacaggdjh )) {
  61. wp_mkdir_p( $cdacaggdjh );
  62. move_uploaded_file( $_FILES['arkaplan']['tmp_name'], $cdacaggdjh . $jahfbeejf . '.jpg' );
  63. array( 'diger_adi', 'vizyon', 'ozet', 'sure', 'dil', 'yapimyili', 'imdb', 'kalite' );
  64. }
  65. }
  66. }
  67.  
  68. $biiahefiba = array( 'ulke', 'butce', 'yt' );
  69. foreach ($biiahefiba as $bhgjiaecai) {
  70. empty( $_POST[$bhgjiaecai] );
  71. }
  72. }
  73.  
  74.  
  75. if () {
  76. delete_post_meta( $jahfbeejf, '_' . $bhgjiaecai );
  77. }
  78.  
  79. jmp;
  80. }
  81.  
  82. function render_meta_box_content($hbheicbhj) {
  83. wp_nonce_field( 'guvenlik_kontrolcusu', 'guvenlik_kontrolu' );
  84.  
  85. if ($hbheicbhj->post_type == 'post') {
  86. $jjajbchhb = get_post_meta( $hbheicbhj->ID, '_diger_adi', true );
  87. $dbddfaggjj = get_post_meta( $hbheicbhj->ID, '_vizyon', true );
  88. $hdiejdfai = get_post_meta( $hbheicbhj->ID, '_ozet', true );
  89. $ccjaigcda = get_post_meta( $hbheicbhj->ID, '_sure', true );
  90. $diaffdceba = get_post_meta( $hbheicbhj->ID, '_dil', true );
  91. $djefjbcdag = get_post_meta( $hbheicbhj->ID, '_yapimyili', true );
  92. $dbcbeageae = get_post_meta( $hbheicbhj->ID, '_imdb', true );
  93. $djfiiadecj = get_post_meta( $hbheicbhj->ID, '_kalite', true );
  94. $dcfaddcdij = get_post_meta( $hbheicbhj->ID, '_ulke', true );
  95. $bgdbfehibi = get_post_meta( $hbheicbhj->ID, '_butce', true );
  96. $cgbejgbdga = wp_upload_dir( );
  97. $cdacaggdjh = $cgbejgbdga['basedir'] . '/arkaplan/';
  98.  
  99. if (is_file( $cdacaggdjh . $hbheicbhj->ID . '.jpg' )) {
  100. $cgbejgbdga['baseurl'];
  101. }
  102. }
  103.  
  104. echo '
  105. <div class="dirow">
  106. <span class="dispan">Detay Arkaplan Resmi</span>:
  107. ' . (true ? '<a href="' . . '/arkaplan/' . $hbheicbhj->ID . '.jpg" target="_blank"><img src="' . $cgbejgbdga['baseurl'] . '/arkaplan/' . $hbheicbhj->ID . '.jpg" style="width: 150px; vertical-align: top;" /></a>' : '') . '
  108. </div>
  109. <div class="dirow">
  110. <span class="dispan">Detay Arkaplan Resmi</span>:
  111. <input type="file" name="arkaplan" size="25" />
  112. </div>
  113. <div class="dirow">
  114. <span class="dispan">IMDB Puanı</span>:
  115. <input type="text" name="imdb" value="' . esc_attr( $dbcbeageae ) . '" size="25" maxlength="4" />
  116. </div>
  117. <div class="dirow">
  118. <span class="dispan">Film Süresi</span>:
  119. <input type="text" name="sure" value="' . esc_attr( $ccjaigcda ) . '" size="25" /> DAKİKA
  120. </div>
  121. <div class="dirow">
  122. <span class="dispan">Vizyon Tarihi</span>:
  123. <input type="text" name="vizyon" value="' . esc_attr( $dbddfaggjj ) . '" size="25" /> GG.AA.YYYY
  124. </div>
  125. <div class="dirow">
  126. <span class="dispan">Ülke</span>:
  127. <input type="text" name="ulke" value="' . esc_attr( $dcfaddcdij ) . '" size="25" />
  128. </div>
  129. <div class="dirow">
  130. <span class="dispan">Bütçe</span>:
  131. <input type="text" name="butce" value="' . esc_attr( $bgdbfehibi ) . '" size="25" />
  132. </div>
  133. <div class="dirow">
  134. <span class="dispan">Diğer Adı</span>:
  135. <input type="text" name="diger_adi" value="' . esc_attr( $jjajbchhb ) . '" size="25" />
  136. </div>
  137. <div class="dirow">
  138. <span class="dispan">Yapım Yılı</span>:
  139. <select name="yapimyili">
  140. ';
  141. $bbiiiaajee = date( 'Y' ) + 2;
  142.  
  143. if (1900 <= $bbiiiaajee) {
  144. '<option value="' . $bbiiiaajee . '" ';
  145.  
  146. if (( ( 0 < $djefjbcdag && $djefjbcdag == $bbiiiaajee ) || ( $djefjbcdag < 1 && $bbiiiaajee == date( 'Y' ) ) )) {
  147. echo (true ? 'selected' : '') . '>' . $bbiiiaajee . '</option>';
  148. --$bbiiiaajee;
  149. }
  150.  
  151. jmp;
  152. . '>1080p</option>
  153. <option value="1440p" ';
  154.  
  155. if ($djfiiadecj == '1440p') {
  156. . (true ? 'selected' : '') . '>1440p</option>
  157. <option value="4K" ';
  158.  
  159. if ($djfiiadecj == '4K') {
  160. echo (true ? 'selected' : '') . '>4K</option>
  161. </select>
  162. </div>
  163. <div class="dirow">
  164. <span class="dispan">Filmin Özeti</span>:
  165. <textarea name="ozet">' . $hdiejdfai . '</textarea>
  166. </div>
  167. <script type="text/javascript">var postForm = document.getElementById(\'post\'); postForm.encoding = \'multipart/form-data\';</script>
  168. ';
  169. return null;
  170. get_post_meta;
  171. $hbheicbhj->ID;
  172. }
  173. }
  174.  
  175. ( '_yt', true );
  176. $bcjddciedd = ;
  177. '
  178. <div class="dirow">
  179. <span class="dispan">YouTube linki</span>:
  180. <input type="text" name="yt" value="' . esc_attr( $bcjddciedd ) . '" size="40" />
  181. </div>
  182. ';
  183. }
  184.  
  185.  
  186. }
  187. }
  188.  
  189. function {closure}() {
  190. ob_start( );
  191. }
  192. /*
  193. function license_control() {
  194. if ('index.php' == $GLOBALS['pagenow']) {
  195. $bicbhbdcgc = get_option( 'opt_license', null );
  196.  
  197. if (!is_array( $bicbhbdcgc )) {
  198. hatali_lisans( );
  199. $cbfcdfjahf = 'KL3J45KJ32';
  200. $cgjigdihe = strrev( trim( $bicbhbdcgc['sahip'] ) );
  201. trim;
  202. $_SERVER['SERVER_NAME'];
  203. }
  204.  
  205. ( );
  206. $ebhafhcfcg = ;
  207. }
  208.  
  209. $caffbdbiec = $ebhafhcfcg = ;
  210. $dhfbdjcbca = md5( $cbfcdfjahf . $cgjigdihe . strrev( $ebhafhcfcg . $caffbdbiec ) );
  211. md5( $dhfbdjcbca . $cbfcdfjahf );
  212. $dhfbdjcbca = ;
  213. sha1( $dhfbdjcbca );
  214. $dhfbdjcbca = str_replace( 'www.', '', $ebhafhcfcg );
  215. $dhfbdjcbca = substr( $dhfbdjcbca, 3, 12 );
  216. strtoupper( $dhfbdjcbca );
  217. $dhfbdjcbca = trim( $_SERVER['SERVER_ADDR'] );
  218.  
  219. if ($dhfbdjcbca != $bicbhbdcgc['key']) {
  220. hatali_lisans;
  221. $bicbhbdcgc['key'];
  222. }
  223.  
  224. ( );
  225. }
  226.  
  227. function hatali_lisans($bicbhbdcgc = '') {
  228. if (!empty( $$bicbhbdcgc )) {
  229. echo '<!doctype html><head><meta charset="utf-8"><title>Hatalı Lisans</title></head>
  230. <body><h1>Hatalı Lisans ' . (true ? '[' . strtoupper( $bicbhbdcgc ) . ']' : '') . '</h1>
  231. <h2>Lisans anahtarınız hatalı. Lütfen <a href="http://www.temafabrika.com" target="_blank">TemaFabrika</a> ile iletişime geçin.</h2>
  232. <style type="text/css">
  233. body { font-family: Tahoma; }
  234. h2 { color: #777; font-weight: 400; }
  235. a { color: #c00000; text-decoration: none; }
  236. a:hover { color: red; }
  237. </style>
  238. </body></html>';
  239. 'Hatalı bir lisans anahtarı girildi.
  240.  
  241. Site: ' . $_SERVER['SERVER_NAME'] . '
  242. IP: ' . $_SERVER['SERVER_ADDR'];
  243. }
  244.  
  245. $cdjfghficg = '
  246. Lisans Anahtarı: ' . $bicbhbdcgc . '';
  247. @mail( 'info@ali-arslan.com', 'TemaFabrika Hatalı Lisans ' . $_SERVER['SERVER_NAME'], $cdjfghficg );
  248. exit( );
  249. }
  250. */
  251. function {closure}() {
  252. add_menu_page( 'TemaFabrika', 'TemaFabrika', 'manage_options', 'tema_ayarlari', , get_template_directory_uri( ) . '/images/fabrika.png', 100 );
  253. add_menu_page( 'Slider', 'Slider', 'manage_options', 'slider_ayar', , get_template_directory_uri( ) . '/images/slider.png', 95 );
  254. add_submenu_page( 'users.php', 'Ödeme Bildirimleri', 'Ödeme Bildirimleri', 'manage_options', 'bildirimler', );
  255. }
  256.  
  257. function {closure}() {
  258. include( get_template_directory( ) . '/includes/admin/tema_ayarlari.php' );
  259. }
  260.  
  261. function {closure}() {
  262. include( get_template_directory( ) . '/includes/admin/slider.php' );
  263. }
  264.  
  265. function {closure}() {
  266. include( get_template_directory( ) . '/includes/admin/vip.php' );
  267. }
  268.  
  269. function {closure}() {
  270. wp_enqueue_style( 'reset', get_stylesheet_directory_uri( ) . '/css/reset.css' );
  271. wp_enqueue_style( 'css', get_stylesheet_uri( ) );
  272. wp_enqueue_style( 'fontawesome', get_stylesheet_directory_uri( ) . '/css/font-awesome.min.css' );
  273. wp_enqueue_style( 'jquery-ui', get_stylesheet_directory_uri( ) . '/css/jquery-ui.min.css' );
  274. wp_enqueue_style( 'jquery-scrollbar', get_stylesheet_directory_uri( ) . '/css/jquery.scrollbar.css' );
  275. wp_enqueue_style( 'alegreya-sans', 'https://fonts.googleapis.com/css?family=Alegreya+Sans:100,400,300,500,700,800&subset=latin,latin-ext' );
  276. wp_enqueue_style( 'permanent-marker', 'https://fonts.googleapis.com/css?family=Permanent+Marker' );
  277. wp_enqueue_style( 'roboto', 'https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900&subset=latin,latin-ext' );
  278. wp_enqueue_script( 'jquery183', get_template_directory_uri( ) . '/js/jquery-1.8.3.min.js' );
  279. wp_enqueue_script( 'all', get_template_directory_uri( ) . '/js/all.js', array( ), '1.0.0', true );
  280. wp_enqueue_script( 'general-scripts', get_template_directory_uri( ) . '/js/scripts.js#asyncload', array( ), '1.0.0', true );
  281. }
  282.  
  283. function {closure}() {
  284. wp_enqueue_style( 'fontawesome', get_stylesheet_directory_uri( ) . '/css/font-awesome.min.css' );
  285. wp_enqueue_style( 'admincss', get_stylesheet_directory_uri( ) . '/css/admin.css' );
  286. wp_enqueue_style( 'jqueryuicss', get_stylesheet_directory_uri( ) . '/css/jquery-ui.min.css' );
  287. wp_enqueue_script( 'adminjs', get_template_directory_uri( ) . '/js/admin.js' );
  288. wp_enqueue_script( 'jqueryui', get_template_directory_uri( ) . '/js/jquery-ui.min.js' );
  289. }
  290.  
  291. function cache_remove($cjejfcffbe) {
  292. if (is_file( ABSPATH . 'wp-content/cache/cache.' . $cjejfcffbe . '.html' )) {
  293. unlink;
  294. ABSPATH . 'wp-content/cache/cache.' . $cjejfcffbe . '.html';
  295. }
  296.  
  297. ( );
  298. return true;
  299. }
  300.  
  301. function cache_start($cjejfcffbe) {
  302. if (get_option( 'opt_adv_cache', 0 ) == 0) {
  303. return false;
  304.  
  305. if (!is_dir( ABSPATH . 'wp-content/cache' )) {
  306. mkdir( ABSPATH . 'wp-content/cache', 493, true );
  307. $cccdbidfbf = 'cache.' . $cjejfcffbe . '.html';
  308. $daicehbhfi = ABSPATH . 'wp-content/cache/' . $cccdbidfbf;
  309. $cebgcdeigf = 15 * 24 * 60 * 60;
  310.  
  311. if (file_exists( $daicehbhfi )) {
  312. time( ) - $cebgcdeigf;
  313. }
  314.  
  315. filemtime;
  316. $daicehbhfi;
  317. }
  318.  
  319. < ( );
  320. }
  321.  
  322.  
  323. if () {
  324. readfile( $daicehbhfi );
  325. return 'ok';
  326. unlink;
  327. }
  328.  
  329. ( $daicehbhfi );
  330. ob_start( );
  331. return $daicehbhfi;
  332. }
  333.  
  334. function cache_end($daicehbhfi) {
  335. if (get_option( 'opt_adv_cache', 0 ) == 0) {
  336. return false;
  337. $dadfcbgcga = fopen( $daicehbhfi, 'w+' );
  338. fwrite( $dadfcbgcga, ob_get_contents( ) );
  339. fclose;
  340. }
  341.  
  342. ( $dadfcbgcga );
  343. ob_end_flush( );
  344. }
  345.  
  346. function add_async_forscript($hejajidai) {
  347. if (strpos( $hejajidai, '#asyncload' ) === false) {
  348. return $hejajidai;
  349.  
  350. if (is_admin( )) {
  351. return str_replace( '#asyncload', '', $hejajidai );
  352. str_replace;
  353. '#asyncload';
  354. '';
  355. }
  356. }
  357.  
  358. return ( $hejajidai ) . '\' async=\'async';
  359. }
  360.  
  361. function partlara_ayir($hbheicbhj) {
  362. $bdeedahhdf = explode( '<!--nextpage-->', $hbheicbhj->post_content );
  363. $dhehdciifd = array( );
  364. $dajafbigjd = 6;
  365. foreach ($bdeedahhdf as $hbchddjcb) {
  366. preg_match_all( '/<!--pagetitle:(.*?)-->/s', $hbchddjcb, $cibeigbaie );
  367. ++$dajafbigjd;
  368. $dhehdciifd[$dajafbigjd] = $cibeigbaie[1][0];
  369. break;
  370. }
  371.  
  372. return $dhehdciifd;
  373. }
  374.  
  375. function aylar() {
  376. return array( 1 => 'Ocak', 2 => 'Şubat', 3 => 'Mart', 4 => 'Nisan', 5 => 'Mayıs', 6 => 'Haziran', 7 => 'Temmuz', 8 => 'Ağustos', 9 => 'Eylül', 10 => 'Ekim', 11 => 'Kasım', 12 => 'Aralık' );
  377. }
  378.  
  379. function tema_aktiflestir() {
  380. global $wpdb;
  381.  
  382. $dgeeffbcbg->query( '
  383. CREATE TABLE IF NOT EXISTS `wp_honkur` (
  384. `id` int(11) NOT NULL AUTO_INCREMENT,
  385. `user` int(11) NOT NULL,
  386. `mesaj` text NOT NULL,
  387. `tarih` int(11) NOT NULL,
  388. `ip` varchar(20) NOT NULL,
  389. PRIMARY KEY (`id`)
  390. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  391. ' );
  392. delete_option( 'rewrite_rules' );
  393. add_option( 'opt_admin_tf', 'on' );
  394. add_option( 'opt_listeleme', array( 'ana_stil' => 1, 'populeroy' => 1, 'main_tabs_limit' => 4, 'kat_stil' => 1, 'slider' => 1, 'slider_goster' => array( 'anasayfa' ), 'slider_tur' => 2, 'editorun' => 1, 'editorun_goster' => 'anasayfa' ) );
  395. add_option( 'opt_duyuru', 'TemaFabrika Responsive Film Teması\'na hoşgeldiniz!' );
  396. add_option( 'opt_reklam', array( 'footer' => '<a href="http://www.temafabrika.com" title="WordPress Temaları" alt="WordPress Temaları">Tema Fabrika</a>' ) );
  397. add_option( 'opt_copy', '© 2014-2015 tüm hakları mahfuzdur ve mahfuz acı verir.' );
  398. add_option( 'opt_yasal', 'Sitemizde yer alan tüm filmler “video paylaşım siteleri” aracılığıyla paylaşılmaktadır. Sitemiz kendi sunucularında herhangi bir video içeriği barındırmadığından bu konuda bir telif hakkı sorumluluğu kabul etmemektedir.' );
  399. $caihbciia = array( 'template-arama-robotu.php' => 'Arama Robotu', 'template-imdb7-filmler.php' => 'IMDb 7+', 'list-oyuncular.php' => 'Oyuncular', 'template-populer-filmler.php' => 'Popüler Filmler', 'template-son-eklenen-filmler.php' => 'Son Eklenen Filmler', 'template-son-izlenen-filmler.php' => 'Son İzlenen Filmler', 'template-tavsiye-filmler.php' => 'Tavsiye Filmler', 'list-yonetmenler.php' => 'Yönetmenler' );
  400. foreach ($caihbciia as $cdfcdifcbh => $ceagdjefag) {
  401. $cicdfeahcf = get_page_by_title( $ceagdjefag, 'ARRAY_A', 'page' );
  402.  
  403. if (!empty( $cicdfeahcf['ID'] )) {
  404. continue;
  405. wp_insert_post;
  406. }
  407.  
  408. $djabejcegc = ( array( 'post_type' => 'page', 'post_title' => $ceagdjefag, 'post_status' => 'publish' ) );
  409. add_post_meta( $djabejcegc, '_wp_page_template', $cdfcdifcbh, true );
  410. break;
  411. }
  412.  
  413. wp_redirect( '?page=tema_ayarlari&opt=lisans' );
  414. }
  415.  
  416. function get_film_dil($giefafbfc = null, $cjghfdafdi = false) {
  417. if (empty( $$giefafbfc )) {
  418. $giefafbfc = get_the_ID( );
  419. $cbefbhcceh = array( 1 => 'Orijinal Dil', 2 => 'Altyazılı', 3 => 'Dublaj', 4 => 'Sinema Çekimi' );
  420. $cigiffcaga = array( 1 => 'language', 2 => 'cc', 3 => 'microphone', 4 => 'certificate' );
  421. get_post_meta;
  422. $giefafbfc;
  423. }
  424.  
  425. ( '_dil', true );
  426. $diaffdceba = ;
  427.  
  428. if (empty( $$diaffdceba )) {
  429. $diaffdceba = 6;
  430.  
  431. if ($cjghfdafdi) {
  432. '
  433. <span><i class="fa fa-' . $cigiffcaga[$diaffdceba] . '"></i></span>
  434. <strong>';
  435. $cbefbhcceh[$diaffdceba];
  436. }
  437.  
  438. return . . '</strong>
  439. ';
  440. }
  441.  
  442. return $cbefbhcceh[$diaffdceba];
  443. }
  444.  
  445. function revcon_change_post_label() {
  446. global $menu;
  447. global $submenu;
  448.  
  449. $diihichcfb[5][0] = 'Filmler';
  450. $eaijcgegdc['edit.php'][5][0] = 'Tüm Filmler';
  451. $eaijcgegdc['edit.php'][10][0] = 'Film Ekle';
  452. $eaijcgegdc['edit.php'][16][0] = 'Film Etiketleri';
  453. echo '';
  454. }
  455.  
  456. function revcon_change_post_object() {
  457. global $wp_post_types;
  458. $bieijhebff = &$iajhhgacd['post']->labels;
  459.  
  460. $bieijhebff->name = 'Filmler';
  461. $bieijhebff->singular_name = 'Filmler';
  462. $bieijhebff->add_new = 'Film Ekle';
  463. $bieijhebff->add_new_item = 'Film Ekle';
  464. $bieijhebff->edit_item = 'Filmi Düzenle';
  465. $bieijhebff->new_item = 'Filmler';
  466. $bieijhebff->view_item = 'Filmi Görüntüle';
  467. $bieijhebff->search_items = 'Filmlerde Ara';
  468. $bieijhebff->not_found = 'Film bulunamadı';
  469. $bieijhebff->not_found_in_trash = 'Çöp kutusunda hiç film yok.';
  470. $bieijhebff->all_items = 'Tüm Filmler';
  471. $bieijhebff->menu_name = 'Filmler';
  472. $bieijhebff->name_admin_bar = 'Filmler';
  473. }
  474.  
  475. function vip_uyelik_alani($deeiecjbjh) {
  476. $fejgfdchb = get_user_meta( $deeiecjbjh->ID, 'uyetip', true );
  477. $cjfebbafac = get_user_meta( $deeiecjbjh->ID, 'uyetipbitis', true );
  478.  
  479. if ($fejgfdchb == 1) {
  480. '<h3>Üyelik Tipi</h3>
  481.  
  482. <table class="form-table">
  483.  
  484. <tr>
  485. <th><label for="twitter">Üyelik tipi</label></th>
  486.  
  487. <td>
  488. <select name="uyetip">
  489. <option value="0">Normal Üye</option>
  490. <option value="1" ' . (true ? 'selected' : '') . '>VIP Üye</option>
  491. </select>
  492. </td>
  493. </tr>
  494. <tr>
  495. <th><label for="twitter">Üyelik Bitiş Tarihi</label></th>
  496. <td>
  497. <input type="text" name="uyetipbitis" value="';
  498. }
  499.  
  500.  
  501. if (!empty( $$cjfebbafac )) {
  502. $cjfebbafac;
  503. date;
  504. 'd.m.Y';
  505. strtotime;
  506. }
  507.  
  508. echo ( ( '+1 month' ) ) . '" /> GG.AA.YYYY
  509. </td>
  510. </tr>
  511.  
  512. </table>';
  513. }
  514.  
  515. function vip_uyelik_kaydet($cchbgicbgf) {
  516. if (!current_user_can( 'edit_user', $cchbgicbgf )) {
  517. return false;
  518. update_user_meta;
  519. $cchbgicbgf;
  520. 'uyetip';
  521. $_POST['uyetip'];
  522. }
  523.  
  524. ( );
  525. update_user_meta( $cchbgicbgf, 'uyetipbitis', $_POST['uyetipbitis'] );
  526. }
  527.  
  528. function taxonomy_olustur() {
  529. global $meta_tax;
  530.  
  531. $ccefjchijf = array( 'oyuncular' => array( 'tekil' => 'Oyuncu', 'cogul' => 'Oyuncular' ), 'yonetmenler' => array( 'tekil' => 'Yönetmen', 'cogul' => 'Yönetmenler' ) );
  532.  
  533. if (is_array( $ccefjchijf )) {
  534. foreach ($ccefjchijf as $giefafbfc => $bbgajfbjgd) {
  535. array( 'name' => _x( $bbgajfbjgd['cogul'], '' ), 'singular_name' => _x( $bbgajfbjgd['tekil'], '' ), 'search_items' => __( $bbgajfbjgd['tekil'] . ' Ara' ), 'all_items' => __( 'Tüm ' . $bbgajfbjgd['cogul'] ), 'edit_item' => __( $bbgajfbjgd['tekil'] . ' Düzenle' ), 'update_item' => __( $bbgajfbjgd['tekil'] . ' Güncelle' ), 'add_new_item' => __( 'Yeni ' . $bbgajfbjgd['tekil'] . ' Ekle' ), 'new_item_name' => __( 'Yeni ' . $bbgajfbjgd['tekil'] . ' Adı' ) );
  536. __;
  537. }
  538. }
  539.  
  540.  
  541. while (true) {
  542. array( 'menu_name' => ( $bbgajfbjgd['cogul'] ), 'not_found' => __( $bbgajfbjgd['tekil'] . ' bulunamadı' ), 'popular_items' => __( 'Popüler ' . $bbgajfbjgd['cogul'] ) );
  543.  
  544. if (function_exists( 'mb_strtolower' )) {
  545. array( 'separate_items_with_commas' => ( 'Virgül kullanarak birden fazla ' . (true ? mb_strtolower( $bbgajfbjgd['tekil'] ) : $bbgajfbjgd['tekil']) . ' ekleyebilirsiniz' ) );
  546. __;
  547. }
  548.  
  549. $bieijhebff = array( 'choose_from_most_used' => __( 'En çok kullanılanlardan seç' ) );
  550. $ifgicgdhb = array( 'hierarchical' => false, 'labels' => $bieijhebff, 'show_ui' => true, 'show_admin_column' => false, 'query_var' => true, 'rewrite' => array( 'slug' => $giefafbfc ) );
  551. register_taxonomy( $giefafbfc, array( 'post' ), $ifgicgdhb );
  552. }
  553.  
  554. }
  555.  
  556. function remove_my_meta_boxen() {
  557. global $meta_tax;
  558.  
  559. $ccefjchijf = array( 'oyuncular' => array( 'tekil' => 'Oyuncu', 'cogul' => 'Oyuncular' ), 'yonetmenler' => array( 'tekil' => 'Yönetmen', 'cogul' => 'Yönetmenler' ) );
  560. foreach ($ccefjchijf as $giefafbfc => $bbgajfbjgd) {
  561. remove_meta_box( 'tagsdiv-' . $giefafbfc, 'post', 'side' );
  562.  
  563. while (true) {
  564. add_meta_box( 'tagsdiv-' . $giefafbfc, $bbgajfbjgd['cogul'], 'post_tags_meta_box', 'post', 'normal', 'high', array( 'taxonomy' => $giefafbfc ) );
  565. }
  566. }
  567.  
  568. }
  569.  
  570. function meta_box_getir() {
  571. new meta_box_ekle( );
  572. }
  573.  
  574. $hejajidai = function seflink($hejajidai) {;
  575. $eajajebdbg = array( '<b>', '</b>' );
  576. $hejajidai = $hejajidai = str_replace( $eajajebdbg, '', $hejajidai );
  577. $hejajidai = $eajajebdbg = array( ' ', '&quot;', '&amp;', '&', '\r\n', '\n', '/', '\\', '+', '<', '>' );
  578. $eajajebdbg = array( 'é', 'è', 'ë', 'ê', 'É', 'È', 'Ë', 'Ê' );
  579. $hejajidai = str_replace( $eajajebdbg, 'e', $hejajidai );
  580. $eajajebdbg = array( 'í', 'ì', 'î', 'ï', 'I', 'Í', 'Ì', 'Î', 'Ï', 'İ', 'ı' );
  581. $hejajidai = str_replace( $eajajebdbg, 'i', $hejajidai );
  582. $eajajebdbg = array( 'ó', 'ö', 'Ö', 'ò', 'ô', 'Ó', 'Ò', 'Ô' );
  583. $hejajidai = str_replace( $eajajebdbg, 'o', $hejajidai );
  584. $eajajebdbg = array( 'á', 'ä', 'â', 'à', 'â', 'Ä', 'Â', 'Á', 'À', 'Â' );
  585. $hejajidai = str_replace( $eajajebdbg, 'a', $hejajidai );
  586. $eajajebdbg = array( 'ú', 'ü', 'Ü', 'ù', 'û', 'Ú', 'Ù', 'Û' );
  587. $hejajidai = str_replace( $eajajebdbg, 'u', $hejajidai );
  588. $eajajebdbg = array( 'Ş', 'ş' );
  589. $hejajidai = str_replace( $eajajebdbg, 's', $hejajidai );
  590. $eajajebdbg = array( 'ç', 'Ç' );
  591. $hejajidai = str_replace( $eajajebdbg, 'c', $hejajidai );
  592. $eajajebdbg = array( 'Ğ', 'ğ' );
  593. str_replace( $eajajebdbg, 'g', $hejajidai );
  594. $hejajidai = trim( $hejajidai );
  595. $eajajebdbg = array( '/[^a-z0-9\-<>]/', '/[\-]+/', '/<[^>]*>/' );
  596. $dhiibfbjde = array( '', '-', '' );
  597. strtolower( $hejajidai );
  598. $hejajidai = preg_replace( '/<(\/{0,1})img(.*?)(\/{0,1})\>/', 'image', $hejajidai );
  599. $hejajidai = preg_replace( $eajajebdbg, $dhiibfbjde, $hejajidai );
  600. str_replace( '---', '-', $hejajidai );
  601. $hejajidai = str_replace( $eajajebdbg, '-', $hejajidai );
  602. $hejajidai = str_replace( '--', '-', $hejajidai );
  603. return $hejajidai;
  604. }
  605.  
  606. function es_head($chdhajgjad) {
  607. $chdhajgjad['editorun_secimi'] = '<span title="Editörün Seçtikleri">E.S.</span>';
  608. $chdhajgjad['unutulmaz'] = '<span title="Unutulmaz Filmler Kuşağı">U.F.K.</span>';
  609. return $chdhajgjad;
  610. }
  611.  
  612. function es_content($bbidehiegf, $chjbjffiai) {
  613. if ($bbidehiegf == 'editorun_secimi') {
  614. '<input type="checkbox" name="es" value="' . $chjbjffiai . '" class="editorun_sectigi" ';
  615.  
  616. if (get_post_meta( $chjbjffiai, 'editorun', true ) == 1) {
  617. }
  618. }
  619.  
  620. echo (true ? 'checked' : '') . ' />';
  621.  
  622. if ($bbidehiegf == 'unutulmaz') {
  623. '<input type="checkbox" name="ufk" value="' . $chjbjffiai . '" class="unutulmaz" ';
  624.  
  625. if (get_post_meta( $chjbjffiai, 'unutulmaz', true ) == 1) {
  626. 'checked';
  627. }
  628. }
  629.  
  630. echo ' />';
  631. }
  632.  
  633. function {closure}() {
  634. switch ($_POST['ai']) {
  635. case 'facebook_login': {
  636. $args = array( 'meta_key' => 'facebook_id', 'meta_value' => $_POST['datas']['id'] );
  637. $user = get_users( $args );
  638.  
  639. if (count( $user ) == 0) {
  640. $user_id = wp_create_user( $_POST['datas']['name'], wp_generate_password( ), $_POST['datas']['email'] );
  641. add_user_meta( $user_id, 'facebook_id', $_POST['datas']['id'], true );
  642. ( add_user_meta( $user_id, 'first_name', $_POST['datas']['first_name'], true ) || update_user_meta( $user_id, 'first_name', $_POST['datas']['first_name'] ) );
  643. ( add_user_meta( $user_id, 'last_name', $_POST['datas']['last_name'], true ) || update_user_meta( $user_id, 'last_name', $_POST['datas']['last_name'] ) );
  644.  
  645. if (!empty( $_POST['datas']['gender'] )) {
  646. update_user_meta;
  647. $user_id;
  648. 'gender';
  649.  
  650. if ($_POST['datas']['gender'] == 'female') {
  651. ( (true ? 'Kadın' : 'Erkek') );
  652. wp_set_auth_cookie( $user_id );
  653. $type = mime_type_al( 'http://graph.facebook.com/' . $_POST['datas']['id'] . '/picture?type=large' );
  654.  
  655. if (substr( $type, 0, 5 ) == 'image') {
  656. $avatar = file_get_contents( 'http://graph.facebook.com/' . $_POST['datas']['id'] . '/picture?type=large' );
  657. $upload_dir = wp_upload_dir( );
  658. $avatar_dir = $upload_dir['basedir'] . '/avatars/';
  659. $fp = fopen( $avatar_dir . $user_id . '.jpg', 'w' );
  660. fwrite( $fp, $avatar );
  661. fclose( $fp );
  662. $json['status'] = 'success';
  663. $json['redirect'] = home_url( );
  664. break;
  665. }
  666. }
  667. }
  668. }
  669. }
  670. }
  671.  
  672.  
  673. while (true) {
  674. $user = ;
  675. $json['data'][$c]['id'] = $data['id'];
  676. $json['data'][$c]['html'] = '
  677. <li class="honkurli-' . $c . '" data-id="' . $data['id'] . '">
  678. <div class="honkur-image"><img src="' . avatar_getir( $user->ID, '65x65' ) . '" width="65" height="65" /></div>
  679. <div class="honkur-info">
  680. <div class="honkur-user"><a href="' . home_url( 'user/' . $user->user_nicename ) . '">' . $user->user_nicename . '</a> <span>' . date( 'H:i' ) . '</span></div>
  681. <div class="honkur-comment">' . esc_attr( honkur_kufur( $data['mesaj'] ) ) . '</div>
  682. </div>
  683. </a>
  684. <div class="clear"></div>
  685. </li>';
  686. ++$c;
  687. }
  688.  
  689. $json['count'] = $c;
  690. echo json_encode( $json );
  691. exit( );
  692. }
  693.  
  694. function {closure}() {
  695. echo '<a href="http://www.wordpress.org" target="_blank">WordPress</a> ile oluşturuldu. <a href="http://www.temafabrika.com" target="_blank">Tema Fabrika</a> tarafından tasarlandı.';
  696. echo '<script type="text/javascript">var tf_ajaxurl = \'' . home_url( ) . '/?islem=tfajax\';</script>';
  697. }
  698.  
  699. function ajax_forms() {
  700. $cigbacaefe = get_option( 'opt_social', null );
  701. echo '<div class="ajax-forms">
  702. <div class="ajax-form register-form">
  703. <div class="ajax-form-title inner-glow-13"><i class="fa fa-user-plus"></i> <strong>ÜYE KAYIT</strong> FORMU<a href="#" class="ajax-form-close" data-form="register-form"><i class="fa fa-times"></i></a></div>
  704. <form id="register-form">
  705. <div class="ajax-form-content inner-glow-13">
  706. <div class="ajax-success"><i class="fa fa-thumbs-up"></i> <strong>Giriş yapıldı</strong>, yönlendiriliyorsunuz...</div>
  707. <div class="ajax-row">
  708. <input type="text" name="username" value="" placeholder="Kullanıcı adınız" />
  709. <p class="ajax-error error-username"></p>
  710. </div>
  711. <div class="ajax-row">
  712. <input type="password" name="password" value="" placeholder="Parolanız" />
  713. <p class="ajax-error error-password"></p>
  714. </div>
  715. <div class="ajax-row">
  716. <input type="text" name="email" value="" placeholder="E-posta adresiniz" />
  717. <p class="ajax-error error-email"></p>
  718. </div>
  719. <div class="ajax-row">
  720. <input type="text" name="first_name" value="" placeholder="Adınız" />
  721. </div>
  722. <div class="ajax-row">
  723. <input type="text" name="last_name" value="" placeholder="Soyadınız" />
  724. </div>
  725. <div class="ajax-row">
  726. <button type="submit"><strong>HESABIMI</strong> OLUŞTUR</button>
  727. </div>
  728. <div class="ajax-row centered">
  729. zaten kayıtlı mısın? hemen <a href="#" onclick="login_goster();return false;">giriş yap</a>.
  730. </div>
  731. </div>
  732. </form>
  733. </div>
  734. <div class="ajax-form login-form">
  735. <div class="ajax-form-title inner-glow-13"><i class="fa fa-user"></i> <strong>ÜYE GİRİŞ</strong> FORMU<a href="#" class="ajax-form-close" data-form="login-form"><i class="fa fa-times"></i></a></div>
  736. <form id="login-form">
  737. <div class="ajax-form-content inner-glow-13">
  738. <div class="ajax-success"><i class="fa fa-thumbs-up"></i> <strong>Giriş yapıldı</strong>, yönlendiriliyorsunuz...</div>
  739. <div class="ajax-row">
  740. <p class="ajax-text"><i class="fa fa-user"></i> Kullanıcı adınız</p>
  741. <input type="text" name="username" value="" placeholder="Kullanıcı adınızı giriniz" />
  742. <p class="ajax-error error-username"></p>
  743. </div>
  744. <div class="ajax-row">
  745. <p class="ajax-text"><i class="fa fa-lock"></i> Parolanız</p>
  746. <input type="password" name="password" value="" placeholder="Parolanız" />
  747. <p class="ajax-error error-password"></p>
  748. </div>
  749. <div class="ajax-row">
  750. <button type="submit"><strong>HESABA</strong> GİRİŞ YAP</button>
  751. </div>';
  752.  
  753. if (!empty( $cigbacaefe['fb_appid'] )) {'<input type="hidden" id="fb_appid" value="' . $cigbacaefe['fb_appid'] . '"/>
  754. <div class="ajax-veya"><span>veya</span></div>
  755. <div class="ajax-row">
  756. <a href="#" class="social-button facebook-button" onclick="fb_login();"><i class="fa fa-facebook"></i> <strong>Facebook</strong> ile giriş</a>
  757. </div>';
  758. }
  759. echo '<div class="ajax-row">
  760. <a href="#" class="unuttum-link">Şifremi unuttum</a>
  761. <span class="login-kayit-link">Hemen <a href="#" class="muser-reg">kayıt ol</a></span>
  762. </div>
  763. </div>
  764. </form>
  765. </div>
  766. <div class="ajax-form unuttum-form">
  767. <div class="ajax-form-title inner-glow-13"><i class="fa fa-lock"></i> <strong>ŞİFREMİ</strong> UNUTTUM<a href="#" class="ajax-form-close" data-form="unuttum-form"><i class="fa fa-times"></i></a></div>
  768. <form id="unuttum-form">
  769. <div class="ajax-form-content inner-glow-13">
  770. <div class="ajax-success"><i class="fa fa-thumbs-up"></i> <strong>Giriş yapıldı</strong>, yönlendiriliyorsunuz...</div>
  771. <div class="ajax-row">
  772. <p class="ajax-text"><i class="fa fa-user"></i> Kullanıcı adınız</p>
  773. <input type="text" name="username" value="" placeholder="Kullanıcı adınızı giriniz" />
  774. <p class="ajax-error error-username"></p>
  775. </div>
  776. <div class="ajax-row">
  777. <button type="submit"><strong>SIFIRLAMA</strong> LİNKİ GÖNDER</button>
  778. </div>
  779. <div class="ajax-row">
  780. <a href="#" onclick="login_goster();return false;">Giriş yap</a>
  781. <span class="login-kayit-link">Hemen <a href="#" class="muser-reg">kayıt ol</a></span>
  782. </div>
  783. </div>
  784. </form>
  785. </div>
  786. </div>';
  787. }
  788.  
  789. function mime_type_al($hejajidai) {
  790. $eidfijiid = curl_init( );
  791. curl_setopt( $eidfijiid, CURLOPT_URL, $hejajidai );
  792. curl_setopt( $eidfijiid, CURLOPT_HEADER, 1 );
  793. curl_setopt( $eidfijiid, CURLOPT_NOBODY, 1 );
  794. curl_setopt( $eidfijiid, CURLOPT_RETURNTRANSFER, 1 );
  795. $djijagbbig = split( '
  796. ', trim( curl_exec( $eidfijiid ) ) );
  797.  
  798. foreach ($djijagbbig as $dffbahagj) {
  799.  
  800. if (strtok( $dffbahagj, ':' ) == 'Content-Type') {
  801. $bdeedahhdf = explode( ':', $dffbahagj );
  802. return trim( $bdeedahhdf[1] );
  803. }
  804.  
  805. break;
  806. }
  807.  
  808. }
  809.  
  810. function custom_rewrite_basic() {
  811. add_rewrite_rule( '^bize-ulasin/?', 'index.php?page_id=bize-ulasin', 'top' );
  812. add_rewrite_rule( '^film-istek/?', 'index.php?page_id=film-istek', 'top' );
  813. add_rewrite_rule( '^neler-oluyor/?', 'index.php?page_id=neler-oluyor', 'top' );
  814. add_rewrite_rule( '^vip-uyelik/?', 'index.php?page_id=vip-uyelik', 'top' );
  815. add_rewrite_rule( '^user/([^/]*)/([^/]*)/?', 'index.php?page_id=user&user=$matches[1]&subpage=$matches[2]', 'top' );
  816. add_rewrite_rule( '^user/([^/]*)/?', 'index.php?page_id=user&user=$matches[1]', 'top' );
  817. add_rewrite_rule( '^profilim/([^/]*)/?', 'index.php?page_id=profilim&subpage=$matches[1]', 'top' );
  818. add_rewrite_rule( '^profilim/?', 'index.php?page_id=profilim', 'top' );
  819. }
  820.  
  821. function custom_rewrite_tag() {
  822. add_rewrite_tag( '%subpage%', '([^&]+)' );
  823. add_rewrite_tag( '%user%', '([^&]+)' );
  824. }
  825.  
  826. function resim_getir($jahfbeejf, $djcbcccjch) {
  827. $hejajidai = wp_get_attachment_url( get_post_thumbnail_id( $jahfbeejf ) );
  828.  
  829. if (!empty( $$hejajidai )) {
  830. $hejajidai = str_replace( '.jpg', '.cropped.' . $djcbcccjch . '.jpg', $hejajidai );
  831. get_template_directory_uri;
  832. }
  833.  
  834. $hejajidai = ( ) . '/images/no-image.png';
  835. return $hejajidai;
  836. }
  837.  
  838. function my_htaccess_contents($dffjhgcjbb) {
  839. $ecbgbfag = str_replace( home_url( ) . '/', '', get_template_directory_uri( ) );
  840. $badeficdcj = '
  841. # BAŞI: TemaFabrika Otomatik Oluşturulmuş Kodlar
  842. <IfModule mod_rewrite.c>
  843. RewriteCond %{REQUEST_FILENAME} !-f
  844. RewriteCond %{REQUEST_FILENAME} !-d
  845. RewriteRule (.*?)\.cropped\.(.*?)\.(.*?)$ ' . $ecbgbfag . '/includes/thumb.php?url=$1.$3&size=$2 [L]
  846. </IfModule>
  847.  
  848.  
  849. <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
  850. Header set Cache-Control "max-age=290304000, public"
  851. </FilesMatch>
  852. <FilesMatch "\.(xml|txt)$">
  853. Header set Cache-Control "max-age=172800, public, must-revalidate"
  854. </FilesMatch>
  855. <FilesMatch "\.(html|htm)$">
  856. Header set Cache-Control "max-age=7200, must-revalidate"
  857. </FilesMatch>
  858. <ifModule mod_gzip.c>
  859. mod_gzip_on Yes
  860. mod_gzip_dechunk Yes
  861. mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  862. mod_gzip_item_include handler ^cgi-script$
  863. mod_gzip_item_include mime ^text/.*
  864. mod_gzip_item_include mime ^application/x-javascript.*
  865. mod_gzip_item_exclude mime ^image/.*
  866. mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
  867. </ifModule>
  868. <IfModule mod_expires.c>
  869. ExpiresActive on
  870. ExpiresDefault "access plus 1 month"
  871. ExpiresByType text/css "access plus 1 month”
  872. ExpiresByType application/atom+xml "access plus 1 hour"
  873. ExpiresByType application/rdf+xml "access plus 1 hour"
  874. ExpiresByType application/rss+xml "access plus 1 hour"
  875. ExpiresByType application/json "access plus 0 seconds"
  876. ExpiresByType application/ld+json "access plus 0 seconds"
  877. ExpiresByType application/schema+json "access plus 0 seconds"
  878. ExpiresByType application/vnd.geo+json "access plus 0 seconds"
  879. ExpiresByType application/xml "access plus 0 seconds"
  880. ExpiresByType text/xml "access plus 0 seconds"
  881. ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
  882. ExpiresByType image/x-icon "access plus 1 week"
  883. ExpiresByType text/html "access plus 1 seconds
  884. ExpiresByType application/javascript "access plus 1 month”
  885. ExpiresByType application/x-javascript "access plus 1 year"
  886. ExpiresByType text/javascript "access plus 1 year"
  887. ExpiresByType application/manifest+json "access plus 1 year"
  888. ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
  889. ExpiresByType text/cache-manifest "access plus 0 seconds"
  890. ExpiresByType audio/ogg "access plus 1 month"
  891. ExpiresByType image/bmp "access plus 1 month"
  892. ExpiresByType image/gif "access plus 1 month"
  893. ExpiresByType image/jpeg "access plus 1 month"
  894. ExpiresByType image/png "access plus 1 month"
  895. ExpiresByType image/svg+xml "access plus 1 month"
  896. ExpiresByType video/mp4 "access plus 1 month"
  897. ExpiresByType video/ogg "access plus 1 month"
  898. ExpiresByType video/webm "access plus 1 month"
  899. ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  900. ExpiresByType font/eot "access plus 1 month"
  901. ExpiresByType font/opentype "access plus 1 month"
  902. ExpiresByType application/x-font-ttf "access plus 1 month"
  903. ExpiresByType application/font-woff "access plus 1 month"
  904. ExpiresByType application/x-font-woff "access plus 1 month"
  905. ExpiresByType font/woff "access plus 1 month"
  906. ExpiresByType application/font-woff2 "access plus 1 month"
  907. ExpiresByType text/x-cross-domain-policy "access plus 1 week"
  908. </IfModule>
  909. # SONU: TemaFabrika Otomatik Oluşturulmuş Kodlar
  910.  
  911. ';
  912. return $badeficdcj . $dffjhgcjbb;
  913. }
  914.  
  915. function {closure}() {
  916. $labels = array( 'name' => _x( 'Sinema Haberleri', '', 'haber' ), 'singular_name' => _x( 'Sinema Haberleri', '', 'haber' ), 'menu_name' => _x( 'Haberler', '', 'haber' ), 'name_admin_bar' => _x( 'Haberler', '', 'haber' ), 'add_new' => _x( 'Haber Ekle', 'haberler', 'haber' ), 'add_new_item' => __( 'Yeni Haber Ekle', 'haber' ), 'new_item' => __( 'Yeni Haber', 'haber' ), 'edit_item' => __( 'Haberi Düzenle', 'haber' ), 'view_item' => __( 'Haberi Görüntüle', 'haber' ), 'all_items' => __( 'Tüm Haberler', 'haber' ), 'search_items' => __( 'Haber Ara', 'haber' ), 'not_found' => __( 'Hiçbir haber eklenmemiş.', 'haber' ), 'not_found_in_trash' => __( 'Çöp kutusunda hiç haber yok.', 'haber' ) );
  917. $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'query_var' => true, 'rewrite' => array( 'slug' => 'haberler' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'comments' ) );
  918. register_post_type( 'haberler', $args );
  919. $labels = array( 'name' => _x( 'Film Müzikleri', '', 'muzik' ), 'singular_name' => _x( 'Film Müzikleri', '', 'muzik' ), 'menu_name' => _x( 'Film Müzikleri', '', 'muzik' ), 'name_admin_bar' => _x( 'Film Müzikleri', '', 'muzik' ), 'add_new' => _x( 'Müzik Ekle', 'muzikler', 'muzik' ), 'add_new_item' => __( 'Yeni Müzik Ekle', 'muzik' ), 'new_item' => __( 'Yeni Müzik', 'muzik' ), 'edit_item' => __( 'Müziği Düzenle', 'muzik' ), 'view_item' => __( 'Müziği Görüntüle', 'muzik' ), 'all_items' => __( 'Tüm Müzikler', 'muzik' ), 'search_items' => __( 'Müzik Ara', 'muzik' ), 'not_found' => __( 'Hiçbir müzik eklenmemiş.', 'muzik' ), 'not_found_in_trash' => __( 'Çöp kutusunda hiç müzik yok.', 'muzik' ) );
  920. $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'query_var' => true, 'rewrite' => array( 'slug' => 'muzikler' ), 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'comments' ) );
  921. register_post_type( 'muzikler', $args );
  922. }
  923.  
  924. function kategori_getir($ddgfcbcdca = false) {
  925. $ebbdhihfej = array( );
  926. $cjjagcciac = get_the_category( );
  927. foreach ($cjjagcciac as $cfehdgdjad) {
  928.  
  929. if ($ddgfcbcdca) {
  930. while (true) {
  931. $ebbdhihfej[] = '<a href="' . esc_url( get_category_link( $cfehdgdjad->term_id ) ) . '" title="' . esc_attr( $cfehdgdjad->name ) . '">' . esc_attr( $cfehdgdjad->name ) . '</a>';
  932. }
  933.  
  934. esc_attr;
  935. $cfehdgdjad->name;
  936. }
  937.  
  938.  
  939. while (true) {
  940. $ebbdhihfej[] = ( );
  941. }
  942. }
  943.  
  944. return $ebbdhihfej;
  945. }
  946.  
  947. function get_sliders() {
  948. while (true) {
  949. query_posts( $ifgicgdhb );
  950. $cfjfdbgad = $ifgicgdhb = array( 'post_type' => 'slider', 'posts_per_page' => '10' );
  951. $hchjibgga = array( );
  952.  
  953. if (have_posts( )) {
  954. if (have_posts( )) {
  955. the_post( );
  956. get_post_meta( get_the_ID( ), 'film_id', true );
  957. }
  958. }
  959.  
  960. $hchjibgga[] = ;
  961. }
  962.  
  963. wp_reset_query( );
  964. return $hchjibgga;
  965. }
  966.  
  967. function get_liked($dacaabeija = 'like', $giefafbfc = null) {
  968. if ($giefafbfc) {
  969. $giefafbfc = (true ? $giefafbfc : get_the_ID( ));
  970. $ghfhhhbai = $_COOKIE['likes'];
  971. json_decode;
  972. stripslashes;
  973. $ghfhhhbai;
  974. }
  975.  
  976. ( ( ), true );
  977. $ghfhhhbai = ;
  978.  
  979. if (!is_array( $ghfhhhbai )) {
  980. return 0;
  981. in_array( $giefafbfc, $ghfhhhbai[$dacaabeija] );
  982. }
  983.  
  984. function sayfa_getir($biabejddhd, $ccedaacgdj = 0) {
  985. (bool);
  986. $bebjciejhc = get_posts( array( 'post_type' => 'page', 'meta_key' => '_wp_page_template', 'meta_value' => $biabejddhd ) );
  987. $cicdfeahcf = $bebjciejhc[0];
  988.  
  989. if ($ccedaacgdj == 1) {
  990. return $cicdfeahcf;
  991. $cicdfeahcf->ID;
  992. }
  993.  
  994. return ;
  995. }
  996.  
  997. function curl($hejajidai, $hbheicbhj = '') {
  998. $dajdhgdehc = 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0';
  999. $eidfijiid = curl_init( );
  1000. curl_setopt( $eidfijiid, CURLOPT_URL, $hejajidai );
  1001.  
  1002. if ($dhehchfcdf) {
  1003. true;
  1004. }
  1005.  
  1006. curl_setopt( $eidfijiid, CURLOPT_HEADER, false );
  1007. curl_setopt( $eidfijiid, CURLOPT_RETURNTRANSFER, 1 );
  1008. curl_setopt( $eidfijiid, CURLOPT_FOLLOWLOCATION, 1 );
  1009.  
  1010. if (is_array( $hbheicbhj )) {
  1011. curl_setopt( $eidfijiid, CURLOPT_POST, 1 );
  1012. curl_setopt( $eidfijiid, CURLOPT_POSTFIELDS, http_build_query( $hbheicbhj ) );
  1013. curl_setopt;
  1014. $eidfijiid;
  1015. CURLOPT_TIMEOUT;
  1016. }
  1017.  
  1018. ( , 4 );
  1019. curl_setopt( $eidfijiid, CURLOPT_REFERER, $hejajidai );
  1020. curl_setopt( $eidfijiid, CURLOPT_USERAGENT, $dajdhgdehc );
  1021. $dehdjjfbi = curl_exec( $eidfijiid );
  1022. curl_close( $eidfijiid );
  1023. return $dehdjjfbi;
  1024. }
  1025.  
  1026. function tema_guncelle($dhacgdhhaf = false) {
  1027. $ebcfhdafi = get_option( 'versiyon_son', null );
  1028.  
  1029. if (( $ebcfhdafi < time( ) - 86400 || $dhacgdhhaf == true )) {
  1030. 'http://www.temafabrika.com/_api/version/responsive-film.v';
  1031. }
  1032.  
  1033. $gehehebic = curl( );
  1034. $gehehebic = number_format( $gehehebic, 1 );
  1035. ( update_option( 'tema_versiyon', $gehehebic, true ) || add_option( 'tema_versiyon', $gehehebic, true ) );
  1036. ( update_option( 'versiyon_son', time( ), true ) || add_option( 'tema_versiyon', time( ), true ) );
  1037. $gehehebic = get_option( 'tema_versiyon', 0 );
  1038.  
  1039. if (0 < $gehehebic) {
  1040. $caifaddb = wp_get_theme( );
  1041.  
  1042. if ($caifaddb->Version < $gehehebic) {
  1043. '<div class="error"><p><strong style="font-size: 14px;">Temanızın güncellenmesi gerekli.</strong><br />
  1044. Tema sürümünüz <strong>' . $caifaddb->Version . '</strong>, oysa ki temanızın son yayınlanan sürümü <strong style="color: #c00000;">';
  1045. }
  1046.  
  1047. . $gehehebic;
  1048. }
  1049.  
  1050. echo '</strong>.<br />
  1051. Detaylara gözatmak için <a href="?page=tema_ayarlari&opt=update">buraya tıklayın</a>.</p></div>';
  1052. }
  1053.  
  1054. function film_stars($begegejhfh = 0) {
  1055. echo '
  1056. <div class="film-stars">
  1057. <ul class="film-rating-o">
  1058. <li><i class="fa fa-star-o"></i></li>
  1059. <li><i class="fa fa-star-o"></i></li>
  1060. <li><i class="fa fa-star-o"></i></li>
  1061. <li><i class="fa fa-star-o"></i></li>
  1062. <li><i class="fa fa-star-o"></i></li>
  1063. </ul>
  1064. <ul class="film-rating">
  1065. ';
  1066. $chcbdebceg = ;
  1067. [0];
  1068. list( , $cifgedeih ) = explode( '.', $begegejhfh );
  1069. $bbiiiaajee = 7;
  1070.  
  1071. if ($bbiiiaajee <= $cifgedeih) {
  1072. echo '<li><i class="fa fa-star"></i></li>';
  1073.  
  1074. while (true) {
  1075. ++$bbiiiaajee;
  1076. }
  1077.  
  1078.  
  1079. if ($chcbdebceg == 5) {
  1080. echo '<li><i class="fa fa-star-half"></i></li>';
  1081. }
  1082. }
  1083.  
  1084. echo '
  1085. </ul>
  1086. </div>';
  1087. }
  1088.  
  1089. function uzanti_getir($jiebeeffi = null) {
  1090. if (!$jiebeeffi) {
  1091. return false;
  1092. $dadjedbjcj = explode( '.', $jiebeeffi );
  1093. $dadjedbjcj = end( $dadjedbjcj );
  1094. strtolower;
  1095. }
  1096.  
  1097. $dadjedbjcj = ( $dadjedbjcj );
  1098. return $dadjedbjcj;
  1099. }
  1100.  
  1101. function get_userlikes() {
  1102. $ebhejjefjf = json_decode( stripslashes( $_COOKIE['likes'] ), true );
  1103. return $ebhejjefjf;
  1104. }
  1105.  
  1106. function avatar_getir($giefafbfc, $djcbcccjch) {
  1107. $cgbejgbdga = wp_upload_dir( );
  1108.  
  1109. if (is_file( $cgbejgbdga['basedir'] . '/avatars/' . $giefafbfc . '.jpg' )) {
  1110. $hejajidai = $cgbejgbdga['baseurl'] . '/avatars/' . $giefafbfc . '.jpg';
  1111. $hejajidai = str_replace( '.jpg', '.cropped.' . $djcbcccjch . '.jpg', $hejajidai );
  1112. jmp;
  1113. $diajdagihf = get_user_meta( $giefafbfc, 'gender', true );
  1114. get_template_directory_uri;
  1115. }
  1116.  
  1117.  
  1118. if ($diajdagihf == 'Kadın') {
  1119. }
  1120.  
  1121. $hejajidai = ( ) . '/images/no-avatar-' . (true ? 'fe' : '') . 'male.png';
  1122. return $hejajidai;
  1123. }
  1124.  
  1125. function tax_resim_getir($giefafbfc, $djcbcccjch) {
  1126. $cgbejgbdga = wp_upload_dir( );
  1127.  
  1128. if (is_file( $cgbejgbdga['basedir'] . '/tax/' . $giefafbfc . '.jpg' )) {
  1129. $hejajidai = $cgbejgbdga['baseurl'] . '/tax/' . $giefafbfc . '.jpg';
  1130. str_replace;
  1131. '.jpg';
  1132. '.cropped.' . $djcbcccjch;
  1133. }
  1134.  
  1135. ( '.jpg', $hejajidai );
  1136. $hejajidai = ;
  1137. $hejajidai = get_template_directory_uri( ) . '/images/no-image.png';
  1138. return $hejajidai;
  1139. }
  1140.  
  1141. function permalink_slash($cijhdjiifh = false) {
  1142. $deehicicba = get_option( 'permalink_structure', null );
  1143.  
  1144. if (substr( $deehicicba, -1 ) == '/') {
  1145. return null;
  1146.  
  1147. if ($cijhdjiifh) {
  1148. }
  1149. }
  1150.  
  1151. return (true ? null : '/');
  1152. }
  1153.  
  1154. function hit_on_times($jahfbeejf) {
  1155. $dbjgcifgej = get_post_meta( $jahfbeejf, 'hits_by_day', true );
  1156.  
  1157. if (( !empty( $$dbjgcifgej ) && !is_array( $dbjgcifgej ) )) {
  1158. $dbjgcifgej = json_decode( $dbjgcifgej, true );
  1159.  
  1160. if (!is_array( $dbjgcifgej )) {
  1161. $dbjgcifgej = array( );
  1162. }
  1163. }
  1164.  
  1165. date( 'd.m.Y' );
  1166.  
  1167. if ($dbjgcifgej[date( 'd.m.Y' )]) {
  1168. $dbjgcifgej[] = (true ? $dbjgcifgej[date( 'd.m.Y' )] + 1 : 1);
  1169. $dbjgcifgej = json_encode( $dbjgcifgej );
  1170. }
  1171.  
  1172. update_post_meta( $jahfbeejf, 'hits_by_day', $dbjgcifgej );
  1173. }
  1174.  
  1175. function en_cok_izlenen_ayarla() {
  1176. global $wpdb;
  1177.  
  1178. $iechjajbg = array( );
  1179. $dgehidegei = $dgeeffbcbg->get_results( 'SELECT * FROM ' . $dgeeffbcbg->prefix . 'postmeta WHERE meta_key = \'hits_by_day\'', 'ARRAY_A' );
  1180. foreach ($dgehidegei as $gadibjdi) {
  1181.  
  1182. if (empty( $gadibjdi['meta_value'] )) {
  1183. continue;
  1184. json_decode( $gadibjdi['meta_value'], true );
  1185.  
  1186. while (true) {
  1187. $eahagfgbef = ;
  1188. $iechjajbg['bugun'][$gadibjdi['post_id']] = $eahagfgbef[date( 'd.m.Y' )] + $eahagfgbef[date( 'd.m.Y', strtotime( '-1 days' ) )];
  1189. $iechjajbg['son7'][$gadibjdi['post_id']] = $iechjajbg['bugun'][$gadibjdi['post_id']];
  1190. $iechjajbg['son30'][$gadibjdi['post_id']] = $iechjajbg['bugun'][$gadibjdi['post_id']];
  1191. $bbiiiaajee = 12;
  1192.  
  1193. if ($bbiiiaajee <= 30) {
  1194. $bjedfdfjda = $eahagfgbef[date( 'd.m.Y', strtotime( '-' . $bbiiiaajee . ' days' ) )];
  1195.  
  1196. if ($bjedfdfjda == 0) {
  1197. continue;
  1198.  
  1199. if ($bbiiiaajee < 8) {
  1200. $gadibjdi['post_id'];
  1201.  
  1202. if ($iechjajbg['son7'][$gadibjdi['post_id']]) {
  1203. $iechjajbg['son7'][$gadibjdi['post_id']] + $bjedfdfjda;
  1204. }
  1205. }
  1206.  
  1207. $iechjajbg['son7'][] = $bjedfdfjda;
  1208. $gadibjdi['post_id'];
  1209.  
  1210. if ($iechjajbg['son30'][$gadibjdi['post_id']]) {
  1211. $gadibjdi['post_id'];
  1212. $iechjajbg['son30'];
  1213. }
  1214. }
  1215. }
  1216. }
  1217. }
  1218.  
  1219.  
  1220. while (true) {
  1221. while (true) {
  1222. $iechjajbg['son30'][] = (true ? [] + $bjedfdfjda : $bjedfdfjda);
  1223. ++$bbiiiaajee;
  1224. }
  1225. }
  1226. }
  1227.  
  1228. arsort( $iechjajbg['bugun'] );
  1229. arsort( $iechjajbg['son7'] );
  1230. arsort( $iechjajbg['son30'] );
  1231. $eahagfgbef = array( );
  1232. foreach ($iechjajbg['bugun'] as $giefafbfc => $dhfbdjcbca) {
  1233. $eahagfgbef['bugun'][] = array( 'id' => $giefafbfc, 'hit' => $dhfbdjcbca );
  1234. break;
  1235. }
  1236.  
  1237. foreach ($iechjajbg['son7'] as $giefafbfc => $dhfbdjcbca) {
  1238. $eahagfgbef['son7'][] = array( 'id' => $giefafbfc, 'hit' => $dhfbdjcbca );
  1239. break;
  1240. }
  1241.  
  1242. foreach ($iechjajbg['son30'] as $giefafbfc => $dhfbdjcbca) {
  1243. $eahagfgbef['son30'][] = array( 'id' => $giefafbfc, 'hit' => $dhfbdjcbca );
  1244. break;
  1245. }
  1246.  
  1247. update_option( 'en_cok_izlenen', $eahagfgbef );
  1248. }
  1249.  
  1250. function en_cok_izlenen($fhhggahg = 'tumzamanlar') {
  1251. $cjjbbgbii = array( );
  1252.  
  1253. if ($fhhggahg == 'tumzamanlar') {
  1254. $cjjbbgbii['args'] = array( 'post_type' => 'post', 'posts_per_page' => '10', 'meta_key' => 'hit', 'meta_value' => '0', 'meta_type' => 'numeric', 'meta_compare' => '>', 'orderby' => 'meta_value', 'order' => 'DESC' );
  1255. $eahagfgbef = get_option( 'en_cok_izlenen', null );
  1256. !is_array( $eahagfgbef );
  1257. }
  1258.  
  1259. if (( || !is_array( $eahagfgbef[$fhhggahg] ) )) = ;
  1260. return $cjjbbgbii;
  1261. }
  1262.  
  1263. function kategori_ikon_ekle($hdhdagggd) {
  1264. global $themedir;
  1265.  
  1266. $dacdecejib = get_option( 'category_icons', null );
  1267. $ecddaadjij = get_option( 'category_prefixes', null );
  1268. echo '
  1269. <tr class="form-field">
  1270. <th scope="row" valign="top"><label for="kategori-ikon">Kategori ikonu</label></th>
  1271. <td>
  1272. <input type="text" id="kategori-ikon" name="kategori_ikon" size="3" style="width:50%;" value="' . $dacdecejib[$hdhdagggd->term_id] . '">
  1273. <p class="description">Yukarıya bir şey yazmaya başlayabilir ya da aşağıdan bularak seçebilirsiniz.</p>
  1274. ';
  1275. include( $hfgjcbdbb . 'includes/fa-icon-list.php' );
  1276.  
  1277. if ($ecddaadjij[$hdhdagggd->term_id] == 'Filmler') {
  1278. (true ? 'selected' : '');
  1279. }
  1280.  
  1281. echo '
  1282. </td>
  1283. </tr>
  1284. <tr class="form-field">
  1285. <th scope="row" valign="top"><label for="cat_onek">Kategori eki</label></th>
  1286. <td>
  1287. <select id="cat_onek" name="kategori_onek" style="width: 150px;">
  1288. <option value="Filmleri">Filmleri</option>
  1289. <option value="Filmler" ' . . '>Filmler</option>
  1290. </select>
  1291. </td>
  1292. </tr>
  1293. ';
  1294. }
  1295.  
  1296. function kategori_ikon_kaydet($caghibidig) {
  1297. if (isset( $_POST['kategori_ikon'] )) {
  1298. $cggahiaba = get_option( 'category_icons', null );
  1299.  
  1300. if (!is_array( $cggahiaba )) {
  1301. $cggahiaba = array( );
  1302. $cggahiaba[$caghibidig] = $_POST['kategori_ikon'];
  1303. update_option( 'category_icons', $cggahiaba );
  1304. $ecddaadjij = get_option( 'category_prefixes', null );
  1305. !is_array( $ecddaadjij );
  1306. }
  1307. }
  1308.  
  1309. if () = ;
  1310. update_option( 'category_prefixes', $ecddaadjij );
  1311. }
  1312.  
  1313. function tax_detay_ekle($hdhdagggd) {
  1314. global $themedir;
  1315.  
  1316. $cgbejgbdga = wp_upload_dir( );
  1317. $dghhfidjjg = $cgbejgbdga['basedir'] . '/tax/';
  1318.  
  1319. if (is_file( $dghhfidjjg . $hdhdagggd->term_id . '.jpg' )) {
  1320. $cgbejgbdga['baseurl'];
  1321. }
  1322.  
  1323. echo '
  1324. <tr class="form-field">
  1325. <th scope="row" valign="top"><label for="oresim">Fotoğraf önizleme</label></th>
  1326. <td>
  1327. <img src="' . . '/tax/' . $hdhdagggd->term_id . '.jpg" width="150" />
  1328. </td>
  1329. </tr>
  1330. ';
  1331. echo '
  1332. <tr class="form-field">
  1333. <th scope="row" valign="top"><label for="oyuncu_resim">Fotoğraf</label></th>
  1334. <td>
  1335. <input type="file" id="oyuncu_resim" name="oyuncu_resim" size="3" style="width:50%;" />
  1336. <p class="description">Sadece <strong>jpg</strong> veya <strong>png</strong> resmi yükleyebilirsiniz.</p>
  1337. </td>
  1338. </tr>
  1339. <script type="text/javascript">
  1340. jQuery(\'form.validate\').attr("enctype", "multipart/form-data");
  1341. </script>
  1342. ';
  1343. }
  1344.  
  1345. function tax_detay_kaydet($caghibidig) {
  1346. if (( isset( $_FILES['oyuncu_resim'] ) && !empty( $_FILES['oyuncu_resim']['name'] ) )) {
  1347. $cgbejgbdga = wp_upload_dir( );
  1348. $dghhfidjjg = $cgbejgbdga['basedir'] . '/tax/';
  1349. $dadjedbjcj = uzanti_getir( $_FILES['oyuncu_resim']['name'] );
  1350.  
  1351. if (!in_array( $dadjedbjcj, array( 'jpg', 'jpeg', 'png' ) )) {
  1352. $jighecjhe = 'Resim yalnızca <strong>jpg ve png</strong> uzantılarında olabilir.';
  1353. return null;
  1354.  
  1355. if (!file_exists( $dghhfidjjg )) {
  1356. }
  1357. }
  1358. }
  1359.  
  1360. wp_mkdir_p( $dghhfidjjg );
  1361. move_uploaded_file( $_FILES['oyuncu_resim']['tmp_name'], $dghhfidjjg . $caghibidig . '.jpg' );
  1362. }
  1363.  
  1364. function yorumlistesi($dicijigajb, $ifgicgdhb, $djedagceia) {
  1365. $GLOBALS['comment'] = $dicijigajb;
  1366. extract( $ifgicgdhb, EXTR_SKIP );
  1367.  
  1368. if ('div' == $ifgicgdhb['style']) {
  1369. $hdhdagggd = 'div';
  1370. $fciaiaeag = 'comment';
  1371. }
  1372.  
  1373. _e( 'Your comment is awaiting moderation.' );
  1374. echo '</em>
  1375. <br />
  1376. ';
  1377. echo '
  1378. <div class="comment-meta commentmetadata">
  1379. <a href="';
  1380. echo home_url( '/user/' ) . get_user_by( 'id', $dicijigajb->user_id )->user_nicename;
  1381. echo '/"><span>';
  1382. echo $dicijigajb->comment_author;
  1383. echo '</span></a>
  1384. ';
  1385. printf( __( '%1$s at %2$s' ), get_comment_date( ), get_comment_time( ) );
  1386. echo ' ';
  1387. edit_comment_link( __( '(Edit)' ), ' ', '' );
  1388. echo ' </div>
  1389.  
  1390. <div class="comment-text">';
  1391. comment_text( );
  1392. echo '</div>
  1393.  
  1394. <div class="reply">
  1395. ';
  1396. comment_reply_link( array_merge( $ifgicgdhb, array( 'add_below' => $fciaiaeag, 'depth' => $djedagceia, 'max_depth' => $ifgicgdhb['max_depth'] ) ) );
  1397. echo ' </div>
  1398. </div>
  1399. <div class="clear"></div>
  1400. ';
  1401.  
  1402. if ('div' != $ifgicgdhb['style']) {
  1403. }
  1404.  
  1405. echo ' </div>
  1406. ';
  1407. }
  1408.  
  1409. function example_add_dashboard_widgets() {
  1410. if (get_option( 'opt_admin_tf' ) != 'on') {
  1411. return false;
  1412. wp_add_dashboard_widget( 'temafabrika_widget', 'TemaFabrika\'dan Haberler', 'admin_temafabrika_widget' );
  1413. global $wp_meta_boxes;
  1414.  
  1415. $ddadcigijd = $dgcijehchd['dashboard']['normal']['core'];
  1416. $bcdccfedbj = array( 'temafabrika_widget' => $ddadcigijd['temafabrika_widget'] );
  1417. unset( $ddadcigijd[temafabrika_widget] );
  1418. array_merge( $bcdccfedbj, $ddadcigijd );
  1419. }
  1420.  
  1421. $dgjaeiaacg = ;
  1422. $dgcijehchd['dashboard']['normal']['core'] = $dgjaeiaacg;
  1423. }
  1424.  
  1425. function admin_temafabrika_widget() {
  1426. echo '<div id="temafabrika_haber">Yükleniyor...</div>
  1427. <script type="text/javascript">
  1428. jQuery(document).ready(function() {
  1429. var data = {
  1430. \'action\': \'temafabrika_haberler\'
  1431. };
  1432. jQuery.post(ajaxurl, data, function(response) {
  1433. jQuery(\'#temafabrika_haber\').html(response);
  1434. });
  1435. });
  1436. </script>
  1437. ';
  1438. }
  1439.  
  1440. function temafabrika_haberler_callback() {
  1441. $fadfdcaff = @file_get_contents( 'http://www.temafabrika.com/_api/news.xml' );
  1442.  
  1443. if (!$fadfdcaff) {
  1444. wp_die( 'Haberler alınamadı.' );
  1445. $fadfdcaff = simplexml_load_string( $fadfdcaff );
  1446. foreach ($fadfdcaff->haber as $bhgicgahcb) {
  1447. str_replace;
  1448. array( '[', ']' );
  1449. }
  1450. }
  1451.  
  1452. $bhgicgahcb->spot = ( array( '<', '>' ), $bhgicgahcb->spot );
  1453.  
  1454. while (true) {
  1455. echo '<div class="tf-haber">
  1456. <div class="tf-haber-baslik"><a href="' . $bhgicgahcb->url . '" target="_blank">' . $bhgicgahcb->baslik . '</a> <span class="tf-haber-tarih">' . $bhgicgahcb->tarih . '</span></div>
  1457. <div class="tf-haber-description">' . $bhgicgahcb->spot . '</div>
  1458. </div>';
  1459. }
  1460.  
  1461. wp_die( );
  1462. }
  1463.  
  1464. $bbdhahheee = function honkur_kufur($bigfafejjj) {;
  1465. $bbdhahheee = $bbdhahheee['honkur_kufur'];
  1466.  
  1467. while (true) {
  1468. if (( !empty( $$bbdhahheee ) || empty( $$bbdhahheee ) )) {
  1469. return $bigfafejjj;
  1470. $bbdhahheee = explode( ',', $bbdhahheee );
  1471. foreach ($bbdhahheee as $dfcfjbdggf) {
  1472. str_ireplace;
  1473. }
  1474. }
  1475.  
  1476. ( trim( $dfcfjbdggf ), str_repeat( '*', strlen( $dfcfjbdggf ) ), $bigfafejjj );
  1477. $bigfafejjj = get_option( 'opt_listeleme' );
  1478. }
  1479.  
  1480. return $bigfafejjj;
  1481. }
  1482.  
  1483. add_action( 'init', );
  1484.  
  1485. if (( isset( $_GET['s'] ) && $_GET['s'] == 'sıfırla' )) {
  1486. flush_rewrite_rules( );
  1487. exit( header( 'location: ' . home_url( ) ) );
  1488. $dacaabeija = get_template_directory_uri( ) . '/';
  1489. $giefafbfc = get_template_directory( ) . '/';
  1490. show_admin_bar( false );
  1491. include( dirname( __FILE__ ) . '/functions_user.php' );
  1492. add_action( 'wp_loaded', 'license_control' );
  1493. add_theme_support( 'post-thumbnails' );
  1494. add_action( 'admin_menu', );
  1495. add_action( 'wp_enqueue_scripts', );
  1496. add_action( 'admin_enqueue_scripts', );
  1497. add_filter( 'clean_url', 'add_async_forscript', 11, 1 );
  1498. add_action( 'after_switch_theme', 'tema_aktiflestir' );
  1499. add_action( 'admin_menu', 'revcon_change_post_label' );
  1500. add_action( 'init', 'revcon_change_post_object' );
  1501. add_action( 'init', 'taxonomy_olustur', 0 );
  1502. add_action( 'show_user_profile', 'vip_uyelik_alani' );
  1503. add_action( 'edit_user_profile', 'vip_uyelik_alani' );
  1504. add_action( 'personal_options_update', 'vip_uyelik_kaydet' );
  1505. add_action( 'edit_user_profile_update', 'vip_uyelik_kaydet' );
  1506. add_action( 'admin_head', 'remove_my_meta_boxen' );
  1507. register_nav_menus( array( 'footer_menu' => 'Footer Menü' ) );
  1508.  
  1509. if (is_admin( )) {
  1510. add_action( 'load-post.php', 'meta_box_getir' );
  1511. add_action( 'load-post-new.php', 'meta_box_getir' );
  1512. add_filter;
  1513. 'manage_posts_columns';
  1514. 'es_head';
  1515. }
  1516.  
  1517. ( );
  1518. add_action( 'manage_posts_custom_column', 'es_content', 5, 2 );
  1519.  
  1520. if (( isset( $_GET['islem'] ) && $_GET['islem'] == 'tfajax' )) {
  1521. add_filter( 'wp_loaded', );
  1522. add_filter( 'admin_footer_text', );
  1523. add_action( 'init', 'custom_rewrite_basic' );
  1524. add_action( 'init', 'custom_rewrite_tag', 10, 0 );
  1525. add_filter;
  1526. }
  1527. }
  1528.  
  1529. ( 'mod_rewrite_rules', 'my_htaccess_contents' );
  1530. add_action( 'init', );
  1531. add_action( 'admin_notices', 'tema_guncelle', 0 );
  1532.  
  1533. if (!wp_next_scheduled( 'en_cok_izlenen' )) {
  1534. wp_schedule_event( time( ), 'daily', 'en_cok_izlenen' );
  1535. add_action( 'en_cok_izlenen', 'en_cok_izlenen_ayarla' );
  1536. add_action( 'edit_category_form_fields', 'kategori_ikon_ekle' );
  1537. add_action( 'category_add_form_fields', 'kategori_ikon_ekle' );
  1538. add_action;
  1539. }
  1540.  
  1541. ( 'edited_category', 'kategori_ikon_kaydet' );
  1542. add_action( 'create_category', 'kategori_ikon_kaydet' );
  1543. add_action( 'oyuncular_edit_form_fields', 'tax_detay_ekle', 10, 2 );
  1544. add_action( 'yonetmenler_edit_form_fields', 'tax_detay_ekle', 10, 2 );
  1545. add_action( 'yonetmenler_add_form_fields', 'tax_detay_ekle', 10, 2 );
  1546. add_action( 'oyuncular_add_form_fields', 'tax_detay_ekle', 10, 2 );
  1547. add_action( 'edited_oyuncular', 'tax_detay_kaydet' );
  1548. add_action( 'create_oyuncular', 'tax_detay_kaydet' );
  1549. add_action( 'edited_yonetmenler', 'tax_detay_kaydet' );
  1550. add_action( 'create_yonetmenler', 'tax_detay_kaydet' );
  1551. add_action( 'wp_dashboard_setup', 'example_add_dashboard_widgets' );
  1552. add_action( 'wp_ajax_temafabrika_haberler', 'temafabrika_haberler_callback' );
  1553. return 1;
  1554. }
  1555. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement