![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 18.07.2009 Ostrzeżenie: (0%) ![]() ![]() |
Mam problem, wchodząc do panelu admina wyświetla mi się następujący komunikat:
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 Plik index.php:
W czym kryje się błąd? Z góry dzięki za wszelkie podpowiedzi (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) Ten post edytował addas 18.07.2009, 17:03:39 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 231 Pomógł: 22 Dołączył: 6.10.2008 Ostrzeżenie: (0%) ![]() ![]() |
Kod <?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'; } ?> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 18:46 |