Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] T_VARIABLE - brak średnika, error, unexpected ';', expecting T_VARIABLE or '$'
Timoneq
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 16.02.2010

Ostrzeżenie: (0%)
-----


Witam, na stronie www (co jakis czas) wychodzi alert poniższej treści, i mam z nim problem bo nie rozumiem w ogóle php, z tłumaczenia słownikowego brakuje podobno "średnika" lub $ tylko nie wiem w którym miejscu - mogłby mi ktoś pomóc? w zamian mogę tylko udostępnić fragment www na reklamę (tyle ze serwis jest nowy i za bardzo nie generuje ruchu)

Treść Alert:

Parse error: syntax error, unexpected ';', expecting T_VARIABLE or '$' in /home/xninfogi/public_html/index.php(0) : eval()'d code on line 1

Warning: Cannot use a scalar value as an array in /home/xninfogi/public_html/index.php on line 0

Fragment index.php

  1. <?php //003ab
  2. if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
  3. ?>
Go to the top of the page
+Quote Post
griwes
post
Post #2





Grupa: Zarejestrowani
Postów: 23
Pomógł: 2
Dołączył: 15.02.2009
Skąd: Racibórz/Wrocław

Ostrzeżenie: (0%)
-----


Zrób ten kod bardziej czytelny, tj w większej ilości linijek, bo jest diabelnie nieczytelny.
Go to the top of the page
+Quote Post
Timoneq
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 16.02.2010

Ostrzeżenie: (0%)
-----


Kopiowałem jak było na stronie a teraz powstawiałem "następne liniki" tam gdzie wydawało mi się sensownie .... ;|
  1. <?php //003ab
  2. if(!extension_loaded('ionCube Loader'))
  3. {$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).
  4. (($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec'))
  5. {return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));
  6. $__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',
  7. substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count
  8. ($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/')
  9. {$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die
  10. ('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec'))
  11. {return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename
  12. ($__ln).' to be installed by the site administrator.');exit(199);
  13. ?>


w indexie wszystko jest w 3 linikach...
Go to the top of the page
+Quote Post
ucho
post
Post #4





Grupa: Zarejestrowani
Postów: 300
Pomógł: 32
Dołączył: 31.07.2006

Ostrzeżenie: (0%)
-----


Żadnego eval'a tu nie widzę, więc pytanie musisz skierować do autora skryptu, bo nie jesteśmy w stanie ani stwierdzić co jest nie tak w zakodowanym przez IonCube skrypcie ani go poprawić.

Ten post edytował ucho 16.02.2010, 23:22:10
Go to the top of the page
+Quote Post
Timoneq
post
Post #5





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 16.02.2010

Ostrzeżenie: (0%)
-----


Teraz zauwazyłem że błąd wychodzi na google chrome a na mozilli jest ok. Pozatym pytając znajomych "licząc co trzeci" ma alerty.... <różne przeglądarki>
A czy to może miećzwiązek z plikami cron.php <odpowiadajace u mnie za aktualizacje rss na stronie.
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 22.08.2025 - 21:00