Deprecated: Optional parameter $level declared before required parameter $message is implicitly treated as a required parameter in /home/u702436615/domains/mericdonuk.com/public_html/system/core/Common.php on line 349

A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 257


Deprecated: Optional parameter $level declared before required parameter $msg is implicitly treated as a required parameter in /home/u702436615/domains/mericdonuk.com/public_html/system/libraries/Log.php on line 72

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_URI::$config is deprecated

Filename: core/URI.php

Line Number: 72

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Router::$uri is deprecated

Filename: core/Router.php

Line Number: 89

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Input::$security is deprecated

Filename: core/Input.php

Line Number: 93

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property CI_Input::$uni is deprecated

Filename: core/Input.php

Line Number: 99

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$exceptions is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$log is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$benchmark is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$hooks is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$config is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$utf8 is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$uri is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$router is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$output is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$security is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$input is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$lang is deprecated

Filename: core/Controller.php

Line Number: 46

A PHP Error was encountered

Severity: 8192

Message: Creation of dynamic property Home::$load is deprecated

Filename: core/Controller.php

Line Number: 49

'; print_r($var); echo ''; } function get_enum_values( $table, $field ) { $CI = & get_instance(); $type = $CI->db->query( "SHOW COLUMNS FROM {$table} WHERE Field = '{$field}'" )->row( 0 )->Type; preg_match('/^enum\((.*)\)$/', $type, $matches); foreach( explode(',', $matches[1]) as $value ) { $enum[] = trim( $value, "'" ); } return $enum; } function enum_duzeltici($string) //projedeki tr karakterli olmayan enum değerlerini türkçeleştirmeye yarar { $toBeConverted=array( "YES" => "Evet", "NO" => "Hayır" ); return strtr($string,$toBeConverted); } function field_duzeltici($string) //projedeki tr karakterli olmayan field isimlerini türkçeleştirmeye yarar { $toBeConverted=array( "Title" => "Başlık", "TitleEn" => "Başlık (İngilizce)", "TitleFr" => "Başlık (Fransızca)", "TitleIt" => "Başlık (İtalyanca)", "TitleDe" => "Başlık (Almanca)", "TitleEs" => "Başlık (İspanyolca)", "SpotEn" => "Spot (İngilizce)", "SpotFr" => "Spot (Fransızca)", "SpotIt" => "Spot (İtalyanca)", "SpotDe" => "Spot (Almanca)", "SpotEs" => "Spot (İspanyolca)", "MainImage" => "Yazıyı Temsil Eden Görsel", "Content" => "İçerik", "ContentEn" => "İçerik (İngilizce)", "ContentFr" => "İçerik (Fransızca)", "ContentIt" => "İçerik (İtalyanca)", "ContentDe" => "İçerik (Almanca)", "ContentEs" => "İçerik (İspanyolca)", "Published" => "Yayında mı?", "Commentable" => "Yoruma açık mı?", "Date" => "Tarih", "Username" => "Kullanıcı Adı", "First_name" => "İsim", "Last_name" => "Soyad", "Email" => "E-Posta Adresi", "Bio" => "Biyografi", "User_id" => "Yazar", "Category_id" => "Kategori", "Category_2_id" => "İkincil Kategori", "Language_id" => "Dil", "username" => "Kullanıcı Adı", "shown_email" => "Sitede Görünen E-Posta Adresi", "email" => "E-Posta Adresi", "first_name" => "İsim", "last_name" => "Soyad", "phone" => "Telefon", "bio" => "Biyografi", "picture" => "Fotoğraf", "gallery_content" => "Galeri İçeriği", "City" => "Şehir", "CityEn" => "Şehir (İngilizce)", "Venue" => "Yer", "VenueEn" => "Yer (İngilizce)" ); return strtr($string,$toBeConverted); } function get_field_type($field) { $enum = ""; if(substr($field->type, 0, 4) == "enum") { $type = "enum"; } elseif($field->type == "text" or $field->type == "mediumblob") { $type = "text"; } elseif($field->type == "tinyblob") { $type = "hidden"; } else { if ($field->type == "int" and substr($field->name, -2) == "id") { $type = "dropdown_from_other_table"; } else { $type = "string"; } } return $type; } function get_cms_fields($table, $fields, $not_editable = null, $entry = null) { $visible_fields = array(); $i = 0; foreach($fields as $field): $type = get_field_type($field); if (!in_array($field->name, $not_editable)) { $visible_fields[$i]['name'] = $field->name; $visible_fields[$i]['caption'] = field_duzeltici($field->name); $visible_fields[$i]['type'] = $type; $visible_fields[$i]['default'] = $field->default; $visible_fields[$i]['max_length'] = $field->max_length; if ($type == "enum") { $visible_fields[$i]['enum_fields'] = get_enum_values($table, $field->name); } if (isset($entry[$field->name])) { $visible_fields[$i]['value'] = $entry[$field->name]; } $i++; } endforeach; return $visible_fields; } function get_all_field_names($table) { $CI = & get_instance(); $names = array(); $table_fields = $CI->db->field_data($table); foreach($table_fields as $field): $names[] = $field->name; endforeach; return $names; } function timestamp_from_datetime($datetime) { $timestamp = strtotime($datetime); return $timestamp; } function is_owner($table, $post_id) { $CI = & get_instance(); $user_id = $CI->ion_auth->user()->row()->id; $owner_id = 0; $CI->db->from($table); $CI->db->where('id', $post_id); $CI->db->select('User_id'); $query = $CI->db->get(); foreach($query->result() as $row): $owner_id = $row->User_id; endforeach; if ($user_id == $owner_id) { return true; } else { return false; } } function is_admin() { $CI = & get_instance(); if ($CI->ion_auth->is_admin()) { return true; } else { return false; } } function is_member() { $CI = & get_instance(); if ($CI->ion_auth->in_group('members')) { return true; } else { return false; } } function is_guest() { $CI = & get_instance(); if ($CI->ion_auth->in_group('guests')) { return true; } else { return false; } } function is_loggedin() { $CI = & get_instance(); if ($CI->ion_auth->logged_in()) { return true; } else { return false; } } ?>

