Tady je kod index.php:
<?php
session_name("ws_session");
session_start();
header('content-type: text/html; charset=utf-8');
include("../src/func/language.php");
$_language = new Language();
if(!isset($_SESSION['language'])){
$_SESSION['language'] = "uk";
}
if(isset($_GET['lang'])){
if($_language->set_language($_GET['lang'])) $_SESSION['language'] = $_GET['lang'];
header("Location: index.php");
exit();
}
$_language->set_language($_SESSION['language']);
$_language->read_module('index');
if(isset($_GET['step'])) $_language->read_module('step'.(int)$_GET['step'],true);
else $_language->read_module('step0',true);
if(!isset($_GET['step'])){
$_GET['step'] = "";
}
$languages = "";
if ($handle = opendir('./languages/')) {
while (false !== ($file = readdir($handle))) {
if(is_dir('./languages/'.$file) && $file != ".." && $file != "." && $file != ".svn"){
$languages .= "<img src='../images/flags/".$file.".gif' alt='".$file."' onclick='javascript:changeLanguage(\"".$file."\");' /> ";
}
}
closedir($handle);
}
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="Website using webSPELL 4 CMS - Society Edition" />
<meta name="author" content="webspell.org" />
<meta name="keywords" content="webspell, webspell4, cms, society, edition" />
<meta name="copyright" content="Copyright © 2005 - 2009 by webspell.org" />
<meta name="generator" content="webSPELL" />
<title>webSPELL Installation</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
function changeLanguage(lang){
var conf = confirm("<?php echo $_language->module['confirm_change']; ?>");
if(conf){
window.location = "index.php?lang="+lang;
}
}
-->
</script>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="776" align="center">
<tr>
<td id="head" colspan="2">
<div id="links">
<ul>
<li><a href="http://www.webspell.org/index.php?site=support" target="_blank" class="link1"></a></li>
<li><a href="http://www.webspell.org/index.php?site=license" target="_blank" class="link2"></a></li>
<li><a href="http://www.webspell.org/index.php?site=about" target="_blank" class="link3"></a></li>
</ul>
</div>
</td>
</tr>
<?php
echo '<tr><td colspan="2"><form action="index.php?step='.($_GET['step']+1).'" method="post" name="ws_install" /></td></tr>';
include('step0'.$_GET['step'].'.php');
?>
<tr>
<td style="background-image:url(images/4.jpg);" height="25" colspan="2"></td>
</tr>
</table>
</body>
</html>
EDIT: Šikovnej to tag ten code