Zadejte hledaný výraz...

Kde môže byť chyba?

Matúš Mirek
verified
rating uzivatele
(22 hodnocení)
24. 11. 2012 10:16:12
Ak idem na web vyhodi mi tuto chybu
Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /data/web/virtuals/6415/virtual/www/domains/darceky.eu/fun/system/SystemHeader.inc.php on line 1
a daný súbor obsahuje tieto údaje
n"; } public function StartLeftSide( $text, $color="red" ) { echo "
{$text}
n"; echo "
n"; } public function StartLeftSideBig( $text, $color="red" ) { echo "
{$text}
n"; echo "
n"; } public function CloseLeft() { echo "
n"; } //============================================================================ public function OpenRight() { echo "
n"; echo "
"; } public function StartRightSide( $text, $color="black",$d=0 ) { echo "
{$text}
n"; if($d==0)echo "
n"; } public function CloseRight() { echo "
n"; } //============================================================================ public function EndSide($d=0){ if($d==0) echo "
n"; echo "
"; } public function OpenRightMenu() { echo "n"; } public function AddMenuItem($url, $name, $target="_self"){ echo "
  • {$name}
  • n"; } public function AddThumb($text, $comments=0, $like=0, $image="", $link){ if(strlen($text)>25)$this->text=$this->sharp($text, 25); else $this->text=$text; echo " n"; }}require_once ("system/Settings.inc.php");require_once ("system/SystemHtmlFunctions.inc.php");require_once ("system/SystemMysqlFunctions.inc.php");$html = new WebHtml( );$header = new WHeader( );$mysql = new WebMysql( mysql_server, mysql_user, mysql_pass, mysql_db ); #language includerequire_once ("system/language/sk.inc.php");/* html started *///$html->mPRINT("");$html->mPRINT("");$html->mPRINT(' ');/*$html->mPRINT("");$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(" ");*/$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(' ');$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(" ");/*$html->mPRINT(" ");$html->mPRINT(" ");$html->mPRINT(" ");*///$html->mPRINT(""); $currentFile = $_SERVER; $parts = Explode('/', $currentFile); $currentFile = $parts; if ($currentFile == "hry.php"){ if($currentFile = "hry.php" && !isset($_GET) && !isset($_GET )){ $html->mPRINT("Zahrajte si online hry zdarma, akčné, športové hry"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "hry.php" && isset($_GET) && !isset($_GET )){ $html->mPRINT("Zahrajte si online hry zdarma, akčné, športové hry"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "hry.php" && isset($_GET) && isset($_GET )){$query = $mysql->DBquery("SELECT * FROM `".mysql_prefix."game` WHERE `id` = '".$mysql->mRES($_GET)."' ORDER BY `id` DESC"); $array = $mysql->DBarray($query); if( $array ) { $mysql->webWatch("game", $_GET); $html->mPRINT("".$array.""); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } } } elseif ($currentFile == "videa.php"){ if($currentFile = "videa.php" && !isset($_GET) && !isset($_GET )){ $html->mPRINT("Nie len zábavné videá. Denne nové videá"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "videa.php" && isset($_GET) && !isset($_GET )){ $html->mPRINT("Nie len zábavné videá. Denne nové videá"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "videa.php" && isset($_GET) && isset($_GET )){ $query = $mysql->DBquery("SELECT * FROM `".mysql_prefix."video` WHERE `id` = '".$mysql->mRES($_GET)."' ORDER BY `id` DESC"); $array = $mysql->DBarray($query); if( $array ) { $mysql->webWatch("video", $_GET); $html->mPRINT("".$array.""); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT("");function convertUrlQuery($query) { $queryParts = explode('&', $query); $params = array(); foreach ($queryParts as $param) { $item = explode('=', $param); $params] = $item; } return $params; } $parameter = convertUrlQuery($array); $html->mPRINT(""); } } } elseif ($currentFile == "obrazky.php"){ if($currentFile = "obrazky.php" && !isset($_GET) && !isset($_GET )){ $html->mPRINT("Nie len zábavné obrázky"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "obrazky.php" && isset($_GET) && !isset($_GET )){ $html->mPRINT("Nie len zábavné obrázky"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "obrazky.php" && isset($_GET) && isset($_GET )){ $html->mPRINT("Nie len zábavné obrázky"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); $query = $mysql->DBquery("SELECT * FROM `".mysql_prefix."image` WHERE `id` = '".$mysql->mRES($_GET)."' ORDER BY `id` DESC"); $array = $mysql->DBarray($query); if( $array ) { $mysql->webWatch("image", $_GET); $html->mPRINT("".$array.""); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } } } elseif ($currentFile == "smsky.php"){ if($currentFile = "smsky.php" && !isset($_GET) && !isset($_GET )){ $html->mPRINT("Zábavné sms, Narodeninové sms, či smsky zadarmo"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "smsky.php" && isset($_GET) && !isset($_GET )){ $html->mPRINT("Zábavné sms, Narodeninové sms, či smsky zadarmo"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "smsky.php" && isset($_GET) && isset($_GET )){ $html->mPRINT("Zábavné sms, Narodeninové sms, či smsky zadarmo"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } } elseif ($currentFile == "vtipy.php"){ if($currentFile = "vtipy.php" && !isset($_GET) && !isset($_GET )){ $html->mPRINT("Vtipy o blondínkach, policajtoch, rómoch a iné"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "vtipy.php" && isset($_GET) && !isset($_GET )){ $html->mPRINT("Vtipy o blondínkach, policajtoch, rómoch a iné"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } if($currentFile = "vtipy.php" && isset($_GET) && isset($_GET )){ $html->mPRINT("Vtipy o blondínkach, policajtoch, rómoch a iné"); $html->mPRINT(""); $html->mPRINT(""); $html->mPRINT(""); } } else { $html->mPRINT("Mrkva.sk - HRY, VIDEA, TV"); $html->mPRINT(""); }$html->mPRINT(" ");/*============================================================== header */$html->mPRINT("");//$html->mPRINT("
    ");$html->mPRINT('
    ');//$html->mPRINT("