SimplePortal

Support => Turkish (Türkçe) => International Support => Kurulum ve Güncelleme => Topic started by: siyaheksen on September 13, 2010, 10:34:52 AM

Title: Pretty URLs çakışması!
Post by: siyaheksen on September 13, 2010, 10:34:52 AM
Bul

Code: [Select]
if (!empty($modSettings['queryless_urls']) && (empty($context['server']['is_cgi']) || @ini_get('cgi.fix_pathinfo') == 1 || @get_cfg_var('cgi.fix_pathinfo') == 1) && (!empty($context['server']['is_apache']) || !empty($context['server']['is_lighttpd'])))

{

 if (defined('SID') && SID != '')

 $setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?(?:' . SID . '(?:;|&|&))((?:board|topic)=[^#]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2?' . SID", $setLocation);

else

 $setLocation = preg_replace('/^' . preg_quote($scripturl, '/') . '\?((?:board|topic)=[^#"]+?)(#[^"]*?)?$/e', "\$scripturl . '/' . strtr('\$1', '&;=', '//,') . '.html\$2'", $setLocation);

}

Değiştir

 
Code: [Select]
// Redirections should be pretty too

 if (!empty($modSettings['pretty_enable_filters']))

{

 require_once($sourcedir . '/PrettyUrls-Filters.php');

 $url = array(0 => array('url' => $setLocation, 'url_id' => 'setLocation'));

 $filter_callbacks = unserialize($modSettings['pretty_filter_callbacks']);

 foreach ($filter_callbacks as $callback)

{

 $pretty_url = call_user_func($callback, $url);

 if (isset($pretty_url[0]['replacement']))

 break;

 }

 if (isset($pretty_url[0]['replacement']))

 $setLocation = $pretty_url[0]['replacement'];

 $setLocation = str_replace("\x12", '\'', $setLocation);

 $setLocation = preg_replace(array('~;+|=;~', '~\?;~', '~\?#|;#|=#~', '~\?$|;$|#$|=$~'), array(';', '?', '#', ''), $setLocation);

}






Pretty URLs modifikasyonu ile bu satırlar çakışıyor ve düzeltilmeli.
Title: Re: Pretty URLs çakışması!
Post by: grafitus on September 14, 2010, 11:39:01 AM
Eğer Pretty URLs kullanıyorsanız buradaki değişikliği önemsemeden kuruluma devam edebilirsiniz.
SimplePortal 2.3.8 © 2008-2024, SimplePortal