" . $field['caption'] . "
" . $input . "

"; } function create_inputs($table, $fields) { foreach($fields as $field): create_input($table, $field); endforeach; } function prepare_language_options($visible_fields) { $CI = & get_instance(); $languages = array(); $query = $CI->db->get('languages'); $i = 0; foreach($query->result() as $row): $languages[$i]['id'] = $row->id; $languages[$i]['name'] = $row->name; $languages[$i]['default'] = $row->default; $languages[$i]['suffix'] = $row->suffixCapital; $i++; endforeach; $visible_language_suffixes = array(); foreach($visible_fields as $key => $field): if (substr($field['name'], 0, 5) == "Title" and !empty($field['value'])) { $visible_language_suffixes[] = substr($field['name'], 5, 2); } endforeach; $content = "

Yazının Dilleri
"; foreach($languages as $key => $language): if ($language['default'] == 1) { $checked = " checked"; $disabled = " disabled "; } else { $disabled = ""; if (in_array($language['suffix'], $visible_language_suffixes)) { $checked = " checked"; } else { $checked = ""; } } $content.=""; endforeach; echo $content; } function return_enum_dropdown($table, $field, $default) { $input = ""; return $input; } function return_textarea($table, $field, $default) { $CI = & get_instance(); $customcms_width = $CI->config->item('customcms_width'); $input = "

"; $input.= ""; $input.= "

