Sitemiz sadece phpBB 3.0 sürümüne destek vermektedir. Konu açmadan, ileti yazmadan önce lütfen site kuralları sayfamıza göz atınız.
viper_aykiri 29 Eyl 2007 01:43



/**
* If a guest user is surfing, we try to guess his/her language first by obtaining the browser language
* If re-enabled we need to make sure only those languages installed are checked
* Commented out so we do not loose the code.
*/
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
{
$accept_lang_ary = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
foreach ($accept_lang_ary as $accept_lang)
{
// Set correct format ... guess full xx_YY form
$accept_lang = substr($accept_lang, 0, 2) . '_' . strtoupper(substr($accept_lang, 3, 2));
$accept_lang = basename($accept_lang);
/*
if (file_exists($phpbb_root_path . 'language/' . $accept_lang . "/common.$phpEx"))
{
$this->lang_name = $config['default_lang'] = $accept_lang;
$this->lang_path = $phpbb_root_path . 'language/' . $accept_lang . '/';
break;
}
else
{*/
// No match on xx_YY so try xx
$accept_lang = substr($accept_lang, 0, 2);
$accept_lang = basename($accept_lang);
echo $accept_lang;
/*
if (file_exists($phpbb_root_path . 'language/' . $accept_lang . "/common.$phpEx"))
{
$this->lang_name = $config['default_lang'] = $accept_lang;
$this->lang_path = $phpbb_root_path . 'language/' . $accept_lang . '/';
break;
}
}
*/
}
} 
<!-- IF YEREL_IP -->
*** Türkkiye IP'lerin göreceği reklam kodları ***
<!-- ELSE -->
*** Türkiye dışı IP'lerin göreceği reklam kodları ***
<!-- ENDIF -->

viper_aykiri 29 Eyl 2007 02:13
global_register = on


viper_aykiri 29 Eyl 2007 02:24
php_flag register_globals 
# php settings
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value mmcache.enable 1
php_flag display_errors off
php_value display_errors 0
php_flag magic_quotes_gpc on
php_admin_flag safe_mode On
php_admin_value safe_mode 1
php_value safe_mode "1"
php_flag register_globals 0
php_flag register_globals off
viper_aykiri 29 Eyl 2007 02:53
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@twow-database.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request

ALEXIS yazdı:bazısı iç sunucu hatasına neden olabilir, sunucu ayarlarına göre
<?php
if(strstr($HTTP_ACCEPT_LANGUAGE,"en")) {
Header("Location: http://www.site.com/site");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"en-us")) {
Header("Location: http://www.site.com/site");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"de")) {
Header("Location: http://www.site.com/de/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"tr")) {
Header("Location: http://www.site.com/site/turkce/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"it")) {
Header("Location: http://www.site.com/site/Italiano/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"es")) {
Header("Location: http://www.site.com/site/spain/");
}
elseif(strstr($HTTP_ACCEPT_LANGUAGE,"fr")) {
Header("Location: http://www.site.com/site/Fran%c3%a7ais/");
}
else {Header("Location: http://www.site.com/site");
}
?>
Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 1 misafir