Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Parse error
addas
post
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:

  1. <?php
  2. ob_start();// Bufor
  3. session_start();
  4.  
  5. // Wcms 3.0 beta bĹ&#65533;edy, sugestie, pomysĹ�y zgĹ�aszaÄ�: admin@wmaster.eu
  6.  
  7. // Pliki konfiguracyjne
  8. require '../config/config.php';
  9. require '../config/db_config.php';
  10. IF($_COOKIE['lang']) {
  11. $lang=$_COOKIE['lang'];} else {
  12. $lang=$default_lang;
  13. }
  14. define ('LANGUAGE', $lang);
  15. require '../'.LANG_DIR.'/'.LANGUAGE.'.php';
  16. require '../'.PHP_DIR.'/Sql.class.php';
  17. require '../'.PHP_DIR.'/function.php';
  18. require '../'.PHP_DIR.'/smarty/Smarty.class.php';
  19. $sprawdz=0;
  20. // Klasy
  21. $sql= new Sql;
  22.  
  23. // Smarty
  24. $tpl= new Smarty;
  25. $tpl->template_dir = TEMPLATES_DIR;// Katalog szablonĂłw
  26. $tpl->compile_dir = '../'.TEMPLATES_DIR.'_c';// Katalog tymczasowych szablonĂłw
  27. FUNCTION minia ($folder, $nazwa, $szer, $mi)
  28. {
  29. $extension=explode('.', $nazwa);
  30. $lastelement=COUNT($extension)-1;
  31. $roz=$extension[$lastelement];
  32. IF(substr($nazwa, -4, 4) == '.jpg' || substr($nazwa, -4, 4) == 'jpeg' || substr($nazwa, -4, 4) == 'JPEG' || substr($nazwa, -4, 4) == '.JPG')
  33. {
  34. $org = imagecreatefromjpeg(''.$folder.''.$nazwa.'');
  35. }
  36. elseif(substr($nazwa, -4, 4) == '.gif')
  37. {
  38. $org = imagecreatefromgif(''.$folder.''.$nazwa.'');
  39. }
  40. $s_org = imagesx($org);
  41. $w_org = imagesy($org);
  42.  
  43. $wys = floor(($szer * $w_org) / $s_org);
  44. $min = imagecreatetruecolor($szer, $wys);
  45. ImageCopyResampled ($min, $org, 0, 0, 0, 0, $szer, $wys, $s_org, $w_org);
  46. imagedestroy($org);
  47.  
  48.  
  49. IF(substr($nazwa, -4, 4) == '.jpg' || substr($nazwa, -4, 4) == 'jpeg' || substr($nazwa, -4, 4) == 'JPEG' || substr($nazwa, -4, 4) == '.JPG')
  50. {
  51. imagejpeg($min, ''.$folder.$mi.$nazwa.'', 100);
  52. }
  53. elseif(substr($nazwa, -4, 4) == '.gif' || substr($nazwa, -4, 4) == '.GIF')
  54. {
  55. imagegif($min, ''.$folder.$mi.$nazwa.'');
  56. }
  57. imagedestroy($min);
  58. }
  59.  
  60. IF ($_SESSION['admin']) {
  61. //Header
  62. require 'php/header.php';
  63.  
  64. // TreĹ&#65533;Ä� strony
  65. require 'php/tresc.php';
  66.  
  67. // Stopka strony
  68. require 'php/foter.php';
  69. ?>


W czym kryje się błąd? Z góry dzięki za wszelkie podpowiedzi winksmiley.jpg

Ten post edytował addas 18.07.2009, 17:03:39
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 05:30