[Разное] ++Decoder Zend real decode php4++

Тема в разделе "Софт", создана пользователем slavache, 1 окт 2007.

  1. slavache

    slavache Постоялец

    Регистр.:
    28 ноя 2006
    Сообщения:
    80
    Симпатии:
    70
    Вот вам сильно пропатченый PHP и взломанные либы
    Использование:
    Распаковать архив в c:\
    Открыть папку dezend, перетащить на Php.exe закодированный файл
    В той папке, откуда вы перетащили файл, будет создан новый файл имяфайла.de.php
    это и будет результат работы.
    Берет вроде все файлы. Качество раззенживания прошу протестить.
    http://rapidshare.com/files/59445676/dezend.zip.html
     
    gavik, simon-epro, MegaNuke и 10 другим нравится это.
  2. Jake Foley

    Jake Foley

    Регистр.:
    14 дек 2006
    Сообщения:
    834
    Симпатии:
    365
    надежда была:) .... но у меня при дезенде выдает всякие иероглифы.:eek:
    Проверил на 10 файлах.
     
  3. azeek

    azeek Постоялец

    Регистр.:
    7 дек 2006
    Сообщения:
    117
    Симпатии:
    10
    а у меня робит, только ошибку пишет, что библиотека GD не найдена... но это исправляется на раз-два :-]
     
  4. slavache

    slavache Постоялец

    Регистр.:
    28 ноя 2006
    Сообщения:
    80
    Симпатии:
    70
    Only PHP4

    Only PHP4 только ПХП4 под 5 нету или покупать надо
    продают китайцы за 700$
     
  5. ArtemZ

    ArtemZ Прохожие

    у меня отлично дезендит!!!!! без обфускации, с коментамии, просто супер!
     
  6. slavache

    slavache Постоялец

    Регистр.:
    28 ноя 2006
    Сообщения:
    80
    Симпатии:
    70
    Вопрос

    Где взять какой нить zend CMS
     
  7. insider

    insider Писатель

    Регистр.:
    18 дек 2006
    Сообщения:
    3
    Симпатии:
    30
    Дезендит криво, но если использовать вместе с http://www.plati.ru/asp/pay.asp?idd=374464 то дебаг скрипт можно сильно ускорить

    hostcms.ru
     
  8. REALiSTiC

    REALiSTiC

    Регистр.:
    30 мар 2006
    Сообщения:
    354
    Симпатии:
    126
    У меня тоже :-]
     
  9. slavache

    slavache Постоялец

    Регистр.:
    28 ноя 2006
    Сообщения:
    80
    Симпатии:
    70
    OK

    Все ок проверено
    CMS http://www.mahogengine.ru/
    index.php до декода:
    <?php @Zend;
    3272;
    /* с!This is not a text file!Юн */
    print "<html><body>\n";
    print "<a href=\"http://www.zend.com/store/products/zend-safeguard-suite.php\"><img border=\"0\" src=\"http://www.zend.com/images/store/safeguard_icon_nover_64.jpg\" align=\"right\"></a>\n";
    print "<center><h1>Zend Optimizer not installed</h1></center>";
    print "<p>This file was encoded by the <a href=\"http://www.zend.com/store/products/zend-encoder.php\">Zend Encoder</a> / <a href=\"http://www.zend.com/store/products/zend-safeguard-suite.php\">Zend SafeGuard Suite</a></p>\n";
    print "<p>In order to run it, please install the freely available <a href=\"http://www.zend.com/store/products/zend-optimizer.php\">Zend Optimizer</a>, version 2.1.0 or later.</p>\n";
    print "<h2>What is the Zend Optimizer?</h2>
    ";
    print <<<EOM
    <p>The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been freely available since the early days of PHP 4. It improves performance by taking PHP's intermediate code through multiple Optimization Passes, which replace inefficient code patterns with efficient code blocks. The replacement code blocks perform exactly the same operations as the original code, only faster.</p>
    <p>In addition to performance-improvement, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Encoder or Zend SafeGuard Suite.</p>
    <p>The Zend Optimizer is a freely-available product from <a href="http://www.zend.com">Zend Technologies</a>. Zend Technologies is the company that develops the scripting engine of PHP, also known as the <a href="http://www.zend.com/store/products/zend-engine.php">Zend Engine</a>.</p>
    EOM;
    print "</body></html>\n";
    exit();
    ?>

    2003120701 1 10357 43714 xщ
    џ2 Ѕ}MЊGvf’ЭЂ$r Nцa 7‡’,y‡bfьdDЊ5µИnwљНџ¦Ш#i¬B±»HХ]Э¬Є–†c`tY°ЃБщ2Ђ/–ц6ЂtсБ|А иўeИЖК2е]P‚ *рѕ€МЊxс“Y%iv%и‡х^FѕxсEД{/^јФ‹яуѓСцТКHo4г%уWХ5«“#Љ+*‰БЊpru—хvО.mЃqнm®Gѓн#J”eБ…„§h¶»НЏ’\
    ‘зDгuko4™цGУЈ…,ЉB1’SmO¦гќБи(ь YI
    ҐфЏU“Я:Y”%Ў%aЄ4¬ЧЂћWDp‘3f z}ё3и
    ~:њL'РЉn†—ЉhБ†»ы;Р*Јь™д№д…ојж?R€‚PВ™0ЖюxpЈ7мпф·GOІІPҐд„˜Нt0пЌ5qo<ЋnЂL’I)Ў9fl‰Й`2оЌzР·сфН еРіRїiРЯєy¤(yN
    *M`µЭzeЪЂЯrZAµЛ°µw ХВS !3=.АЪЋ¶v¶Ы=-удиIК))˜,¤#хnєuуh‘sZЂLМфpЬm…–e™CпаЅ7}Ю#%Јy!Je•л{ыZп”3`-Ja~ѓ·‚)ЈJ9*ЊB0њ'µEJ”№ ЅиѕWєЩ
    фoАh‘F”g6 "«ЖД<yфd!xI€ М(|<ё}0jQ\– ?5ЌоЮ™ЬЮйZFѓ*)ЁJ1Arгm†ЈўN;@мm_;ў
    "TБXхКЉjњ*x’(©8ь‹ €<Ъљ ЉRjЂВAњ—G @Bд”j ‹lяжюnёhX3Ј4У4А,WєeaЬЧЊѓf|ТМ/Xp b%&P˜n
    p;ЮЯѓ!,ёR„&jмлuбI€Т¬ѓ©6яЋBЗJЕx®*GГ:Э{Й°–г:Ў2mцvъ•c0}¤ix·?™`¦дB•ЉВьХІk9‡0„Ґ\s3С†“Юцp¬ иб%ХNAЭоѕУtџ—’Ґ;6оBЗ$%Ђg–[VАюФ°Т2RCЭN‚ХїаС;V;ZгЖ<ш)№(-лҐFЏС§‡ѓEwҐ·ј¶V?Yуь™gїВВІТ[їpеЬйџнзЦїrKґ%>з;#И®в‡
    /ЪІ‹jЛкЮ–ќX!љ§+ц㋶Ыж7,БJ!N)Rиб-ЏбХРњкќ]№‚ЯВІ{х"іl3l@/L~ч}CЧ№цyT–Ћy[c-Я›ЙgужЩ_Щg‹шЩQ ёсumПпЧ?«Жз˜пѓщ{р1д•АKЕ–ЎЦYц7±Ц9'°ЛДіЧВp[пв…
    Oн<ыјCн<»7KнаЖu©ќgХ®vћ-v©ќgoµ«ќgїХNqЧяє]н<{ё]н<{Ыj–дЎЮ№C{ ЄХОsfyDvлAz±меБёЪ`пАљ¶лйXdxм0JдЙвЙвБЄл
    УfheWжE#1L„¦?˜Ш—Ї®\Ж]PЩiУ<ГЬ[_>їRі>w8hржtєяЅS§‘ЖTvМ‰ЮшO?{щтКъ•Ю™ з—П*чАћуEёЭдХД;Ц…ќФ ‘ыЎ'qщВxС№Л>Ы[юtЂш}AЕOzќ(*РQґцЦДгnЪUгя %Кn `·€ФЎaїy–Ѕ’њo5сnh°і
    Н7аy&ЁvMь2Xщ ·$ЂЈфTЌЈc^µо_™}въWєю1жz ІЧx«мФ‹Џk‡х‰<юВ‹?9х§яс‰SCЊqxжЎИ$†лХ¤Ыў*џф‡°tХ|„:$ш]НFr¬ЉЮ>x˜bкf°чaґ‘†Оf?©Ыс-3љЊЇ3гєЧ,oc±P:њ p“н“–ц1Љ¤Эs IbLf_ъaфФ: \ШЕ—ґh»в{ЎS;[X8[¤^gл‘(#°Ѓaю›$ШTiЫ§Eн:~°Б3ЇОpЅ7П2X±ѕЫЋ7кl*ЮЂzk>јз›xѓЅнгx–Q€7i·% ~ЩЃ·ё}4М@ґ¶И‚ЮЂъБlјЧ)ј%ц~и”ЕB® GIґ?kH1Љ Еѓн”qzнттECаЈ9l
    Ччj|V4у®ЗтђfЙ+6‚Щn…f–v1\yцYѓЌ$3*КУЄбКµS†Є‘Ye°фцјn•N;ХПUSў”Ё©ѕў/Y¶ѕІ№ј№є·яф^юЎ»Я}ь‰Х?Yyк<ь–?}юOћZ>їєщDoyуП.^ёґіЫїюJ®ъ›«ЅьdяъП^ъcxўYbЄцЯ
    °о x+ µнnsґЌG‡>ЛyфY¦х)s‡СЄП©'®HлS!}Љ„>o ц†·NЊvOЊNњ „‘эЅб…s;·ЦюУжКеMхт`ч‰у+з6/]ZЭЭљ ®џ;сДУщФcЏ=юGЏ=ZЉfюTнwйSМФ§иТ§˜Gџйі¬Mkт"…*jќЌ.лШ.¤ЦJЅФњЪЪ]Юxrяж~НzЇЅЯ@=˜¶^Ё) XЯ°XeEbОrДЅSИ8SО нмЛЮHцмЪSCћЬЩiюk»Й,SЭdЩЩy»ймKФM‰dC~©lъYPБ…µ|·;f]ОіµЅ*ю<¤п-ҐъаIЛѓр…

    b9yц…oЬc
    –ЩсP"[нГЛ–Vtд{Kл{УҐл`yo/UpYТЪ8®OhяЫычЯяЧяусыяѕфoџшЏЅяЅҐш祏Яя—ъзЏ—>}я_юuйЈышУ?шдЅяЩ‡.}ЗЎн;X 1ЋХь8VЩпХ»ў`‰ЪyџXce,9qF?†fA9БL_ш{|JbГчs+ІП~кҐБќZ\ГwЁђ†|w>DЮk¶©АZ0Ф°\9:нФ
    Г‘ІКЙeБжљO9lNе°nе°p[)І1І' ЗЩ0тc"еnЅ5LпtиЌiO±6і
    С4Ф»m.4P№N1#нTgч“ЋЏ«йdэ~_ИЉ«Њ/XU•Ў;mО<-p¤iЃgaСS )љgя¦ЦQ•‰в:Zї3FЇй9V{аSйеюяTГРё{ЗЄ$1Ы^яЪ¤·ЯџЮlш.ШP1aCэВ‡ЊК–Пњ?·ћђз©¶аЌЎЮџ«ќЉгgЪё№°»·}°3˜4|ЗВП_8умZўБЫнruuvЬш
    «¤р*§АnЫЯйO
    c¤Ї++з/®%ZмРPз€g™NZ],;µ3јЦрDЄZ}vэtЄ±.UkК№§6Udй–<ШЫэЁеlµwюLС[ЩXJ
    Ї¬^Э\>їyйщзџ?
    fЂде3WxyбТ*г«…7«ЎХ{~«¤l"ЋЪЛЭнЯЬ»1Э ЛсЙсБ)o¶Гі‡f™†л“TзHОKЧ9†ёpзHпвжК…gЇ\¤мщНу?^г¬\юСЖUp
    Чё№v‰Л]јzfЈдв*с;§lЁЭlaзвnБЮ=G·3ј‡K)m·€‹ tгыЙ%&Бn8І0ѕЫ±QщЦј»8рІhџVЬЙDuё,ЏV№и·бѕґЦV“пШ#-BВ…И7Ъ!‚ГC_њO‘<ыЫщЙі?o3Я Х…ќ µГЛspЏ— 7”6©d›bйѓШPг©ЪQ*µ:qўКWВђЯ›oњHЕЭZуИn":Ы\Ciй; Aїs|iГьє4™‚Щі}…дЊWЖдјs~”3ј_МҐTpa~юх•
    Oп·Џ?P?KЏ?UОD§tОй
    ЊэґЁ°™Фѓ±иОЦN‚¤¤ќУИї˜иЃыуЋЎGдfиE4фmТvЏ?eБ’Ъ1юА»:џRy‹Ї6S©јЭs3TзP»aTqдќQiП*fH)mЦ@аQТм”О0»Цџ њhТЋArјҐ=Ї™gјeЗ©Ќ!»uCбЖx¶ѕєЪ;Ѕ¶ј±С{жLo}µ˜ДКAЅжcм'мxѓ,µ7Уж2|иGё–’a®OSКРЫхµ›{“©ЩYЂ«m_ЄЙ?Kk4‡V&ѓсЁї[©XпuЁИЯmgрg:ОЬЩEJ‰¬€цп і kёќ»щ“@µa{“<г;”@^к‚А
    Gn8pЅЧЪgЈёўвz·kHт‹тµ°* ьg;zMlЄAІЧ$Ыми5E©5D ^ Zb®0Э@Ѓ±zeIџ¦l,эбЦ>ШЕю±ЯKљ€шЎј3Ї‡ґ+N Ф§єzHµ‹\©yЃD–гqФ” =
    иЗm2@вс2ыпЙ[[$П№ey8XГIй5±˜ZwаяW._ѕpY·Ф0ѕе:ZD-іowI*ўгвжМ€qЛтv,)ЗM\о’T·Ф0Юо’T ‹„¤2ќ` %U–%J2 Вkвю IЛ†qФ%)8k]’ЄиHФJZZ–Q,)ЗM|9џ¤К¦j%%UЩ·ЭTµqBКr‰ьJћwbИ\в™ H/
    GKg`w~vзҐуw6nп,ќp -жЙзьРЋЌ-5 ?чі›^4д®Ђ#ђпъ>hќmЉ— `rG¦4w*(r‰ъШІ/йҐCЫFЅюцоpT5˜Шњ°PІ6сРЙjиzgћ1%рuЩ™пЫ-НРЉпVЗVЙсОЭТ «шўm›yНy^6‡·СuЭК;нбWЋѓЦО`Ѓ‘(™ЗхђНh5XЂk? *еe6Чb–Б¬„-ЇҐчZЕ± pЅ6BЅFEvm«БЬgCФ{ъyёQ»±Ў)ГІЈz}.јЅ‹ж7РlNMСJКu’gУКб–VћiiҐhV9ћHъRЊг6>Ї=:+Жp€м?‡ы0%эђOчoЄЋOзЂ“@і('ЎgС|ph"%а$ф:3N-1 8 ЅДґ4b$aЧзa#Мkд^Ѕs„wшљЩмнЧ$Ь[Ђ|*‘ў&ЫШЇ>У©«¬AҐМкЇгб˜~6эЉ:1Ьј¬¦[нп кэpeуЁоР‡nMтЇ%I¤{НІeбЎР ¦ЩхБtл& уЮЦnв!ШП†›™gу’ЉЙоз.ћ
    Т–’–‡щ¶-gАшwIЇСvTя*Ou{жЦ‡з_пШћЛ0K»#М
    јЈ hW(Л8Ю‘оSЩOeц ёхыђwЌdэ*йреAХ^Е-УЖµm-NД\dКќ—*ОD¬†[!GKд!8uhзЕЗMя'§~rЄ%!С<9;#С°%SѓьWГШ5ІНH4YКБІ&т9s
    «‹}Pв4C ~E«‰_x1?©ъ'ц§ѕ&
    ”дѓ,J‰ДНэМнј ЌgudҐоuX†€Њ.rЏбݘЃz AѕSsoПSNСћуTIЭќ %{#^$fc‰ Gфe"<іїц)››№‚bW†#§Ў!я~ы;їТбz'ГQ‚2z'іы(@D*(іящ»—Iв€T¬™=ф»ЧЅТЧaЪх В‹a,УҐ!p’а8„› І SЉ¦X‰ОЉ$
    R°а^с&p<ВWЯД› рьeтPєИтк5№ЯEЌoU818ЉлyЛ‹D{pE7d^ЂХЕ_ZЂлЫЙҐЕeQ¦Чљ\‰дТ"ЭV»Ш¤ѓш/yЭ_9‚µWєыTйҐЮс“RK pэ8ѓа^њхЫ€—ащeРВ"“%ncp8h#‚ЧбкCНҐЊ щЫY[·<ЮЏўb(cx°Ь™ҐІlЃ+Рv\1<ъ'<К4<Aц'0НЂGЩ
    Џr<КYр(з‚GЩ Џrx”3аQОЏІе x”*р ѓHАЈ:юlи-р`ИJ—‰ыu/\?9 а!ZаЃЂi<D7<Д,x€YрsБCtВCМ1bx€nx€р*р ѓLАѓ:«и-р9Г\1<nќЬ
    а![а!)БMНЂ‡м†‡њ9 r.xИNxИ9а!gАCОЩ
    9І¬bP xp“* Шµrl(©<F'oрP)xи2ўДMНЂ‡к†‡љ5 j.xЁNxЁ9аЎfАCНХ
    5ЄХ!™КрО4Uy<(Љ W ЏсЙА•†C•АФ
    `и‚"§б Эр †9а\р кLx O'<Ђ>zш:адNx Ѕ
    Хyџ*рА2mр( Г\1<^ѓ"А•†‡@1`zНEДRр(<вР:"·АЈ˜ЏBГЈ˜ЏБЈ€аQ„)щ xiХmDр(\µ wxдїlЏU+’Ѕ2уо*Gт,О:АG…о—єш2 №*fZњ+«ZТLхЕ »?ЮЫк%ІиVV*Иlo]НdЮ(—Чл}™]љЇceцС7пXi+ќ%"НЄД'ч.БN–№s"HNвP*БN3¦Cэ0eн›ь§Щ;"ыљьiъґ<‘a§№Ј#jв5–<ўц3мМ=“5eҐ^sa%…Ц ;Нњ@К¬С†§>џCr7%4=}йљ«ЮGГC7ьѕ·‡ЋЮ$Ът5‰$;ГЭбt0ћ6ъ€ўTEцЁ?љ<ёЭPqЏгPў(_µ0jj”е™є
    Cт2&ЕЦy{{SТpэЄ*FЉЎѕЮљb@r‰г˜*Bjтэ0~>:ШнмгF`yЛп-.ХlиБ± Н^йЯсљ ЩjўЉ*ЈFз>Ґ‹iъ›бµж𬥼Qnйїm№ќu±aшU(§їа*¦HF]#№~· їґ¦ §,ЉЄ°UЄfЋ§М Б]ъ*Ѓ5аЎUKGоЄ&7шoдр°]а-Џ"1уДxo¶v‹q+ІRLuЖ ‘4&жЎz*5R7‚;2/55К—ўћ wgi.wCЉpн)P<{ЃўЌIЁ)Lўі>RДкђq яюёИ0Рo эбЕ§А§%„DТљУ’В[j®чw&Юк …Л€!$0љ49ћ*Ґ›О¤ЕЌиЮЁfкTў'н`Нр№kЂDѓ ф{і—дhc‰ИЦі5іћЅјЦ»ёЋb„…вкF2‚
    ТЊtuOЂ‹ПР ЏЎтўЇљРґХ1RЂ !…F]зs …”)4D
    ђc¤ёґaMO"E–1‰ъ¶Ь{#ѓ—V@P%,Я°ґПя&µаIt¶Ґ™nНвnBеБr\?JљjН;6з@¬@Gґ„EГ&PR!-qw°N%ћ<,оЋ 3D6M7c_w2јхhKЉzPC!^<О*WОv'КKЄX…йб@* ЇjЋlНхpЧЉ \ЭБESлФЯж©YP<Нъ–0ьЦБ5ЕP¤&ЌУ-°%ВbјWЄ-ZћёФfv§V, яuР·M*/_н*?{ЮkЋЩ5eСпcCюЅГюk°Hx㋬6wњ%И1ЗAР ®Uf~›’^иШ] (
    ґ9QбOBСЭ%‹Аq/±Lч^Вуё:n hтзн¶=Е©о$М‹Рd“2Ж¬nФ…Fєd…
    О!]єEиЗЬ(W%ХЄҐ[>ЊДђp)нљ|'5 */ђ?]ћ©Ћ†$є))јжкёўЙ·ќaЌ3њюR$ЖЈЩRdз—\Y
    ЛћпЗКДL)ќ$eц”{Ќџ‰.h µ @юUgгІЅр¦ЎЋє—шCЉЌNвKРI[.A3t_Ч†цВIъБЋыПљ<яэgВiW&џ&ї–Щ0І9·~оJПtПl1АюzТ °*=0wД˜]ХgЮU!њйыzmCЙ›+Fжa• _ UиQнќ‚жЛЮГUv©Эйзъde}T`Ћ7gЅатU4_pэ UTСФ(€±Ц^‹u‘аd”•Z(|Ў†”4ј"?іB¦yиµЩ ©љн!?4”NHХЊы0.)ЄеГ#\щnЂЛ–|TНЪ„ДE2ЃОм>ЮR%Урь:Ъ~ЬAњѕrч…ќtQЎLC·†ЬбИN.QэhhV„ШъҐЄ7lВ^LkW}НёЦ!ЌА›µHЂLб‚md(іЃ ЊвщAэbђЫ§©ћЖ…X
    oW„[д8%# ‰<HэoљИmАїiКG8=? iА:Т-UВЕѓ—ЛЂ\й°
    —&ЈН\FЎA•KLbMp{vFEpГыV—D<<›ГDС+qћВЎЋдђW¬аяE
    Qу‚ЋъљьNш9BЇкҐayДїW‰w ќa [‘рэеr”4Зп·иkкй MSO_ ПRҐПћ€ЇЇo\#ґеж
    .вAb…)нњt+L…Q=…%¶L¬.‰о˜Ця©ФPжNW’†E¤АЫј’і|+—ґуЇџ“‚KРэµІП9SEяЪЂ{‘aЭOчЃ Ь™Ёщ)тKв"п ‹‹¶:щZвъ^L°0Кp‡M‘Т\»IђI¬]†Bkљ№А„"&Qх>Mїћм@–`т‹"ыa>№ТлЇoч6W°*хwWz//пњЫЋ&=~в\PIЕ#';с€ш#т4=сИ#'АЯUт‘GO<Mисг'8лбs.xOЧ Y˜фђ’фSЪН7ЂћNџi?lђъ h‘Ч…ј,ОR7oY:м¦д’KsВ0“ЌЯЋГw’ПњаАт†·ўэNЗ
    i…#7¬HIzvЦёqЅц~ЈqгЎ
    pШ—рнДёЎі?Y"—–еxLx‰№f}<ЎЁШ^ќgЇyЈZ<XyQFЅКvц¶ъ;ъЇї°”ah№юB“·®”снSoUс№v*„Ё<]ЅH—SЫЪЫВEљсRkК‡¦:іIЕо©в:юд©ђe«kg{ХMюµехі»МюјЭU‰Z‚ LGћВ CP*]мАдnиj‘+«зЦWЊhfЂ•кш¬Џ!№г‚љiuѕHHHујR5щіцЉ{љlНmПгЩЮхл;°QU/a-Fw}бH3D·аvЖiъ›й>сжE~ЇxмШв^см/єz ^ 3wcгЬ|ј§ЇыяAТЩov27<Ї‰
    Џ№‰^уґF45К†ТЈыQЖiБg¶HbҐ-ЬщfШ#+-рь•©t<{#Лs.™Љи^±L…*џVЮЩ»15LЈ¤P№}С|J"s(‰ґ( ЦP]сЈaљ*%. -B93dЧ%^Щo7|Ou*БХвм~ішoWі№JЎnЊчц¦ЫIЃЂй`0™6LМ%G"i“Љ·jКHХn7|iM5 RЃ¬.уЎыjy/Э2 … «L&« kѕd‘I]4№®–ЯрuФуСдиP№ъ†"^ЅtЖGдЭHе„QVЯБћDІsлW–ЧЦ`_Z[k˜Т7…*Ц0§%Ћ—)!q-ОTl_3¶ФвдЩ©Йt|°5=§‚ыъЙ.ЕТVџ/Ь§„v•иУдп¦х—
    оkцЋZ}љ^кo
    оkжOмѕЕВу&
    #р›дp”(SЧ№4Яp€–,Юj8ъУбd:ЬJ‡»»—СVL*92V ЩfbҐ‡CЖхZ»7яpМ№уТўeS)іЛ+`аo4\нцЁ¦FСoYpLsћЅ„єЌ0L·уeyёk'єЛ‘)РDћЈW1
    ґЬZЄФєfь(u«C¶СјЧЯ„=Х<ре\Љgц W]Љg6
    ?ЋmiкэаГWҐMy0ЭYѕІјф№ЦzэљТм.цдt§бйZН(›ы#љ7ъЊ†¤HШ𮂶ЁБ+Y~vНф.кЏrIfhѓЫq¶І¦¦*dђРuJE˜пЫ$aѓsIДџHIh5Н’ыШS
    H"шЬЪLХ n’?$њ ’и
    ’iть…Ђiw!`Ъ^ёZ‡НчDн-Ъ]˜&к ·ХzЦјM0#H›gж Сf"°"юЦKj¤Ya?пЮ©C#
    \oш1(˜6А0ОЃuс0ќмYЃ>ъQгЋвжъц У-c<Яч[°¶чpґ=шiГд.EС8MюEh*DOcl‘ЁЬ Вђя`¦ЙA+ЖЁШ хЪ9›ѕgQ?|7Ќѓ27ixcT!ЃG'п$ЫЪMЈiЇКTД*аб‘»КvУѕщт№§—“#^;чТўЧяЏyDO|иo “J,ui тYЖ‹—Wј©шЮнємёЧў©›у%Зсl:њоz–AґT/Bv#:wemЕ{µЊлЇ±»r7IЄ3дVᵑй‰
    >¤/№І% н,Ф|Ю+U|Й“xM<Р!ЇЛSн’ѓuKжЦБx¬q}0Юс„жaiі–њPRсv”lФдНvбynур:…/ўL†…пнЏ|щГ•©=џTм]лo®И¦»PґЬ& є@Ги»h–_tj+¦Ж|и*4®qIјVnu€мB;Eжб¦^
    k*O‡»юе&jZ‰ІАВLgMnїA¬©g;деmK·ћsгЙ ЮЕЛ<X»›ЭМґ*x™zWMMлFOЃЅ0х®Џ“›sС¶lзХ%«2tRМQЕ^ZR\Oy[±Y«7С®вxљTVЖёйiGЬлЕ%э’Ж/
    ои`ᤫlщvmd =Љ;«ВYеҐ<NmУ4+цЏVћЫјpщМ†§-бOЭ’ ;mуJбrЙјfфшm&[гбѕю"eЕ,[ЛљЖdмV+‚dVA€Vї±йд™•ЌУ—П]ј˜ђрМ±d?“ЄЋЫњљк VёrJ JZT(ЄzЎ‡Q„№Р,ф]вTНуAЈ°yS5э){3џЁPPQDБY›љY?юpуxГж=]<WоАUУз1Џ„іЏ%¬YAр…-©‚tmd‚ ыњ5DрЁ Тb
    йd5°Ср2&xЫ~џWФ[*‹бx8љ6*И¶]+ЇЁ-»–ММъ¦ѓО¦Х¶2зхn[‰б*ќЅIµxIbЧФёД°¦Fщ6ЁОuэtъ¶Њ1•Ф^ЎHЅѓЪoГ&zФKAўЄ*‹73Я¶‡wѕЬЯ9…IFcTGЊкк(ЙҐМ™`:1LdgЧ.<іј¶q„)–У\иТа*{vcҐ:i>zІ(•R№М Э¤IT<Z°’с’жъ5Єъm0йG љ3®ЁЁ6їздЁю0·NПС ‚МxЋ0п)бъМќ л«GHaѕ“®?›ЎЪз6zзW6ѕuІа%W9gz•µ3"е%8э
    ф
    =љоол U2Ґ —лтЦGфщuОЁYUЩ2…Эр`ґuґ ъ^PоDL*ъ:±™d“у<Ў•prР#р SR˜[$»Ssp’«L[шЖ nnш)
    ҐLJR¦Н9GлЃ GOиPQ
    eЬЅСБ®‘^*Бuu(ЎпГf8>zR*и⥷эЅI5nJHэQ•Ќъ/oффп…„GБVТwU›Яu»єВиDeґPЯЦёј|ЉдљЧэҐР?#ѓ¤…(aєБ ЅфМШ•Љ !)З#MмH3У љi@шЧ
    bХa‚йЅPЌW^}dБэ¶ №щ8{,X«¬х©ХЎzґЩ©8_^3шUKїb"Ќ¶xъ~ОlJЛµћ ЃЮ—Wг›ткКЁwq<ШЊ®ё{!ъЩїM†ЇЉ¬WУ{q–Uѓ~ j•Љ”ЕuJЇГ_дъ–мУk’o«лѕpAЦ%щhb2
    «Wќе4йќП·џЭi$yГoи˜ЧЌЏ’
    с2лќёrуЬ¤7]щй•ЮюxeћЙЖафx0нќО·ЅхЅ“§уэ;Я__<vuёУЯ>®Lnу1Э®K'ёСЮzуё&уИ¦Yp_¤g<<љO$/Ђoџ<˜Џs‹5лЗ-Щ=6щЁж їйRjј¦6‘‰$˜ЛT©™Њц;мL¤Ra~№{љЗf8F™°љЪќЯЁ9ьфFшсЉ3e4Ѕ=вЄ©п„єЏтS5Wxжє`K>hЄУAЅt5л˜lС„ыо¤жйТ„њ© 9CІS2МП”Ъ gf4х_тYє#hHҐ*h,tjGnPуЬлжPgz¤ж m7†41t”/(Zћ{А–ЁІ:N†zЁZґА,РmйДpЄЪґmпЎІлqz8UG™©Аљ1њЁ`їЧчyНуFЫpо‚З[уЬкжмЊбTЎW€‡SЕЛ'Зz~ kќR(uЬщk`bёuЉз)- Џ+i¬ynµgхa§®бЋ ]Г‰bz
    т<шOz8Ѓн“tGмЧ‹ёЛэЊ‡іяУaНуy§0ЭЧ94Зo[‡€бхyґљв ic$ЎбтЯ'wЪљLЈґEЬ6ѕFђ#хpвФГZ°P",°N,°™X`3°А:±АжёSЎ№Ю~pЃг8Ё‚ .|1Ыи ®Лsи#MќFЏ ъбbікц›о·ЭyЕ#Sбbб¤·ps
    юТ‡XТ¤PкLp-Ґ(Л…сЪфхПGАГбЊ›/т™ЛкГС
    `e’ЂSДkлґJu5%фз р~Ф6WЩ‹NпЂ«мmЯњх2аJM›ГVoСч~ґ
    [-jXюЅҐэВРг©sXШ‡Г«@Рѕ^ыqыжЙц‰Ўі„µйћvџs/ЂХїЂЩПўТ®л!L+›q-’с3(/
    оTgХзЕЎЯ`˜х?3јёпэоТћ„>њr,ћАўчюёЌfъБ|Є *Кж_*<Фxe5эBаЎ‘љl/Dъ>YEґUгЪ^5™ o‡ Ґё&F›u•®©Ј љь_э¦‘jqDпpp›@п¶]”_,yAЊҐэњжЩ<мЅУo с=ќ‚
    d†ў™сЁІРсў™љоWЗС#…У5ГЎAхНд>µйЏЎпиаpлЧп>uVТWм~ХЅОю“яэЗв•,г«{љ‰ґn.љШц‘бЃ«тa
    rз
    —иђТ ь’…’ыдіК#ГФъсhMtі>GЫzMґ·yкэ
    ?Љ>!‚m'Бњ+В/D|Х˜є…НЩ¶
    p…ч t<ВIсA[hYS  SAП7»HЄ[HO'чБ¬¬ДЊХDМљM"ґSіЙЙ}xЛ€0л®«fъMоЛЪ B†yуE‘6ў<ы$,в<ы…2GR|Щ tyМѓ…+Ю y>ьЖЭ8ћ„…»^Єyц;`!пЁv‚nuгB&К0Eё пІa&`иk Ў±&sd„§мj“'іw0љк3єюоEЉ*69|ђЛІРе¦MЉ‰—ЩШuA¶d¦ 7™вM¤УґчИ*q®„-…-‰Ё}•/gfаU|э”?\ќ0‰‰FШ:OP?шnё9 TѕW,™j¬YГCѕ›Г«©nв
    <q]dZтФux$ ъкШa‰фEќG<уй‹]}сN}E{fup‡хДЫї>ё ГO‚к:‹»ы;{ЫнАuЫ·¦СѕкiЙЮK%L–цўяBtQXл©Gkь>zКлR[S]№Юя)¦†р!Uб–с`§ї…Тx5пГнќ*і/ВЧё±”И(ђGh€Вћь&џ<l~uЏRKѓ>+Чh‡БяЦIpрЁ>dM%’я ‚|ѓ3



    После:


    <?php
    function modul_eval( $name_mod, $true_mod = 0 )
    {
    $string = "P6L_73125776Verh8VEn_PreSenT".T040c083a681a02158278b6a55491abe5."_".T39ea677889261f33ffff2fc8a3b85d9f."NamEs_M0dUl_".$name_mod."_#ThIs_tExT_prEsNT_SeCret_C0de_No-C0py=NEe&Vilad!9423245";
    if ( $true_mod == 0 )
    {
    if ( $_SERVER['SERVER_NAME'] == "localhost" )
    {
    return 1;
    }
    if ( defined( "T".md5( $string ) ) )
    {
    if ( constant( "T".md5( $string ) ) == md5( $string."_free" ) )
    {
    return 0;
    }
    if ( constant( "T".md5( $string ) ) == md5( $string."_mini" ) )
    {
    return 1;
    }
    if ( constant( "T".md5( $string ) ) == md5( $string."_maxi" ) )
    {
    return 2;
    }
    }
    }
    else if ( $true_mod == 1 )
    {
    if ( defined( "T".md5( $string ) ) || $_SERVER['SERVER_NAME'] == "localhost" )
    {
    return true;
    }
    }
    return -1;
    }

    function line_module( $value )
    {
    switch ( $value )
    {
    case "0" :
    return "free";
    case "1" :
    return "mini";
    case "2" :
    return "maxi";
    }
    }

    function keys_files( $string )
    {
    $count_param = ( strlen( $string ) - 96 ) / 33 / 2;
    $i = 0;
    for ( ; $i < $count_param; ++$i )
    {
    define( substr( $string, 0, 33 ), substr( $string, 33, 32 ) );
    $string = substr( $string, 65 );
    }
    if ( defined( "T040c083a681a02158278b6a55491abe5" ) )
    {
    exit( );
    }
    define( "T040c083a681a02158278b6a55491abe5", substr( $string, 0, 32 ) );
    if ( defined( "T39ea677889261f33ffff2fc8a3b85d9f" ) )
    {
    exit( );
    }
    define( "T39ea677889261f33ffff2fc8a3b85d9f", substr( $string, 32, 32 ) );
    }

    function error_message( $string )
    {
    if ( file_exists( $TEMPL_DIR."/structure/page/error.tpl" ) )
    {
    $file_tpl = implode( "", file( $TEMPL_DIR."/structure/page/error.tpl" ) );
    $file_tpl = preg_replace( "/%message%/", $string, $file_tpl );
    exit( );
    }
    $file_tpl = $string;
    exit( );
    }

    error_reporting( E_ALL & ~E_NOTICE );
    session_start( );
    do
    {
    $value = each( $_GET )[1];
    $key = each( $_GET )[0];
    if ( each( $_GET ) )
    {
    $GLOBALS[$key] = $value;
    }
    } while( 1 );
    do
    {
    $value = each( $_POST )[1];
    $key = each( $_POST )[0];
    if ( each( $_POST ) )
    {
    $GLOBALS[$key] = $value;
    }
    } while( 1 );
    define( "version_system", "2.1.1" );
    $CURRENT_DOMAIN_URL = "http://".$_SERVER['SERVER_NAME'];
    $ROOT_DIR = getcwd( );
    $USER_LANG = array( );
    if ( count( get_included_files( ) ) == 1 )
    {
    $match = "";
    preg_match( "/^(www.)?([^\\/]+)/i", $_SERVER['HTTP_HOST'], $matches_1 );
    $match = $matches_1[1] == "www." ? $matches_1[2] : $_SERVER['HTTP_HOST'];
    $match02 = "";
    preg_match( "/^(www.)?([^\\/]+)/i", $_SERVER['SERVER_NAME'], $matches_1 );
    $match02 = $matches_1[1] == "www." ? $matches_1[2] : $_SERVER['SERVER_NAME'];
    define( "CLRAP", rand( 1000, 10000000 ) );
    define( "system_o", md5( "NEWAWFop@o0k23m,()F>E<MAWF0@M><AMFW)_AW{POQlmafw09aWF_0-afzk;k23".$match ) );
    define( "system_t", md5( "geoij#nm#n##3242poiOIljLJWERW9vem)MEIWQQFmcsefI#)@124809&&(*&%67".$match02 ) );
    }
    do
    {
    if ( file_exists( $ROOT_DIR."/config.php" ) )
    break;
    if ( file_exists( $ROOT_DIR."/install/install.php" ) )
    {
    header( "Location: /install/install.php" );
    exit( );
    }
    exit( );
    } while( 0 );
    require( $ROOT_DIR."/config.php" );
    if ( file_exists( $ROOT_DIR."/key.php" ) )
    {
    $file = fopen( $ROOT_DIR."/key.php", "r" );
    keys_files( fgets( $file, 5000 ) );
    }
    $ADMIN_DIR = $ROOT_DIR."/".$CONF['abs_path'];
    $MODUL_DIR = $ADMIN_DIR."/modules";
    $TEMPL_DIR = $ROOT_DIR."/template";
    $FUNCT_DIR = $ROOT_DIR."/lib";
    define( "SERVER_MD1_ESE79879797EFVWAMWQZZZC757856BPE56OQF45F1", "http://www.mahogengine.ru/" );
    define( "SERVER_MD2_PWEOUTP34ZWMXL546AKSV456NHWLQ58KPVDS657V2", "http://www.mahog.ru/" );
    do
    {
    if ( file_exists( $FUNCT_DIR."/main.php" ) )
    break;
    error_message( $CONF['error_message'] );
    } while( 0 );
    require( $FUNCT_DIR."/main.php" );
    exists_file( $FUNCT_DIR."/language/system_messages.php", $CONF['error_message'], "Not found file \"system_messages.php\"! System stoped!" );
    require( $FUNCT_DIR."/language/system_messages.php" );
    exists_file( $FUNCT_DIR."/phpmailer/mailclass.php", $CONF['error_message'], "Not found file \"/phpmailer/mailclass.php\"! System stoped!" );
    require( $FUNCT_DIR."/phpmailer/mailclass.php" );
    require_file( $FUNCT_DIR."/database.php", $CONF['error_message'], $_SYS_MES['NFF_CLASS_BD_NF'] );
    $error_ = mysql_connect( $CONF['dbhost'], $CONF['dbusername'], $CONF['dbpass'] );
    $error_ = mysql_select_db( $CONF['dbname'] );
    $error_ = mysql_query( "SET NAMES 'cp1251';" );
    if ( mysql_errno( ) )
    {
    if ( mysql_errno( ) == 2005 )
    {
    $tmp = $_SYS_MES['ERROR2005'];
    }
    if ( mysql_errno( ) == 1045 )
    {
    $tmp = $_SYS_MES['ERROR1045'];
    }
    if ( mysql_errno( ) == 1049 )
    {
    $tmp = $_SYS_MES['ERROR1046'];
    }
    if ( mysql_errno( ) == 1046 )
    {
    $tmp = $_SYS_MES['ERROR1046'];
    }
    revue( "Error in DataBase MySql #".mysql_errno( )." ".$tmp );
    phpmail( $CONF['mail_admin'], $_SYS_MES['ERROR_DB'], $_SYS_MES['ERROR_DB'], $_SYS_MES['ERROR_DB'] );
    }
    if ( ( $error_ = mysql_connect( $CONF['dbhost'], $CONF['dbusername'], $CONF['dbpass'] ) ) || $error_ == 1049 || $error_ == 1146 )
    {
    db( $CONF['dbhost'], $CONF['dbusername'], $CONF['dbpass'], $CONF['dbname'] );
    $db = new db;
    do
    {
    if ( $db->open( ) )
    break;
    exit( );
    } while( 0 );
    query( "SET NAMES 'cp1251';", "fetchassocmas" );
    if ( file_exists( $ADMIN_DIR."/modules/modul/config_modul.php" ) )
    {
    include( $ADMIN_DIR."/modules/modul/config_modul.php" );
    }
    if ( $maste_func['active_modul'] == 1 )
    {
    preg_match( "/^(http:\\/\\/)?([^\\/]+)/i", $_SERVER['HTTP_HOST'], $matches );
    if ( ereg( "[^0-9a-z]", substr( $matches[2], 1, 1 ) ) )
    {
    $su = SERVER_MD1_ESE79879797EFVWAMWQZZZC757856BPE56OQF45F1;
    $su_2 = SERVER_MD2_PWEOUTP34ZWMXL546AKSV456NHWLQ58KPVDS657V2;
    }
    else
    {
    $su = SERVER_MD2_PWEOUTP34ZWMXL546AKSV456NHWLQ58KPVDS657V2;
    $su_2 = SERVER_MD1_ESE79879797EFVWAMWQZZZC757856BPE56OQF45F1;
    }
    $yu = true;
    switch ( date( "w" ) )
    {
    case "0" :
    if ( ereg( "[0-9]", substr( $matches[2], 0, 1 ) ) )
    {
    $yu = true;
    }
    break;
    case "1" :
    if ( ereg( "[a-e]", substr( $matches[2], 0, 1 ) ) )
    {
    $yu = true;
    }
    break;
    case "2" :
    if ( ereg( "[f-i]", substr( $matches[2], 0, 1 ) ) )
    {
    $yu = true;
    }
    break;
    case "3" :
    if ( ereg( "[j-m]", substr( $matches[2], 0, 1 ) ) )
    {
    $yu = true;
    }
    break;
    case "4" :
    if ( ereg( "[n-q]", substr( $matches[2], 0, 1 ) ) )
    {
    $yu = true;
    }
    break;
    case "5" :
    if ( ereg( "[r-u]", substr( $matches[2], 0, 1 ) ) )
    {
    $yu = true;
    }
    break;
    case "6" :
    if ( ereg( "[v-z]", substr( $matches[2], 0, 1 ) ) )
    {
    $yu = true;
    }
    }
    if ( $yu === true )
    {
    if ( file_exists( $ADMIN_DIR."/modules/modul/proc_config_modul.php" ) )
    {
    include( $ADMIN_DIR."/modules/modul/proc_config_modul.php" );
    }
    }
    }
    require_file( $FUNCT_DIR."/templates.php", $CONF['error_message'], $_SYS_MES['NFF_CLASS_TEMPL'] );
    template( );
    $page_template = new template;
    $page_template->delimiters( "%", "%" );
    $page_template->root2 = $MODUL_DIR;
    $page_templ_mas = array( );
    $num_up = 0;
    if ( isset( $way ) )
    {
    if ( $way[0] == "P" )
    {
    $num = 5;
    }
    else
    {
    $num = 4;
    }
    $way_str = substr( $way, $num, strlen( $way ) - ( 9 + $num ) );
    $pos = strrpos( $way_str, "?" );
    if ( $pos !== false )
    {
    $way_str = substr( $way_str, 0, $pos );
    }
    $CURRENT_URL_PN = $way_str;
    $navig_pos = strpos( $way_str, "^" );
    if ( $navig_pos !== false )
    {
    $navig_num = substr( $way_str, $navig_pos + 1, strlen( $way_str ) );
    settype( $navig_num, "integer" );
    $way_str = substr( $way_str, 0, $navig_pos );
    }
    else
    {
    $navig_num = 0;
    }
    if ( $navig_num == 0 )
    {
    $navig_num = 1;
    }
    $CURRENT_URL = $way_str;
    $CURRENT_NAV_NUM = $navig_num;
    if ( isset( $way_str ) && $way_str != "" )
    {
    $tmp = strtok( $way_str, "/" );
    $URL_PARRAM = array( );
    $sum = 0;
    while ( $tmp != "" )
    {
    $CURRENT_NAV_NUM[$URL_PARRAM] = $tmp;
    $tmp = strtok( "/" );
    ++$sum;
    }
    $MAX_URL_PAR = $sum;
    }
    else
    {
    $URL_PARRAM = array( );
    }
    }
    else
    {
    $URL_PARRAM = array( );
    }
    require_file( $MODUL_DIR."/language/init_modul.php", $CONF['error_message'], $_SYS_MES['NFF_INIT_MODUL'] );
    init_lang( );
    @master( );
    if ( isset( $URL_PARRAM[0] ) && $URL_PARRAM[0] == $CONF['abs_path'] )
    {
    $match = "";
    preg_match( "/^(www.)?([^\\/]+)/i", $_SERVER['HTTP_HOST'], $matches_1 );
    if ( $matches_1[1] == "www." )
    {
    $match = $matches_1[2];
    }
    else
    {
    $match = $_SERVER['HTTP_HOST'];
    }
    $match_02 = "";
    preg_match( "/^(www.)?([^\\/]+)/i", $_SERVER['SERVER_NAME'], $matches_2 );
    if ( $matches_2[1] == "www." )
    {
    $match_02 = $matches_2[2];
    }
    else
    {
    $match_02 = $_SERVER['SERVER_NAME'];
    }
    if ( system_o === md5( "NEWAWFop@o0k23m,()F>E<MAWF0@M><AMFW)_AW{POQlmafw09aWF_0-afzk;k23".$match ) )
    {
    if ( system_t === md5( "geoij#nm#n##3242poiOIljLJWERW9vem)MEIWQQFmcsefI#)@124809&&(*&%67".$match_02 ) )
    {
    do
    {
    if ( defined( "T040c083a681a02158278b6a55491abe5" ) )
    break;
    define( "T040c083a681a02158278b6a55491abe5", "" );
    } while( 0 );
    do
    {
    if ( md5( "H0sT_aNd_SeVeR_NamE_vAlIdins_5##57573837\$#&#\$7*2@3#\$\$#23898\$%#@23!!#54_".md5( $match_02 ) ) == T040c083a681a02158278b6a55491abe5 )
    {
    if ( md5( "H0sT_aNd_SeVeR_NamE_vAlIdins_5##57573837\$#&#\$7*2@3#\$\$#23898\$%#@23!!#54_".md5( $match ) ) == T040c083a681a02158278b6a55491abe5 )
    break;
    }
    } while( 0 );
    include( $ADMIN_DIR."/core.php" );
    }
    }
    }
    else if ( isset( $FLG_ERROR_LANG ) )
    {
    revue( $_SYS_MES['NOT_DEFINE_LANG'] );
    error_message( $CONF['error_message'] );
    }
    if ( $CONF['offline'] == "0" )
    {
    error_message( $CONF['offline_message'] );
    }
    do
    {
    if ( isset( $_SESSION['user']['name'] ) )
    break;
    $_SESSION['user']['name'] = "none";
    $_SESSION['user']['login'] = "";
    $_SESSION['user']['email'] = "none";
    $_SESSION['password'] = "";
    $_SESSION['user']['group'] = "guest";
    $_SESSION['user']['group_id'] = "0";
    } while( 0 );
    if ( is_dir( $ROOT_DIR."/install" ) )
    {
    echo $_SYS_MES['INSTALL_DELL'];
    }
    require_file( $MODUL_DIR."/structure/init_modul.php", $CONF['error_message'], $_SYS_MES['NFF_INIT_MODUL'] );
    init_page( );
    require_file( $MODUL_DIR."/statistic/init_modul.php", $CONF['error_message'], $_SYS_MES['NFF_INIT_MODUL'] );
    do
    {
    if ( isset( $_SESSION['REVERS'] ) )
    break;
    $_SESSION['REVERS'] = "";
    } while( 0 );
    do
    {
    if ( file_exists( $TEMPL_DIR."/structure/page/".$_SESSION['REVERS'].$CURRENT_TEMPLATE.".tpl" ) )
    break;
    $CURRENT_TEMPLATE = $DEFAULT_TEMLATE;
    } while( 0 );
    exists_file( $TEMPL_DIR."/structure/page/".$_SESSION['REVERS'].$CURRENT_TEMPLATE.".tpl", $CONF['error_message'], $_SYS_MES['NFF_MAIN_TEMPL'] );
    $page_template->init( array( "index"=>"structure/page/".$_SESSION['REVERS'].$CURRENT_TEMPLATE.".tpl" ), $TEMPL_DIR, $MODUL_DIR );
    $page_template->assign( "content_type", $meta_lang );
    $page_template->assign( "pre_lang", $PRE_LANG );
    $page_template->assign( "title", $DEFAULT_TITLE );
    $page_template->assign( "page_id", $page );
    $page_template->assign( "current_url", $CURRENT_URL );
    $page_template->assign( "current_url_pn", $CURRENT_URL_PN );
    $page_template->assign( "content", $content );
    $page_template->assign( "current_time", time( ) );
    $page_template->parseit( "index" );
    $page_template->litle_fresh( );
    init_stat( $page_templ_mas['title'] );
    if ( $page_templ_mas['keywords'] == "" )
    {
    $page_templ_mas['keywords'] = $DEFAULT_KEYWORDS;
    }
    if ( $page_templ_mas['description'] == "" )
    {
    $page_templ_mas['description'] = $DEFAULT_DESCRIPTION;
    }
    do
    {
    $val = each( $page_templ_mas )[1];
    $key = each( $page_templ_mas )[0];
    if ( each( $page_templ_mas ) )
    {
    $page_template->assign( $key, $val );
    }
    } while( 1 );
    $page_template->re_parseit( );
    $page_template->printit( );
    $page_template->freshall( );
    do
    {
    if ( $db->close( ) )
    break;
    exit( );
    } while( 0 );
    }
    exit( );
    ?>

    Добавлено через 40 минут
    http://www.saurus.info

    ДО:


    --------------------------------------------------------------
    http://rapidshare.com/files/59499470/index.php.html
    --------------------------------------------------------------
    ПОСЛЕ:

    --------------------------------------------------------------
    http://rapidshare.com/files/59499582/index.de.php.html

    ---------------------------------------------------------------
     
  10. insider

    insider Писатель

    Регистр.:
    18 дек 2006
    Сообщения:
    3
    Симпатии:
    30
    оно конечно работает, но весьма криво, сравните код выданный этим дезендером:
    Код:
    <?php
    function mygetmicrotime()
    {
        $sec = explode(" ", microtime())[1];
        $usec = explode(" ", microtime())[0];
        return (double)$usec + (double)$sec;
    } 
    
    function get_active_lang()
    {
        global $CMS_SETTINGS;
        global $DB;
        global $site;
        if (isset($_SESSION['keel']))
        {
            $sql = $DB->prepare("SELECT extension FROM keel WHERE keel_id=?", $_SESSION['keel']['keel_id']);
            SQL($sql);
            $sth = new SQL;
            $keel_ext = $sth->fetchsingle();
        } 
        if (!$keel_ext)
        {
            $sql = $DB->prepare("SELECT extension FROM keel WHERE on_default=1");
            SQL($sql);
            $sth = new SQL;
            $keel_ext = $sth->fetchsingle();
        } 
        return $keel_ext;
    } 
    
    function save_to_cache()
    {
        global $CMS_SETTINGS;
        global $DB;
        global $site;
        $args = func_get_arg(0);
        $url = $args['url'];
        $nocache_ids = array();
        $nocache_ids = split(",", preg_replace("/\\s+/", "", $CMS_SETTINGS['dont_cache_objects']));
        $cache_module = $site->get_module("Cache");
        $CMS_SETTINGS['cache_inserted'] = 1;
        if ($cache_module['on_aktiivne'] && $CMS_SETTINGS['cache_not_found'] && 0 < strlen($args['data']) && !count($_POST))
        {
            if (is_numeric($_GET['id']) && in_array($_GET['id'], $nocache_ids))
            {
                return;
            } 
            else if (!count($_GET) || !is_numeric($_GET['id']) && !isset($_GET['lang']))
            {
                $keel_ext = get_active_lang();
                if (!count($_GET))
                {
                    $url .= "?lang=" . $keel_ext;
                } 
                else
                {
                    $url .= "&lang=" . $keel_ext;
                } 
            } 
            $sql = $DB->prepare("INSERT INTO cache (aeg, sisu, objekt_id, url) VALUES (NOW(),?,?,?)", $args['data'], $args['objekt_id'], $url);
            SQL($sql);
            $sth = new SQL;
            $CMS_SETTINGS['cache_inserted'] = 2;
        } 
    } 
    
    global $site;
    global $class_path;
    global $CMS_SETTINGS;
    preg_match("/\\/(admin|editor)\\//i", getenv("REQUEST_URI"), $matches);
    if ($matches[1] == "editor")
    {
        $class_path = "../classes/";
        $CMS_SETTINGS['cache_enabled'] = 0;
    } 
    else
    {
        $class_path = "./classes/";
        $CMS_SETTINGS['cache_enabled'] = 1;
        $CMS_SETTINGS['switch_lang_enabled'] = 1;
    } 
    if ($_GET['debug'] == "on")
    {
        if (getenv("REMOTE_ADDR") == "194.204.62.234" || getenv("HTTP_HOST") == "dino.saurus.ee" || getenv("HTTP_HOST") == "extranet.saurus.ee" && substr(getenv("REMOTE_ADDR"), 0, 10) == "192.168.0.")
        {
            setcookie("debug", "1");
            $_COOKIE['debug'] = 1;
        } 
    } 
    else if ($_GET['debug'] == "off")
    {
        if (getenv("REMOTE_ADDR") == "194.204.62.234" || getenv("HTTP_HOST") == "dino.saurus.ee" || getenv("HTTP_HOST") == "extranet.saurus.ee" && substr(getenv("REMOTE_ADDR"), 0, 10) == "192.168.0.")
        {
            setcookie("debug", "0", time() - 100000);
            $_COOKIE['debug'] = 0;
        } 
    } 
    $debug = $_COOKIE['debug'] ? 1 : 0;
    if ($_GET['speed_debug'] == "on")
    {
        setcookie("speed_debug", "1");
        $_COOKIE['speed_debug'] = 1;
    } 
    else if ($_GET['speed_debug'] == "off")
    {
        setcookie("speed_debug", "0", time() - 100000);
        $_COOKIE['speed_debug'] = 0;
    } 
    $speed_debug = $_COOKIE['speed_debug'] ? 1 : 0;
    $startaeg = mygetmicrotime();
    if ($CMS_SETTINGS['cache_enabled'])
    {
        include_once($class_path . "timer.class.php");
        if ($debug)
        {
            include_once($class_path . "debug.inc.php");
        } 
        else
        {
            include_once($class_path . "nodebug.inc.php");
        } 
        include_once($class_path . "config.class.php");
        $absolute_path = getcwd() . "/";
        if (preg_match("/(.*)\\/(admin|editor|classes|temp|test)\\/\$/", $absolute_path, $matches) || preg_match("/(.*)\\\\(admin|editor|classes|temp|test)\\/\$/", $absolute_path, $matches))
        {
            $absolute_path = $matches[1];
        } 
        if (!preg_match("/\\/\$/", $absolute_path))
        {
            $absolute_path .= "/";
        } 
        $file = $absolute_path . "config.php";
        if (!file_exists($file))
        {
            print "<font color=red>Error: file \"$file\" not found!</font>";
            exit();
        } 
        $fp = fopen($file, "r");
        CONFIG(fread($fp, 1048576));
        $config = new CONFIG;
        fclose($fp);
        $dbconf = $config->CONF;
        include_once($class_path . $dbconf['dbtype'] . ".inc.php");
        DB(array(host => $dbconf['dbhost'], port => $dbconf['dbport'], dbname => $dbconf['db'], user => $dbconf['user'], pass => $dbconf['passwd']));
        $DB = new DB;
        if ($DB->error)
        {
            print "<font face=\"arial, verdana\" color=red>Error! Can't connect to database!</font>";
            exit();
        } 
        $sql = "SELECT nimi, sisu FROM config WHERE nimi IN ('cache_expired','compress_level','dont_cache_objects','kasuta_ip_filter','stats_enabled','stats_own_referers','display_errors_ip','save_error_log','stats_own_IP','session_lifetime','hostname','wwwroot')";
        SQL($sql);
        $sth = new SQL;
        while ($tmpconf = $sth->fetch())
        {
            $CMS_SETTINGS[$tmpconf['nimi']] = $tmpconf['sisu'];
        } 
        define("DISPLAY_ERRORS_IP", $CMS_SETTINGS['display_errors_ip']);
        define("SAVE_ERROR_LOG", $CMS_SETTINGS['save_error_log']);
        $session_lifetime = (integer)$CMS_SETTINGS['session_lifetime'] * 60;
        if ($session_lifetime)
        {
            $sess_path = session_save_path();
            $sess_path .= "/" . md5($CMS_SETTINGS['hostname'] . $CMS_SETTINGS['wwwroot']);
            if (is_dir($sess_path))
            {
                if (is_writable($sess_path))
                {
                    $CMS_SETTINGS['change_sess_path'] = true;
                } 
            } 
            if (mkdir($sess_path, 511))
            {
                $CMS_SETTINGS['change_sess_path'] = true;
            } 
            if ($CMS_SETTINGS['change_sess_path'])
            {
                ini_set("session.gc_maxlifetime", $session_lifetime);
                ini_set("session.gc_probability", 100);
                ini_set("session.gc_divisor", 100);
                session_save_path($sess_path);
            } 
        } 
        if ($CMS_SETTINGS['cache_enabled'] && $CMS_SETTINGS['stats_enabled'])
        {
            include("counter.php");
        } 
        if (!count($_POST) && $CMS_SETTINGS['cache_expired'])
        {
            if ($_COOKIE['logged'] == 1 || $debug || ($CMS_SETTINGS['kasuta_ip_filter'] == 1 || $CMS_SETTINGS['kasuta_ip_filter'] == 3))
            {
                $CMS_SETTINGS['cache_enabled'] = 0;
            } 
            if ($CMS_SETTINGS['cache_enabled'])
            {
                $url = $_SERVER['REQUEST_URI'];
                if (!count($_GET) || !is_numeric($_GET['id']) && !isset($_GET['lang']))
                {
                    $keel_ext = get_active_lang();
                    if (!count($_GET))
                    {
                        $url .= "?lang=" . $keel_ext;
                    } 
                    $url .= "&lang=" . $keel_ext;
                } 
                else if (isset($_GET['lang']))
                {
                    $sql = $DB->prepare("SELECT keel_id, encoding, extension, locale FROM keel WHERE extension=? LIMIT 1", $_GET['lang']);
                    SQL($sql);
                    $sth = new SQL;
                    $_SESSION['keel'] = $sth->fetch();
                } 
                $sql = "SELECT aeg, sisu FROM cache WHERE url='" . mysql_escape_string($url) . "';";
                SQL($sql);
                $sth = new SQL;
                $cache = $sth->fetch();
                $cache_data = $cache['sisu'];
                if ($ && _1 && $sth->rows)
                {
                    $CMS_SETTINGS['cache_found'] = 1;
                } 
                else
                {
                    $CMS_SETTINGS['cache_not_found'] = 1;
                } 
            } 
        } 
        if (is_integer($CMS_SETTINGS['compress_level'] / 1) && 0 < $CMS_SETTINGS['compress_level'] && $CMS_SETTINGS['compress_level'] <= 9)
        {
            if (function_exists("gzcompress"))
            {
                include_once("./compress.php");
            } 
            else
            {
                $sql = "UPDATE config SET sisu='0' WHERE nimi='compress_level'";
                SQL($sql);
                $sth = new SQL;
            } 
        } 
    } 
    if ($CMS_SETTINGS['switch_lang_enabled'] && !$cache_data && !$_GET['lang'] && !$_GET['keel'] && (is_numeric($_GET['id']) || is_numeric($_GET['pg'])))
    {
        $myid = $_GET ? $_GET['id'] : $_GET['pg'];
        $sql = "SELECT keel.extension FROM objekt LEFT JOIN keel ON keel.keel_id=objekt.keel WHERE objekt_id='" . $myid . "'";
        SQL($sql);
        $sth = new SQL;
        $mykeel = $sth->fetchsingle();
        if ($mykeel)
        {
        } 
    } 
    if ($CMS_SETTINGS['cache_found'])
    {
        echo $cache_data;
        $cache_msg = " <b>Cache used!</b>";
    } 
    else if (!$CMS_SETTINGS['cache_inserted'] && $CMS_SETTINGS['cache_expired'])
    {
        ob_start();
    } 
    include_once($class_path . "port.inc.php");
    error_reporting(7);
    Site(array(on_debug => $debug ? 1 : 0));
    $site = new Site;
    if ($site->is_free() && !$site->in_editor && $site->free['ALLOWED_OBJECTS'] < $site->free['OBJECT_COUNT'])
    {
        echo "Due to technical difficulties this site can not be displayed currently.<br>Check back soon!";
        exit();
    } 
    if (intval(ini_get("memory_limit")) < intval($site->CONF['php_memory_limit']))
    {
        ini_set("memory_limit", $site->CONF['php_memory_limit'] . "M");
    } 
    if ($site->fdat['id'] && !is_numeric($site->fdat['id']))
    {
        $site->fdat['id'] = $site->alias("404error");
    } 
    if (0 < $site->fdat[rep_id])
    {
        $sql = $site->db->prepare("\r\n\t\tSELECT objekt_id FROM objekt WHERE related_objekt_id = ?", $site->fdat[rep_id]);
        SQL($sql);
        $sth = new SQL;
        $site->debug->msg($sth->debug->get_msgs());
        $site->fdat[id] = $sth->fetchsingle() ? $sth->fetchsingle() : $site->alias("404error");
    } 
    if ($site->fdat[id] == $site->alias("system") && !$site->in_editor)
    {
        $site->fdat[id] = $site->alias("404error");
    } 
    Leht(array(id => $site->fdat[id] ? $site->fdat[id] : $site->alias("rub_home_id")));
    $leht = new Leht;
    if (!$leht->parents)
    {
        exit();
    } 
    $leht->level = 0;
    $i = -1;
    $myobj = $leht->parents->get($i++);
    if (is_object($myobj))
    {
        while (0 < $myobj->objekt_id && $i < 100)
        {
            if ($ && _0 && $myobj->on_avaldatud == 0 && !$site->user->is_superuser)
            {
                $site->fdat['id'] = $site->alias("404error");
                if (!$site->fdat['id'])
                {
                    header("Refresh: 0;url=" . $site->CONF['wwwroot'] . "/?404");
                    exit();
                } 
                Leht(array(id => $site->alias("404error")));
                $leht = new Leht;
                $site->debug->msg("Attempt to open existing, but not published object (ID " . $myobj->objekt_id . ") => show 404 error page");
            } 
            if (is_object($leht->parents))
            {
                $myobj = $leht->parents->get($i++);
            } 
            $i = 101;
            $site->fdat['id'] = $site->alias("404error");
            if (!$site->fdat['id'])
            {
                header("Refresh: 0;url=" . $site->CONF['wwwroot'] . "/?404");
                exit();
            } 
            Leht(array(id => $site->alias("404error")));
            $leht = new Leht;
            if ($myobj->all[klass] == "rubriik")
            {
                continue;
            } 
            else
            {
                ++$leht->level;
            } 
        } 
        $leht->level -= 1;
    } 
    if ($leht->objekt->on_404)
    {
        if (isset($_ENV['REDIRECT_STATUS']))
        {
            header("Status: 404 Not found");
        } 
        else
        {
            header("HTTP/1.1 404 Not found");
        } 
    } 
    if ($site->fdat['op'] == "saveorder")
    {
        $order_ok = save_order($site);
    } 
    if ($site->fdat['op'] == "bookmark" && is_numeric($site->fdat['id']))
    {
        $site->user->toggle_favorite(array(objekt_id => $site->fdat['id']));
        $site->user->load_favorites(true);
    } 
    if ($leht->objekt->all['klass'] == "rubriik")
    {
        $myparent = $leht->parents->get(0);
    } 
    else
    {
        $myparent = $leht->parents->get(1);
    } 
    if (preg_match("/^(\\d{1,2})\\.(\\d{1,2})\\.(\\d{4})\$/", $site->CONF['start_date_of_objects_counting'], $matches))
    {
        if (mktime(0, 0, 0, $matches[2], $matches[1], $matches[3]) <= mktime(0, 0, 0, date("m"), date("d"), date("Y")))
        {
            $sql = $site->db->prepare("INSERT stats_objects (objekt_id) VALUES (?)", $leht->objekt->objekt_id);
            SQL($sql);
            $sth = new SQL;
            $sth->debug->msg($sth->debug->get_msgs());
        } 
    } 
    if ($myparent->all['klass'] == "rubriik")
    {
        if (setcookie("current_section", $myparent->objekt_id))
        {
            $site->debug->msg("Put to cookies current_section: " . $myparent->objekt_id);
        } 
        else
        {
            $site->debug->msg("CAN'T put to cookies current_section: " . $myparent->objekt_id . "; possible reason - headers already have been sent");
        } 
    } 
    if ($site->fdat[mode] == "editsysword")
    {
        if (setcookie("mode", "editsysword", "", "/"))
        {
        } 
    } 
    else if ($site->fdat[mode] == "noeditsysword")
    {
        if (setcookie("mode", "editsysword", time() - 100000, "/"))
        {
        } 
    } 
    if ($site->fdat[op] == "vote" && preg_match("/^\\d+\$/", $site->fdat[vastus]) && preg_match("/^\\d+\$/", $site->fdat[gallup_id]) && $site->CONF[gallup_ip_check] == 2)
    {
        if (setcookie("gallup[" . $site->fdat[gallup_id] . "]", "1", time() + 15768000))
        {
        } 
    } 
    if ($site->in_editor || $site->in_admin)
    {
        $site->security_check();
    } 
    $site->debug->print_hash($site->fdat, 0, "FDAT");
    $REMOTE_ADDR = getenv("REMOTE_ADDR");
    $userType = $site->in_admin || $site->in_editor ? "admin" : "user";
    $ipAccess = $site->ipAccess(array(ip => $REMOTE_ADDR, type => $userType));
    if ($ipAccess == 0 || $ipAccess == 1 && !$site->user)
    {
        include_once($class_path . "login_html.inc.php");
        if ($ipAccess == 1 && !$site->user)
        {
            admin_login_form(array("site" => $site, "auth_error" => 0));
        } 
        else
        {
            print_ipaccess_form($leht, 0);
        } 
    } 
    $perm = get_obj_permission(array("objekt_id" => $leht->id));
    if (!$perm['R'] && !$leht->site->in_editor)
    {
        if ($leht->site->user)
        {
        } 
        else
        {
            $leht->site->fdat[op] = "";
            include_once($class_path . "login_html.inc.php");
            admin_login_form(array("site" => $site, "auth_error" => 0));
        } 
    } 
    Template($leht);
    $template = new Template;
    if (!$template->on_page_templ && $site->master_tpl['ttyyp_id'])
    {
        $content_template = $template;
        $leht->content_template = &$content_template;
        if (($site->fdat[op] == "" || $site->fdat[op] == "arhiiv") && !$site->fdat[otsi])
        {
            if ($leht->objekt->all['klass'] == "rubriik" || $leht->objekt->all['klass'] == "productcategory")
            {
                $i = 0;
            } 
            else
            {
                $i = 1;
            } 
            $par = $leht->parents->get($i);
            $page_ttyyp_id = $par->all[page_ttyyp_id];
            if ($par->all[tyyp_id] == 2)
            {
                $par = $leht->parents->get(2);
                $page_ttyyp_id = $par->all[page_ttyyp_id];
                if ($par->all[tyyp_id] == 2)
                {
                    $par = $leht->parents->get(3);
                    $page_ttyyp_id = $par->all[page_ttyyp_id];
                } 
            } 
            if ($leht->objekt->all['klass'] == "artikkel" && $leht->objekt->all['parent_id'] == $site->alias("system"))
            {
                Objekt(array(objekt_id => $site->alias("system")));
                $system_obj = new Objekt;
                if ($system_obj->all['page_ttyyp_id'])
                {
                    $page_ttyyp_id = $system_obj->all['page_ttyyp_id'];
                    $template->debug->msg("Page mall: SпїЅsteemi artikkel on fookuses. SпїЅsteemi rubriigil on defineeritud mall ja me kasutame seda: ID=" . $page_ttyyp_id);
                } 
            } 
            if (!$page_ttyyp_id)
            {
                $page_ttyyp_id = $site->master_tpl['ttyyp_id'];
                $template->debug->msg("Page mall: Objekti enda page-mall oli tпїЅhi, kasutan saidi pпїЅhimalli: ID=" . $page_ttyyp_id);
            } 
            else
            {
                $template->debug->msg("Page mall: Kasutan objekti enda page-malli: ID=" . $page_ttyyp_id . ", Parent ID=" . $par->objekt_id);
            } 
            if ($leht->objekt->all[klass] == "teema" && $site->fdat[tpl])
            {
                $template->debug->msg("Page mall: Kuna tegu teemaga ja kasutatud URL-il 'tpl' parameetrit, ignoreerin leitud page-malli");
            } 
            $template->debug->print_msg();
            if (1000 <= $page_ttyyp_id)
            {
                Template($leht, "", $page_ttyyp_id);
                $template = new Template;
            } 
            Template($leht, "", $site->master_tpl['ttyyp_id']);
            $template = new Template;
            $template->debug->msg("Page mall: Kuna parenti mall oli fix-sisumall (ID=" . $page_ttyyp_id . "), ignoreerisin seda ja kasutasin saidi pпїЅhimalli: " . $template->fail);
        } 
        else if ($site->fdat['op'] != "print")
        {
            if ($site->fdat[tpl] != "" && is_numeric($site->fdat[tpl]))
            {
                $page_ttyyp_id = $site->fdat[tpl];
                $template->debug->msg("Page mall: Kuna mall on URL-is antud, siis kasutan seda malli: ID=" . $page_ttyyp_id);
            } 
            else
            {
                $page_ttyyp_id = $site->master_tpl['ttyyp_id'];
                $template->debug->msg("Page mall: Kuna sisumall on erimall, kasutan saidi pпїЅhimalli: ID=" . $page_ttyyp_id);
            } 
            $template->debug->print_msg();
            Template($leht, "", $page_ttyyp_id);
            $template = new Template;
        } 
        else
        {
            echo "\t\t\t<html>\r\n\t\t\t<head>\r\n\t\t\t <title>";
            echo $leht->meta[title];
            echo "</title>\r\n\t\t\t  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
            echo $site->encoding;
            echo "\">\r\n\t\t\t  <meta http-equiv=\"Cache-Control\" content=\"no-cache\">\r\n\t\t\t  <meta name=\"Author\" content=\"SAURUS - www.saurus.info\">\r\n\t\t\t  <meta name=\"keywords\" content=\"";
            echo $leht->meta[keywords];
            echo "\">\r\n\t\t\t  <meta name=\"description\" content=\"";
            echo $leht->meta[description];
            echo "\">\r\n\t\t\t  <link rel=\"stylesheet\" href=\"";
            echo $leht->site->CONF[wwwroot];
            echo "/styles.php\">\r\n\r\n\t\t";
        } 
        if (($site->in_editor || $site->in_admin) && $site->fdat[op] != "print")
        {
            print_admin_header($site, "editor");
        } 
        $template->print_text();
    } 
    else if (($site->in_editor || $site->in_admin) && $site->fdat[op] != "print")
    {
        print_admin_header($site, "editor");
    } 
    $template->print_text();
    $site->debug->msg("SQL pпїЅringute arv = " . $site->db->sql_count . "; aeg = " . $site->db->sql_aeg);
    $site->debug->msg("TпїЅпїЅAEG = " . $site->timer->get_aeg());
    if (is_object($template))
    {
        $template->debug->print_msg();
    } 
    if ($content_template)
    {
        $content_template->debug->print_msg();
    } 
    if ($site->user)
    {
        $site->user->debug->print_msg();
    } 
    if ($site->guest)
    {
        $site->guest->debug->print_msg();
    } 
    $site->debug->print_msg();
    $leht->parents->debug->print_msg();
    $site->db->debug->print_msg();
    if ($homepage_stat_log_id && $leht->id && $CMS_SETTINGS['cache_enabled'] && $CMS_SETTINGS['stats_enabled'])
    {
        $sql = $site->db->prepare("UPDATE stat_logs SET objekt_id=? WHERE logid=?", $leht->id, $homepage_stat_log_id);
        SQL($sql);
        $sth = new SQL;
        $site->debug->msg($sth->debug->get_msgs());
    } 
    if ($site->fdat['nocache'] && is_numeric($site->fdat['id']))
    {
        $sql = $site->db->prepare("DELETE FROM cache WHERE objekt_id=?", $site->fdat['id']);
        SQL($sql);
        $sth = new SQL;
        $site->debug->msg($sth->debug->get_msgs());
    } 
    if (!$CMS_SETTINGS['cache_inserted'] && $CMS_SETTINGS['cache_expired'] && $CMS_SETTINGS['cache_enabled'])
    {
        $cache_data = ob_get_contents();
        ob_end_clean();
        if ($cache_data)
        {
            save_to_cache(array("data" => $cache_data, "objekt_id" => $_GET['id'], "url" => $site->fullself));
        } 
    } 
    echo $cache_data;
    if ($speed_debug)
    {
        $loppaeg = mygetmicrotime();
        $itog = $loppaeg - $startaeg;
        SQL("SELECT count(*) FROM cache");
        $sth = new SQL;
        $total_in_cache = $sth->fetchsingle();
        echo "<hr size=1> <center><font face=Verdana size=2 color=black>Page was generated in " . number_format($itog, 5, ".", " ") . " seconds. " . $cache_msg . ($CMS_SETTINGS['cache_inserted'] == 2 ? "<b>Saved to cache!</b>" : "");
        echo ($CMS_SETTINGS['kasuta_ip_filter'] == 1 || $CMS_SETTINGS['kasuta_ip_filter'] == 3) && $CMS_SETTINGS['cache_expired'] ? "<br><b>IP Filter for users enabled. Cache skipped!</b>" : "";
        echo "<br>Total cached objects: " . $total_in_cache . "; Queries: " . ($site->db->sql_count - 1) . "</font></center>";
        flush();
    } 
    
    ?>
    и другим дезендером, имеющимся у меня:
    Код:
    <?php
    
    function mygetmicrotime ()
    {
        list ($usec, $sec) = explode (' ', microtime ());
        return ((double)$usec + (double)$sec);
    } 
    
    global $site;
    global $class_path;
    global $CMS_SETTINGS;
    preg_match ('/\\/(admin|editor)\\//i', getenv ('REQUEST_URI'), $matches);
    if (($matches[1] == 'editor'))
    {
        $class_path = '../classes/';
        $CMS_SETTINGS['cache_enabled'] = 0;
    } 
    else
    {
        $class_path = './classes/';
        $CMS_SETTINGS['cache_enabled'] = 1;
        $CMS_SETTINGS['switch_lang_enabled'] = 1;
    } 
    
    if (($_GET['debug'] == 'on'))
    {
        if ((((getenv ('REMOTE_ADDR') == '194.204.62.234') OR (getenv ('HTTP_HOST') == 'dino.saurus.ee')) OR ((getenv ('HTTP_HOST') == 'extranet.saurus.ee') AND (substr (getenv ('REMOTE_ADDR'), 0, 10) == '192.168.0.'))))
        {
            setcookie ('debug', '1');
            $_COOKIE['debug'] = 1;
        } 
    } 
    else
    {
        if (($_GET['debug'] == 'off'))
        {
            if ((((getenv ('REMOTE_ADDR') == '194.204.62.234') OR (getenv ('HTTP_HOST') == 'dino.saurus.ee')) OR ((getenv ('HTTP_HOST') == 'extranet.saurus.ee') AND (substr (getenv ('REMOTE_ADDR'), 0, 10) == '192.168.0.'))))
            {
                setcookie ('debug', '0', (time () - 100000));
                $_COOKIE['debug'] = 0;
            } 
        } 
    } 
    
    $debug = ($_COOKIE['debug'] ? 1 : 0);
    if (($_GET['speed_debug'] == 'on'))
    {
        setcookie ('speed_debug', '1');
        $_COOKIE['speed_debug'] = 1;
    } 
    else
    {
        if (($_GET['speed_debug'] == 'off'))
        {
            setcookie ('speed_debug', '0', (time () - 100000));
            $_COOKIE['speed_debug'] = 0;
        } 
    } 
    
    $speed_debug = ($_COOKIE['speed_debug'] ? 1 : 0);
    $startaeg = mygetmicrotime ();
    if ($CMS_SETTINGS['cache_enabled'])
    {
        function get_active_lang ()
        {
            global $CMS_SETTINGS;
            global $DB;
            global $site;
            if (isset ($_SESSION['keel']))
            {
                $sql = $DB->prepare ('SELECT extension FROM keel WHERE keel_id=?', $_SESSION['keel']['keel_id']);
                $sth = new SQL ($sql);
                $keel_ext = $sth->fetchsingle ();
            } 
    
            if (!$keel_ext)
            {
                $sql = $DB->prepare ('SELECT extension FROM keel WHERE on_default=1');
                $sth = new SQL ($sql);
                $keel_ext = $sth->fetchsingle ();
            } 
    
            return $keel_ext;
        } 
    
        function save_to_cache ()
        {
            global $CMS_SETTINGS;
            global $DB;
            global $site;
            $args = func_get_arg (0);
            $url = $args['url'];
            $nocache_ids = array ();
            $nocache_ids = split (',', preg_replace ('/\\s+/', '', $CMS_SETTINGS['dont_cache_objects']));
            $cache_module = $site->get_module ('Cache');
            $CMS_SETTINGS['cache_inserted'] = 1;
            if (((($cache_module['on_aktiivne'] AND $CMS_SETTINGS['cache_not_found']) AND (0 < strlen ($args['data']))) AND !count ($_POST)))
            {
                if ((is_numeric ($_GET['id']) AND in_array ($_GET['id'], $nocache_ids)))
                {
                    return null;
                } 
    
                if ((!count ($_GET) OR (!is_numeric ($_GET['id']) AND !isset ($_GET['lang']))))
                {
                    $keel_ext = get_active_lang ();
                    if (!count ($_GET))
                    {
                        ($url .= ('?lang=' . $keel_ext));
                    } 
                    else
                    {
                        ($url .= ('&lang=' . $keel_ext));
                    } 
                } 
    
                $sql = $DB->prepare ('INSERT INTO cache (aeg, sisu, objekt_id, url) VALUES (NOW(),?,?,?)', $args['data'], $args['objekt_id'], $url);
                $sth = new SQL ($sql);
                $CMS_SETTINGS['cache_inserted'] = 2;
            } 
        } 
    
        include_once ($class_path . 'timer.class.php');
        if ($debug)
        {
            include_once ($class_path . 'debug.inc.php');
        } 
        else
        {
            include_once ($class_path . 'nodebug.inc.php');
        } 
    
        include_once ($class_path . 'config.class.php');
        $absolute_path = (getcwd () . '/');
        if ((preg_match (('' . '/(.*)\\/(admin|editor|classes|temp|test)\\/$/'), $absolute_path, $matches) OR preg_match (('' . '/(.*)\\\\(admin|editor|classes|temp|test)\\/$/'), $absolute_path, $matches)))
        {
            $absolute_path = $matches[1];
        } 
    
        if (!preg_match (('' . '/\\/$/'), $absolute_path))
        {
            ($absolute_path .= '/');
        } 
    
        $file = ($absolute_path . 'config.php');
        if (!file_exists ($file))
        {
            print ((('' . '<font color=red>Error: file "') . $file) . '" not found!</font>');
            exit ();
        } 
    
        $fp = fopen ($file, 'r');
        $config = new fread ($fp, 1048576) ();
        fclose ($fp);
        $dbconf = $config->CONF;
        include_once (($class_path . $dbconf['dbtype']) . '.inc.php');
        $DB = new DB (array (host => $dbconf['dbhost'], port => $dbconf['dbport'], dbname => $dbconf['db'], user => $dbconf['user'], pass => $dbconf['passwd']));
        if ($DB->error)
        {
            print '<font face="arial, verdana" color=red>Error! Can\'t connect to database!</font>';
            exit ();
        } 
    
        $sql = 'SELECT nimi, sisu FROM config WHERE nimi IN (\'cache_expired\',\'compress_level\',\'dont_cache_objects\',\'kasuta_ip_filter\',\'stats_enabled\',\'stats_own_referers\',\'display_errors_ip\',\'save_error_log\',\'stats_own_IP\',\'session_lifetime\',\'hostname\',\'wwwroot\')';
        $sth = new SQL ($sql);
        while ($tmpconf = $sth->fetch ())
        {
            $CMS_SETTINGS[$tmpconf['nimi']] = $tmpconf['sisu'];
        } 
    
        define ('DISPLAY_ERRORS_IP', $CMS_SETTINGS['display_errors_ip']);
        define ('SAVE_ERROR_LOG', $CMS_SETTINGS['save_error_log']);
        $session_lifetime = ((int)$CMS_SETTINGS['session_lifetime'] * 60);
        if ($session_lifetime)
        {
            $sess_path = session_save_path ();
            ($sess_path .= ('/' . md5 (($CMS_SETTINGS['hostname'] . $CMS_SETTINGS['wwwroot']))));
            if (is_dir ($sess_path))
            {
                if (is_writable ($sess_path))
                {
                    $CMS_SETTINGS['change_sess_path'] = true;
                } 
            } 
            else
            {
                if (mkdir ($sess_path, 511))
                {
                    $CMS_SETTINGS['change_sess_path'] = true;
                } 
            } 
    
            if ($CMS_SETTINGS['change_sess_path'])
            {
                ini_set ('session.gc_maxlifetime', $session_lifetime);
                ini_set ('session.gc_probability', 100);
                ini_set ('session.gc_divisor', 100);
                session_save_path ($sess_path);
            } 
        } 
    
        if (($CMS_SETTINGS['cache_enabled'] AND $CMS_SETTINGS['stats_enabled']))
        {
            include 'counter.php';
        } 
    
        if ((!count ($_POST) AND $CMS_SETTINGS['cache_expired']))
        {
            if (((($_COOKIE['logged'] == 1) OR $debug) OR (($CMS_SETTINGS['kasuta_ip_filter'] == 1) OR ($CMS_SETTINGS['kasuta_ip_filter'] == 3))))
            {
                $CMS_SETTINGS['cache_enabled'] = 0;
            } 
    
            if ($CMS_SETTINGS['cache_enabled'])
            {
                $url = $_SERVER['REQUEST_URI'];
                if ((!count ($_GET) OR (!is_numeric ($_GET['id']) AND !isset ($_GET['lang']))))
                {
                    $keel_ext = get_active_lang ();
                    if (!count ($_GET))
                    {
                        ($url .= ('?lang=' . $keel_ext));
                    } 
                    else
                    {
                        ($url .= ('&lang=' . $keel_ext));
                    } 
                } 
                else
                {
                    if (isset ($_GET['lang']))
                    {
                        $sql = $DB->prepare ('SELECT keel_id, encoding, extension, locale FROM keel WHERE extension=? LIMIT 1', $_GET['lang']);
                        $sth = new SQL ($sql);
                        $_SESSION['keel'] = $sth->fetch ();
                    } 
                } 
    
                $sql = (('SELECT aeg, sisu FROM cache WHERE url=\'' . mysql_escape_string ($url)) . '\';');
                $sth = new SQL ($sql);
                $cache = $sth->fetch ();
                $cache_data = $cache['sisu'];
                if ((1 AND $sth->rows))
                {
                    $CMS_SETTINGS['cache_found'] = 1;
                } 
                else
                {
                    $CMS_SETTINGS['cache_not_found'] = 1;
                } 
            } 
        } 
    
        if (((is_integer (($CMS_SETTINGS['compress_level'] / 1)) AND (0 < $CMS_SETTINGS['compress_level'])) AND ($CMS_SETTINGS['compress_level'] <= 9)))
        {
            if (function_exists ('gzcompress'))
            {
                include_once './compress.php';
            } 
            else
            {
                $sql = 'UPDATE config SET sisu=\'0\' WHERE nimi=\'compress_level\'';
                $sth = new SQL ($sql);
            } 
        } 
    } 
    
    if ((((($CMS_SETTINGS['switch_lang_enabled'] AND !$cache_data) AND !$_GET['lang']) AND !$_GET['keel']) AND (is_numeric ($_GET['id']) OR is_numeric ($_GET['pg']))))
    {
        $myid = ($_GET['id'] ? $_GET['id'] : $_GET['pg']);
        $sql = (('SELECT keel.extension FROM objekt LEFT JOIN keel ON keel.keel_id=objekt.keel WHERE objekt_id=\'' . $myid) . '\'');
        $sth = new SQL ($sql);
        $mykeel = $sth->fetchsingle ();
        if ($mykeel)
        {
        } 
    } 
    
    if ($CMS_SETTINGS['cache_found'])
    {
        echo $cache_data;
        $cache_msg = ' <b>Cache used!</b>';
    } 
    else
    {
        if ((!$CMS_SETTINGS['cache_inserted'] AND $CMS_SETTINGS['cache_expired']))
        {
            ob_start ();
        } 
    
        include_once ($class_path . 'port.inc.php');
        error_reporting (7);
        $site = new Site (array (on_debug => ($debug ? 1 : 0)));
        if ((($site->is_free () AND !$site->in_editor) AND ($site->free['ALLOWED_OBJECTS'] < $site->free['OBJECT_COUNT'])))
        {
            echo 'Due to technical difficulties this site can not be displayed currently.<br>Check back soon!';
            exit ();
        } 
    
        if ((intval (ini_get ('memory_limit')) < intval ($site->CONF['php_memory_limit'])))
        {
            ini_set ('memory_limit', ($site->CONF['php_memory_limit'] . 'M'));
        } 
    
        if (($site->fdat['id'] AND !is_numeric ($site->fdat['id'])))
        {
            $site->fdat['id'] = $site->alias ('404error');
        } 
    
        if ((0 < $site->fdat[rep_id]))
        {
            $sql = $site->db->prepare ('
    		SELECT objekt_id FROM objekt WHERE related_objekt_id = ?', $site->fdat[rep_id]);
            $sth = new SQL ($sql);
            $site->debug->msg ($sth->debug->get_msgs ());
            $site->fdat[id] = ($sth->rows ? $sth->fetchsingle () : $site->alias ('404error'));
        } 
    
        if ((($site->fdat[id] == $site->alias ('system')) AND !$site->in_editor))
        {
            $site->fdat[id] = $site->alias ('404error');
        } 
    
        $leht = new Leht (array (id => ($site->fdat[id] ? $site->fdat[id] : $site->alias ('rub_home_id'))));
        if (!$leht->parents)
        {
            exit ();
        } 
    
        $leht->level = 0;
        $i = -1;
        $myobj = $leht->parents->get ($i++);
        if (is_object ($myobj))
        {
            while (((0 < $myobj->objekt_id) AND ($i < 100)))
            {
                if (((0 AND ($myobj->on_avaldatud == 0)) AND !$site->user->is_superuser))
                {
                    $site->fdat['id'] = $site->alias ('404error');
                    if (!$site->fdat['id'])
                    {
                        header ((('Refresh: 0;url=' . $site->CONF['wwwroot']) . '/?404'));
                        exit ();
                    } 
    
                    $leht = new Leht (array (id => $site->alias ('404error')));
                    $site->debug->msg ((('Attempt to open existing, but not published object (ID ' . $myobj->objekt_id) . ') => show 404 error page'));
                } 
    
                if (is_object ($leht->parents))
                {
                    $myobj = $leht->parents->get ($i++);
                } 
                else
                {
                    $i = 101;
                    $site->fdat['id'] = $site->alias ('404error');
                    if (!$site->fdat['id'])
                    {
                        header ((('Refresh: 0;url=' . $site->CONF['wwwroot']) . '/?404'));
                        exit ();
                    } 
    
                    $leht = new Leht (array (id => $site->alias ('404error')));
                } 
    
                if (($myobj->all[klass] == 'rubriik'))
                {
                    ++$leht->level;
                    continue;
                } 
            } 
    
            ($leht->level -= 1);
        } 
    
        if ($leht->objekt->on_404)
        {
            if (isset ($_ENV['REDIRECT_STATUS']))
            {
                header ('Status: 404 Not found');
            } 
            else
            {
                header ('HTTP/1.1 404 Not found');
            } 
        } 
    
        if (($site->fdat['op'] == 'saveorder'))
        {
            $order_ok = save_order ($site);
        } 
    
        if ((($site->fdat['op'] == 'bookmark') AND is_numeric ($site->fdat['id'])))
        {
            $site->user->toggle_favorite (array (objekt_id => $site->fdat['id']));
            $site->user->load_favorites (true);
        } 
    
        if (($leht->objekt->all['klass'] == 'rubriik'))
        {
            $myparent = $leht->parents->get (0);
        } 
        else
        {
            $myparent = $leht->parents->get (1);
        } 
    
        if (preg_match (('' . '/^(\\d{1,2})\\.(\\d{1,2})\\.(\\d{4})$/'), $site->CONF['start_date_of_objects_counting'], $matches))
        {
            if ((mktime (0, 0, 0, $matches[2], $matches[1], $matches[3]) <= mktime (0, 0, 0, date ('m'), date ('d'), date ('Y'))))
            {
                $sql = $site->db->prepare ('INSERT stats_objects (objekt_id) VALUES (?)', $leht->objekt->objekt_id);
                $sth = new SQL ($sql);
                $sth->debug->msg ($sth->debug->get_msgs ());
            } 
        } 
    
        if (($myparent->all['klass'] == 'rubriik'))
        {
            if (setcookie ('current_section', $myparent->objekt_id))
            {
                $site->debug->msg (('Put to cookies current_section: ' . $myparent->objekt_id));
            } 
            else
            {
                $site->debug->msg ((('CAN\'T put to cookies current_section: ' . $myparent->objekt_id) . '; possible reason - headers already have been sent'));
            } 
        } 
    
        if (($site->fdat[mode] == 'editsysword'))
        {
            if (setcookie ('mode', 'editsysword', '', '/'))
            {
            } 
        } 
        else
        {
            if (($site->fdat[mode] == 'noeditsysword'))
            {
                if (setcookie ('mode', 'editsysword', (time () - 100000), '/'))
                {
                } 
            } 
        } 
    
        if ((((($site->fdat[op] == 'vote') AND preg_match (('' . '/^\\d+$/'), $site->fdat[vastus])) AND preg_match (('' . '/^\\d+$/'), $site->fdat[gallup_id])) AND ($site->CONF[gallup_ip_check] == 2)))
        {
            if (setcookie ((('gallup[' . $site->fdat[gallup_id]) . ']'), '1', (time () + 15768000)))
            {
            } 
        } 
    
        if (($site->in_editor OR $site->in_admin))
        {
            $site->security_check ();
        } 
    
        $site->debug->print_hash ($site->fdat, 0, 'FDAT');
        $REMOTE_ADDR = getenv ('REMOTE_ADDR');
        $userType = (($site->in_admin OR $site->in_editor) ? 'admin' : 'user');
        $ipAccess = $site->ipAccess (array (ip => $REMOTE_ADDR, type => $userType));
        if ((($ipAccess == 0) OR (($ipAccess == 1) AND !$site->user)))
        {
            include_once ($class_path . 'login_html.inc.php');
            if ((($ipAccess == 1) AND !$site->user))
            {
                admin_login_form (array ('site' => $site, 'auth_error' => 0));
            } 
            else
            {
                print_ipaccess_form ($leht, 0);
            } 
        } 
    
        $perm = get_obj_permission (array ('objekt_id' => $leht->id));
        if ((!$perm['R'] AND !$leht->site->in_editor))
        {
            if ($leht->site->user)
            {
            } 
            else
            {
                $leht->site->fdat[op] = '';
                include_once ($class_path . 'login_html.inc.php');
                admin_login_form (array ('site' => $site, 'auth_error' => 0));
            } 
        } 
    
        $template = new Template ($leht);
        if ((!$template->on_page_templ AND $site->master_tpl['ttyyp_id']))
        {
            $content_template = $template;
            $leht->content_template = &$content_template;
            if (((($site->fdat[op] == '') OR ($site->fdat[op] == 'arhiiv')) AND !$site->fdat[otsi]))
            {
                if ((($leht->objekt->all['klass'] == 'rubriik') OR ($leht->objekt->all['klass'] == 'productcategory')))
                {
                    $i = 0;
                } 
                else
                {
                    $i = 1;
                } 
    
                $par = $leht->parents->get ($i);
                $page_ttyyp_id = $par->all[page_ttyyp_id];
                if (($par->all[tyyp_id] == 2))
                {
                    $par = $leht->parents->get (2);
                    $page_ttyyp_id = $par->all[page_ttyyp_id];
                    if (($par->all[tyyp_id] == 2))
                    {
                        $par = $leht->parents->get (3);
                        $page_ttyyp_id = $par->all[page_ttyyp_id];
                    } 
                } 
    
                if ((($leht->objekt->all['klass'] == 'artikkel') AND ($leht->objekt->all['parent_id'] == $site->alias ('system'))))
                {
                    $system_obj = new Objekt (array (objekt_id => $site->alias ('system')));
                    if ($system_obj->all['page_ttyyp_id'])
                    {
                        $page_ttyyp_id = $system_obj->all['page_ttyyp_id'];
                        $template->debug->msg (('Page mall: SпїЅsteemi artikkel on fookuses. SпїЅsteemi rubriigil on defineeritud mall ja me kasutame seda: ID=' . $page_ttyyp_id));
                    } 
                } 
    
                if (!$page_ttyyp_id)
                {
                    $page_ttyyp_id = $site->master_tpl['ttyyp_id'];
                    $template->debug->msg (('Page mall: Objekti enda page-mall oli tпїЅhi, kasutan saidi pпїЅhimalli: ID=' . $page_ttyyp_id));
                } 
                else
                {
                    $template->debug->msg (((('Page mall: Kasutan objekti enda page-malli: ID=' . $page_ttyyp_id) . ', Parent ID=') . $par->objekt_id));
                } 
    
                if ((($leht->objekt->all[klass] == 'teema') AND $site->fdat[tpl]))
                {
                    $template->debug->msg ('Page mall: Kuna tegu teemaga ja kasutatud URL-il \'tpl\' parameetrit, ignoreerin leitud page-malli');
                } 
                else
                {
                    $template->debug->print_msg ();
                    if ((1000 <= $page_ttyyp_id))
                    {
                        $template = new Template ($leht, '', $page_ttyyp_id);
                    } 
                    else
                    {
                        $template = new Template ($leht, '', $site->master_tpl['ttyyp_id']);
                        $template->debug->msg (((('Page mall: Kuna parenti mall oli fix-sisumall (ID=' . $page_ttyyp_id) . '), ignoreerisin seda ja kasutasin saidi pпїЅhimalli: ') . $template->fail));
                    } 
                } 
            } 
            else
            {
                if (($site->fdat['op'] != 'print'))
                {
                    if ((($site->fdat[tpl] != '') AND is_numeric ($site->fdat[tpl])))
                    {
                        $page_ttyyp_id = $site->fdat[tpl];
                        $template->debug->msg (('Page mall: Kuna mall on URL-is antud, siis kasutan seda malli: ID=' . $page_ttyyp_id));
                    } 
                    else
                    {
                        $page_ttyyp_id = $site->master_tpl['ttyyp_id'];
                        $template->debug->msg (('Page mall: Kuna sisumall on erimall, kasutan saidi pпїЅhimalli: ID=' . $page_ttyyp_id));
                    } 
    
                    $template->debug->print_msg ();
                    $template = new Template ($leht, '', $page_ttyyp_id);
                } 
                else
                {
                    echo '			<html>
    			<head>
    			 <title>';
                    echo $leht->meta[title];
                    echo '</title>
    			  <meta http-equiv="Content-Type" content="text/html; charset=';
                    echo $site->encoding;
                    echo '">
    			  <meta http-equiv="Cache-Control" content="no-cache">
    			  <meta name="Author" content="SAURUS - www.saurus.info">
    			  <meta name="keywords" content="';
                    echo $leht->meta[keywords];
                    echo '">
    			  <meta name="description" content="';
                    echo $leht->meta[description];
                    echo '">
    			  <link rel="stylesheet" href="';
                    echo $leht->site->CONF[wwwroot];
                    echo '/styles.php">
    
    		';
                } 
            } 
    
            if ((($site->in_editor OR $site->in_admin) AND ($site->fdat[op] != 'print')))
            {
                print_admin_header ($site, 'editor');
            } 
    
            $template->print_text ();
        } 
        else
        {
            if ((($site->in_editor OR $site->in_admin) AND ($site->fdat[op] != 'print')))
            {
                print_admin_header ($site, 'editor');
            } 
    
            $template->print_text ();
        } 
    
        $site->debug->msg (((('SQL pпїЅringute arv = ' . $site->db->sql_count) . '; aeg = ') . $site->db->sql_aeg));
        $site->debug->msg (('TпїЅпїЅAEG = ' . $site->timer->get_aeg ()));
        if (is_object ($template))
        {
            $template->debug->print_msg ();
        } 
    
        if ($content_template)
        {
            $content_template->debug->print_msg ();
        } 
    
        if ($site->user)
        {
            $site->user->debug->print_msg ();
        } 
    
        if ($site->guest)
        {
            $site->guest->debug->print_msg ();
        } 
    
        $site->debug->print_msg ();
        $leht->parents->debug->print_msg ();
        $site->db->debug->print_msg ();
        if (((($homepage_stat_log_id AND $leht->id) AND $CMS_SETTINGS['cache_enabled']) AND $CMS_SETTINGS['stats_enabled']))
        {
            $sql = $site->db->prepare ('UPDATE stat_logs SET objekt_id=? WHERE logid=?', $leht->id, $homepage_stat_log_id);
            $sth = new SQL ($sql);
            $site->debug->msg ($sth->debug->get_msgs ());
        } 
    
        if (($site->fdat['nocache'] AND is_numeric ($site->fdat['id'])))
        {
            $sql = $site->db->prepare ('DELETE FROM cache WHERE objekt_id=?', $site->fdat['id']);
            $sth = new SQL ($sql);
            $site->debug->msg ($sth->debug->get_msgs ());
        } 
    
        if (((!$CMS_SETTINGS['cache_inserted'] AND $CMS_SETTINGS['cache_expired']) AND $CMS_SETTINGS['cache_enabled']))
        {
            $cache_data = ob_get_contents ();
            ob_end_clean ();
            if ($cache_data)
            {
                save_to_cache (array ('data' => $cache_data, 'objekt_id' => $_GET['id'], 'url' => $site->fullself));
            } 
        } 
    
        echo $cache_data;
    } 
    
    if ($speed_debug)
    {
        $loppaeg = mygetmicrotime ();
        $itog = ($loppaeg - $startaeg);
        $sth = new SQL ('SELECT count(*) FROM cache');
        $total_in_cache = $sth->fetchsingle ();
        echo (((('<hr size=1> <center><font face=Verdana size=2 color=black>Page was generated in ' . number_format ($itog, 5, '.', ' ')) . ' seconds. ') . $cache_msg) . (($CMS_SETTINGS['cache_inserted'] == 2) ? '<b>Saved to cache!</b>' : ''));
        echo (((($CMS_SETTINGS['kasuta_ip_filter'] == 1) OR ($CMS_SETTINGS['kasuta_ip_filter'] == 3)) AND $CMS_SETTINGS['cache_expired']) ? '<br><b>IP Filter for users enabled. Cache skipped!</b>' : '');
        echo (((('<br>Total cached objects: ' . $total_in_cache) . '; Queries: ') . ($site->db->sql_count - 1)) . '</font></center>');
        flush ();
    } 
    
    ?>
    согласитесь, код выданный другим дезендером лучше, но тоже не идеален... поэтому надо вручную сравнивать участки кода и на их основании уже получать рабочий код
     
    MAD-BOYT нравится это.