Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* d3c0d3d by mr.Sm!th */
- /* ramiq.smith@gmail.com */
- class meta_box_ekle {
- function __construct() {
- add_action( 'add_meta_boxes', array( $this, 'add_meta_box' ) );
- add_action( 'save_post', array( $this, 'save' ) );
- }
- function add_meta_box($bbjfbbaiij) {
- $eaccjiihid = array( 'post', 'muzikler' );
- if (in_array( $bbjfbbaiij, $eaccjiihid )) {
- }
- if ($bbjfbbaiij == 'post') {
- add_meta_box;
- 'secenekler';
- __( 'Ek Seçenekler', 'myplugin_textdomain' );
- array( $ecacjidifg, 'render_meta_box_content' );
- $bbjfbbaiij;
- 'advanced';
- }
- ( 'high' );
- }
- function save($jahfbeejf) {
- if (!isset( $_POST['guvenlik_kontrolu'] )) {
- return $jahfbeejf;
- $dceegjfhaa = $_POST['guvenlik_kontrolu'];
- if (!wp_verify_nonce( $dceegjfhaa, 'guvenlik_kontrolcusu' )) {
- return $jahfbeejf;
- if (( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )) {
- return $jahfbeejf;
- if ('page' == $_POST['post_type']) {
- if (!current_user_can( 'edit_page', $jahfbeejf )) {
- return $jahfbeejf;
- if (!current_user_can( 'edit_post', $jahfbeejf )) {
- return $jahfbeejf;
- }
- }
- }
- }
- }
- }
- else {
- if (!empty( $_FILES['arkaplan']['name'] )) {
- $dadjedbjcj = uzanti_getir( $_FILES['arkaplan']['name'] );
- if (in_array( $dadjedbjcj, array( 'jpg', 'jpeg', 'png' ) )) {
- $cgbejgbdga = wp_upload_dir( );
- $cdacaggdjh = $cgbejgbdga['basedir'] . '/arkaplan/';
- if (!file_exists( $cdacaggdjh )) {
- wp_mkdir_p( $cdacaggdjh );
- move_uploaded_file( $_FILES['arkaplan']['tmp_name'], $cdacaggdjh . $jahfbeejf . '.jpg' );
- array( 'diger_adi', 'vizyon', 'ozet', 'sure', 'dil', 'yapimyili', 'imdb', 'kalite' );
- }
- }
- }
- $biiahefiba = array( 'ulke', 'butce', 'yt' );
- foreach ($biiahefiba as $bhgjiaecai) {
- empty( $_POST[$bhgjiaecai] );
- }
- }
- if () {
- delete_post_meta( $jahfbeejf, '_' . $bhgjiaecai );
- }
- jmp;
- }
- function render_meta_box_content($hbheicbhj) {
- wp_nonce_field( 'guvenlik_kontrolcusu', 'guvenlik_kontrolu' );
- if ($hbheicbhj->post_type == 'post') {
- $jjajbchhb = get_post_meta( $hbheicbhj->ID, '_diger_adi', true );
- $dbddfaggjj = get_post_meta( $hbheicbhj->ID, '_vizyon', true );
- $hdiejdfai = get_post_meta( $hbheicbhj->ID, '_ozet', true );
- $ccjaigcda = get_post_meta( $hbheicbhj->ID, '_sure', true );
- $diaffdceba = get_post_meta( $hbheicbhj->ID, '_dil', true );
- $djefjbcdag = get_post_meta( $hbheicbhj->ID, '_yapimyili', true );
- $dbcbeageae = get_post_meta( $hbheicbhj->ID, '_imdb', true );
- $djfiiadecj = get_post_meta( $hbheicbhj->ID, '_kalite', true );
- $dcfaddcdij = get_post_meta( $hbheicbhj->ID, '_ulke', true );
- $bgdbfehibi = get_post_meta( $hbheicbhj->ID, '_butce', true );
- $cgbejgbdga = wp_upload_dir( );
- $cdacaggdjh = $cgbejgbdga['basedir'] . '/arkaplan/';
- if (is_file( $cdacaggdjh . $hbheicbhj->ID . '.jpg' )) {
- $cgbejgbdga['baseurl'];
- }
- }
- echo '
- <div class="dirow">
- <span class="dispan">Detay Arkaplan Resmi</span>:
- ' . (true ? '<a href="' . . '/arkaplan/' . $hbheicbhj->ID . '.jpg" target="_blank"><img src="' . $cgbejgbdga['baseurl'] . '/arkaplan/' . $hbheicbhj->ID . '.jpg" style="width: 150px; vertical-align: top;" /></a>' : '') . '
- </div>
- <div class="dirow">
- <span class="dispan">Detay Arkaplan Resmi</span>:
- <input type="file" name="arkaplan" size="25" />
- </div>
- <div class="dirow">
- <span class="dispan">IMDB Puanı</span>:
- <input type="text" name="imdb" value="' . esc_attr( $dbcbeageae ) . '" size="25" maxlength="4" />
- </div>
- <div class="dirow">
- <span class="dispan">Film Süresi</span>:
- <input type="text" name="sure" value="' . esc_attr( $ccjaigcda ) . '" size="25" /> DAKİKA
- </div>
- <div class="dirow">
- <span class="dispan">Vizyon Tarihi</span>:
- <input type="text" name="vizyon" value="' . esc_attr( $dbddfaggjj ) . '" size="25" /> GG.AA.YYYY
- </div>
- <div class="dirow">
- <span class="dispan">Ülke</span>:
- <input type="text" name="ulke" value="' . esc_attr( $dcfaddcdij ) . '" size="25" />
- </div>
- <div class="dirow">
- <span class="dispan">Bütçe</span>:
- <input type="text" name="butce" value="' . esc_attr( $bgdbfehibi ) . '" size="25" />
- </div>
- <div class="dirow">
- <span class="dispan">Diğer Adı</span>:
- <input type="text" name="diger_adi" value="' . esc_attr( $jjajbchhb ) . '" size="25" />
- </div>
- <div class="dirow">
- <span class="dispan">Yapım Yılı</span>:
- <select name="yapimyili">
- ';
- $bbiiiaajee = date( 'Y' ) + 2;
- if (1900 <= $bbiiiaajee) {
- '<option value="' . $bbiiiaajee . '" ';
- if (( ( 0 < $djefjbcdag && $djefjbcdag == $bbiiiaajee ) || ( $djefjbcdag < 1 && $bbiiiaajee == date( 'Y' ) ) )) {
- echo (true ? 'selected' : '') . '>' . $bbiiiaajee . '</option>';
- --$bbiiiaajee;
- }
- jmp;
- . '>1080p</option>
- <option value="1440p" ';
- if ($djfiiadecj == '1440p') {
- . (true ? 'selected' : '') . '>1440p</option>
- <option value="4K" ';
- if ($djfiiadecj == '4K') {
- echo (true ? 'selected' : '') . '>4K</option>
- </select>
- </div>
- <div class="dirow">
- <span class="dispan">Filmin Özeti</span>:
- <textarea name="ozet">' . $hdiejdfai . '</textarea>
- </div>
- <script type="text/javascript">var postForm = document.getElementById(\'post\'); postForm.encoding = \'multipart/form-data\';</script>
- ';
- return null;
- get_post_meta;
- $hbheicbhj->ID;
- }
- }
- ( '_yt', true );
- $bcjddciedd = ;
- '
- <div class="dirow">
- <span class="dispan">YouTube linki</span>:
- <input type="text" name="yt" value="' . esc_attr( $bcjddciedd ) . '" size="40" />
- </div>
- ';
- }
- }
- }
- function {closure}() {
- ob_start( );
- }
- /*
- function license_control() {
- if ('index.php' == $GLOBALS['pagenow']) {
- $bicbhbdcgc = get_option( 'opt_license', null );
- if (!is_array( $bicbhbdcgc )) {
- hatali_lisans( );
- $cbfcdfjahf = 'KL3J45KJ32';
- $cgjigdihe = strrev( trim( $bicbhbdcgc['sahip'] ) );
- trim;
- $_SERVER['SERVER_NAME'];
- }
- ( );
- $ebhafhcfcg = ;
- }
- $caffbdbiec = $ebhafhcfcg = ;
- $dhfbdjcbca = md5( $cbfcdfjahf . $cgjigdihe . strrev( $ebhafhcfcg . $caffbdbiec ) );
- md5( $dhfbdjcbca . $cbfcdfjahf );
- $dhfbdjcbca = ;
- sha1( $dhfbdjcbca );
- $dhfbdjcbca = str_replace( 'www.', '', $ebhafhcfcg );
- $dhfbdjcbca = substr( $dhfbdjcbca, 3, 12 );
- strtoupper( $dhfbdjcbca );
- $dhfbdjcbca = trim( $_SERVER['SERVER_ADDR'] );
- if ($dhfbdjcbca != $bicbhbdcgc['key']) {
- hatali_lisans;
- $bicbhbdcgc['key'];
- }
- ( );
- }
- function hatali_lisans($bicbhbdcgc = '') {
- if (!empty( $$bicbhbdcgc )) {
- echo '<!doctype html><head><meta charset="utf-8"><title>Hatalı Lisans</title></head>
- <body><h1>Hatalı Lisans ' . (true ? '[' . strtoupper( $bicbhbdcgc ) . ']' : '') . '</h1>
- <h2>Lisans anahtarınız hatalı. Lütfen <a href="http://www.temafabrika.com" target="_blank">TemaFabrika</a> ile iletişime geçin.</h2>
- <style type="text/css">
- body { font-family: Tahoma; }
- h2 { color: #777; font-weight: 400; }
- a { color: #c00000; text-decoration: none; }
- a:hover { color: red; }
- </style>
- </body></html>';
- 'Hatalı bir lisans anahtarı girildi.
- Site: ' . $_SERVER['SERVER_NAME'] . '
- IP: ' . $_SERVER['SERVER_ADDR'];
- }
- $cdjfghficg = '
- Lisans Anahtarı: ' . $bicbhbdcgc . '';
- @mail( 'info@ali-arslan.com', 'TemaFabrika Hatalı Lisans ' . $_SERVER['SERVER_NAME'], $cdjfghficg );
- exit( );
- }
- */
- function {closure}() {
- add_menu_page( 'TemaFabrika', 'TemaFabrika', 'manage_options', 'tema_ayarlari', , get_template_directory_uri( ) . '/images/fabrika.png', 100 );
- add_menu_page( 'Slider', 'Slider', 'manage_options', 'slider_ayar', , get_template_directory_uri( ) . '/images/slider.png', 95 );
- add_submenu_page( 'users.php', 'Ödeme Bildirimleri', 'Ödeme Bildirimleri', 'manage_options', 'bildirimler', );
- }
- function {closure}() {
- include( get_template_directory( ) . '/includes/admin/tema_ayarlari.php' );
- }
- function {closure}() {
- include( get_template_directory( ) . '/includes/admin/slider.php' );
- }
- function {closure}() {
- include( get_template_directory( ) . '/includes/admin/vip.php' );
- }
- function {closure}() {
- wp_enqueue_style( 'reset', get_stylesheet_directory_uri( ) . '/css/reset.css' );
- wp_enqueue_style( 'css', get_stylesheet_uri( ) );
- wp_enqueue_style( 'fontawesome', get_stylesheet_directory_uri( ) . '/css/font-awesome.min.css' );
- wp_enqueue_style( 'jquery-ui', get_stylesheet_directory_uri( ) . '/css/jquery-ui.min.css' );
- wp_enqueue_style( 'jquery-scrollbar', get_stylesheet_directory_uri( ) . '/css/jquery.scrollbar.css' );
- wp_enqueue_style( 'alegreya-sans', 'https://fonts.googleapis.com/css?family=Alegreya+Sans:100,400,300,500,700,800&subset=latin,latin-ext' );
- wp_enqueue_style( 'permanent-marker', 'https://fonts.googleapis.com/css?family=Permanent+Marker' );
- wp_enqueue_style( 'roboto', 'https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900&subset=latin,latin-ext' );
- wp_enqueue_script( 'jquery183', get_template_directory_uri( ) . '/js/jquery-1.8.3.min.js' );
- wp_enqueue_script( 'all', get_template_directory_uri( ) . '/js/all.js', array( ), '1.0.0', true );
- wp_enqueue_script( 'general-scripts', get_template_directory_uri( ) . '/js/scripts.js#asyncload', array( ), '1.0.0', true );
- }
- function {closure}() {
- wp_enqueue_style( 'fontawesome', get_stylesheet_directory_uri( ) . '/css/font-awesome.min.css' );
- wp_enqueue_style( 'admincss', get_stylesheet_directory_uri( ) . '/css/admin.css' );
- wp_enqueue_style( 'jqueryuicss', get_stylesheet_directory_uri( ) . '/css/jquery-ui.min.css' );
- wp_enqueue_script( 'adminjs', get_template_directory_uri( ) . '/js/admin.js' );
- wp_enqueue_script( 'jqueryui', get_template_directory_uri( ) . '/js/jquery-ui.min.js' );
- }
- function cache_remove($cjejfcffbe) {
- if (is_file( ABSPATH . 'wp-content/cache/cache.' . $cjejfcffbe . '.html' )) {
- unlink;
- ABSPATH . 'wp-content/cache/cache.' . $cjejfcffbe . '.html';
- }
- ( );
- return true;
- }
- function cache_start($cjejfcffbe) {
- if (get_option( 'opt_adv_cache', 0 ) == 0) {
- return false;
- if (!is_dir( ABSPATH . 'wp-content/cache' )) {
- mkdir( ABSPATH . 'wp-content/cache', 493, true );
- $cccdbidfbf = 'cache.' . $cjejfcffbe . '.html';
- $daicehbhfi = ABSPATH . 'wp-content/cache/' . $cccdbidfbf;
- $cebgcdeigf = 15 * 24 * 60 * 60;
- if (file_exists( $daicehbhfi )) {
- time( ) - $cebgcdeigf;
- }
- filemtime;
- $daicehbhfi;
- }
- < ( );
- }
- if () {
- readfile( $daicehbhfi );
- return 'ok';
- unlink;
- }
- ( $daicehbhfi );
- ob_start( );
- return $daicehbhfi;
- }
- function cache_end($daicehbhfi) {
- if (get_option( 'opt_adv_cache', 0 ) == 0) {
- return false;
- $dadfcbgcga = fopen( $daicehbhfi, 'w+' );
- fwrite( $dadfcbgcga, ob_get_contents( ) );
- fclose;
- }
- ( $dadfcbgcga );
- ob_end_flush( );
- }
- function add_async_forscript($hejajidai) {
- if (strpos( $hejajidai, '#asyncload' ) === false) {
- return $hejajidai;
- if (is_admin( )) {
- return str_replace( '#asyncload', '', $hejajidai );
- str_replace;
- '#asyncload';
- '';
- }
- }
- return ( $hejajidai ) . '\' async=\'async';
- }
- function partlara_ayir($hbheicbhj) {
- $bdeedahhdf = explode( '<!--nextpage-->', $hbheicbhj->post_content );
- $dhehdciifd = array( );
- $dajafbigjd = 6;
- foreach ($bdeedahhdf as $hbchddjcb) {
- preg_match_all( '/<!--pagetitle:(.*?)-->/s', $hbchddjcb, $cibeigbaie );
- ++$dajafbigjd;
- $dhehdciifd[$dajafbigjd] = $cibeigbaie[1][0];
- break;
- }
- return $dhehdciifd;
- }
- function aylar() {
- 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' );
- }
- function tema_aktiflestir() {
- global $wpdb;
- $dgeeffbcbg->query( '
- CREATE TABLE IF NOT EXISTS `wp_honkur` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user` int(11) NOT NULL,
- `mesaj` text NOT NULL,
- `tarih` int(11) NOT NULL,
- `ip` varchar(20) NOT NULL,
- PRIMARY KEY (`id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
- ' );
- delete_option( 'rewrite_rules' );
- add_option( 'opt_admin_tf', 'on' );
- 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' ) );
- add_option( 'opt_duyuru', 'TemaFabrika Responsive Film Teması\'na hoşgeldiniz!' );
- add_option( 'opt_reklam', array( 'footer' => '<a href="http://www.temafabrika.com" title="WordPress Temaları" alt="WordPress Temaları">Tema Fabrika</a>' ) );
- add_option( 'opt_copy', '© 2014-2015 tüm hakları mahfuzdur ve mahfuz acı verir.' );
- 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.' );
- $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' );
- foreach ($caihbciia as $cdfcdifcbh => $ceagdjefag) {
- $cicdfeahcf = get_page_by_title( $ceagdjefag, 'ARRAY_A', 'page' );
- if (!empty( $cicdfeahcf['ID'] )) {
- continue;
- wp_insert_post;
- }
- $djabejcegc = ( array( 'post_type' => 'page', 'post_title' => $ceagdjefag, 'post_status' => 'publish' ) );
- add_post_meta( $djabejcegc, '_wp_page_template', $cdfcdifcbh, true );
- break;
- }
- wp_redirect( '?page=tema_ayarlari&opt=lisans' );
- }
- function get_film_dil($giefafbfc = null, $cjghfdafdi = false) {
- if (empty( $$giefafbfc )) {
- $giefafbfc = get_the_ID( );
- $cbefbhcceh = array( 1 => 'Orijinal Dil', 2 => 'Altyazılı', 3 => 'Dublaj', 4 => 'Sinema Çekimi' );
- $cigiffcaga = array( 1 => 'language', 2 => 'cc', 3 => 'microphone', 4 => 'certificate' );
- get_post_meta;
- $giefafbfc;
- }
- ( '_dil', true );
- $diaffdceba = ;
- if (empty( $$diaffdceba )) {
- $diaffdceba = 6;
- if ($cjghfdafdi) {
- '
- <span><i class="fa fa-' . $cigiffcaga[$diaffdceba] . '"></i></span>
- <strong>';
- $cbefbhcceh[$diaffdceba];
- }
- return . . '</strong>
- ';
- }
- return $cbefbhcceh[$diaffdceba];
- }
- function revcon_change_post_label() {
- global $menu;
- global $submenu;
- $diihichcfb[5][0] = 'Filmler';
- $eaijcgegdc['edit.php'][5][0] = 'Tüm Filmler';
- $eaijcgegdc['edit.php'][10][0] = 'Film Ekle';
- $eaijcgegdc['edit.php'][16][0] = 'Film Etiketleri';
- echo '';
- }
- function revcon_change_post_object() {
- global $wp_post_types;
- $bieijhebff = &$iajhhgacd['post']->labels;
- $bieijhebff->name = 'Filmler';
- $bieijhebff->singular_name = 'Filmler';
- $bieijhebff->add_new = 'Film Ekle';
- $bieijhebff->add_new_item = 'Film Ekle';
- $bieijhebff->edit_item = 'Filmi Düzenle';
- $bieijhebff->new_item = 'Filmler';
- $bieijhebff->view_item = 'Filmi Görüntüle';
- $bieijhebff->search_items = 'Filmlerde Ara';
- $bieijhebff->not_found = 'Film bulunamadı';
- $bieijhebff->not_found_in_trash = 'Çöp kutusunda hiç film yok.';
- $bieijhebff->all_items = 'Tüm Filmler';
- $bieijhebff->menu_name = 'Filmler';
- $bieijhebff->name_admin_bar = 'Filmler';
- }
- function vip_uyelik_alani($deeiecjbjh) {
- $fejgfdchb = get_user_meta( $deeiecjbjh->ID, 'uyetip', true );
- $cjfebbafac = get_user_meta( $deeiecjbjh->ID, 'uyetipbitis', true );
- if ($fejgfdchb == 1) {
- '<h3>Üyelik Tipi</h3>
- <table class="form-table">
- <tr>
- <th><label for="twitter">Üyelik tipi</label></th>
- <td>
- <select name="uyetip">
- <option value="0">Normal Üye</option>
- <option value="1" ' . (true ? 'selected' : '') . '>VIP Üye</option>
- </select>
- </td>
- </tr>
- <tr>
- <th><label for="twitter">Üyelik Bitiş Tarihi</label></th>
- <td>
- <input type="text" name="uyetipbitis" value="';
- }
- if (!empty( $$cjfebbafac )) {
- $cjfebbafac;
- date;
- 'd.m.Y';
- strtotime;
- }
- echo ( ( '+1 month' ) ) . '" /> GG.AA.YYYY
- </td>
- </tr>
- </table>';
- }
- function vip_uyelik_kaydet($cchbgicbgf) {
- if (!current_user_can( 'edit_user', $cchbgicbgf )) {
- return false;
- update_user_meta;
- $cchbgicbgf;
- 'uyetip';
- $_POST['uyetip'];
- }
- ( );
- update_user_meta( $cchbgicbgf, 'uyetipbitis', $_POST['uyetipbitis'] );
- }
- function taxonomy_olustur() {
- global $meta_tax;
- $ccefjchijf = array( 'oyuncular' => array( 'tekil' => 'Oyuncu', 'cogul' => 'Oyuncular' ), 'yonetmenler' => array( 'tekil' => 'Yönetmen', 'cogul' => 'Yönetmenler' ) );
- if (is_array( $ccefjchijf )) {
- foreach ($ccefjchijf as $giefafbfc => $bbgajfbjgd) {
- 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ı' ) );
- __;
- }
- }
- while (true) {
- array( 'menu_name' => ( $bbgajfbjgd['cogul'] ), 'not_found' => __( $bbgajfbjgd['tekil'] . ' bulunamadı' ), 'popular_items' => __( 'Popüler ' . $bbgajfbjgd['cogul'] ) );
- if (function_exists( 'mb_strtolower' )) {
- array( 'separate_items_with_commas' => ( 'Virgül kullanarak birden fazla ' . (true ? mb_strtolower( $bbgajfbjgd['tekil'] ) : $bbgajfbjgd['tekil']) . ' ekleyebilirsiniz' ) );
- __;
- }
- $bieijhebff = array( 'choose_from_most_used' => __( 'En çok kullanılanlardan seç' ) );
- $ifgicgdhb = array( 'hierarchical' => false, 'labels' => $bieijhebff, 'show_ui' => true, 'show_admin_column' => false, 'query_var' => true, 'rewrite' => array( 'slug' => $giefafbfc ) );
- register_taxonomy( $giefafbfc, array( 'post' ), $ifgicgdhb );
- }
- }
- function remove_my_meta_boxen() {
- global $meta_tax;
- $ccefjchijf = array( 'oyuncular' => array( 'tekil' => 'Oyuncu', 'cogul' => 'Oyuncular' ), 'yonetmenler' => array( 'tekil' => 'Yönetmen', 'cogul' => 'Yönetmenler' ) );
- foreach ($ccefjchijf as $giefafbfc => $bbgajfbjgd) {
- remove_meta_box( 'tagsdiv-' . $giefafbfc, 'post', 'side' );
- while (true) {
- add_meta_box( 'tagsdiv-' . $giefafbfc, $bbgajfbjgd['cogul'], 'post_tags_meta_box', 'post', 'normal', 'high', array( 'taxonomy' => $giefafbfc ) );
- }
- }
- }
- function meta_box_getir() {
- new meta_box_ekle( );
- }
- $hejajidai = function seflink($hejajidai) {;
- $eajajebdbg = array( '<b>', '</b>' );
- $hejajidai = $hejajidai = str_replace( $eajajebdbg, '', $hejajidai );
- $hejajidai = $eajajebdbg = array( ' ', '"', '&', '&', '\r\n', '\n', '/', '\\', '+', '<', '>' );
- $eajajebdbg = array( 'é', 'è', 'ë', 'ê', 'É', 'È', 'Ë', 'Ê' );
- $hejajidai = str_replace( $eajajebdbg, 'e', $hejajidai );
- $eajajebdbg = array( 'í', 'ì', 'î', 'ï', 'I', 'Í', 'Ì', 'Î', 'Ï', 'İ', 'ı' );
- $hejajidai = str_replace( $eajajebdbg, 'i', $hejajidai );
- $eajajebdbg = array( 'ó', 'ö', 'Ö', 'ò', 'ô', 'Ó', 'Ò', 'Ô' );
- $hejajidai = str_replace( $eajajebdbg, 'o', $hejajidai );
- $eajajebdbg = array( 'á', 'ä', 'â', 'à', 'â', 'Ä', 'Â', 'Á', 'À', 'Â' );
- $hejajidai = str_replace( $eajajebdbg, 'a', $hejajidai );
- $eajajebdbg = array( 'ú', 'ü', 'Ü', 'ù', 'û', 'Ú', 'Ù', 'Û' );
- $hejajidai = str_replace( $eajajebdbg, 'u', $hejajidai );
- $eajajebdbg = array( 'Ş', 'ş' );
- $hejajidai = str_replace( $eajajebdbg, 's', $hejajidai );
- $eajajebdbg = array( 'ç', 'Ç' );
- $hejajidai = str_replace( $eajajebdbg, 'c', $hejajidai );
- $eajajebdbg = array( 'Ğ', 'ğ' );
- str_replace( $eajajebdbg, 'g', $hejajidai );
- $hejajidai = trim( $hejajidai );
- $eajajebdbg = array( '/[^a-z0-9\-<>]/', '/[\-]+/', '/<[^>]*>/' );
- $dhiibfbjde = array( '', '-', '' );
- strtolower( $hejajidai );
- $hejajidai = preg_replace( '/<(\/{0,1})img(.*?)(\/{0,1})\>/', 'image', $hejajidai );
- $hejajidai = preg_replace( $eajajebdbg, $dhiibfbjde, $hejajidai );
- str_replace( '---', '-', $hejajidai );
- $hejajidai = str_replace( $eajajebdbg, '-', $hejajidai );
- $hejajidai = str_replace( '--', '-', $hejajidai );
- return $hejajidai;
- }
- function es_head($chdhajgjad) {
- $chdhajgjad['editorun_secimi'] = '<span title="Editörün Seçtikleri">E.S.</span>';
- $chdhajgjad['unutulmaz'] = '<span title="Unutulmaz Filmler Kuşağı">U.F.K.</span>';
- return $chdhajgjad;
- }
- function es_content($bbidehiegf, $chjbjffiai) {
- if ($bbidehiegf == 'editorun_secimi') {
- '<input type="checkbox" name="es" value="' . $chjbjffiai . '" class="editorun_sectigi" ';
- if (get_post_meta( $chjbjffiai, 'editorun', true ) == 1) {
- }
- }
- echo (true ? 'checked' : '') . ' />';
- if ($bbidehiegf == 'unutulmaz') {
- '<input type="checkbox" name="ufk" value="' . $chjbjffiai . '" class="unutulmaz" ';
- if (get_post_meta( $chjbjffiai, 'unutulmaz', true ) == 1) {
- 'checked';
- }
- }
- echo ' />';
- }
- function {closure}() {
- switch ($_POST['ai']) {
- case 'facebook_login': {
- $args = array( 'meta_key' => 'facebook_id', 'meta_value' => $_POST['datas']['id'] );
- $user = get_users( $args );
- if (count( $user ) == 0) {
- $user_id = wp_create_user( $_POST['datas']['name'], wp_generate_password( ), $_POST['datas']['email'] );
- add_user_meta( $user_id, 'facebook_id', $_POST['datas']['id'], true );
- ( add_user_meta( $user_id, 'first_name', $_POST['datas']['first_name'], true ) || update_user_meta( $user_id, 'first_name', $_POST['datas']['first_name'] ) );
- ( add_user_meta( $user_id, 'last_name', $_POST['datas']['last_name'], true ) || update_user_meta( $user_id, 'last_name', $_POST['datas']['last_name'] ) );
- if (!empty( $_POST['datas']['gender'] )) {
- update_user_meta;
- $user_id;
- 'gender';
- if ($_POST['datas']['gender'] == 'female') {
- ( (true ? 'Kadın' : 'Erkek') );
- wp_set_auth_cookie( $user_id );
- $type = mime_type_al( 'http://graph.facebook.com/' . $_POST['datas']['id'] . '/picture?type=large' );
- if (substr( $type, 0, 5 ) == 'image') {
- $avatar = file_get_contents( 'http://graph.facebook.com/' . $_POST['datas']['id'] . '/picture?type=large' );
- $upload_dir = wp_upload_dir( );
- $avatar_dir = $upload_dir['basedir'] . '/avatars/';
- $fp = fopen( $avatar_dir . $user_id . '.jpg', 'w' );
- fwrite( $fp, $avatar );
- fclose( $fp );
- $json['status'] = 'success';
- $json['redirect'] = home_url( );
- break;
- }
- }
- }
- }
- }
- }
- while (true) {
- $user = ;
- $json['data'][$c]['id'] = $data['id'];
- $json['data'][$c]['html'] = '
- <li class="honkurli-' . $c . '" data-id="' . $data['id'] . '">
- <div class="honkur-image"><img src="' . avatar_getir( $user->ID, '65x65' ) . '" width="65" height="65" /></div>
- <div class="honkur-info">
- <div class="honkur-user"><a href="' . home_url( 'user/' . $user->user_nicename ) . '">' . $user->user_nicename . '</a> <span>' . date( 'H:i' ) . '</span></div>
- <div class="honkur-comment">' . esc_attr( honkur_kufur( $data['mesaj'] ) ) . '</div>
- </div>
- </a>
- <div class="clear"></div>
- </li>';
- ++$c;
- }
- $json['count'] = $c;
- echo json_encode( $json );
- exit( );
- }
- function {closure}() {
- 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ı.';
- echo '<script type="text/javascript">var tf_ajaxurl = \'' . home_url( ) . '/?islem=tfajax\';</script>';
- }
- function ajax_forms() {
- $cigbacaefe = get_option( 'opt_social', null );
- echo '<div class="ajax-forms">
- <div class="ajax-form register-form">
- <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>
- <form id="register-form">
- <div class="ajax-form-content inner-glow-13">
- <div class="ajax-success"><i class="fa fa-thumbs-up"></i> <strong>Giriş yapıldı</strong>, yönlendiriliyorsunuz...</div>
- <div class="ajax-row">
- <input type="text" name="username" value="" placeholder="Kullanıcı adınız" />
- <p class="ajax-error error-username"></p>
- </div>
- <div class="ajax-row">
- <input type="password" name="password" value="" placeholder="Parolanız" />
- <p class="ajax-error error-password"></p>
- </div>
- <div class="ajax-row">
- <input type="text" name="email" value="" placeholder="E-posta adresiniz" />
- <p class="ajax-error error-email"></p>
- </div>
- <div class="ajax-row">
- <input type="text" name="first_name" value="" placeholder="Adınız" />
- </div>
- <div class="ajax-row">
- <input type="text" name="last_name" value="" placeholder="Soyadınız" />
- </div>
- <div class="ajax-row">
- <button type="submit"><strong>HESABIMI</strong> OLUŞTUR</button>
- </div>
- <div class="ajax-row centered">
- zaten kayıtlı mısın? hemen <a href="#" onclick="login_goster();return false;">giriş yap</a>.
- </div>
- </div>
- </form>
- </div>
- <div class="ajax-form login-form">
- <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>
- <form id="login-form">
- <div class="ajax-form-content inner-glow-13">
- <div class="ajax-success"><i class="fa fa-thumbs-up"></i> <strong>Giriş yapıldı</strong>, yönlendiriliyorsunuz...</div>
- <div class="ajax-row">
- <p class="ajax-text"><i class="fa fa-user"></i> Kullanıcı adınız</p>
- <input type="text" name="username" value="" placeholder="Kullanıcı adınızı giriniz" />
- <p class="ajax-error error-username"></p>
- </div>
- <div class="ajax-row">
- <p class="ajax-text"><i class="fa fa-lock"></i> Parolanız</p>
- <input type="password" name="password" value="" placeholder="Parolanız" />
- <p class="ajax-error error-password"></p>
- </div>
- <div class="ajax-row">
- <button type="submit"><strong>HESABA</strong> GİRİŞ YAP</button>
- </div>';
- if (!empty( $cigbacaefe['fb_appid'] )) {'<input type="hidden" id="fb_appid" value="' . $cigbacaefe['fb_appid'] . '"/>
- <div class="ajax-veya"><span>veya</span></div>
- <div class="ajax-row">
- <a href="#" class="social-button facebook-button" onclick="fb_login();"><i class="fa fa-facebook"></i> <strong>Facebook</strong> ile giriş</a>
- </div>';
- }
- echo '<div class="ajax-row">
- <a href="#" class="unuttum-link">Şifremi unuttum</a>
- <span class="login-kayit-link">Hemen <a href="#" class="muser-reg">kayıt ol</a></span>
- </div>
- </div>
- </form>
- </div>
- <div class="ajax-form unuttum-form">
- <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>
- <form id="unuttum-form">
- <div class="ajax-form-content inner-glow-13">
- <div class="ajax-success"><i class="fa fa-thumbs-up"></i> <strong>Giriş yapıldı</strong>, yönlendiriliyorsunuz...</div>
- <div class="ajax-row">
- <p class="ajax-text"><i class="fa fa-user"></i> Kullanıcı adınız</p>
- <input type="text" name="username" value="" placeholder="Kullanıcı adınızı giriniz" />
- <p class="ajax-error error-username"></p>
- </div>
- <div class="ajax-row">
- <button type="submit"><strong>SIFIRLAMA</strong> LİNKİ GÖNDER</button>
- </div>
- <div class="ajax-row">
- <a href="#" onclick="login_goster();return false;">Giriş yap</a>
- <span class="login-kayit-link">Hemen <a href="#" class="muser-reg">kayıt ol</a></span>
- </div>
- </div>
- </form>
- </div>
- </div>';
- }
- function mime_type_al($hejajidai) {
- $eidfijiid = curl_init( );
- curl_setopt( $eidfijiid, CURLOPT_URL, $hejajidai );
- curl_setopt( $eidfijiid, CURLOPT_HEADER, 1 );
- curl_setopt( $eidfijiid, CURLOPT_NOBODY, 1 );
- curl_setopt( $eidfijiid, CURLOPT_RETURNTRANSFER, 1 );
- $djijagbbig = split( '
- ', trim( curl_exec( $eidfijiid ) ) );
- foreach ($djijagbbig as $dffbahagj) {
- if (strtok( $dffbahagj, ':' ) == 'Content-Type') {
- $bdeedahhdf = explode( ':', $dffbahagj );
- return trim( $bdeedahhdf[1] );
- }
- break;
- }
- }
- function custom_rewrite_basic() {
- add_rewrite_rule( '^bize-ulasin/?', 'index.php?page_id=bize-ulasin', 'top' );
- add_rewrite_rule( '^film-istek/?', 'index.php?page_id=film-istek', 'top' );
- add_rewrite_rule( '^neler-oluyor/?', 'index.php?page_id=neler-oluyor', 'top' );
- add_rewrite_rule( '^vip-uyelik/?', 'index.php?page_id=vip-uyelik', 'top' );
- add_rewrite_rule( '^user/([^/]*)/([^/]*)/?', 'index.php?page_id=user&user=$matches[1]&subpage=$matches[2]', 'top' );
- add_rewrite_rule( '^user/([^/]*)/?', 'index.php?page_id=user&user=$matches[1]', 'top' );
- add_rewrite_rule( '^profilim/([^/]*)/?', 'index.php?page_id=profilim&subpage=$matches[1]', 'top' );
- add_rewrite_rule( '^profilim/?', 'index.php?page_id=profilim', 'top' );
- }
- function custom_rewrite_tag() {
- add_rewrite_tag( '%subpage%', '([^&]+)' );
- add_rewrite_tag( '%user%', '([^&]+)' );
- }
- function resim_getir($jahfbeejf, $djcbcccjch) {
- $hejajidai = wp_get_attachment_url( get_post_thumbnail_id( $jahfbeejf ) );
- if (!empty( $$hejajidai )) {
- $hejajidai = str_replace( '.jpg', '.cropped.' . $djcbcccjch . '.jpg', $hejajidai );
- get_template_directory_uri;
- }
- $hejajidai = ( ) . '/images/no-image.png';
- return $hejajidai;
- }
- function my_htaccess_contents($dffjhgcjbb) {
- $ecbgbfag = str_replace( home_url( ) . '/', '', get_template_directory_uri( ) );
- $badeficdcj = '
- # BAŞI: TemaFabrika Otomatik Oluşturulmuş Kodlar
- <IfModule mod_rewrite.c>
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule (.*?)\.cropped\.(.*?)\.(.*?)$ ' . $ecbgbfag . '/includes/thumb.php?url=$1.$3&size=$2 [L]
- </IfModule>
- <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
- Header set Cache-Control "max-age=290304000, public"
- </FilesMatch>
- <FilesMatch "\.(xml|txt)$">
- Header set Cache-Control "max-age=172800, public, must-revalidate"
- </FilesMatch>
- <FilesMatch "\.(html|htm)$">
- Header set Cache-Control "max-age=7200, must-revalidate"
- </FilesMatch>
- <ifModule mod_gzip.c>
- mod_gzip_on Yes
- mod_gzip_dechunk Yes
- mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
- mod_gzip_item_include handler ^cgi-script$
- mod_gzip_item_include mime ^text/.*
- mod_gzip_item_include mime ^application/x-javascript.*
- mod_gzip_item_exclude mime ^image/.*
- mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
- </ifModule>
- <IfModule mod_expires.c>
- ExpiresActive on
- ExpiresDefault "access plus 1 month"
- ExpiresByType text/css "access plus 1 month”
- ExpiresByType application/atom+xml "access plus 1 hour"
- ExpiresByType application/rdf+xml "access plus 1 hour"
- ExpiresByType application/rss+xml "access plus 1 hour"
- ExpiresByType application/json "access plus 0 seconds"
- ExpiresByType application/ld+json "access plus 0 seconds"
- ExpiresByType application/schema+json "access plus 0 seconds"
- ExpiresByType application/vnd.geo+json "access plus 0 seconds"
- ExpiresByType application/xml "access plus 0 seconds"
- ExpiresByType text/xml "access plus 0 seconds"
- ExpiresByType image/vnd.microsoft.icon "access plus 1 week"
- ExpiresByType image/x-icon "access plus 1 week"
- ExpiresByType text/html "access plus 1 seconds
- ExpiresByType application/javascript "access plus 1 month”
- ExpiresByType application/x-javascript "access plus 1 year"
- ExpiresByType text/javascript "access plus 1 year"
- ExpiresByType application/manifest+json "access plus 1 year"
- ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
- ExpiresByType text/cache-manifest "access plus 0 seconds"
- ExpiresByType audio/ogg "access plus 1 month"
- ExpiresByType image/bmp "access plus 1 month"
- ExpiresByType image/gif "access plus 1 month"
- ExpiresByType image/jpeg "access plus 1 month"
- ExpiresByType image/png "access plus 1 month"
- ExpiresByType image/svg+xml "access plus 1 month"
- ExpiresByType video/mp4 "access plus 1 month"
- ExpiresByType video/ogg "access plus 1 month"
- ExpiresByType video/webm "access plus 1 month"
- ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
- ExpiresByType font/eot "access plus 1 month"
- ExpiresByType font/opentype "access plus 1 month"
- ExpiresByType application/x-font-ttf "access plus 1 month"
- ExpiresByType application/font-woff "access plus 1 month"
- ExpiresByType application/x-font-woff "access plus 1 month"
- ExpiresByType font/woff "access plus 1 month"
- ExpiresByType application/font-woff2 "access plus 1 month"
- ExpiresByType text/x-cross-domain-policy "access plus 1 week"
- </IfModule>
- # SONU: TemaFabrika Otomatik Oluşturulmuş Kodlar
- ';
- return $badeficdcj . $dffjhgcjbb;
- }
- function {closure}() {
- $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' ) );
- $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' ) );
- register_post_type( 'haberler', $args );
- $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' ) );
- $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' ) );
- register_post_type( 'muzikler', $args );
- }
- function kategori_getir($ddgfcbcdca = false) {
- $ebbdhihfej = array( );
- $cjjagcciac = get_the_category( );
- foreach ($cjjagcciac as $cfehdgdjad) {
- if ($ddgfcbcdca) {
- while (true) {
- $ebbdhihfej[] = '<a href="' . esc_url( get_category_link( $cfehdgdjad->term_id ) ) . '" title="' . esc_attr( $cfehdgdjad->name ) . '">' . esc_attr( $cfehdgdjad->name ) . '</a>';
- }
- esc_attr;
- $cfehdgdjad->name;
- }
- while (true) {
- $ebbdhihfej[] = ( );
- }
- }
- return $ebbdhihfej;
- }
- function get_sliders() {
- while (true) {
- query_posts( $ifgicgdhb );
- $cfjfdbgad = $ifgicgdhb = array( 'post_type' => 'slider', 'posts_per_page' => '10' );
- $hchjibgga = array( );
- if (have_posts( )) {
- if (have_posts( )) {
- the_post( );
- get_post_meta( get_the_ID( ), 'film_id', true );
- }
- }
- $hchjibgga[] = ;
- }
- wp_reset_query( );
- return $hchjibgga;
- }
- function get_liked($dacaabeija = 'like', $giefafbfc = null) {
- if ($giefafbfc) {
- $giefafbfc = (true ? $giefafbfc : get_the_ID( ));
- $ghfhhhbai = $_COOKIE['likes'];
- json_decode;
- stripslashes;
- $ghfhhhbai;
- }
- ( ( ), true );
- $ghfhhhbai = ;
- if (!is_array( $ghfhhhbai )) {
- return 0;
- in_array( $giefafbfc, $ghfhhhbai[$dacaabeija] );
- }
- function sayfa_getir($biabejddhd, $ccedaacgdj = 0) {
- (bool);
- $bebjciejhc = get_posts( array( 'post_type' => 'page', 'meta_key' => '_wp_page_template', 'meta_value' => $biabejddhd ) );
- $cicdfeahcf = $bebjciejhc[0];
- if ($ccedaacgdj == 1) {
- return $cicdfeahcf;
- $cicdfeahcf->ID;
- }
- return ;
- }
- function curl($hejajidai, $hbheicbhj = '') {
- $dajdhgdehc = 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0';
- $eidfijiid = curl_init( );
- curl_setopt( $eidfijiid, CURLOPT_URL, $hejajidai );
- if ($dhehchfcdf) {
- true;
- }
- curl_setopt( $eidfijiid, CURLOPT_HEADER, false );
- curl_setopt( $eidfijiid, CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt( $eidfijiid, CURLOPT_FOLLOWLOCATION, 1 );
- if (is_array( $hbheicbhj )) {
- curl_setopt( $eidfijiid, CURLOPT_POST, 1 );
- curl_setopt( $eidfijiid, CURLOPT_POSTFIELDS, http_build_query( $hbheicbhj ) );
- curl_setopt;
- $eidfijiid;
- CURLOPT_TIMEOUT;
- }
- ( , 4 );
- curl_setopt( $eidfijiid, CURLOPT_REFERER, $hejajidai );
- curl_setopt( $eidfijiid, CURLOPT_USERAGENT, $dajdhgdehc );
- $dehdjjfbi = curl_exec( $eidfijiid );
- curl_close( $eidfijiid );
- return $dehdjjfbi;
- }
- function tema_guncelle($dhacgdhhaf = false) {
- $ebcfhdafi = get_option( 'versiyon_son', null );
- if (( $ebcfhdafi < time( ) - 86400 || $dhacgdhhaf == true )) {
- 'http://www.temafabrika.com/_api/version/responsive-film.v';
- }
- $gehehebic = curl( );
- $gehehebic = number_format( $gehehebic, 1 );
- ( update_option( 'tema_versiyon', $gehehebic, true ) || add_option( 'tema_versiyon', $gehehebic, true ) );
- ( update_option( 'versiyon_son', time( ), true ) || add_option( 'tema_versiyon', time( ), true ) );
- $gehehebic = get_option( 'tema_versiyon', 0 );
- if (0 < $gehehebic) {
- $caifaddb = wp_get_theme( );
- if ($caifaddb->Version < $gehehebic) {
- '<div class="error"><p><strong style="font-size: 14px;">Temanızın güncellenmesi gerekli.</strong><br />
- 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;">';
- }
- . $gehehebic;
- }
- echo '</strong>.<br />
- Detaylara gözatmak için <a href="?page=tema_ayarlari&opt=update">buraya tıklayın</a>.</p></div>';
- }
- function film_stars($begegejhfh = 0) {
- echo '
- <div class="film-stars">
- <ul class="film-rating-o">
- <li><i class="fa fa-star-o"></i></li>
- <li><i class="fa fa-star-o"></i></li>
- <li><i class="fa fa-star-o"></i></li>
- <li><i class="fa fa-star-o"></i></li>
- <li><i class="fa fa-star-o"></i></li>
- </ul>
- <ul class="film-rating">
- ';
- $chcbdebceg = ;
- [0];
- list( , $cifgedeih ) = explode( '.', $begegejhfh );
- $bbiiiaajee = 7;
- if ($bbiiiaajee <= $cifgedeih) {
- echo '<li><i class="fa fa-star"></i></li>';
- while (true) {
- ++$bbiiiaajee;
- }
- if ($chcbdebceg == 5) {
- echo '<li><i class="fa fa-star-half"></i></li>';
- }
- }
- echo '
- </ul>
- </div>';
- }
- function uzanti_getir($jiebeeffi = null) {
- if (!$jiebeeffi) {
- return false;
- $dadjedbjcj = explode( '.', $jiebeeffi );
- $dadjedbjcj = end( $dadjedbjcj );
- strtolower;
- }
- $dadjedbjcj = ( $dadjedbjcj );
- return $dadjedbjcj;
- }
- function get_userlikes() {
- $ebhejjefjf = json_decode( stripslashes( $_COOKIE['likes'] ), true );
- return $ebhejjefjf;
- }
- function avatar_getir($giefafbfc, $djcbcccjch) {
- $cgbejgbdga = wp_upload_dir( );
- if (is_file( $cgbejgbdga['basedir'] . '/avatars/' . $giefafbfc . '.jpg' )) {
- $hejajidai = $cgbejgbdga['baseurl'] . '/avatars/' . $giefafbfc . '.jpg';
- $hejajidai = str_replace( '.jpg', '.cropped.' . $djcbcccjch . '.jpg', $hejajidai );
- jmp;
- $diajdagihf = get_user_meta( $giefafbfc, 'gender', true );
- get_template_directory_uri;
- }
- if ($diajdagihf == 'Kadın') {
- }
- $hejajidai = ( ) . '/images/no-avatar-' . (true ? 'fe' : '') . 'male.png';
- return $hejajidai;
- }
- function tax_resim_getir($giefafbfc, $djcbcccjch) {
- $cgbejgbdga = wp_upload_dir( );
- if (is_file( $cgbejgbdga['basedir'] . '/tax/' . $giefafbfc . '.jpg' )) {
- $hejajidai = $cgbejgbdga['baseurl'] . '/tax/' . $giefafbfc . '.jpg';
- str_replace;
- '.jpg';
- '.cropped.' . $djcbcccjch;
- }
- ( '.jpg', $hejajidai );
- $hejajidai = ;
- $hejajidai = get_template_directory_uri( ) . '/images/no-image.png';
- return $hejajidai;
- }
- function permalink_slash($cijhdjiifh = false) {
- $deehicicba = get_option( 'permalink_structure', null );
- if (substr( $deehicicba, -1 ) == '/') {
- return null;
- if ($cijhdjiifh) {
- }
- }
- return (true ? null : '/');
- }
- function hit_on_times($jahfbeejf) {
- $dbjgcifgej = get_post_meta( $jahfbeejf, 'hits_by_day', true );
- if (( !empty( $$dbjgcifgej ) && !is_array( $dbjgcifgej ) )) {
- $dbjgcifgej = json_decode( $dbjgcifgej, true );
- if (!is_array( $dbjgcifgej )) {
- $dbjgcifgej = array( );
- }
- }
- date( 'd.m.Y' );
- if ($dbjgcifgej[date( 'd.m.Y' )]) {
- $dbjgcifgej[] = (true ? $dbjgcifgej[date( 'd.m.Y' )] + 1 : 1);
- $dbjgcifgej = json_encode( $dbjgcifgej );
- }
- update_post_meta( $jahfbeejf, 'hits_by_day', $dbjgcifgej );
- }
- function en_cok_izlenen_ayarla() {
- global $wpdb;
- $iechjajbg = array( );
- $dgehidegei = $dgeeffbcbg->get_results( 'SELECT * FROM ' . $dgeeffbcbg->prefix . 'postmeta WHERE meta_key = \'hits_by_day\'', 'ARRAY_A' );
- foreach ($dgehidegei as $gadibjdi) {
- if (empty( $gadibjdi['meta_value'] )) {
- continue;
- json_decode( $gadibjdi['meta_value'], true );
- while (true) {
- $eahagfgbef = ;
- $iechjajbg['bugun'][$gadibjdi['post_id']] = $eahagfgbef[date( 'd.m.Y' )] + $eahagfgbef[date( 'd.m.Y', strtotime( '-1 days' ) )];
- $iechjajbg['son7'][$gadibjdi['post_id']] = $iechjajbg['bugun'][$gadibjdi['post_id']];
- $iechjajbg['son30'][$gadibjdi['post_id']] = $iechjajbg['bugun'][$gadibjdi['post_id']];
- $bbiiiaajee = 12;
- if ($bbiiiaajee <= 30) {
- $bjedfdfjda = $eahagfgbef[date( 'd.m.Y', strtotime( '-' . $bbiiiaajee . ' days' ) )];
- if ($bjedfdfjda == 0) {
- continue;
- if ($bbiiiaajee < 8) {
- $gadibjdi['post_id'];
- if ($iechjajbg['son7'][$gadibjdi['post_id']]) {
- $iechjajbg['son7'][$gadibjdi['post_id']] + $bjedfdfjda;
- }
- }
- $iechjajbg['son7'][] = $bjedfdfjda;
- $gadibjdi['post_id'];
- if ($iechjajbg['son30'][$gadibjdi['post_id']]) {
- $gadibjdi['post_id'];
- $iechjajbg['son30'];
- }
- }
- }
- }
- }
- while (true) {
- while (true) {
- $iechjajbg['son30'][] = (true ? [] + $bjedfdfjda : $bjedfdfjda);
- ++$bbiiiaajee;
- }
- }
- }
- arsort( $iechjajbg['bugun'] );
- arsort( $iechjajbg['son7'] );
- arsort( $iechjajbg['son30'] );
- $eahagfgbef = array( );
- foreach ($iechjajbg['bugun'] as $giefafbfc => $dhfbdjcbca) {
- $eahagfgbef['bugun'][] = array( 'id' => $giefafbfc, 'hit' => $dhfbdjcbca );
- break;
- }
- foreach ($iechjajbg['son7'] as $giefafbfc => $dhfbdjcbca) {
- $eahagfgbef['son7'][] = array( 'id' => $giefafbfc, 'hit' => $dhfbdjcbca );
- break;
- }
- foreach ($iechjajbg['son30'] as $giefafbfc => $dhfbdjcbca) {
- $eahagfgbef['son30'][] = array( 'id' => $giefafbfc, 'hit' => $dhfbdjcbca );
- break;
- }
- update_option( 'en_cok_izlenen', $eahagfgbef );
- }
- function en_cok_izlenen($fhhggahg = 'tumzamanlar') {
- $cjjbbgbii = array( );
- if ($fhhggahg == 'tumzamanlar') {
- $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' );
- $eahagfgbef = get_option( 'en_cok_izlenen', null );
- !is_array( $eahagfgbef );
- }
- if (( || !is_array( $eahagfgbef[$fhhggahg] ) )) = ;
- return $cjjbbgbii;
- }
- function kategori_ikon_ekle($hdhdagggd) {
- global $themedir;
- $dacdecejib = get_option( 'category_icons', null );
- $ecddaadjij = get_option( 'category_prefixes', null );
- echo '
- <tr class="form-field">
- <th scope="row" valign="top"><label for="kategori-ikon">Kategori ikonu</label></th>
- <td>
- <input type="text" id="kategori-ikon" name="kategori_ikon" size="3" style="width:50%;" value="' . $dacdecejib[$hdhdagggd->term_id] . '">
- <p class="description">Yukarıya bir şey yazmaya başlayabilir ya da aşağıdan bularak seçebilirsiniz.</p>
- ';
- include( $hfgjcbdbb . 'includes/fa-icon-list.php' );
- if ($ecddaadjij[$hdhdagggd->term_id] == 'Filmler') {
- (true ? 'selected' : '');
- }
- echo '
- </td>
- </tr>
- <tr class="form-field">
- <th scope="row" valign="top"><label for="cat_onek">Kategori eki</label></th>
- <td>
- <select id="cat_onek" name="kategori_onek" style="width: 150px;">
- <option value="Filmleri">Filmleri</option>
- <option value="Filmler" ' . . '>Filmler</option>
- </select>
- </td>
- </tr>
- ';
- }
- function kategori_ikon_kaydet($caghibidig) {
- if (isset( $_POST['kategori_ikon'] )) {
- $cggahiaba = get_option( 'category_icons', null );
- if (!is_array( $cggahiaba )) {
- $cggahiaba = array( );
- $cggahiaba[$caghibidig] = $_POST['kategori_ikon'];
- update_option( 'category_icons', $cggahiaba );
- $ecddaadjij = get_option( 'category_prefixes', null );
- !is_array( $ecddaadjij );
- }
- }
- if () = ;
- update_option( 'category_prefixes', $ecddaadjij );
- }
- function tax_detay_ekle($hdhdagggd) {
- global $themedir;
- $cgbejgbdga = wp_upload_dir( );
- $dghhfidjjg = $cgbejgbdga['basedir'] . '/tax/';
- if (is_file( $dghhfidjjg . $hdhdagggd->term_id . '.jpg' )) {
- $cgbejgbdga['baseurl'];
- }
- echo '
- <tr class="form-field">
- <th scope="row" valign="top"><label for="oresim">Fotoğraf önizleme</label></th>
- <td>
- <img src="' . . '/tax/' . $hdhdagggd->term_id . '.jpg" width="150" />
- </td>
- </tr>
- ';
- echo '
- <tr class="form-field">
- <th scope="row" valign="top"><label for="oyuncu_resim">Fotoğraf</label></th>
- <td>
- <input type="file" id="oyuncu_resim" name="oyuncu_resim" size="3" style="width:50%;" />
- <p class="description">Sadece <strong>jpg</strong> veya <strong>png</strong> resmi yükleyebilirsiniz.</p>
- </td>
- </tr>
- <script type="text/javascript">
- jQuery(\'form.validate\').attr("enctype", "multipart/form-data");
- </script>
- ';
- }
- function tax_detay_kaydet($caghibidig) {
- if (( isset( $_FILES['oyuncu_resim'] ) && !empty( $_FILES['oyuncu_resim']['name'] ) )) {
- $cgbejgbdga = wp_upload_dir( );
- $dghhfidjjg = $cgbejgbdga['basedir'] . '/tax/';
- $dadjedbjcj = uzanti_getir( $_FILES['oyuncu_resim']['name'] );
- if (!in_array( $dadjedbjcj, array( 'jpg', 'jpeg', 'png' ) )) {
- $jighecjhe = 'Resim yalnızca <strong>jpg ve png</strong> uzantılarında olabilir.';
- return null;
- if (!file_exists( $dghhfidjjg )) {
- }
- }
- }
- wp_mkdir_p( $dghhfidjjg );
- move_uploaded_file( $_FILES['oyuncu_resim']['tmp_name'], $dghhfidjjg . $caghibidig . '.jpg' );
- }
- function yorumlistesi($dicijigajb, $ifgicgdhb, $djedagceia) {
- $GLOBALS['comment'] = $dicijigajb;
- extract( $ifgicgdhb, EXTR_SKIP );
- if ('div' == $ifgicgdhb['style']) {
- $hdhdagggd = 'div';
- $fciaiaeag = 'comment';
- }
- _e( 'Your comment is awaiting moderation.' );
- echo '</em>
- <br />
- ';
- echo '
- <div class="comment-meta commentmetadata">
- <a href="';
- echo home_url( '/user/' ) . get_user_by( 'id', $dicijigajb->user_id )->user_nicename;
- echo '/"><span>';
- echo $dicijigajb->comment_author;
- echo '</span></a>
- ';
- printf( __( '%1$s at %2$s' ), get_comment_date( ), get_comment_time( ) );
- echo ' ';
- edit_comment_link( __( '(Edit)' ), ' ', '' );
- echo ' </div>
- <div class="comment-text">';
- comment_text( );
- echo '</div>
- <div class="reply">
- ';
- comment_reply_link( array_merge( $ifgicgdhb, array( 'add_below' => $fciaiaeag, 'depth' => $djedagceia, 'max_depth' => $ifgicgdhb['max_depth'] ) ) );
- echo ' </div>
- </div>
- <div class="clear"></div>
- ';
- if ('div' != $ifgicgdhb['style']) {
- }
- echo ' </div>
- ';
- }
- function example_add_dashboard_widgets() {
- if (get_option( 'opt_admin_tf' ) != 'on') {
- return false;
- wp_add_dashboard_widget( 'temafabrika_widget', 'TemaFabrika\'dan Haberler', 'admin_temafabrika_widget' );
- global $wp_meta_boxes;
- $ddadcigijd = $dgcijehchd['dashboard']['normal']['core'];
- $bcdccfedbj = array( 'temafabrika_widget' => $ddadcigijd['temafabrika_widget'] );
- unset( $ddadcigijd[temafabrika_widget] );
- array_merge( $bcdccfedbj, $ddadcigijd );
- }
- $dgjaeiaacg = ;
- $dgcijehchd['dashboard']['normal']['core'] = $dgjaeiaacg;
- }
- function admin_temafabrika_widget() {
- echo '<div id="temafabrika_haber">Yükleniyor...</div>
- <script type="text/javascript">
- jQuery(document).ready(function() {
- var data = {
- \'action\': \'temafabrika_haberler\'
- };
- jQuery.post(ajaxurl, data, function(response) {
- jQuery(\'#temafabrika_haber\').html(response);
- });
- });
- </script>
- ';
- }
- function temafabrika_haberler_callback() {
- $fadfdcaff = @file_get_contents( 'http://www.temafabrika.com/_api/news.xml' );
- if (!$fadfdcaff) {
- wp_die( 'Haberler alınamadı.' );
- $fadfdcaff = simplexml_load_string( $fadfdcaff );
- foreach ($fadfdcaff->haber as $bhgicgahcb) {
- str_replace;
- array( '[', ']' );
- }
- }
- $bhgicgahcb->spot = ( array( '<', '>' ), $bhgicgahcb->spot );
- while (true) {
- echo '<div class="tf-haber">
- <div class="tf-haber-baslik"><a href="' . $bhgicgahcb->url . '" target="_blank">' . $bhgicgahcb->baslik . '</a> <span class="tf-haber-tarih">' . $bhgicgahcb->tarih . '</span></div>
- <div class="tf-haber-description">' . $bhgicgahcb->spot . '</div>
- </div>';
- }
- wp_die( );
- }
- $bbdhahheee = function honkur_kufur($bigfafejjj) {;
- $bbdhahheee = $bbdhahheee['honkur_kufur'];
- while (true) {
- if (( !empty( $$bbdhahheee ) || empty( $$bbdhahheee ) )) {
- return $bigfafejjj;
- $bbdhahheee = explode( ',', $bbdhahheee );
- foreach ($bbdhahheee as $dfcfjbdggf) {
- str_ireplace;
- }
- }
- ( trim( $dfcfjbdggf ), str_repeat( '*', strlen( $dfcfjbdggf ) ), $bigfafejjj );
- $bigfafejjj = get_option( 'opt_listeleme' );
- }
- return $bigfafejjj;
- }
- add_action( 'init', );
- if (( isset( $_GET['s'] ) && $_GET['s'] == 'sıfırla' )) {
- flush_rewrite_rules( );
- exit( header( 'location: ' . home_url( ) ) );
- $dacaabeija = get_template_directory_uri( ) . '/';
- $giefafbfc = get_template_directory( ) . '/';
- show_admin_bar( false );
- include( dirname( __FILE__ ) . '/functions_user.php' );
- add_action( 'wp_loaded', 'license_control' );
- add_theme_support( 'post-thumbnails' );
- add_action( 'admin_menu', );
- add_action( 'wp_enqueue_scripts', );
- add_action( 'admin_enqueue_scripts', );
- add_filter( 'clean_url', 'add_async_forscript', 11, 1 );
- add_action( 'after_switch_theme', 'tema_aktiflestir' );
- add_action( 'admin_menu', 'revcon_change_post_label' );
- add_action( 'init', 'revcon_change_post_object' );
- add_action( 'init', 'taxonomy_olustur', 0 );
- add_action( 'show_user_profile', 'vip_uyelik_alani' );
- add_action( 'edit_user_profile', 'vip_uyelik_alani' );
- add_action( 'personal_options_update', 'vip_uyelik_kaydet' );
- add_action( 'edit_user_profile_update', 'vip_uyelik_kaydet' );
- add_action( 'admin_head', 'remove_my_meta_boxen' );
- register_nav_menus( array( 'footer_menu' => 'Footer Menü' ) );
- if (is_admin( )) {
- add_action( 'load-post.php', 'meta_box_getir' );
- add_action( 'load-post-new.php', 'meta_box_getir' );
- add_filter;
- 'manage_posts_columns';
- 'es_head';
- }
- ( );
- add_action( 'manage_posts_custom_column', 'es_content', 5, 2 );
- if (( isset( $_GET['islem'] ) && $_GET['islem'] == 'tfajax' )) {
- add_filter( 'wp_loaded', );
- add_filter( 'admin_footer_text', );
- add_action( 'init', 'custom_rewrite_basic' );
- add_action( 'init', 'custom_rewrite_tag', 10, 0 );
- add_filter;
- }
- }
- ( 'mod_rewrite_rules', 'my_htaccess_contents' );
- add_action( 'init', );
- add_action( 'admin_notices', 'tema_guncelle', 0 );
- if (!wp_next_scheduled( 'en_cok_izlenen' )) {
- wp_schedule_event( time( ), 'daily', 'en_cok_izlenen' );
- add_action( 'en_cok_izlenen', 'en_cok_izlenen_ayarla' );
- add_action( 'edit_category_form_fields', 'kategori_ikon_ekle' );
- add_action( 'category_add_form_fields', 'kategori_ikon_ekle' );
- add_action;
- }
- ( 'edited_category', 'kategori_ikon_kaydet' );
- add_action( 'create_category', 'kategori_ikon_kaydet' );
- add_action( 'oyuncular_edit_form_fields', 'tax_detay_ekle', 10, 2 );
- add_action( 'yonetmenler_edit_form_fields', 'tax_detay_ekle', 10, 2 );
- add_action( 'yonetmenler_add_form_fields', 'tax_detay_ekle', 10, 2 );
- add_action( 'oyuncular_add_form_fields', 'tax_detay_ekle', 10, 2 );
- add_action( 'edited_oyuncular', 'tax_detay_kaydet' );
- add_action( 'create_oyuncular', 'tax_detay_kaydet' );
- add_action( 'edited_yonetmenler', 'tax_detay_kaydet' );
- add_action( 'create_yonetmenler', 'tax_detay_kaydet' );
- add_action( 'wp_dashboard_setup', 'example_add_dashboard_widgets' );
- add_action( 'wp_ajax_temafabrika_haberler', 'temafabrika_haberler_callback' );
- return 1;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement