Witam,
Mamy problem 500
PHP Parse error: syntax error, unexpected '(', expecting T_STRING in /data/xxxxxxx/index.php on line 38
<?php
require_once './inc.php5';
header('Content-Type: text/html; charset=utf-8');
//session
if (!$session_exists) {
mysql_query("INSERT INTO session (ip, session_time) VALUES ('".$_SERVER['REMOTE_ADDR']."', '".time()."')"); } else {
mysql_query("UPDATE session SET session_time='".(time()+300)."' WHERE ip='".$_SERVER['REMOTE_ADDR']."'"); }
//save email
if ($_GET['email']) {
if ($email_exists) {
$ERROR = "Your email already exists";
} else {
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $_GET['email'])) { $ERROR = "Wrong email format!";
} else {
$result = mysql_query("INSERT INTO newsletter (email) VALUES ('".$_GET['email']."')"); $ERROR = ($result) ? "Your email has been added" : "";
}
}
}
if (isset($_POST['action']) && $_POST['action'] === 'shoutbox') {
if ($name && $text) {
DB::Query("INSERT INTO {shoutbox_main} VALUES(NULL, UNIX_TIMESTAMP(), '$name', '$text')");
}
goto('index.php');
}
$random_objects = array();
$s = 'all';
if (!empty($_GET['s'])) { }
$l = 'all';
if (!empty($_GET['l'])) { }
if ($config['enable_random_objects']) {