
http://www.polandunderground.yoyo.pl/setup/
zobaczcie i powiedźcie o co chodzi

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| eXtreme-pack IV
+----------------------------------------------------+
| Copyright 2005 - 2006 eXtreme-Crew
| http://www.extreme-fusion.pl/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
define("FUSION_SELF", basename($_SERVER['PHP_SELF']));
define("IN_FUSION", true);
session_register("photogallery");
session_register("forum");
session_register("localeset");
$step = (isset($_GET['step']) ? $_GET['step'] : "0");
if (isset($_GET['locale'])) $HTTP_SESSION_VARS["localeset"]=stripinput($_GET['locale']);
if ($HTTP_SESSION_VARS["localeset"]=="") $HTTP_SESSION_VARS["localeset"]="Polish";
include "../setup/index.php".$HTTP_SESSION_VARS["localeset"]."/setup.php";
// mySQL database functions
function dbquery($query) {
$result = @mysql_query($query);
if (!$result) {
echo mysql_error();
return false;
} else {
return $result;
}
}
function dbconnect($db_host, $db_user, $db_pass, $db_name) {
$db_connect = @mysql_connect($db_host, $db_user, $db_pass);
$db_select = @mysql_select_db($db_name);
if (!$db_connect) {
die("<table align='center' cellpadding='0' cellspacing='1' width='450' class='tbl-border'>
<tr>
<td align='center' class='tbl1'><b>Unable to establish connection to MySQL</b><br>".mysql_errno()." : ".mysql_error()."</td></tr>
</table>");
} elseif (!$db_select) {
die("<table align='center' cellpadding='0' cellspacing='1' width='450' class='tbl-border'>
<tr>
<td align='center' class='tbl1'><b>Unable to select MySQL database</b><br>".mysql_errno()." : ".mysql_error()."</td></tr>
</table>");
}
}
// Strip Input Function, prevents HTML in unwanted places
function stripinput($text) {
if (ini_get('magic_quotes_gpc')) $text = stripslashes($text);
$search = array("\"", "'", "\\", '\"', "\'", "<", ">", " ");
$replace = array(""", "'", "\", """, "'", "<", ">", " ");
$text = str_replace($search, $replace, $text);
return $text;
}
// Create a list of files or folders and store them in an array
function makefilelist($folder, $filter, $sort=true, $type="files") {
$res = array();
$filter = explode("|", $filter);
$temp = opendir($folder);
while ($file = readdir($temp)) {
if ($type == "files" && !in_array($file, $filter)) {
if (!is_dir($folder.$file)) $res[] = $file;
} elseif ($type == "folders" && !in_array($file, $filter)) {
if (is_dir($folder.$file)) $res[] = $file;
}
}
closedir($temp);
if ($sort) sort($res);
return $res;
}
function dbarray($query) {
$result = @mysql_fetch_assoc($query);
if (!$result) {
echo mysql_error();
return false;
} else {
return $result;
}
}
function dbrows($query) {
$result = @mysql_num_rows($query);
return $result;
}
$locale_files = makefilelist("../locale/", ".|..", true, "folders");
$locales = "";
for ($i=0;$i < count($locale_files);$i++) {
if ($locale_files[$i] == $HTTP_SESSION_VARS["localeset"]) {
$locales .= "<b>".$locale_files[$i]."</b> ";
} else {
$locales .= "<a href='".FUSION_SELF."?locale=".$locale_files[$i]."' style='color:white;'>".$locale_files[$i]."</a> ";
}
$locales .= " | ";
}
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<title>".$locale['title']."</title>
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<link rel='stylesheet' href='styles.css' type='text/css'>
</head>
<body class='tbl2'>\n
<table align='center' cellspacing='0' cellpadding='0' width='750' class='body-border'>
<tr><td><table cellpadding='0' cellspacing='0' width='100%'><tr>
<td><table cellpadding='0' cellspacing='0' width='100%'><tr>
<td><div align='right' id='clockbar'><div class='clockbarcolor'>
".$locales.strftime("%A %e %B %G", time())."</div></div>
<div align='right' id='pageheader'>
<table style='WIDTH: 100%; height:50px;' cellSpacing='0' cellPadding='0' border='0'><tr>
<td style='WIDTH: 45%'><a href='http://extreme-fusion.pl'><img alt='eXtreme-fusion' src='images/logo.jpg' border='0' width='400' height='74'></a>
</td></tr>
</table>
</div>
<table style='WIDTH: 100%' cellSpacing='0' cellPadding='0' border='0'><tr>
<td class='subheader'>".$locale['900']."</td>
<td class='subheader' style='vertical-align:middlie;' align='right'>
:)
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
<table cellpadding='0' cellspacing='2' width='100%'>\n<tr>\n
<tr><td>";
if (!isset($_POST['next'])) {
require_once "wstep.php";
} elseif (preg_match("/^[a-z\/_]+$/", $_POST['step'])) {
require_once $_POST['step'].".php";
}
echo "</tr></td></table>";
?>
Powróć do Grafika & Webmastering
Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 1 gość