All pastes #751824 Raw Edit

Untitled

public text v1 · immutable
#751824 ·published 2007-10-27 19:24 UTC
rendered paste body
<?
 $security_dostep = "s2";
 if (($_GET['lang'])==("en")) { $lang = "en"; setcookie("my_language", "en", time()+(31*86400)); } 
 elseif (($_GET['lang'])==("pl")) { $lang = "pl"; setcookie("my_language", "pl", time()+(31*86400)); }
 if (!isset($_COOKIE['my_language'])) { 
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title>www.kolej.banda.pl</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
  <link rel="stylesheet" type="text/css" href="style-index.css">
 </head>

 <body background="images/tlo.gif">
  <div id="szablon">
   <div id="gora1"></div>
   <div id="gora2"></div>
   <div id="gora3"></div>
   <div id="gora4"></div>
   <div id="linia"></div>
   <div id="przyciski1"></div>
   <a href="index.php?lang=pl"><div id="przyciski2"></div></a>
   <div id="przyciski3"></div>
   <a href="index.php?lang=en"><div id="przyciski4"></div></a>
   <div id="przyciski5"></div>
   <div id="stopka"></div>
   <div id="podstopka">
    hosted by <a href="http://webangel.ie">webangel.ie</a><br>&nbsp;
   </div>
  </div>
 </body>
</html>
<? 
 } 
 elseif (isset($_COOKIE['my_language'])) { 
  $lang = $_COOKIE['my_language']; 
  echo $lang;
 }  

?>