Kod
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/eolimpia/public_html/admin/index.php on line 68
Parse error: syntax error, unexpected $end in /home/eolimpia/public_html/admin/index.php on line 68
Parse error: syntax error, unexpected $end in /home/eolimpia/public_html/admin/index.php on line 68
Plik index.php:
<?php ob_start();// Bufor session_start(); // Wcms 3.0 beta b�edy, sugestie, pomys�y zg�asza�: admin@wmaster.eu // Pliki konfiguracyjne require '../config/config.php'; require '../config/db_config.php'; IF($_COOKIE['lang']) { $lang=$_COOKIE['lang'];} else { $lang=$default_lang; } define ('LANGUAGE', $lang); require '../'.LANG_DIR.'/'.LANGUAGE.'.php'; require '../'.PHP_DIR.'/Sql.class.php'; require '../'.PHP_DIR.'/function.php'; require '../'.PHP_DIR.'/smarty/Smarty.class.php'; $sprawdz=0; // Klasy $sql= new Sql; // Smarty $tpl= new Smarty; $tpl->template_dir = TEMPLATES_DIR;// Katalog szablonów $tpl->compile_dir = '../'.TEMPLATES_DIR.'_c';// Katalog tymczasowych szablonów FUNCTION minia ($folder, $nazwa, $szer, $mi) { $extension=explode('.', $nazwa); $lastelement=COUNT($extension)-1; $roz=$extension[$lastelement]; IF(substr($nazwa, -4, 4) == '.jpg' || substr($nazwa, -4, 4) == 'jpeg' || substr($nazwa, -4, 4) == 'JPEG' || substr($nazwa, -4, 4) == '.JPG') { $org = imagecreatefromjpeg(''.$folder.''.$nazwa.''); } elseif(substr($nazwa, -4, 4) == '.gif') { $org = imagecreatefromgif(''.$folder.''.$nazwa.''); } $s_org = imagesx($org); $w_org = imagesy($org); $wys = floor(($szer * $w_org) / $s_org); $min = imagecreatetruecolor($szer, $wys); ImageCopyResampled ($min, $org, 0, 0, 0, 0, $szer, $wys, $s_org, $w_org); imagedestroy($org); IF(substr($nazwa, -4, 4) == '.jpg' || substr($nazwa, -4, 4) == 'jpeg' || substr($nazwa, -4, 4) == 'JPEG' || substr($nazwa, -4, 4) == '.JPG') { imagejpeg($min, ''.$folder.$mi.$nazwa.'', 100); } elseif(substr($nazwa, -4, 4) == '.gif' || substr($nazwa, -4, 4) == '.GIF') { imagegif($min, ''.$folder.$mi.$nazwa.''); } imagedestroy($min); } IF ($_SESSION['admin']) { //Header require 'php/header.php'; // Tre�� strony require 'php/tresc.php'; // Stopka strony require 'php/foter.php'; ?>
W czym kryje się błąd? Z góry dzięki za wszelkie podpowiedzi