"; return $input; } function return_string_input($table, $field, $default) { if ($field['name'] == "Date" and is_numeric($default)) { $default = date('d.m.Y H:i:s', $default); $input = "
"; $input.= ""; $input.=""; $input.="
"; } else { $input = ""; } return $input; } function return_hidden_input($table, $field, $default) { $input = "
"; return $input; } function return_dropdown_from_other_table($table, $field, $default) { $CI = & get_instance(); $name = $field['name']; //multiple category fields hack if (substr($name, 0, 8) == "Category") { $name = "Category_id"; } $singular = strtolower(substr($name, 0, -3)); $option_visible_name = $singular . "name"; $other_table = $singular . "s"; if (substr($other_table, -2) == "ys") { $other_table = strtolower(substr($name, 0, -4)) . "ies"; } if ($CI->db->table_exists($other_table)) { if ($other_table == "categories") { $input = return_categories($table, $field, $default, $other_table, $option_visible_name); } else { $input = ""; } } else { $input = return_string_input($table, $field, $default); } return $input; } function return_categories($table, $field, $default, $other_table, $option_visible_name, $indexpage = null) { $CI = & get_instance(); $input = ""; return $input; } function return_homepage_option($entries, $input_id ,$selected_id) { $input = "

"; return $input; } function if_isset_show_flashmessage($msg,$result) { $CI = & get_instance(); if (!empty($msg) or $CI->session->flashdata('msg')) { ?>
session->flashdata('msg'); $sonuc = $CI->session->flashdata('result'); } if ($sonuc == 1) { $bildirim_class = "alert-info"; } else { $bildirim_class = "alert-error"; } ?>

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $bildirim_class

Filename: helpers/frontend_helper.php

Line Number: 252

">

A PHP Error was encountered

Severity: Warning

Message: Undefined variable $mesaj

Filename: helpers/frontend_helper.php

Line Number: 253

Geri Dön config->item('facebook_page_slug'); if (!empty($facebook_slug)) { ?> "Ü", "ö" => "Ö", "ğ" => "Ğ", "ş" => "Ş", "ç" => "Ç", "i" => "İ" ); $new_first_letter = ucfirst(strtr($first_letter,$up)); $new_str = $new_first_letter . $rest; return $new_str; } function strtolower_tr($string) { $low=array( "Ü" => "ü", "Ö" => "ö", "Ğ" => "ğ", "Ş" => "ş", "Ç" => "ç", "I" => "ı", "İ" => "i", "Î" => "i", "Û" => "u", "Â" => "a", "É" => "e", "È" => "e", "Ê" => "e" ); $new_string = strtolower(strtr($string,$low)); return $new_string; } function get_title($section) { $text_identifier = 'menu_'.$section; $title = strtolower_tr(lang($text_identifier)); $title = ucfirst_tr($title) . " - " . lang('site_owner'); if (empty($title)) { $title = lang('generic_title'); } return $title; } function load_content($page, $data) { $CI = & get_instance(); if ($CI->input->is_ajax_request()) { $CI->layout->setLayout('layout_ajax'); $data['layout'] = "ajax"; $CI->layout->view($page, $data); } else { $data['layout'] = "normal"; $CI->layout->view($page, $data); } } function place_audio_players($article) { $icerik = $article['Content']; if (strpos($icerik,'audioplaceholder') !== false) { $CI = & get_instance(); $CI->load->helper('simple_html_dom'); $CI->load->library('user_agent'); $browser = $CI->agent->browser(); $version = intval($CI->agent->version()); $html = str_get_html($icerik); $k = 0; foreach($html->find('img.audioplaceholder') as $e): $src = $e->attr['alt']; $file_type = $e->attr['title']; if ($browser == "Firefox" or ($browser == "Internet Explorer" and $version < 9)) { $audio_element = ""; $audio_element.= ""; $audio_element.= ""; $audio_element.= ""; $audio_element.= ""; $audio_element.=""; } else { $audio_element = ''; } $e->outertext = $audio_element; endforeach; $article['Content'] = $html; } return $article; } function yazi_linki($id, $title) { $link = base_url() . "yazi/" . slugify($title) . "/" . $id . "/"; return $link; } function yazar_linki($member) { $slug = slugify($member['first_name'] . " " . $member['last_name']); $link = base_url() . "yazar/" . $slug . "/" . $member['id'] . "/"; return $link; } function tarih($tarih) { $yil = substr($tarih, 0, 4); $ay = substr($tarih, 5, 2); $gun = substr($tarih, 8, 2); $saat = substr($tarih, 11, 5); if ($ay == "01") { $gercekay = "Ocak"; } elseif ($ay == "02") { $gercekay = "Şubat"; } elseif ($ay == "03") { $gercekay = "Mart"; } elseif ($ay == "04") { $gercekay = "Nisan"; } elseif ($ay == "05") { $gercekay = "Mayıs"; } elseif ($ay == "06") { $gercekay = "Haziran"; } elseif ($ay == "07") { $gercekay = "Temmuz"; } elseif ($ay == "08") { $gercekay = "Ağustos"; } elseif ($ay == "09") { $gercekay = "Eylül"; } elseif ($ay == "10") { $gercekay = "Ekim"; } elseif ($ay == "11") { $gercekay = "Kasım"; } elseif ($ay == "12") { $gercekay = "Aralık"; } else { $gercekay = "Ocak"; } $turkcetarih = $gun . " " . $gercekay . " " . $yil; return $turkcetarih; } function list_post($yazi) { $yazilink = yazi_linki($yazi['id'], $yazi['Title']); ?>
  • A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 156

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 156

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 156

    " alt="

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 156

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 156

    " class="alignleft" />

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 158

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 158

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 159

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 159

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 159

  • A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 169

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 169

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 169

    " alt="

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 169

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 169

    " class="alignleft" />

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 171

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 171

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 172

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 172

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 172


    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 173

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 173

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 173

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 173

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 173

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 173

    180) { $yazi['Spot'] = mb_substr($yazi['Spot'], 0, 178) . "..."; } ?>

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 180

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 180

  • A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 192

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 192

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 192

    " style="width:300px; height:162px;" alt="

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 192

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 192

    " />

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 194

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 194

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 194

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 195

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 195

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 196

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 196

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 196

  • A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 204

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 204

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 204

    " style="width:300px; height:162px;" alt="

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 204

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 204

    " class="alignleft" />

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 206

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 206

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 206

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 207

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 207

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazilink

    Filename: helpers/content_helper.php

    Line Number: 208

    ">

    A PHP Error was encountered

    Severity: Warning

    Message: Undefined variable $yazi

    Filename: helpers/content_helper.php

    Line Number: 208

    A PHP Error was encountered

    Severity: Warning

    Message: Trying to access array offset on value of type null

    Filename: helpers/content_helper.php

    Line Number: 208

  • load->helper('htmlpurifier'); $prepared_post['id'] = $post['id']; $prepared_post['Title'] = $post['Title']; $title_length_int = $title_length * 25; $title_cut_int = $title_length_int - 2; if (mb_strlen($post['Title']) > $title_length_int) { $prepared_post['Title'] = mb_substr($post['Title'], 0, $title_cut_int) . "..."; } $prepared_post['Spot'] = $post['Spot']; if (empty($prepared_post['Spot']) or mb_strlen($prepared_post['Spot']) < 50) { $clean_content = html_purify($post['Content'], 'nonhtml'); $prepared_post['Spot'] = mb_substr($clean_content, 0, 230) . "..."; } if (mb_strlen($prepared_post['Spot']) > 230) { $prepared_post['Spot'] = mb_substr($prepared_post['Spot'], 0, 228) . "..."; } $prepared_post['MainImage'] = $post['MainImage']; $images_directory = $CI->config->item('customcms_thumbs_directory'); if ($big_image) { $images_directory = $CI->config->item('customcms_images_directory'); } if (empty($prepared_post['MainImage'])) { $prepared_post['MainImage'] = "files/generic/article.jpg"; $prepared_post['BigImage'] = "files/generic/article.jpg"; $prepared_post['LittleImage'] = "files/generic/article-thumb.jpg"; } else { $prepared_post['BigImage'] =$CI->config->item('customcms_images_directory') . $post['id'] . "/" . $prepared_post['MainImage']; $prepared_post['LittleImage'] = $CI->config->item('customcms_thumbs_directory') . $post['id'] . "/" . $prepared_post['MainImage']; $prepared_post['MainImage'] = $images_directory . $post['id'] . "/" . $prepared_post['MainImage']; } $tarih = date('Y-m-d', $post['Date']); $prepared_post['Date'] = tarih($tarih); return $prepared_post; } function tr_toUpper($veri) { return strtoupper (str_replace(array ('ı', 'i', 'ğ', 'ü', 'ş', 'ö', 'ç' ),array ('I', 'İ', 'Ğ', 'Ü', 'Ş', 'Ö', 'Ç' ),$veri)); } function slugify($str, $separator = 'dash', $lowercase = TRUE) { if ($separator == 'dash') { $search = '_'; $replace = '-'; } else { $search = '-'; $replace = '_'; } $trans = array( '&\#\d+?;' => '', '&\S+?;' => '', '\s+' => $replace, '\.' => $replace, '[^a-z0-9\-_]' => '', $replace . '+' => $replace, $replace . '$' => $replace, '^' . $replace => $replace, '\.+$' => '' ); $search_tr = array('ı', 'İ', 'Ğ', 'ğ', 'Ü', 'ü', 'Ş', 'ş', 'Ö', 'ö', 'Ç', 'ç'); $replace_tr = array('i', 'I', 'G', 'g', 'U', 'u', 'S', 's', 'O', 'o', 'C', 'c'); $str = str_replace($search_tr, $replace_tr, $str); $str = strip_tags($str); foreach ($trans as $key => $val) { $str = preg_replace("#" . $key . "#i", $val, $str); } if ($lowercase === TRUE) { $str = strtolower($str); } $str = mb_substr($str, 0, 90); return trim(stripslashes($str)); } ?>

    A PHP Error was encountered

    Severity: 8192

    Message: Creation of dynamic property Home::$db is deprecated

    Filename: core/Loader.php

    Line Number: 343

    A PHP Error was encountered

    Severity: 8192

    Message: Creation of dynamic property CI_DB_mysql_driver::$stricton is deprecated

    Filename: database/DB_driver.php

    Line Number: 87


    Fatal error: Uncaught Error: Call to undefined function mysql_pconnect() in /home/u702436615/domains/mericdonuk.com/public_html/system/database/drivers/mysql/mysql_driver.php:91 Stack trace: #0 /home/u702436615/domains/mericdonuk.com/public_html/system/database/DB_driver.php(115): CI_DB_mysql_driver->db_pconnect() #1 /home/u702436615/domains/mericdonuk.com/public_html/system/database/DB.php(148): CI_DB_driver->initialize() #2 /home/u702436615/domains/mericdonuk.com/public_html/system/core/Loader.php(346): DB() #3 /home/u702436615/domains/mericdonuk.com/public_html/system/core/Loader.php(1171): CI_Loader->database() #4 /home/u702436615/domains/mericdonuk.com/public_html/system/core/Loader.php(152): CI_Loader->_ci_autoloader() #5 /home/u702436615/domains/mericdonuk.com/public_html/system/core/Controller.php(51): CI_Loader->initialize() #6 /home/u702436615/domains/mericdonuk.com/public_html/application/controllers/home.php(25): CI_Controller->__construct() #7 /home/u702436615/domains/mericdonuk.com/public_html/system/core/CodeIgniter.php(308): Home->__construct() #8 /home/u702436615/domains/mericdonuk.com/public_html/index.php(205): require_once('/home/u70243661...') #9 {main} thrown in /home/u702436615/domains/mericdonuk.com/public_html/system/database/drivers/mysql/mysql_driver.php on line 91