PS. A jeszcze dziwniejsze jest to, że jak uruchamiam np. forum phpBB3, to wszystko działa poprawnie.

<?php require_once "geoip.php"; require_once "core.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pl-pl" xml:lang="pl-pl"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" /> <meta http-equiv="content-language" content="pl-pl" /> <meta http-equiv="content-style-type" content="text/css" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="resource-type" content="document" /> <meta name="distribution" content="global" /> <meta name="copyright" content="" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <title>Revolution Game Studios • Strona główna</title> <link rel="stylesheet" href="forum/styles/codeblack/theme/stylesheet.css" type="text/css" /> <script type="text/javascript"> // <![CDATA[ function popup(url, width, height, name) { if (!name) { name = '_popup'; } window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width); return false; } function jumpto() { var page = prompt('Wprowadź numer strony, do której chcesz przejść.:', ''); var perpage = ''; var base_url = ''; if (page !== null && !isNaN(page) && page > 0) { document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * perpage); } } /** * Find a member */ function find_username(url) { popup(url, 760, 570, '_usersearch'); return false; } /** * Mark/unmark checklist * id = ID of parent container, name = name prefix, state = state [true/false] */ function marklist(id, name, state) { var parent = document.getElementById(id); if (!parent) { eval('parent = document.' + id); } if (!parent) { return; } var rb = parent.getElementsByTagName('input'); for (var r = 0; r < rb.length; r++) { if (rb[r].name.substr(0, name.length) == name) { rb[r].checked = state; } } } // ]]> </script> </head> <body class="ltr"> <a name="top"></a> <div id="wrapheader"> <div id="logodesc"> <table width="100%" cellspacing="0"> <tr> <td><a href="./index.php"><img src="forum/styles/codeblack/imageset/logo.jpg" width="800" height="120" alt="" title="" /></a></td> </tr> </table> </div> <div id="menubar"> <table class="tablebg" width="100%" cellspacing="1"> <tr> <td align="center" valign="middle" class="cat"> <a href="#"><img src="img/pl.png" /></a> <a href="#"><img src="img/en.png" /></a> </td> </tr> </table> </div> </div> <div id="wrapcentre" align="center"> <br /> <!-- Games Section --> <br /> <!-- Forums Section --> <br /> <br /> <!-- Contact Section --> <br /> <br /> </div> <br /> <div id="menubar"> <table class="tablebg" width="100%" cellspacing="1"> <tr> <td align="center" valign="middle" class="cat"> © 2008 Revolution Game Studios </td> </tr> </table> </div> <div id="wrapfooter"> <span class="gensmall"></span><br /><span class="copyright"> Design © 2008 <a href="http://www.phpbbstylists.com" target="_blank">phpbbstylists.com</a> </span> </div> </body> </html>
<?php $lang == $_COOKIE['revgs_country']; } else { $gi = geoip_open($_SERVER["DOCUMENT_ROOT"]."/rev_gs/GeoIP.dat", GEOIP_STANDARD); $vis_lang = geoip_country_code_by_addr($gi, $_SERVER["REMOTE_ADDR"]); if ($vis_lang == "PL") { $lang = "pl"; } else { $lang = "en"; } } $bg = imagecreatefrompng("img/btn_bg.png"); $image = imagecreatefrompng("img/btns/".$_GET['i']); $text = DBArray("SELECT name FROM ".$dbprefix."options WHERE id=1"); imagecopy($bg, $image, 380, 125, 0, 0, 380, 125); imagepng($image); } function header_img($img) { return "img/".$lang."/".$img.".png"; } ?>
Widzisz to co ja widzę?
<?php // ... // ... ?>
tworzy stałą REV i nadaje jej wartość "REV" a później sprawdza czy jest ona zdefiniowana. Jest? Jest, bo właśnie ja utworzyliśmy.
<?php ?>
<?php ?>
tworzy stałą REV i nadaje jej wartość "REV" a później sprawdza czy jest ona zdefiniowana. Jest? Jest, bo właśnie ja utworzyliśmy.
<?php ?>
<?php ?>
<?php } else { } ?>
<?php } else { } ?>
<?php } else { } ?>
<?php } else { } ?>
<?php ?>