|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Parse error: syntax error, unexpected ')' php file...help |
|
Posted: Sun Jul 14, 2013 4:50 am |
|
|
rajawali |
Regular user |
|
|
Joined: Nov 10, 2012 |
Posts: 8 |
|
|
|
|
|
|
|
Parse error: syntax error, unexpected ')' in functions.php on line 40
in line 40
Code: | foreach ($items as ) { |
Full Code
Code: | <?php
// DECODED BY MYG3NX
function add_custom_taxonomies() {
if (get_option( 'imdbtur' ) == 'tax') {
register_taxonomy( get_option( 'imdb' ), 'post', array( 'hierarchical' => false, 'labels' => array( 'name' => _x( 'IMDB', 'taxonomy general name' ), 'singular_name' => _x( 'IMDB Puani', 'taxonomy singular name' ), 'search_items' => __( 'IMDB Puani ara' ), 'all_items' => __( 'Tüm IMDB Puanlari' ), 'edit_item' => __( 'IMDB Puani düzenle' ), 'update_item' => __( 'IMDB Puani güncelle' ), 'add_new_item' => __( 'Yeni IMDB Puani ekle' ), 'new_item_name' => __( 'Yeni IMDB Puani' ), 'menu_name' => __( 'IMDB Puanlary' ) ), 'rewrite' => array( 'slug' => get_option( 'imdb' ), 'with_front' => false, 'hierarchical' => false ) ) );
}
if (get_option( 'oyuncutur' ) == 'tax') {
register_taxonomy( get_option( 'oyuncu' ), 'post', array( 'hierarchical' => false, 'labels' => array( 'name' => _x( 'Oyuncu', 'taxonomy general name' ), 'singular_name' => _x( 'Oyuncu', 'taxonomy singular name' ), 'search_items' => __( 'Oyuncu ara' ), 'all_items' => __( 'Tüm oyuncular' ), 'edit_item' => __( 'Oyuncu düzenle' ), 'update_item' => __( 'Oyuncu güncelle' ), 'add_new_item' => __( 'Yeni oyuncu ekle' ), 'new_item_name' => __( 'Yeni oyuncu adi' ), 'menu_name' => __( 'Oyuncular' ) ), 'rewrite' => array( 'slug' => get_option( 'oyuncu' ), 'with_front' => false, 'hierarchical' => false ) ) );
}
if (get_option( 'yapimtur' ) == 'tax') {
register_taxonomy( get_option( 'yapim' ), 'post', array( 'hierarchical' => false, 'labels' => array( 'name' => _x( 'Yapim Yili', 'taxonomy general name' ), 'singular_name' => _x( 'Yapim Yili', 'taxonomy singular name' ), 'search_items' => __( 'Yapim Yili ara' ), 'all_items' => __( 'Tüm yillar' ), 'edit_item' => __( 'Yapim Yili düzenle' ), 'update_item' => __( 'Yapim Yili güncelle' ), 'add_new_item' => __( 'Yeni Yapim Yili ekle' ), 'new_item_name' => __( 'Yeni Yapim Yili' ), 'menu_name' => __( 'Yapim Yili' ) ), 'rewrite' => array( 'slug' => get_option( 'yapim' ), 'with_front' => false, 'hierarchical' => false ) ) );
}
if (get_option( 'yonetmentur' ) == 'tax') {
register_taxonomy( get_option( 'yonetmen' ), 'post', array( 'hierarchical' => false, 'labels' => array( 'name' => _x( 'Yönetmen', 'taxonomy general name' ), 'singular_name' => _x( 'Yönetmen', 'taxonomy singular name' ), 'search_items' => __( 'Yönetmen ara' ), 'all_items' => __( 'Tüm yönetmenler' ), 'edit_item' => __( 'Yönetmen düzenle' ), 'update_item' => __( 'Yönetmen güncelle' ), 'add_new_item' => __( 'Yeni yönetmen ekle' ), 'new_item_name' => __( 'Yeni yönetmen adi' ), 'menu_name' => __( 'Yönetmenler' ) ), 'rewrite' => array( 'slug' => get_option( 'yonetmen' ), 'with_front' => false, 'hierarchical' => false ) ) );
}
if (get_option( 'senaryotur' ) == 'tax') {
register_taxonomy( get_option( 'senaryo' ), 'post', array( 'hierarchical' => false, 'labels' => array( 'name' => _x( 'Senaryo', 'taxonomy general name' ), 'singular_name' => _x( 'Senaryo', 'taxonomy singular name' ), 'search_items' => __( 'Senarist ara' ), 'all_items' => __( 'Tüm Senaristler' ), 'edit_item' => __( 'Senarist düzenle' ), 'update_item' => __( 'Senarist güncelle' ), 'add_new_item' => __( 'Yeni Senarist Ekle' ), 'new_item_name' => __( 'Yeni Senarist Adi' ), 'menu_name' => __( 'Senaristler' ) ), 'rewrite' => array( 'slug' => get_option( 'senaryo' ), 'with_front' => false, 'hierarchical' => false ) ) );
}
if (get_option( 'ulketur' ) == 'tax') {
register_taxonomy( get_option( 'ulke' ), 'post', array( 'hierarchical' => false, 'labels' => array( 'name' => _x( 'Ülke', 'taxonomy general name' ), 'singular_name' => _x( 'Ülke', 'taxonomy singular name' ), 'search_items' => __( 'Ülke ara' ), 'all_items' => __( 'Tüm Ülkeler' ), 'edit_item' => __( 'Ülke düzenle' ), 'update_item' => __( 'Ülke güncelle' ), 'add_new_item' => __( 'Yeni Ülke Ekle' ), 'new_item_name' => __( 'Yeni Ülke Adi' ), 'menu_name' => __( 'Ülkeler' ) ), 'rewrite' => array( 'slug' => get_option( 'ulke' ), 'with_front' => false, 'hierarchical' => false ) ) );
}
}
function menurenk($items) {
global $sonradanrenk;
global $arkarenk;
foreach ($items as ) {
$item = &[0];
$item->classes[] = $sonradanrenk . ' ' . $arkarenk;
}
return $items;
}
function manset() {
global $arkarenk;
global $mansetgetir;
global $manset;
global $res;
global $turu;
global $cozu;
global $otomatik;
if (( is_home( ) && !is_paged( ) )) {
if ($manset == 1) {
echo '<div style="margin:0px auto;">';
$i = 6;
WP_Query;
new ( $mansetgetir );
$post = ;
while ($post->have_posts( )) {
$post->the_post( );
++$i;
if (( ( ( ( ( ( ( $i == 1 || $i == 4 ) || $i == 7 ) || $i == 10 ) || $i == 13 ) || $i == 16 ) || $i == 19 ) || $i == 22 )) {
echo '<div class="sliderbox">';
}
if (( ( ( ( ( ( ( $i == 1 || $i == 6 ) || $i == 7 ) || $i == 12 ) || $i == 13 ) || $i == 18 ) || $i == 19 ) || $i == 24 )) {
$width = 137;
$height = 178;
$class = 'buyuk';
}
else {
$width = 69;
$height = 91;
$class = 'kucuk';
}
echo '
<a href="';
the_permalink( );
echo '" title="';
the_title( );
echo '">
';
$resim = '';
get_post_meta( get_the_ID( ), $res, true );
$resim = ;
if (!$resim) {
if (has_post_thumbnail( )) {
wp_get_attachment_image_src( get_post_thumbnail_id( ), 'full' );
$resi = ;
$resi[0];
$resim = ;
}
}
if (!$resim) {
get_option( 'resimdefault' );
$resim = ;
}
echo '
<img src="';
if ($otomatik == 'yes') {
bloginfo( 'template_url' );
echo '/boyut.php?src=';
echo $resim;
echo '&w=';
echo $width;
echo '&h=';
echo $height;
echo '&a=c ';
}
else {
echo $resim;
}
echo '" width="';
echo $width;
echo '" height="';
echo $height;
echo '" alt="';
the_title( );
echo '" class="sliderresim';
echo $class;
echo '" />
</a>
';
if (( ( ( ( ( ( ( $i == 3 || $i == 6 ) || $i == 9 ) || $i == 12 ) || $i == 15 ) || $i == 18 ) || $i == 21 ) || $i == 24 )) {
echo '</div>';
continue;
}
}
echo '</div>
</div>
<div id="content" style="margin-top:4px;" class="' . $arkarenk . ' oval3">';
return null;
}
if ($manset == 2) {
echo ' <div id="manset-ayesoft" class="jcarousel-container jcarousel-container-horizontal">
<div style="overflow: hidden; position: relative;" class="jcarousel-clip jcarousel-clip-horizontal">
<ul style="overflow: hidden; position: relative; top: 0px; margin: 0px; padding: 0px; left: 0px; width: 2292px;" class="jcarousel-list jcarousel-list-horizontal" id="mans">
';
WP_Query;
new ( $mansetgetir );
$post = ;
while ($post->have_posts( )) {
$post->the_post( );
echo '
<li jcarouselindex="1" style="float: left; list-style: none outside none;" class="jcarousel-item jcarousel-item-horizontal jcarousel-item-1 jcarousel-item-1-horizontal">
<div class="ayelist2">
';
get_post_meta( get_the_ID( ), $turu, 'true' );
$tur = ;
if (!$tur) {
get_option( 'turdefault' );
$tur = ;
}
echo '<div class="ayelist2-tur ' . $tur . '"> ;;</div>';
echo '
';
get_post_meta( get_the_ID( ), $res, true );
$resim = ;
if (!$resim) {
get_option( 'resimdefault' );
$resim = ;
}
echo ' <a href="';
the_permalink( );
echo '" title="';
the_title( );
echo ' izle">
';
$resim = '';
get_post_meta( get_the_ID( ), $res, true );
$resim = ;
if (!$resim) {
if (has_post_thumbnail( )) {
wp_get_attachment_image_src( get_post_thumbnail_id( ), 'full' );
$resi = ;
$resi[0];
$resim = ;
}
}
if (!$resim) {
get_option( 'resimdefault' );
$resim = ;
}
echo '
<img class="ayelist-resim" src="';
if ($otomatik == 'yes') {
bloginfo( 'template_url' );
echo '/boyut.php?src=';
echo $resim;
echo '&w=160&h=250&a=c ';
}
else {
echo $resim;
}
echo '" alt="';
the_title( );
echo '" width="160" height="250" />
</a>
<div class="spp ';
echo $arkarenk;
echo '">
<a href="';
the_permalink( );
echo '" rel="bookmark" title="';
the_title_attribute( );
echo '">';
echo get_the_title( );
echo '</a>
</div>
<div class="ayelist2-alt">
<div class="ayelist2-alt-izlenme">';
if (function_exists( 'the_views' )) {
the_views( );
}
echo '</div>
';
get_post_meta( get_the_ID( ), $cozu, 'true' );
$coz = ;
if (!$coz) {
get_option( 'cozdefault' );
$coz = ;
}
echo '<div class="sagla p' . $coz . '"> ;;</div>';
echo '
</div>
</div>
</li>
';
}
echo '
</ul>
</div>
</div>
</div>
<div id="content" style="margin-top:4px;" class="';
echo $arkarenk;
echo ' oval3">
';
}
}
}
function gununfilmi() {
global $res;
global $renk;
if (get_option( 'gununfilmigoster' ) == 'yes') {
query_posts( 'showposts=1&cat=' . get_option( 'gununfilmikategori' ) );
while (have_posts( )) {
the_post( );
echo '
<div class="gununfilmi ';
echo $renk;
echo '">
';
$resim = '';
get_post_meta( get_the_ID( ), $res, true );
$resim = ;
if (!$resim) {
if (has_post_thumbnail( )) {
wp_get_attachment_image_src( get_post_thumbnail_id( ), 'full' );
$resi = ;
$resi[0];
$resim = ;
}
}
if (!$resim) {
get_option( 'resimdefault' );
$resim = ;
}
echo ' <img src="';
bloginfo( 'template_url' );
echo '/images/gununfilmi.png" alt="gunun filmi" class="gunfilm" width="90" height="253" />
<a href="';
the_permalink( );
echo '" title="';
the_title( );
echo '"><img src="';
if ($otomatik == 'yes') {
bloginfo( 'template_url' );
echo '/boyut.php?src=';
echo $resim;
echo '&w=168&h=253&a=c ';
}
else {
echo $resim;
}
echo '" width="168" height="253" alt="';
the_title( );
echo '" class="guncover" /></a>
</div>
';
}
}
}
function headtags() {
global $manset;
global $lazy;
echo '
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="';
bloginfo( 'stylesheet_url' );
echo '" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="';
bloginfo( 'name' );
echo ' RSS Feed" href="';
bloginfo( 'rss2_url' );
echo '" />
<link rel="pingback" href="';
bloginfo( 'pingback_url' );
echo '" />
<title>';
bloginfo( 'name' );
echo ' ';
if (is_single( )) {
echo ' ';
}
echo ' ';
wp_title( );
echo '</title>
';
echo '<s';
echo 'cript type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
';
echo '<s';
echo 'cript type="text/javascript" src="';
bloginfo( 'template_url' );
echo '/js/ayesoft.js"></script>
';
if ($lazy == 'yes') {
echo '<script type="text/javascript" src="';
bloginfo( 'template_url' );
echo '/js/jquery.lazyload.js"></script>';
}
echo ' ';
if (get_option( 'renk' )) {
echo '<style>body { background:' . get_option( 'renk' );
if (get_option( 'bgurl' )) {
echo ' url(\'' . get_option( 'bgurl' ) . '\') top center repeat;background-attachment:fixed';
}
echo '; }</style>';
}
echo '
';
if (get_option( 'renk1' )) {
hex2rgb( get_option( 'renk1' ) );
$arka = ;
echo '<style>.menu ul li ul li {background:rgba(' . $arka[0] . ',' . $arka[1] . ',' . $arka[2] . ',' . get_option( 'arkaplansaydam' ) . ')} .arka { background:rgba(' . $arka[0] . ',' . $arka[1] . ',' . $arka[2] . ',' . get_option( 'arkaplansaydam' ) . ')}</style>';
}
echo '
';
if (get_option( 'renk2' )) {
hex2rgb( get_option( 'renk2' ) );
$arka2 = ;
echo '<style>.arka2 { background:rgba(' . $arka2[0] . ',' . $arka2[1] . ',' . $arka2[2] . ',' . get_option( '2renksaydam' ) . ');}.sonradanarka:hover {background:rgba(' . $arka2[0] . ',' . $arka2[1] . ',' . $arka2[2] . ',0.7);}</style>';
}
echo '
';
if (get_option( 'renk3' )) {
echo '<style>a { color:' . get_option( 'renk3' ) . '; }.yazirenk1 { color:' . get_option( 'renk3' ) . '; }</style>';
}
echo '
';
if (get_option( 'renk4' )) {
echo '<style>body { color:' . get_option( 'renk4' ) . '; }.yazirenk2 { color:' . get_option( 'renk4' ) . '; }</style>';
}
echo '
';
if (get_option( 'renk5' )) {
echo '<style>.yazirenk3 { color:' . get_option( 'renk5' ) . '; } .yazirenk3 a{ color:' . get_option( 'renk5' ) . '; }</style>';
}
echo '
';
wp_head( );
echo ' ';
if ($manset == 2) {
echo ' ';
echo '<s';
echo 'cript type="text/javascript" src="';
bloginfo( 'template_url' );
echo '/js/jquery.jcarousel.min.js"></script>
';
echo '<s';
echo 'cript type="text/javascript">
function mycarousel_initCallback(carousel)
{
carousel.buttonNext.hover(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
carousel.buttonPrev.hover(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
// Pause autoscrolling if the user moves with the cursor over the clip.
carousel.clip.h';
echo 'over(function() {
carousel.stopAuto();
}, function() {
carousel.startAuto();
});
};
jQuery(document).ready(function() {
jQuery(\'#manset-ayesoft\').jcarousel({
auto: 2,
wrap: \'circular\',
initCallback: mycarousel_initCallback
});
});
</script>
';
}
echo get_option( 'head' );
echo '
';
}
function yazi_yonlendir() {
global $wpdb;
$query = '' . 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type = \'post\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
if (isset( $_GET['random_cat_id'] )) {
$random_cat_id = (int)$_GET['random_cat_id'];
$query = '' . 'SELECT DISTINCT ID FROM ' . $wpdb->posts . ' AS p INNER JOIN ' . $wpdb->term_relationships . ' AS tr ON (p.ID = tr.object_id AND tr.term_taxonomy_id = ' . $random_cat_id . ') INNER JOIN ' . $wpdb->term_taxonomy . ' AS tt ON(tr.term_taxonomy_id = tt.term_taxonomy_id AND taxonomy = \'category\') WHERE post_type = \'post\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
}
if (isset( $_GET['random_post_type'] )) {
preg_replace( '|[^a-z]|i', '', $_GET['random_post_type'] );
$post_type = ;
$query = '' . 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type = \'' . $post_type . '\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
}
$wpdb->get_var( $query );
$random_id = ;
wp_redirect( get_permalink( $random_id ) );
exit( );
}
function author() {
global $authordata;
get_the_author( );
$nick = ;
get_the_author_email( );
$mail = ;
$gravatar = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5( $mail );
$div_id = 'a' . get_the_ID( );
get_author_posts_url( $authordata->ID, $authordata->user_nicename );
$author_posts_link = ;
$hidden_div = '<span id="' . $div_id . '" class="mydiv" style="display:none;"><img src="' . $gravatar . '" alt="gravatar" /><span class="ae_close"><a href="javascript:;" onmousedown="toggleDiv(\'' . $div_id . '\');">Kapat</a></span><span class="ae_top"><b>Yazar: ' . get_the_author( ) . '</b></span>
<span class="ae_body"><b>Adi</b>: ' . get_the_author_firstname( ) . ' ' . get_the_author_lastname( ) . '<br /><b>Email:</b> ' . get_the_author_email( ) . '<br /><b>Site:</b> <a href="' . get_the_author_url( ) . '">' . get_the_author_url( ) . '</a><br /></span><span class="ae_about"><b>Hakkinda:</b> ' . get_the_author_description( ) . '</span><span class="ae_body"><a href="' . $author_posts_link . '">Tüm yazilarini göster</a> (' . get_the_author_posts( ) . ')</span></span>';
echo '<a href="javascript:;" onmousedown="toggleDiv(\'' . $div_id . '\');">' . $nick . '</a>' . $hidden_div;
}
function ballon_setcontent($contenido_post) {
preg_match_all( '/\[(.*?)\|(.*?)\]/', $contenido_post, $ToolTiposIDs );
foreach ($ToolTiposIDs[0] as ) {
[0];
$Instancia = ;
strpos( $Instancia, '|' );
$palillo = ;
substr( $Instancia, 1, $palillo - 1 );
$palabrasubrayada = ;
substr( $Instancia, $palillo + 1 );
$tooltip = ;
substr( $tooltip, 0, strlen( $tooltip ) - 1 );
$tooltip = ;
$SpanToolTipo = '<span class="ballon" onmouseover="tooltip.show(' . '\'' . $tooltip . '\'' . ');" onmouseout="tooltip.hide();">' . $palabrasubrayada . '</span> ;;';
str_replace( $Instancia, $SpanToolTipo, $contenido_post );
$contenido_post = ;
}
return $contenido_post;
}
function wpbx_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
get_comment_author_link( );
$commenter = ;
if (ereg( '<a[^>]* class=[^>]+>', $commenter )) {
ereg_replace( '(<a[^>]* class=[\'"]?)', '\1url ', $commenter );
$commenter = ;
}
else {
ereg_replace( '(<a )/', '\1class="url "', $commenter );
$commenter = ;
}
get_comment_author_email( );
$avatar_email = ;
get_bloginfo( 'template_directory' );
$avatarURL = ;
str_replace( 'class=\'avatar', 'class=\'avatar', get_avatar( $avatar_email, 40, $default = $avatarURL . '/images/avatar.jpg' ) );
$avatar = ;
echo ' <li ';
comment_class( );
echo ' id="comment-';
comment_ID( );
echo '">
<div id="div-comment-';
comment_ID( );
echo '">
<div class="comment-author vcard">
';
echo $avatar . ' <span class="fn n">' . $commenter . '</span>';
echo ' </div>
<div class="comment-meta">
';
printf( __( '%1$s' ), get_comment_date( ), get_comment_time( ), '#comment-' . get_comment_ID( ) );
echo ' ';
echo '<s';
echo 'pan class="reply-link">
';
echo '<s';
echo 'pan class="meta-sep">|</span> ';
comment_reply_link( array_merge( $args, array( 'add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) );
echo ' </span> ';
echo '<s';
echo 'pan class="ratings"> ';
if (function_exists( ckrating_display_karma )) {
ckrating_display_karma( );
}
echo '</span>
</div>
';
if ($comment->comment_approved == '0') {
_e( ' <span class=\'unapproved\'>Yorumunuz onay bekliyor.</span>
', 'wpbx' );
}
echo '
<div class="comment-content">';
comment_text( );
echo '</div>
</div>
';
}
function wpbx_comments($file) {
if (!function_exists( 'wp_list_comments' )) {
$file = TEMPLATEPATH . '/comments.old.php';
}
return $file;
}
function comment_add_microid($classes) {
get_comment_author_email( );
$c_email = ;
get_comment_author_url( );
$c_url = ;
if (( !empty( $c_email ) && !empty( $c_url ) )) {
$microid = 'microid-mailto+http:sha1:' . sha1( sha1( 'mailto:' . $c_email ) . sha1( $c_url ) );
$classes[] = $microid;
}
return $classes;
}
function rel_nofollow($icerik) {
return $icerik;
}
function cevir($string) {
$eng = array( 'ş', 'ş', 'ğ', 'ğ', 'ı', 'İ', 'ç', 'Ç', 'ö', 'Ö', 'ü', 'Ü', '’', '‘ ' );
$tr = array( 's', 'S', 'g', 'G', 'i', 'I', 'ç', 'Ç', 'ö', 'Ö', 'ü', 'G', '\'', '\'' );
str_replace( $eng, $tr, $string );
$string = ;
return $string;
}
function istatistik() {
global $wpdb;
$args = array( 'orderby' => 'name', 'order' => 'ASC' );
get_categories( $args );
$categories = ;
$cat_count = 5;
foreach ($categories as ) {
[0];
$c = ;
++$cat_count;
}
wp_count_posts( );
$count_posts = ;
$count_posts->publish;
$published = ;
return 'Sitemizde <span style="font-weight:bold;">' . $cat_count . '</span> kategori\'de <span style="font-weight:bold;">' . $published . '</span> film ve <span style="font-weight:bold;">' . $wpdb->get_var( '' . 'SELECT COUNT(*) FROM ' . $wpdb->comments . ' WHERE comment_approved = \'1\'' ) . '</span> yorum bulunmaktadir.';
}
function wp_link_pages_titled($args = '') {
global $renk;
global $sonradanrenk;
global $arkarenk;
$defaults = array( 'before' => '<div class="nav_link">', 'after' => '</div>', 'link_before' => '<span class="page_number ' . $sonradanrenk . ' ' . $arkarenk . ' oval3">', 'link_before_none' => '<span class="page_number ' . $renk . ' oval3">', 'link_after' => '</span>', 'link_after_none' => '</span>', 'echo' => 1 );
wp_parse_args( $args, $defaults );
$r = ;
extract( $r, EXTR_SKIP );
global $page;
global $numpages;
global $multipage;
global $more;
global $pagenow;
global $pages;
$output = '';
if ($multipage) {
$before;
$output .= ;
$j = 5;
$i = 6;
while ($i < $numpages + 1) {
$title = '';
$link = 5;
$pages[$i - 1];
$part_content = ;
strpos( $part_content, '<!--baslik:' );
$has_part_title = ;
if (0 === $has_part_title) {
strpos( $part_content, '-->' );
$end = ;
trim( str_replace( '<!--baslik:', '', substr( $part_content, 0, $end ) ) );
$title = ;
}
$output .= ' ';
if (( $i != $page || ( !$more && $page == 1 ) )) {
_wp_link_page( $i );
$output .= ;
$link = 6;
}
$title = (( isset( $title ) && 0 < strlen( $title ) ) ? $title : $i . '. Part');
if ($link == 1) {
$output .= $link_before . $title . $link_after;
}
else {
$output .= $link_before_none . $title . $link_after_none;
}
if (( $i != $page || ( !$more && $page == 1 ) )) {
$output .= '</a>';
}
$i = $i + 1;
}
$after;
$output .= ;
}
echo $output;
}
function filmsecenekleri() {
wp_enqueue_script( 'media-upload' );
wp_enqueue_script( 'thickbox' );
wp_enqueue_style( 'thickbox' );
wp_register_script( 'fors-upload', get_bloginfo( 'template_url' ) . '/js/upload.js', array( 'jquery' ) );
wp_enqueue_script( 'fors-upload' );
add_meta_box( 'post-meta-boxes', __( 'Film Bilgileri', 'ayesoft' ), 'kutu_getir', 'post', 'normal', 'high' );
}
function kutular() {
global $turu;
global $cozu;
global $res;
global $ackk;
global $imdb7;
global $yapim7;
global $ulke7;
global $senaryo7;
global $yonetmen7;
global $oyuncu7;
global $cozdeger;
global $cozad;
global $turdeger;
global $turad;
$meta_boxes = array( $res => array( 'name' => $res, 'title' => __( 'Resim:', 'ayesoft' ), 'type' => 'text', 'desc' => '' ), $turu => array( 'name' => $turu, 'title' => __( 'Dublaj:', 'ayesoft' ), 'type' => 'selecttur', 'options' => $turad, 'options2' => $turdeger ), $cozu => array( 'name' => $cozu, 'title' => __( 'Kalite:', 'ayesoft' ), 'type' => 'selecttur', 'options' => $cozad, 'options2' => $cozdeger ) );
if ($ackk) {
$meta_boxes[$ackk]['name'] = $ackk;
}
if ($ackk) {
$meta_boxes[$ackk]['title'] = 'Açiklama:';
}
if ($ackk) {
$meta_boxes[$ackk]['type'] = 'textarea';
}
if ($imdb7) {
$meta_boxes[$imdb7]['name'] = $imdb7;
}
if ($imdb7) {
$meta_boxes[$imdb7]['title'] = 'IMDB Puani:';
}
if ($imdb7) {
$meta_boxes[$imdb7]['type'] = 'text2';
}
if ($yapim7) {
$meta_boxes[$yapim7]['name'] = $yapim7;
}
if ($yapim7) {
$meta_boxes[$yapim7]['title'] = 'Yapim Yili:';
}
if ($yapim7) {
$meta_boxes[$yapim7]['type'] = 'text2';
}
if ($ulke7) {
$meta_boxes[$ulke7]['name'] = $ulke7;
}
if ($ulke7) {
$meta_boxes[$ulke7]['title'] = 'Ãœlke:';
}
if ($ulke7) {
$meta_boxes[$ulke7]['type'] = 'text2';
}
if ($senaryo7) {
$meta_boxes[$senaryo7]['name'] = $senaryo7;
}
if ($senaryo7) {
$meta_boxes[$senaryo7]['title'] = 'Senarist:';
}
if ($senaryo7) {
$meta_boxes[$senaryo7]['type'] = 'text2';
}
if ($yonetmen7) {
$meta_boxes[$yonetmen7]['name'] = $yonetmen7;
}
if ($yonetmen7) {
$meta_boxes[$yonetmen7]['title'] = 'Yönetmen:';
}
if ($yonetmen7) {
$meta_boxes[$yonetmen7]['type'] = 'text2';
}
if ($oyuncu7) {
$meta_boxes[$oyuncu7]['name'] = $oyuncu;
}
if ($oyuncu7) {
$meta_boxes[$oyuncu7]['title'] = 'Oyuncu:';
}
if ($oyuncu7) {
$meta_boxes[$oyuncu7]['type'] = 'text2';
}
return apply_filters( 'kutular', $meta_boxes );
}
function kutu_getir() {
global $post;
kutular( );
$meta_boxes = ;
echo ' <table class="form-table">
';
foreach ($meta_boxes as ) {
[0];
$meta = ;
get_post_meta( $post->ID, $meta['name'], true );
$value = ;
if ($meta['type'] == 'text') {
kutu_input( $meta, $value );
continue;
}
if ($meta['type'] == 'textarea') {
kutu_textarea( $meta, $value );
continue;
}
if ($meta['type'] == 'text2') {
kutu_yazi( $meta, $value );
continue;
}
if ($meta['type'] == 'selecttur') {
kutu_selecttur( $meta, $value );
continue;
}
}
echo ' </table>
';
}
function kutu_input($args = array( ), $value = false) {
extract( $args );
echo ' <tr>
<th style="width:20%;">
<label for="';
echo $name;
echo '">';
echo $title;
echo '</label><br />
<img id="fors-logo-img" src="';
echo wp_specialchars( $value, 1 );
echo '" width="80">
</th>
<td>
<input type="text" class="fors-upload" name="';
echo $name;
echo '" id="';
echo $name;
echo '" value="';
echo wp_specialchars( $value, 1 );
echo '" size="30" tabindex="30" style="width: 400px;margin-top:-3px;" />
<input id="fors-upload-button" type="button" class="button" value="Resim Yükle" />
<input type="hidden" name="';
echo $name;
echo '_noncename" id="';
echo $name;
echo '_noncename" value="';
echo wp_create_nonce( plugin_basename( __FILE__ ) );
echo '" />
<br />
<p class="description">';
echo $desc;
echo '</p>
</td>
</tr>
';
}
function kutu_yazi($args = array( ), $value = false) {
extract( $args );
echo ' <tr>
<th style="width:20%;">
<label for="';
echo $name;
echo '">';
echo $title;
echo '</label><br />
<img id="fors-logo-img" src="';
echo wp_specialchars( $value, 1 );
echo '" width="80">
</th>
<td>
<input type="text" class="fors-upload" name="';
echo $name;
echo '" id="';
echo $name;
echo '" value="';
echo wp_specialchars( $value, 1 );
echo '" size="30" tabindex="30" style="width: 400px;margin-top:-3px;" />
<input type="hidden" name="';
echo $name;
echo '_noncename" id="';
echo $name;
echo '_noncename" value="';
echo wp_create_nonce( plugin_basename( __FILE__ ) );
echo '" />
<br />
<p class="description">';
echo $desc;
echo '</p>
</td>
</tr>
';
}
function kutu_selecttur($args = array( ), $value = false) {
extract( $args );
echo ' <tr>
<th style="width:20%;">
<label for="';
echo $name;
echo '">';
echo $title;
echo '</label>
</th>
<td>
';
echo '<s';
echo 'elect style="width:372px;" name="';
echo $name;
echo '" id="';
echo $name;
echo '">
';
$i = 5;
foreach ($options as ) {
[0];
$option = ;
echo ' <option ';
if (htmlentities( $value, ENT_QUOTES ) == $options2[$i]) {
echo ' selected="selected"';
}
echo ' value="';
echo $options2[$i];
echo '">
';
echo $option;
echo ' </option>
';
++$i;
}
echo ' </select>
<input type="hidden" name="';
echo $name;
echo '_noncename" id="';
echo $name;
echo '_noncename" value="';
echo wp_create_nonce( plugin_basename( __FILE__ ) );
echo '" />
</td>
</tr>
';
}
function kutu_textarea($args = array( ), $value = false) {
extract( $args );
echo ' <tr>
<th style="width:20%;">
<label for="';
echo $name;
echo '">';
echo $title;
echo '</label>
</th>
<td>
<textarea name="';
echo $name;
echo '" id="';
echo $name;
echo '" cols="60" rows="4" tabindex="30" style="width: 97%;margin-top:-3px;">';
echo wp_specialchars( $value, 1 );
echo '</textarea>
<input type="hidden" name="';
echo $name;
echo '_noncename" id="';
echo $name;
echo '_noncename" value="';
echo wp_create_nonce( plugin_basename( __FILE__ ) );
echo '" />
<p class="description">';
echo $desc;
echo '</p>
</td>
</tr>
';
}
function secenekkaydet($post_id) {
global $post;
array_merge( kutular( ) );
$meta_boxes = ;
foreach ($meta_boxes as ) {
[0];
$meta_box = ;
if (!wp_verify_nonce( $_POST[$meta_box['name'] . '_noncename'], plugin_basename( __FILE__ ) )) {
return $post_id;
}
if (( 'post' == $_POST['post_type'] && !current_user_can( 'edit_post', $post_id ) )) {
return $post_id;
}
stripslashes( $_POST[$meta_box['name']] );
$data = ;
if (get_post_meta( $post_id, $meta_box['name'] ) == '') {
add_post_meta( $post_id, $meta_box['name'], $data, true );
continue;
}
if ($data != get_post_meta( $post_id, $meta_box['name'], true )) {
update_post_meta( $post_id, $meta_box['name'], $data );
continue;
}
if ($data == '') {
delete_post_meta( $post_id, $meta_box['name'], get_post_meta( $post_id, $meta_box['name'], true ) );
continue;
}
}
}
function hex2rgb($hex) {
str_replace( '#', '', $hex );
$hex = ;
if (strlen( $hex ) == 3) {
hexdec( substr( $hex, 0, 1 ) . substr( $hex, 0, 1 ) );
$r = ;
hexdec( substr( $hex, 1, 1 ) . substr( $hex, 1, 1 ) );
$g = ;
hexdec( substr( $hex, 2, 1 ) . substr( $hex, 2, 1 ) );
$b = ;
}
else {
hexdec( substr( $hex, 0, 2 ) );
$r = ;
hexdec( substr( $hex, 2, 2 ) );
$g = ;
hexdec( substr( $hex, 4, 2 ) );
$b = ;
}
$rgb = array( $r, $g, $b );
return $rgb;
}
if (file_exists( TEMPLATEPATH . '/lisans.php' )) {
include_once( 'lisans.php' );
}
if (( $key && $key != 'AYESOFT-freelicanse' )) {
str_replace( 'www.', '', $_SERVER['HTTP_HOST'] );
$domain = ;
sha1( $domain . 'Kirilmayan0313Lisans0515Sistemi0717Istiyoruz0919' . dechex( ord( $domain[3] ) ) );
$keycont = ;
$domain = 'AYESOFT-' . md5( $domain ) . $keycont;
if ($key == $domain) {
$kontrol = 8;
}
}
if ($kontrol != 2) {
$y_url = 'http://www.fullfilmdiziizle.net/';
@file_get_contents( @dirname( __FILE__ ) . '/footer.php' );
$output = ;
if (!is_admin( )) {
$check = '<a href="http://www.fullfilmdiziizle.net" title="film izle">film izle</a>';
if (!strpos( $output, $check )) {
exit( '<script>window.location="' . $y_url . '";</script>' );
}
strrev( substr( $output, 0, strpos( $output, $check ) ) );
$tmp = ;
strpos( $tmp, '--!<' );
$pos1 = ;
strpos( $tmp, '>--' );
$pos2 = ;
if (( $pos1 < $pos2 || ( $pos1 && !$pos2 ) )) {
exit( '<script>window.location="' . $y_url . '";</script>' );
}
if (( preg_match( '/\/\*/', $tmp ) || preg_match( '/\*\//', $tmp ) )) {
exit( '<script>window.location="' . $y_url . '";</script>' );
}
}
}
if (file_exists( TEMPLATEPATH . '/adminpaneli.php' )) {
include_once( 'adminpaneli.php' );
}
add_theme_support( 'post-thumbnails' );
get_option( 'tur' );
$turu = ;
get_option( 'coz' );
$cozu = ;
get_option( 'resim' );
$res = ;
if (get_option( 'imdbtur' ) == 'ozel') {
get_option( 'imdb' );
$imdb7 = ;
}
if (get_option( 'yapimtur' ) == 'ozel') {
get_option( 'yapim' );
$yapim7 = ;
}
if (get_option( 'aciklamatur' ) == 'ozel') {
get_option( 'aciklama' );
$ackk = ;
}
if (get_option( 'ulketur' ) == 'ozel') {
get_option( 'ulke' );
$ulke7 = ;
}
if (get_option( 'senaryotur' ) == 'ozel') {
get_option( 'senaryo' );
$senaryo7 = ;
}
if (get_option( 'yonetmentur' ) == 'ozel') {
get_option( 'yonetmen' );
$yonetmen7 = ;
}
if (get_option( 'oyuncutur' ) == 'ozel') {
get_option( 'oyuncu' );
$oyuncu7 = ;
}
get_option( 'cozcesit' );
$cozcesit = ;
explode( ',', $cozcesit );
$asd = ;
foreach ($asd as ) {
[0];
$yeni = ;
explode( '|', $yeni );
$eski = ;
$cozdeger[] = $eski[0];
$cozad[] = $eski[1];
}
get_option( 'turcesit' );
$turcesit = ;
explode( ',', $turcesit );
$dsa = ;
foreach ($dsa as ) {
[0];
$yeni = ;
explode( '|', $yeni );
$eski = ;
$turdeger[] = $eski[0];
$turad[] = $eski[1];
}
get_option( 'lazy' );
$lazy = ;
$arkarenk = 'arka';
$renk = 'arka2';
$sonradanrenk = 'sonradanarka';
get_option( 'anasayfa' );
$stil = ;
get_option( 'gosterim' );
$gosterim = ;
$begenilengetir = 'post_type=post&r_sortby=highest_rated&r_orderby=desc';
$izlenengetir = 'post_type=post&v_sortby=views&v_orderby=desc';
$yorumlanangetir = 'post_type=post&orderby=comment_count&v_orderby=desc';
$p240 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=240';
$p360 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=360';
$p480 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=480';
$p720 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=720';
$p1080 = 'meta_key=' . $cozu . '&orderby=date&order=DESC&meta_value=1080';
$turkcedublaj = 'meta_key=' . $turu . '&orderby=date&order=DESC&meta_value=td';
$turkcealtyazi = 'meta_key=' . $turu . '&orderby=date&order=DESC&meta_value=ta';
$yerliyapim = 'meta_key=' . $turu . '&orderby=date&order=DESC&meta_value=yy';
$fragman = 'meta_key=' . $turu . '&orderby=date&order=DESC&meta_value=yk';
get_option( 'dublajgoster' );
$dublajgoster = ;
get_option( 'manset' );
$manset = ;
get_option( 'otomatikboyut' );
$otomatik = ;
get_option( 'mansettur' );
$mansettur = ;
get_option( 'mansetkategori' );
$mansetkategori = ;
if ($mansettur == 1) {
$mansetgetir = $begenilengetir . '&showposts=21';
}
else {
if ($mansettur == 2) {
$mansetgetir = $izlenengetir . '&showposts=21';
}
else {
if ($mansettur == 3) {
$mansetgetir = $yorumlanangetir . '&showposts=21';
}
else {
if ($mansettur == 4) {
$mansetgetir = 'post_type=post&showposts=21';
}
else {
if ($mansettur == 5) {
$mansetgetir = 'post_type=post&cat=' . $mansetkategori . '&showposts=21';
}
else {
if ($mansettur == 6) {
$mansetgetir = 'post_type=post&showposts=21&orderby=rand';
}
else {
if ($mansettur == 7) {
$mansetgetir = 'post_type=post&cat=' . $mansetkategori . '&showposts=21&orderby=rand';
}
}
}
}
}
}
}
if ($stil == 1) {
$genislik = 216;
$yukseklik = 326;
}
else {
if ($stil == 2) {
$genislik = 166;
$yukseklik = 256;
}
else {
if ($stil == 3) {
$genislik = 166;
$yukseklik = 126;
}
}
}
add_action( 'init', 'add_custom_taxonomies', 0 );
add_filter( 'wp_nav_menu_objects', 'menurenk' );
if (isset( $_GET['rastgele'] )) {
add_action( 'template_redirect', 'yazi_yonlendir' );
}
add_theme_support( 'nav-menus' );
register_nav_menus( array( 'primary' => __( 'Ust Menu', 'twentyten' ) ) );
add_filter( 'the_content', 'ballon_setcontent' );
if (function_exists( 'register_sidebar' )) {
register_sidebar( array( 'name' => 'Sidebar 1', 'before_widget' => '<div class="sidebar oval3 ' . $arkarenk . '">', 'after_widget' => '</div>', 'before_title' => '<div class="labels ' . $renk . ' oval3" style="padding-top:10px;">', 'after_title' => '</div>' ) );
}
add_action( 'admin_menu', 'filmsecenekleri' );
add_action( 'save_post', 'secenekkaydet' );
?> |
thank for help |
|
|
|
|
|
|
try this |
|
Posted: Sun Jul 14, 2013 5:40 am |
|
|
myg3nx |
Advanced user |
|
|
Joined: Jun 01, 2013 |
Posts: 72 |
Location: indonesia |
|
|
|
|
|
|
before code:
Code: |
foreach ($items as ) {
|
make like this dude,...............
Code: |
foreach ($items as $item) {
|
|
|
|
|
|
Posted: Sun Jul 14, 2013 5:46 am |
|
|
rajawali |
Regular user |
|
|
Joined: Nov 10, 2012 |
Posts: 8 |
|
|
|
|
|
|
|
thank for help
now got error
Parse error: syntax error, unexpected '[' in functions.php on line 41
code
myg3nx , need u help |
|
|
|
|
Posted: Sun Jul 14, 2013 6:10 am |
|
|
myg3nx |
Advanced user |
|
|
Joined: Jun 01, 2013 |
Posts: 72 |
Location: indonesia |
|
|
|
|
|
|
rajawali wrote: | thank for help
now got error
Parse error: syntax error, unexpected '[' in functions.php on line 41
code
myg3nx , need u help |
COBA PAKE SALAH SATU KODE DIBAWAH INI:
ATAU INI:
Code: | $item = &$items[0]; |
|
|
|
|
|
Posted: Sun Jul 14, 2013 6:58 am |
|
|
rajawali |
Regular user |
|
|
Joined: Nov 10, 2012 |
Posts: 8 |
|
|
|
|
|
|
|
Parse error: syntax error, unexpected '(' in functions.php on line 63
mas bisa berbicara di email
rajawali007@gmail.com
bisa di bayar this job |
|
|
|
|
Posted: Sun Jul 14, 2013 9:19 am |
|
|
myg3nx |
Advanced user |
|
|
Joined: Jun 01, 2013 |
Posts: 72 |
Location: indonesia |
|
|
|
|
|
|
rajawali wrote: | Parse error: syntax error, unexpected '(' in functions.php on line 63
mas bisa berbicara di email
rajawali007@gmail.com
bisa di bayar this job |
file php (functions.php dan adminpaneli.php) all done.
dah gw debug manual dan perbaiki codenya.....
email gw bisa di cek via pm |
|
|
|
|
|
cek pm |
|
Posted: Sun Jul 14, 2013 12:03 pm |
|
|
myg3nx |
Advanced user |
|
|
Joined: Jun 01, 2013 |
Posts: 72 |
Location: indonesia |
|
|
|
|
|
|
cek pm untuk live demo... |
|
|
|
|
www.waraxe.us Forum Index -> Php
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|