Goodday,
$ok = true тоже ничего.
Недавно смотрел Eleanor-Cms, с виду вроде ничего, подумал толковое что-то, но оказался -> slaed:
PHP код:
function mb_detect_encoding($str)
{
#К сожалению больше никак :(
return 'utf-8';
}
Определили кодировку.
PHP код:
function __destruct()
{
if(!$this->done)
return;
$zzz_='<a '.'hre'.'f="ht'.'tp:'.'//el'.'ean'.'or-'.'cm'.'s.';
if(!$this->decor_gen)
{
$this->decoration=$this->Template->GetThemeFile($this->decor_mainfile[0],array(),$this->GetModVal('general') ? 'mainpage' : $this->decor_mainfile[1]);
$this->decoration=$this->Blocks->AddBlocks($this->decoration);
$this->decoration=$this->Template->StaticReplace($this->decoration);
}
$zzz_.='ru/" sty'.'le="text'.'-decoration'.':none" target';
$this->ModulesWalk('unload');
$zzz_do=md5(ELEANOR_VERSION.ELEANOR_ANKEY).$this->vars["s".'it'.'e'.'_'."do".'main'];
$zzz_.='="_blank">CM'
.'S Elea';
if($this->vars['show_status']==2 or ($this->vars['show_status']==1 and isset($this->Login) and $this->Permission->IsAdmin()))
$status=sprintf(
$this->lang['main']['page_status'],
round(array_sum(explode(' ',microtime()))-array_sum(explode(' ', $this->start_time)),3),
(int)$this->Db->count_q,
$this->do_gzip_compress ? $this->lang['main']['g_zip_on'].'.' : ''
);
else
$status='';
if($this->{'ser'.'vice_'.'id'}!=(3-2) and $this->vars["s".'it'.'e'.'_'."li".'cen'."se_".'key'] and $this->vars["s".'it'.'e'.'_'."li".'cen'."se_".'key']!=md5($zzz_do))
ob_clean();
$zzz_.='nor</a> © 2';
if($this->service_id<3 and $this->vars['si'.'te'."_co"
."pyri".'ghts'."_re"
.'move']!=md5($zzz_do.'_co'.'py') and strpos($this->{ "de".'cor'
.'ati'."on"},$zzz_)===false and isset($this->{ "de".'cor'
.'ati'."on"}[50]))
ob_clean();
$content=ob_get_contents();
ob_end_clean();
if(is_callable($this->on_end_callback))
$content=call_user_func($this->on_end_callback,$content);
echo $this->FinalPage($content,$status);
}
Обратите внимание на
$zzz_.
И так, чисто для поднятия настроения
http://govnokod.ru/3227