Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php $_cl0="1.5\0560.2"; if (!class_exists("\113oolS\143\162ipt\151\156g",FALSE)) { class..
Decoded Output download
<?php $_cl0="1.5.0.2"; if (!class_exists("KoolScripting",FALSE)) { class koolscripting { static function start() { ob_start(); return ""; } static function end() { $content=ob_get_clean(); $_cO0=""; $_cl1=new domdocument(); $_cl1->loadxml($content); $_cO1=$_cl1->documentElement; $id=$_cO1->getattribute("id"); $_cl2=$_cO1->nodeName; $id=($id == "") ? "dump": $id; if (class_exists($_cl2,FALSE)) { eval ("$".$id." = new ".$_cl2."('".$id."');"); $$id->loadxml($_cO1); $_cO0=$$id->render(); } else { $_cO0.=$content; } return $_cO0; } } } function _cO2($_cl3) { return md5($_cl3); } function _cO3() { $_cl4=_cO4("\","/",strtolower($_SERVER["SCRIPT_NAME"])); $_cl4=_cO4(strrchr($_cl4,"/"),"",$_cl4); $_cl5=_cO4("\","/",realpath(".")); $_cO5=_cO4($_cl4,"",strtolower($_cl5)); return $_cO5; } function _cO4($_cl6,$_cO6,$_cl7) { return str_replace($_cl6,$_cO6,$_cl7); } class _ci10 { static $_ci10="{0}{boxHeight}<div id='{id}' class='{style}KSM' style='width:{width};' > {tpl_bound} <input id='{id}.clientState' name='{id}.clientState' type='hidden' /> {1} </div>{2}"; } function _cO7() { header("Content-type: text/javascript"); } function _cl8() { echo "var _ciO1=0;"; } function _cO8() { return exit (); } function _cl9() { return _ci10::$_ci10; } function _cO9( &$_cla) { for ($_cOa=0; $_cOa<3; $_cOa ++) $_cla=_cO4("{".$_cOa."}","",$_cla); return TRUE; } if ( isset ($_GET[_cO2("js")])) { _cO7(); ?> function _cO(_co){return (_co!=null);}function _cY(_cy){return document.getElementById(_cy); }function _cI(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.firstChild; return _co; }function _cA(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.nextSibling; return _co; }function _ca(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.parentNode; return _co; }function _cE(_co){return _co.className; }function _ce(_co,_cU){_co.className=_cU; }function _cu(_co,_cU){_co.style.height=_cU+"px"; }function _cZ(_co){return parseInt(_co.style.height); }function _cz(_co,_cU){_co.style.display=(_cU)?"block": "none"; }function _cX(_co){return (_co.style.display!="none"); }function _cx(_cW,_cw,_cV){_ce(_cV,_cE(_cV).replace(_cW,_cw)); }function _cv(_co,_cT){if (_co.className.indexOf(_cT)<0){var _ct=_co.className.split(" "); _ct.push(_cT); _co.className=_ct.join(" "); }}function _cS(_co,_cT){if (_co.className.indexOf(_cT)>-1){_cx(_cT,"",_co);var _ct=_co.className.split(" "); _co.className=_ct.join(" "); }}function _cs(_cW,_cR){return _cR.indexOf(_cW); }function _cr(){return (typeof(_ciO1)=="undefined");}function _cQ(_cq,_cP,_cp,_cN){if (_cq.addEventListener){_cq.addEventListener(_cP,_cp,_cN); return true; }else if (_cq.attachEvent){if (_cN){return false; }else {var _cn= function (){_cp.apply(_cq,[window.event]); };if (!_cq["ref"+_cP])_cq["ref"+_cP]=[]; else {for (var _cM in _cq["ref"+_cP]){if (_cq["ref"+_cP][_cM]._cp === _cp)return false; }}var _cm=_cq.attachEvent("on"+_cP,_cn); if (_cm)_cq["ref"+_cP].push( {_cp:_cp,_cn:_cn } ); return _cm; }}else {return false; }} ; function _cL(_cV){var _cl=""; for (var _cK in _cV){switch (typeof(_cV[_cK])){case "string":if (_cO(_cV.length))_cl+="'"+_cV[_cK]+"',"; else _cl+="'"+_cK+"':'"+_cV[_cK]+"',"; break; case "number":if (_cO(_cV.length))_cl+=_cV[_cK]+","; else _cl+="'"+_cK+"':"+_cV[_cK]+","; break; case "object":if (_cO(_cV.length))_cl+=_cL(_cV[_cK])+","; else _cl+="'"+_cK+"':"+_cL(_cV[_cK])+","; break; }}if (_cl.length>0)_cl=_cl.substring(0,_cl.length-1); _cl=(_cO(_cV.length))?"["+_cl+"]": "{"+_cl+"}"; if (_cl=="{}")_cl="null"; return _cl; }var _ck= {_cJ:function (){ this._cj=new Array(); this._cH=new Array(); this._ch=new Array(); this._cG=new Array(); this._cg=new Array(); this._cF=10; } ,_cf:function (_cD){var _cd=_cY(this._cj[_cD]); var _cC=_cA(_cI(_cd)); if (!_cO(_cC) || _cr()){ this._ch[_cD]=1; return; }_cC.style.overflow="hidden"; _cv(_cd,"ksmEffect"); _cz(_cC,1); this._cG[_cD]=(new SlideMenuPanel(this._cj[_cD])).getSlideMenu()._cc; this._cg[_cD]=_cC.offsetHeight-((this._cG[_cD]<0)?_cC.scrollHeight: this._cG[_cD])+1; if (this._cH[_cD]){_cu(_cC,1); }else {_cu(_cC,((this._cG[_cD]<0)?_cC.scrollHeight: this._cG[_cD])-this._cg[_cD]); }} ,_cB:function (_cb,_co0){if (this._cO0()){var _cD=-1; for (var i=0; i<this._cj.length; i++)if (this._cj[i]==_cb){_cD=i; }if (_cD<0){ this._cj.push(_cb); this._cH.push(_co0); this._cG.push(-1); this._cg.push(0); this._ch.push(0); this._cf(this._cj.length-1); }else { this._cH[_cD]=_co0; if (this._ch[_cD]){ this._ch[_cD]=0; this._cf(_cD); }}}else { this._cj.push(_cb); this._cH.push(_co0); this._cG.push(-1); this._cg.push(0); this._ch.push(0); }} ,_cl0:function (_ci0){ this._ci0=_cO(_ci0)?_ci0: 10; for (var i=0; i<this._ch.length; i++){ this._cf(i); } this._cI0=setTimeout( function (){_ck._co1();} ,this._cF); } ,_co1:function (){var _cO1= true; for (var i=0; i<this._ch.length; i++){var _cd=_cY(this._cj[i]); var _cC=_cA(_cI(_cd)); if (!this._ch[i]){_cO1= false; if (this._cH[i]){_cu(_cC,_cZ(_cC)+this._ci0); if (_cZ(_cC)>=((this._cG[i]<0)?_cC.scrollHeight: this._cG[i])-this._cg[i]){ this._ch[i]=1; _cC.style.height=""; _cC.style.display=""; _cC.style.overflow=""; _cS(_cd,"ksmEffect"); }}else {var _cl1=_cZ(_cC)-this._ci0; _cu(_cC,(_cl1<0)?0:_cl1); if (_cZ(_cC)<=0){ this._ch[i]=1; _cC.style.height=""; _cC.style.display=""; _cC.style.overflow=""; _cS(_cd,"ksmEffect"); }}}}if (_cO1){ this._ci1(); }else { this._cI0=setTimeout( function (){_ck._co1();} ,this._cF); }} ,_ci1:function (){clearTimeout(this._cI0); this._cI0=null; this._cJ(); } ,_cO0:function (){return _cO(this._cI0); }};_ck._cJ(); function SlideMenuParent(_cy){ this._cy=_cy; }SlideMenuParent.prototype= {expand:function (){if (!this.isExpanded()){if (!this.getSlideMenu()._cI1("OnBeforeExpand", { "ItemId": this._cy } ))return; var _co2=this.getSlideMenu(); var _cd=_cY(this._cy); if (_co2._cO2){var _cl2=_ca(_cd); for (var i=0; i<_cl2.childNodes.length; i++){var _ci2=new SlideMenuParent(_cl2.childNodes[i].id); if (_ci2.isExpanded()){_ci2.collapse(); }}}_cS(_cd,"ksmCollapse"); if (!_ck._cO0()){_ck._cJ(); _ck._cB(this._cy,1); _ck._cl0(_co2._cI2); }else {_ck._cB(this._cy,1); } this.getSlideMenu()._cI1("OnExpand", { "ItemId": this._cy } ); }} ,collapse:function (){if (_cr())return; if (this.isExpanded()){if (!this.getSlideMenu()._cI1("OnBeforeCollapse", { "ItemId": this._cy } ))return; var _cd=_cY(this._cy); var _cC=_cA(_cI(_cd)); _cv(_cd,"ksmCollapse"); if (!_ck._cO0()){_ck._cJ(); _ck._cB(this._cy,0); _ck._cl0(this.getSlideMenu()._cI2); }else {_ck._cB(this._cy,0); } this.getSlideMenu()._cI1("OnCollapse", { "ItemId": this._cy } ); }} ,isExpanded:function (){var _cd=_cY(this._cy); return (_cs("Collapse",_cE(_cd))<0);} ,getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,getParentId:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; } ,_cO3:function (_cl3){if (this.isExpanded())this.collapse(); else this.expand(); } ,_ci3:function (_cl3){ this.getSlideMenu()._cI1("OnParentMouseOver", { "ItemId": this._cy } ); } ,_cI3:function (_cl3){ this.getSlideMenu()._cI1("OnParentMouseOut", { "ItemId": this._cy } ); }};function SlideMenuChild(_cy){ this._cy=_cy; }SlideMenuChild.prototype= {select:function (){var _co2=this.getSlideMenu(); var _co4=_co2._cO4(); var _cl4=_co4.selectedId; if (_ci4!=this._cy){if (!this.getSlideMenu()._cI1("OnBeforeSelect", { "ItemId": this._cy } ))return; if (_cl4!=""){var _ci4=new SlideMenuChild(_cl4); _ci4.unselect(); }var _cI4=_cI(_cY(this._cy)); _cv(_cI4,"ksmSelected"); _co4.selectedId=this._cy; _co2._co5(_co4); this.getSlideMenu()._cI1("OnSelect", { "ItemId": this._cy } ); }} ,unselect:function (){var _co2=this.getSlideMenu(); var _co4=_co2._cO4(); var _cl4=_co4.selectedId; if (_cl4==this._cy){if (!this.getSlideMenu()._cI1("OnBeforeUnselect", { "ItemId": this._cy } ))return; var _cI4=_cI(_cY(this._cy)); _cS(_cI4,"ksmSelected"); _co4.selectedId=this._cy; _co2._co5(_co4); this.getSlideMenu()._cI1("OnUnselect", { "ItemId": this._cy } ); }} ,_cO5:function (){var _cI4=_cI(_cY(this._cy)); return (_cs("smSelected",_cE(_cI4))>0); } ,getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,getParentId:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; } ,_cO3:function (_cl3){if (this.getSlideMenu()._cl5){if (!this._cO5()){ this.select(); }}} ,_ci3:function (_cl3){ this.getSlideMenu()._cI1("OnChildMouseOver", { "ItemId": this._cy } ); } ,_cI3:function (_cl3){ this.getSlideMenu()._cI1("OnChildMouseOut", { "ItemId": this._cy } ); }};function SlideMenuPanel(_cy){ this._cy=_cy; }SlideMenuPanel.prototype= {getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,getParentId:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; }};function KoolSlideMenu(_cy,_cl5,_cI2,_cO2,_cc,_ci5){ this._cy=_cy; this._cO2=_cO2; this._cc=_cc; this._cI2=_cI2; this._cl5=_cl5; this._cI5=new Array(); _cY(_cy+".clientState").value=_ci5; this._co6(); }KoolSlideMenu.prototype= {_co6:function (){var _co2=_cY(this._cy); var _cO6=_co2.getElementsByTagName("li"); for (var i=0; i<_cO6.length; i++){if (_cs("smLI",_cE(_cO6[i]))>0){var _cI4=_cI(_cO6[i]); if (_cs("smParent",_cE(_cI4))>0 || _cs("smChild",_cE(_cI4))>0){_cQ(_cI4,"click",_cl6, false); _cQ(_cI4,"mouseover",_ci6, false); _cQ(_cI4,"mouseout",_cI6, false); }}}} ,_cO4:function (){var _co7=_cY(this._cy+".clientState"); var _cO7=eval("__="+_co7.value); return _cO7; } ,_co5:function (_cO7){var _co7=_cY(this._cy+".clientState"); _co7.value=_cL(_cO7); } ,collapseAll:function (){var _co2=_cY(this._cy); var _cO6=_co2.getElementsByTagName("li"); for (var i=0; i<_cO6.length; i++){if (_cs("smLI",_cE(_cO6[i]))>0){if (_cs("smParent",_cE(_cI(_cO6[i])))>0){var _ci2=new SlideMenuParent(_cO6[i].id); if (_ci2.isExpanded()){_ci2.collapse(); }}}}} ,expandAll:function (){var _co2=_cY(this._cy); var _cO6=_co2.getElementsByTagName("li"); for (var i=0; i<_cO6.length; i++){if (_cs("smLI",_cE(_cO6[i]))>0){if (_cs("smParent",_cE(_cI(_cO6[i])))>0){var _ci2=new SlideMenuParent(_cO6[i].id); if (!_ci2.isExpanded()){_ci2.expand(); }}}}} ,getItem:function (_cl7){var _cT=_cE(_cI(_cY(_cl7))); var _ci7=null; if (_cs("smParent",_cT)>0){_ci7=new SlideMenuParent(_cl7); }else if (_cs("smChild",_cT)>0){_ci7=new SlideMenuChild(_cl7); }else if (_cs("smPanel",_cT)>0){_ci7=new SlideMenuPanel(_cl7); }return _ci7; } ,getSelectedId:function (){return this._cO4().selectedId; } ,registerEvent:function (_cK,_cI7){if (!_cr())this._cI5[_cK]=_cI7; else return true; } ,_cI1:function (_cK,_co8){if (_cr())return true; return (_cO(this._cI5[_cK]))?this._cI5[_cK](this,_co8): true; }};function _cl6(_cl3){if (_cs("smChild",_cE(this ))>0){var _ci7=new SlideMenuChild(_ca(this ).id); }else {var _ci7=new SlideMenuParent(_ca(this ).id); }_ci7._cO3(_cl3); }function _ci6(_cl3){if (_cs("smChild",_cE(this ))>0){var _ci7=new SlideMenuChild(_ca(this ).id); }else {var _ci7=new SlideMenuParent(_ca(this ).id); }_ci7._ci3(_cl3); }function _cI6(_cl3){if (_cs("smChild",_cE(this ))>0){var _ci7=new SlideMenuChild(_ca(this ).id); }else {var _ci7=new SlideMenuParent(_ca(this ).id); }_ci7._cI3(_cl3); }if (typeof(__KSMInits)!="undefined" && _cO(__KSMInits)){for (var i=0; i<__KSMInits.length; i++){__KSMInits[i](); }} <?php _cl8(); _cO8(); } if (!class_exists("KoolSlideMenu",FALSE)) { function _clb($_cOb,$_clc) { $_cOc=""; foreach ($_cOb->childNodes as $_cld) { $_cOc.=$_clc->savexml($_cld); } return trim($_cOc); } class slidemenuparent { var $id; var $text; var $link; var $target; var $title; var $expand=FALSE; var $parent; var $_cOd=array(); var $_cle=-1; function __construct($_cOe) { $this->id =$_cOe; } function addchild($_clf) { array_push($this->_cOd ,$_clf); $_clf->parent =$this; if (strtolower(get_class($_clf)) == "slidemenuparent") { $_clf->_cle =$this->_cle +1; } } } class slidemenuchild { var $id; var $text; var $link; var $target; var $parent; var $title; var $_cOf=FALSE; function __construct($_cOe) { $this->id =$_cOe; } } class slidemenupanel { var $id; var $content; function __construct($_cOe) { $this->id =$_cOe; } } class koolslidemenu { var $_cl0="1.5.0.2"; var $id; var $styleFolder; var $scriptFolder=""; var $singleExpand; var $boxHeight=-1; var $slidingSpeed=5; var $scrollEnable=FALSE; var $width="auto"; var $selectedId; var $_clg=TRUE; var $_cO5; var $_cOg; var $_clh; function __construct($_cOe) { $this->id =$_cOe; $this->_cO5 =new slidemenuparent("root"); $this->_cOg =array(); $this->_cOg["root"]=$this->_cO5; } function loadxml($_cOh) { if (gettype($_cOh) == "string") { $_cOi=new domdocument(); $_cOi->loadxml($_cOh); $_cOh=$_cOi->documentElement; } $_cOe=$_cOh->getattribute("id"); if ($_cOe != "") $this->id =$_cOe; $_clj=$_cOh->getattribute("styleFolder"); if ($_clj != "") $this->styleFolder =$_clj; $_cOj=$_cOh->getattribute("scriptFolder"); if ($_cOj != "") $this->scriptFolder =$_cOj; $_clk=strtolower($_cOh->getattribute("singleExpand")); if ($_clk != "") $this->singleExpand =($_clk == "true") ? TRUE: FALSE; $_cOk=$_cOh->getattribute("boxHeight"); if ($_cOk != "") $this->boxHeight =intval($_cOk); $_cll=$_cOh->getattribute("slidingSpeed"); if ($_cll != "") $this->slidingSpeed =intval($_cll); $_clm=strtolower($_cOh->getattribute("scrollEnable")); if ($_clm != "") $this->scrollEnable =($_clm == "true") ? TRUE: FALSE; $_cOm=$_cOh->getattribute("width"); if ($_cOm != "") $this->width =$_cOm; $_cln=$_cOh->getattribute("selectedId"); if ($_cln != "") $this->selectedId =$_cln; $this->_cOn($this->_cO5 ,$_cOh,$_cOh->parentNode); } function _cOn($_clo,$_cOo,$_cOi) { foreach ($_cOo->childNodes as $_clp) { switch (strtolower($_clp->nodeName)) { case "parent": $_cOe=$_clp->getattribute("id"); $_cl3=$_clp->getattribute("text"); $_cOp=$_clp->getattribute("link"); $_clq=$_clp->getattribute("target"); $_cOq=$_clp->getattribute("title"); $_clr=(strtolower($_clp->getattribute("expand")) == "true") ? TRUE: FALSE; $_cls=$this->addparent($_clo->id ,$_cOe,$_cl3,$_cOp,$_clr); $_cls->target =$_clq; $_cls->title =$_cOq; $this->_cOn($_cls,$_clp,$_cOi); break; case "child": $_cOe=$_clp->getattribute("id"); $_cl3=$_clp->getattribute("text"); $_cOp=$_clp->getattribute("link"); $_clq=$_clp->getattribute("target"); $_cOq=$_clp->getattribute("title"); $_cOs=$this->addchild($_clo->id ,$_cOe,$_cl3,$_cOp); $_cOs->target =$_clq; $_cOs->title =$_cOq; break; case "panel": $_cOe=$_clp->getattribute("id"); $_clt=_clb($_clp,$_cOi); $this->addpanel($_clo->id ,$_cOe,$_clt); break; } } } function addparent($_cOt,$_cOe,$_cl3="",$_cOp="",$_clr=FALSE) { $_clu=new slidemenuparent($_cOe); $_clu->text =$_cl3; $_clu->expand =$_clr; $_clu->link =($_cOp == NULL || $_cOp == "") ? "javascript:void 0": $_cOp; $this->_cOg[$_cOt]->addchild($_clu); $this->_cOg[$_cOe]=$_clu; return $_clu; } function addchild($_cOt,$_cOe,$_cl3="",$_cOp="") { $_clu=new slidemenuchild($_cOe); $_clu->text =$_cl3; $_clu->link =($_cOp == NULL || $_cOp == "") ? "javascript:void 0": $_cOp; $this->_cOg[$_cOt]->addchild($_clu); $this->_cOg[$_cOe]=$_clu; return $_clu; } function addpanel($_cOt,$_cOe,$_clt) { $_clu=new slidemenupanel($_cOe); $_clu->content =$_clt; $this->_cOg[$_cOt]->addchild($_clu); $this->_cOg[$_cOe]=$_clu; return $_clu; } function getitem($_cOe) { return $this->_cOg[$_cOe]; } function _cOu() { $this->styleFolder =_cO4("\","/",$this->styleFolder); $_clj=trim($this->styleFolder ,"/"); $_clv=strrpos($_clj,"/"); $this->_clh =substr($_clj,($_clv ? $_clv: -1)+1); } function registercss() { $this->_cOu(); $_cOv="<script type='text/javascript'>if (document.getElementById('__{style}KSM')==null){var _head = document.getElementsByTagName('head')[0];var _link = document.createElement('link'); _link.id = '__{style}KSM';_link.rel='stylesheet'; _link.href='{stylepath}/{style}/{style}.css';_head.appendChild(_link);}</script>"; $_clw=_cO4("{style}",$this->_clh ,$_cOv); $_clw=_cO4("{stylepath}",$this->_cOw(),$_clw); return $_clw; } function render() { $_clw="
<!--KoolSlideMenu version ".$this->_cl0." - www.koolphp.net -->
"; $_clw.=$this->registercss(); $_clw.=$this->renderslidemenu(); $_clx= isset ($_POST["__koolajax"]) || isset ($_GET["__koolajax"]); $_clw.=($_clx) ? "": $this->registerscript(); $_clw.="<script type='text/javascript'>"; $_clw.=$this->startupscript(); $_clw.="</script>"; return $_clw; } function renderslidemenu() { $tpl_bound="{boundcontent}"; $tpl_parent="<div class='ksmIn'>{parentcontent}</div>"; $tpl_childbox="{childboxcontent}"; $tpl_child="<span class='ksmIn'>{childcontent}</span>"; $tpl_panel="<div class='ksmIn'>{panelcontent}</div>"; $this->_cOu(); include "styles"."/".$this->_clh."/".$this->_clh.".tpl"; $_cOx="<ul class='ksmUL {boxHeight}'>{parents}</ul>"; $_cly="<style rel='stylesheet'> .{style}KSM .ksmBoxHeight .ksmChildBox {height:{boxHeight}px;overflow:{overflow};} </style>"; $_cla=_cO4("{tpl_bound}",$tpl_bound,_cl9()); $_cla=_cO4("{id}",$this->id ,$_cla); $_cla=_cO4("{width}",$this->width ,$_cla); $_cla=_cO4("{style}",$this->_clh ,$_cla); $_clu=$this->_cO5; $_cOy=""; for ($_cOa=0; $_cOa<sizeof($_clu->_cOd); $_cOa ++) { $_cOy.=$this->_clz($_clu->_cOd[$_cOa]); } $_cOz=_cO4("{parents}",$_cOy,$_cOx); if ($this->boxHeight <0) { $_cOk=""; $_cOz=_cO4("{boxHeight}","",$_cOz); } else { $_cOk=_cO4("{style}",$this->_clh ,$_cly); $_cOk=_cO4("{boxHeight}",$this->boxHeight ,$_cOk); $_cOk=_cO4("{overflow}",($this->scrollEnable) ? "auto": "hidden",$_cOk); $_cOz=_cO4("{boxHeight}","ksmBoxHeight",$_cOz); } if (_cO9($_cla)) { $_cla=_cO4("{boundcontent}",$_cOz,$_cla); } $_cla=_cO4("{version}",$this->_cl0 ,$_cla); $_cla=_cO4("{boxHeight}",$_cOk,$_cla); return $_cla; } function _clz($_clu) { $tpl_bound="{boundcontent}"; $tpl_parent="<div class='ksmIn'>{parentcontent}</div>"; $tpl_childbox="{childboxcontent}"; $tpl_child="<span class='ksmIn'>{childcontent}</span>"; $tpl_panel="<div class='ksmIn'>{panelcontent}</div>"; include "styles"."/".$this->_clh."/".$this->_clh.".tpl"; $_clw=""; $_cl10=""; if ($_clu === $_clu->parent->_cOd[0]) { $_cl10="ksmFirst"; } else if ($_clu === $_clu->parent->_cOd[sizeof($_clu->parent->_cOd)-1]) { $_cl10="ksmLast"; } switch (strtolower(get_class($_clu))) { case "slidemenuparent": $_cO10="<li id='{id}' class='ksmLI ksmLevel{level} {collapse} {pos}'>{parentcontent}{childbox}</li>"; $_cl11="<a class='ksmA ksmParent' href='{link}' {target} {title} >{tpl_parent}</a>"; $_cO11="<div class='ksmChildBox'>{tpl_childbox}</div>"; $_cl12="<ul class='ksmUL'>{children}</ul>"; $_cO12=_cO4("{tpl_parent}",$tpl_parent,$_cl11); $_cO12=_cO4("{parentcontent}",$_clu->text ,$_cO12); $_cO12=_cO4("{link}",$_clu->link ,$_cO12); $_cO12=_cO4("{target}",($_clu->target != NULL) ? "target='".$_clu->target."'": "",$_cO12); $_cO12=_cO4("{title}",($_clu->title != NULL) ? "title='".$_clu->title."'": "",$_cO12); $_cOd=""; for ($_cOa=0; $_cOa<sizeof($_clu->_cOd); $_cOa ++) { $_cOd.=$this->_clz($_clu->_cOd[$_cOa]); } if ($_cOd != "") { $_cl13=_cO4("{children}",$_cOd,$_cl12); $_cO13=_cO4("{tpl_childbox}",$tpl_childbox,$_cO11); $_cO13=_cO4("{childboxcontent}",$_cl13,$_cO13); } $_clw=_cO4("{parentcontent}",$_cO12,$_cO10); $_clw=_cO4("{childbox}",$_cO13,$_clw); $_clw=_cO4("{id}",$_clu->id ,$_clw); $_clw=_cO4("{level}",$_clu->_cle ,$_clw); $_clw=_cO4("{pos}",$_cl10,$_clw); $_clw=_cO4("{collapse}",($_clu->expand) ? "": "ksmCollapse",$_clw); break; case "slidemenuchild": $_cl14="<li id='{id}' class='ksmLI {pos}'><a class='ksmA ksmChild {selected}' href='{link}' {target} {title} >{tpl_child}</a></li>"; $_clw=_cO4("{tpl_child}",$tpl_child,$_cl14); $_clw=_cO4("{childcontent}",$_clu->text ,$_clw); $_clw=_cO4("{link}",$_clu->link ,$_clw); $_clw=_cO4("{target}",($_clu->target != NULL) ? "target='".$_clu->target."'": "",$_clw); $_clw=_cO4("{title}",($_clu->title != NULL) ? "title='".$_clu->title."'": "",$_clw); $_clw=_cO4("{id}",$_clu->id ,$_clw); $_clw=_cO4("{pos}",$_cl10,$_clw); $_clw=_cO4("{selected}",($this->selectedId == $_clu->id) ? "ksmSelected": "",$_clw); break; case "slidemenupanel": $_cO14="<li id='{id}' class='ksmLI ksmPanel {pos}'>{tpl_panel}</li>"; $_clw=_cO4("{tpl_panel}",$tpl_panel,$_cO14); $_clw=_cO4("{panelcontent}",$_clu->content ,$_clw); $_clw=_cO4("{id}",$_clu->id ,$_clw); $_clw=_cO4("{pos}",$_cl10,$_clw); break; } return $_clw; } function registerscript() { $_cOv="<script type='text/javascript'>if(typeof _libKSM=='undefined'){document.write(unescape("%3Cscript type='text/javascript' src='{src}'%3E %3C/script%3E"));_libKSM=1;}</script>"; $_clw=_cO4("{src}",$this->_cl15()."?".md5("js"),$_cOv); return $_clw; } function startupscript() { $_cOv="var {id}; function {id}_init(){ {id} = new KoolSlideMenu('{id}',{selectEnable},{slidingSpeed},{singleExpand},{boxHeight},"{clientState}");}"; $_cOv.="if (typeof(KoolSlideMenu)=='function'){{id}_init();}"; $_cOv.="else{if(typeof(__KSMInits)=='undefined'){__KSMInits=new Array();} __KSMInits.push({id}_init);{register_script}}"; $_cO15="if(typeof(_libKSM)=='undefined'){var _head = document.getElementsByTagName('head')[0];var _script = document.createElement('script'); _script.type='text/javascript'; _script.src='{src}'; _head.appendChild(_script);_libKSM=1;}"; $_cl16=_cO4("{src}",$this->_cl15()."?".md5("js"),$_cO15); $_cO16="{'selectedId':'{selectedId}'}"; $_clw=_cO4("{id}",$this->id ,$_cOv); $_clw=_cO4("{singleExpand}",($this->singleExpand) ? "1": "0",$_clw); $_clw=_cO4("{selectEnable}",($this->_clg) ? "1": "0",$_clw); $_clw=_cO4("{slidingSpeed}",$this->slidingSpeed ,$_clw); $_clw=_cO4("{boxHeight}",$this->boxHeight ,$_clw); $_cl17=_cO4("{selectedId}",$this->selectedId ,$_cO16); $_clw=_cO4("{clientState}",$_cl17,$_clw); $_clw=_cO4("{register_script}",$_cl16,$_clw); return $_clw; } function _cl15() { if ($this->scriptFolder == "") { $_cO5=_cO3(); $_cO17=substr(_cO4("\","/",__FILE__),strlen($_cO5)); return $_cO17; } else { $_cO17=_cO4("\","/",__FILE__); $_cO17=$this->scriptFolder.substr($_cO17,strrpos($_cO17,"/")); return $_cO17; } } function _cOw() { $_cl18=$this->_cl15(); $_cO18=_cO4(strrchr($_cl18,"/"),"",$_cl18)."/styles"; return $_cO18; } } } ?>
Did this file decode correctly?
Original Code
<?php $_cl0="1.5\0560.2"; if (!class_exists("\113oolS\143\162ipt\151\156g",FALSE)) { class koolscripting { static function start() { ob_start(); return ""; } static function end() { $content=ob_get_clean(); $_cO0=""; $_cl1=new domdocument(); $_cl1->loadxml($content); $_cO1=$_cl1->documentElement; $id=$_cO1->getattribute("id"); $_cl2=$_cO1->nodeName; $id=($id == "") ? "dump": $id; if (class_exists($_cl2,FALSE)) { eval ("\044".$id."\040\075 n\145\167 ".$_cl2."\050\047".$id."')\073"); $$id->loadxml($_cO1); $_cO0=$$id->render(); } else { $_cO0.=$content; } return $_cO0; } } } function _cO2($_cl3) { return md5($_cl3); } function _cO3() { $_cl4=_cO4("\134","\057",strtolower($_SERVER["\123C\122\111PT_\116\101ME"])); $_cl4=_cO4(strrchr($_cl4,"\057"),"",$_cl4); $_cl5=_cO4("\134","\057",realpath(".")); $_cO5=_cO4($_cl4,"",strtolower($_cl5)); return $_cO5; } function _cO4($_cl6,$_cO6,$_cl7) { return str_replace($_cl6,$_cO6,$_cl7); } class _ci10 { static $_ci10="\173\060\175\173\142\157xH\145\151gh\164\175<d\151\166 i\144\075'\173\151d}\047 cla\163s='\173\163ty\154\145}K\123M' \163\164yl\145='w\151dth\072\173w\151\144th\175;' \076 \173\164\160l\137\142o\165\156d}\040<in\160ut \151d='\173\151d\175\056c\154ien\164St\141\164e\047 na\155e='\173id}\056cl\151\145n\164Sta\164e' \164yp\145\075'\150id\144\145n\047 /\076 \173\061} \074/d\151\166>\1732}"; } function _cO7() { header("C\157\156ten\164\055ty\160\145: \164\145xt\057\152av\141\163cr\151\160t"); } function _cl8() { echo "var\040\137ciO\061=0;"; } function _cO8() { return exit (); } function _cl9() { return _ci10::$_ci10; } function _cO9( &$_cla) { for ($_cOa=0; $_cOa<3; $_cOa ++) $_cla=_cO4("\173".$_cOa."\175","",$_cla); return TRUE; } if ( isset ($_GET[_cO2("js")])) { _cO7(); ?> function _cO(_co){return (_co!=null);}function _cY(_cy){return document.getElementById(_cy); }function _cI(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.firstChild; return _co; }function _cA(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.nextSibling; return _co; }function _ca(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.parentNode; return _co; }function _cE(_co){return _co.className; }function _ce(_co,_cU){_co.className=_cU; }function _cu(_co,_cU){_co.style.height=_cU+"px"; }function _cZ(_co){return parseInt(_co.style.height); }function _cz(_co,_cU){_co.style.display=(_cU)?"block": "none"; }function _cX(_co){return (_co.style.display!="none"); }function _cx(_cW,_cw,_cV){_ce(_cV,_cE(_cV).replace(_cW,_cw)); }function _cv(_co,_cT){if (_co.className.indexOf(_cT)<0){var _ct=_co.className.split(" "); _ct.push(_cT); _co.className=_ct.join(" "); }}function _cS(_co,_cT){if (_co.className.indexOf(_cT)>-1){_cx(_cT,"",_co);var _ct=_co.className.split(" "); _co.className=_ct.join(" "); }}function _cs(_cW,_cR){return _cR.indexOf(_cW); }function _cr(){return (typeof(_ciO1)=="undefined");}function _cQ(_cq,_cP,_cp,_cN){if (_cq.addEventListener){_cq.addEventListener(_cP,_cp,_cN); return true; }else if (_cq.attachEvent){if (_cN){return false; }else {var _cn= function (){_cp.apply(_cq,[window.event]); };if (!_cq["ref"+_cP])_cq["ref"+_cP]=[]; else {for (var _cM in _cq["ref"+_cP]){if (_cq["ref"+_cP][_cM]._cp === _cp)return false; }}var _cm=_cq.attachEvent("on"+_cP,_cn); if (_cm)_cq["ref"+_cP].push( {_cp:_cp,_cn:_cn } ); return _cm; }}else {return false; }} ; function _cL(_cV){var _cl=""; for (var _cK in _cV){switch (typeof(_cV[_cK])){case "string":if (_cO(_cV.length))_cl+="'"+_cV[_cK]+"',"; else _cl+="'"+_cK+"':'"+_cV[_cK]+"',"; break; case "number":if (_cO(_cV.length))_cl+=_cV[_cK]+","; else _cl+="'"+_cK+"':"+_cV[_cK]+","; break; case "object":if (_cO(_cV.length))_cl+=_cL(_cV[_cK])+","; else _cl+="'"+_cK+"':"+_cL(_cV[_cK])+","; break; }}if (_cl.length>0)_cl=_cl.substring(0,_cl.length-1); _cl=(_cO(_cV.length))?"["+_cl+"]": "{"+_cl+"}"; if (_cl=="{}")_cl="null"; return _cl; }var _ck= {_cJ:function (){ this._cj=new Array(); this._cH=new Array(); this._ch=new Array(); this._cG=new Array(); this._cg=new Array(); this._cF=10; } ,_cf:function (_cD){var _cd=_cY(this._cj[_cD]); var _cC=_cA(_cI(_cd)); if (!_cO(_cC) || _cr()){ this._ch[_cD]=1; return; }_cC.style.overflow="hidden"; _cv(_cd,"ksmEffect"); _cz(_cC,1); this._cG[_cD]=(new SlideMenuPanel(this._cj[_cD])).getSlideMenu()._cc; this._cg[_cD]=_cC.offsetHeight-((this._cG[_cD]<0)?_cC.scrollHeight: this._cG[_cD])+1; if (this._cH[_cD]){_cu(_cC,1); }else {_cu(_cC,((this._cG[_cD]<0)?_cC.scrollHeight: this._cG[_cD])-this._cg[_cD]); }} ,_cB:function (_cb,_co0){if (this._cO0()){var _cD=-1; for (var i=0; i<this._cj.length; i++)if (this._cj[i]==_cb){_cD=i; }if (_cD<0){ this._cj.push(_cb); this._cH.push(_co0); this._cG.push(-1); this._cg.push(0); this._ch.push(0); this._cf(this._cj.length-1); }else { this._cH[_cD]=_co0; if (this._ch[_cD]){ this._ch[_cD]=0; this._cf(_cD); }}}else { this._cj.push(_cb); this._cH.push(_co0); this._cG.push(-1); this._cg.push(0); this._ch.push(0); }} ,_cl0:function (_ci0){ this._ci0=_cO(_ci0)?_ci0: 10; for (var i=0; i<this._ch.length; i++){ this._cf(i); } this._cI0=setTimeout( function (){_ck._co1();} ,this._cF); } ,_co1:function (){var _cO1= true; for (var i=0; i<this._ch.length; i++){var _cd=_cY(this._cj[i]); var _cC=_cA(_cI(_cd)); if (!this._ch[i]){_cO1= false; if (this._cH[i]){_cu(_cC,_cZ(_cC)+this._ci0); if (_cZ(_cC)>=((this._cG[i]<0)?_cC.scrollHeight: this._cG[i])-this._cg[i]){ this._ch[i]=1; _cC.style.height=""; _cC.style.display=""; _cC.style.overflow=""; _cS(_cd,"ksmEffect"); }}else {var _cl1=_cZ(_cC)-this._ci0; _cu(_cC,(_cl1<0)?0:_cl1); if (_cZ(_cC)<=0){ this._ch[i]=1; _cC.style.height=""; _cC.style.display=""; _cC.style.overflow=""; _cS(_cd,"ksmEffect"); }}}}if (_cO1){ this._ci1(); }else { this._cI0=setTimeout( function (){_ck._co1();} ,this._cF); }} ,_ci1:function (){clearTimeout(this._cI0); this._cI0=null; this._cJ(); } ,_cO0:function (){return _cO(this._cI0); }};_ck._cJ(); function SlideMenuParent(_cy){ this._cy=_cy; }SlideMenuParent.prototype= {expand:function (){if (!this.isExpanded()){if (!this.getSlideMenu()._cI1("OnBeforeExpand", { "ItemId": this._cy } ))return; var _co2=this.getSlideMenu(); var _cd=_cY(this._cy); if (_co2._cO2){var _cl2=_ca(_cd); for (var i=0; i<_cl2.childNodes.length; i++){var _ci2=new SlideMenuParent(_cl2.childNodes[i].id); if (_ci2.isExpanded()){_ci2.collapse(); }}}_cS(_cd,"ksmCollapse"); if (!_ck._cO0()){_ck._cJ(); _ck._cB(this._cy,1); _ck._cl0(_co2._cI2); }else {_ck._cB(this._cy,1); } this.getSlideMenu()._cI1("OnExpand", { "ItemId": this._cy } ); }} ,collapse:function (){if (_cr())return; if (this.isExpanded()){if (!this.getSlideMenu()._cI1("OnBeforeCollapse", { "ItemId": this._cy } ))return; var _cd=_cY(this._cy); var _cC=_cA(_cI(_cd)); _cv(_cd,"ksmCollapse"); if (!_ck._cO0()){_ck._cJ(); _ck._cB(this._cy,0); _ck._cl0(this.getSlideMenu()._cI2); }else {_ck._cB(this._cy,0); } this.getSlideMenu()._cI1("OnCollapse", { "ItemId": this._cy } ); }} ,isExpanded:function (){var _cd=_cY(this._cy); return (_cs("Collapse",_cE(_cd))<0);} ,getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,getParentId:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; } ,_cO3:function (_cl3){if (this.isExpanded())this.collapse(); else this.expand(); } ,_ci3:function (_cl3){ this.getSlideMenu()._cI1("OnParentMouseOver", { "ItemId": this._cy } ); } ,_cI3:function (_cl3){ this.getSlideMenu()._cI1("OnParentMouseOut", { "ItemId": this._cy } ); }};function SlideMenuChild(_cy){ this._cy=_cy; }SlideMenuChild.prototype= {select:function (){var _co2=this.getSlideMenu(); var _co4=_co2._cO4(); var _cl4=_co4.selectedId; if (_ci4!=this._cy){if (!this.getSlideMenu()._cI1("OnBeforeSelect", { "ItemId": this._cy } ))return; if (_cl4!=""){var _ci4=new SlideMenuChild(_cl4); _ci4.unselect(); }var _cI4=_cI(_cY(this._cy)); _cv(_cI4,"ksmSelected"); _co4.selectedId=this._cy; _co2._co5(_co4); this.getSlideMenu()._cI1("OnSelect", { "ItemId": this._cy } ); }} ,unselect:function (){var _co2=this.getSlideMenu(); var _co4=_co2._cO4(); var _cl4=_co4.selectedId; if (_cl4==this._cy){if (!this.getSlideMenu()._cI1("OnBeforeUnselect", { "ItemId": this._cy } ))return; var _cI4=_cI(_cY(this._cy)); _cS(_cI4,"ksmSelected"); _co4.selectedId=this._cy; _co2._co5(_co4); this.getSlideMenu()._cI1("OnUnselect", { "ItemId": this._cy } ); }} ,_cO5:function (){var _cI4=_cI(_cY(this._cy)); return (_cs("smSelected",_cE(_cI4))>0); } ,getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,getParentId:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; } ,_cO3:function (_cl3){if (this.getSlideMenu()._cl5){if (!this._cO5()){ this.select(); }}} ,_ci3:function (_cl3){ this.getSlideMenu()._cI1("OnChildMouseOver", { "ItemId": this._cy } ); } ,_cI3:function (_cl3){ this.getSlideMenu()._cI1("OnChildMouseOut", { "ItemId": this._cy } ); }};function SlideMenuPanel(_cy){ this._cy=_cy; }SlideMenuPanel.prototype= {getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,getParentId:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; }};function KoolSlideMenu(_cy,_cl5,_cI2,_cO2,_cc,_ci5){ this._cy=_cy; this._cO2=_cO2; this._cc=_cc; this._cI2=_cI2; this._cl5=_cl5; this._cI5=new Array(); _cY(_cy+".clientState").value=_ci5; this._co6(); }KoolSlideMenu.prototype= {_co6:function (){var _co2=_cY(this._cy); var _cO6=_co2.getElementsByTagName("li"); for (var i=0; i<_cO6.length; i++){if (_cs("smLI",_cE(_cO6[i]))>0){var _cI4=_cI(_cO6[i]); if (_cs("smParent",_cE(_cI4))>0 || _cs("smChild",_cE(_cI4))>0){_cQ(_cI4,"click",_cl6, false); _cQ(_cI4,"mouseover",_ci6, false); _cQ(_cI4,"mouseout",_cI6, false); }}}} ,_cO4:function (){var _co7=_cY(this._cy+".clientState"); var _cO7=eval("__="+_co7.value); return _cO7; } ,_co5:function (_cO7){var _co7=_cY(this._cy+".clientState"); _co7.value=_cL(_cO7); } ,collapseAll:function (){var _co2=_cY(this._cy); var _cO6=_co2.getElementsByTagName("li"); for (var i=0; i<_cO6.length; i++){if (_cs("smLI",_cE(_cO6[i]))>0){if (_cs("smParent",_cE(_cI(_cO6[i])))>0){var _ci2=new SlideMenuParent(_cO6[i].id); if (_ci2.isExpanded()){_ci2.collapse(); }}}}} ,expandAll:function (){var _co2=_cY(this._cy); var _cO6=_co2.getElementsByTagName("li"); for (var i=0; i<_cO6.length; i++){if (_cs("smLI",_cE(_cO6[i]))>0){if (_cs("smParent",_cE(_cI(_cO6[i])))>0){var _ci2=new SlideMenuParent(_cO6[i].id); if (!_ci2.isExpanded()){_ci2.expand(); }}}}} ,getItem:function (_cl7){var _cT=_cE(_cI(_cY(_cl7))); var _ci7=null; if (_cs("smParent",_cT)>0){_ci7=new SlideMenuParent(_cl7); }else if (_cs("smChild",_cT)>0){_ci7=new SlideMenuChild(_cl7); }else if (_cs("smPanel",_cT)>0){_ci7=new SlideMenuPanel(_cl7); }return _ci7; } ,getSelectedId:function (){return this._cO4().selectedId; } ,registerEvent:function (_cK,_cI7){if (!_cr())this._cI5[_cK]=_cI7; else return true; } ,_cI1:function (_cK,_co8){if (_cr())return true; return (_cO(this._cI5[_cK]))?this._cI5[_cK](this,_co8): true; }};function _cl6(_cl3){if (_cs("smChild",_cE(this ))>0){var _ci7=new SlideMenuChild(_ca(this ).id); }else {var _ci7=new SlideMenuParent(_ca(this ).id); }_ci7._cO3(_cl3); }function _ci6(_cl3){if (_cs("smChild",_cE(this ))>0){var _ci7=new SlideMenuChild(_ca(this ).id); }else {var _ci7=new SlideMenuParent(_ca(this ).id); }_ci7._ci3(_cl3); }function _cI6(_cl3){if (_cs("smChild",_cE(this ))>0){var _ci7=new SlideMenuChild(_ca(this ).id); }else {var _ci7=new SlideMenuParent(_ca(this ).id); }_ci7._cI3(_cl3); }if (typeof(__KSMInits)!="undefined" && _cO(__KSMInits)){for (var i=0; i<__KSMInits.length; i++){__KSMInits[i](); }} <?php _cl8(); _cO8(); } if (!class_exists("K\157olSli\144\145Men\165",FALSE)) { function _clb($_cOb,$_clc) { $_cOc=""; foreach ($_cOb->childNodes as $_cld) { $_cOc.=$_clc->savexml($_cld); } return trim($_cOc); } class slidemenuparent { var $id; var $text; var $link; var $target; var $title; var $expand=FALSE; var $parent; var $_cOd=array(); var $_cle=-1; function __construct($_cOe) { $this->id =$_cOe; } function addchild($_clf) { array_push($this->_cOd ,$_clf); $_clf->parent =$this; if (strtolower(get_class($_clf)) == "\163lide\155\145nu\160\141ren\164") { $_clf->_cle =$this->_cle +1; } } } class slidemenuchild { var $id; var $text; var $link; var $target; var $parent; var $title; var $_cOf=FALSE; function __construct($_cOe) { $this->id =$_cOe; } } class slidemenupanel { var $id; var $content; function __construct($_cOe) { $this->id =$_cOe; } } class koolslidemenu { var $_cl0="1.5.\060\0562"; var $id; var $styleFolder; var $scriptFolder=""; var $singleExpand; var $boxHeight=-1; var $slidingSpeed=5; var $scrollEnable=FALSE; var $width="aut\157"; var $selectedId; var $_clg=TRUE; var $_cO5; var $_cOg; var $_clh; function __construct($_cOe) { $this->id =$_cOe; $this->_cO5 =new slidemenuparent("r\157\157t"); $this->_cOg =array(); $this->_cOg["root"]=$this->_cO5; } function loadxml($_cOh) { if (gettype($_cOh) == "\163trin\147") { $_cOi=new domdocument(); $_cOi->loadxml($_cOh); $_cOh=$_cOi->documentElement; } $_cOe=$_cOh->getattribute("\151d"); if ($_cOe != "") $this->id =$_cOe; $_clj=$_cOh->getattribute("st\171\154eFo\154\144er"); if ($_clj != "") $this->styleFolder =$_clj; $_cOj=$_cOh->getattribute("scr\151\160tFo\154\144er"); if ($_cOj != "") $this->scriptFolder =$_cOj; $_clk=strtolower($_cOh->getattribute("sing\154\145Ex\160\141nd")); if ($_clk != "") $this->singleExpand =($_clk == "\164rue") ? TRUE: FALSE; $_cOk=$_cOh->getattribute("\142oxHe\151\147ht"); if ($_cOk != "") $this->boxHeight =intval($_cOk); $_cll=$_cOh->getattribute("slid\151\156gS\160\145ed"); if ($_cll != "") $this->slidingSpeed =intval($_cll); $_clm=strtolower($_cOh->getattribute("scr\157\154lE\156\141ble")); if ($_clm != "") $this->scrollEnable =($_clm == "\164\162ue") ? TRUE: FALSE; $_cOm=$_cOh->getattribute("widt\150"); if ($_cOm != "") $this->width =$_cOm; $_cln=$_cOh->getattribute("sel\145\143ted\111\144"); if ($_cln != "") $this->selectedId =$_cln; $this->_cOn($this->_cO5 ,$_cOh,$_cOh->parentNode); } function _cOn($_clo,$_cOo,$_cOi) { foreach ($_cOo->childNodes as $_clp) { switch (strtolower($_clp->nodeName)) { case "\160arent": $_cOe=$_clp->getattribute("id"); $_cl3=$_clp->getattribute("\164\145xt"); $_cOp=$_clp->getattribute("\154in\153"); $_clq=$_clp->getattribute("targ\145\164"); $_cOq=$_clp->getattribute("tit\154\145"); $_clr=(strtolower($_clp->getattribute("\145xpan\144")) == "\164rue") ? TRUE: FALSE; $_cls=$this->addparent($_clo->id ,$_cOe,$_cl3,$_cOp,$_clr); $_cls->target =$_clq; $_cls->title =$_cOq; $this->_cOn($_cls,$_clp,$_cOi); break; case "chi\154\144": $_cOe=$_clp->getattribute("id"); $_cl3=$_clp->getattribute("te\170\164"); $_cOp=$_clp->getattribute("\154in\153"); $_clq=$_clp->getattribute("\164ar\147\145t"); $_cOq=$_clp->getattribute("titl\145"); $_cOs=$this->addchild($_clo->id ,$_cOe,$_cl3,$_cOp); $_cOs->target =$_clq; $_cOs->title =$_cOq; break; case "\160anel": $_cOe=$_clp->getattribute("id"); $_clt=_clb($_clp,$_cOi); $this->addpanel($_clo->id ,$_cOe,$_clt); break; } } } function addparent($_cOt,$_cOe,$_cl3="",$_cOp="",$_clr=FALSE) { $_clu=new slidemenuparent($_cOe); $_clu->text =$_cl3; $_clu->expand =$_clr; $_clu->link =($_cOp == NULL || $_cOp == "") ? "jav\141\163cri\160\164:v\157\151d \060": $_cOp; $this->_cOg[$_cOt]->addchild($_clu); $this->_cOg[$_cOe]=$_clu; return $_clu; } function addchild($_cOt,$_cOe,$_cl3="",$_cOp="") { $_clu=new slidemenuchild($_cOe); $_clu->text =$_cl3; $_clu->link =($_cOp == NULL || $_cOp == "") ? "\152av\141\163cri\160\164:v\157\151d \060": $_cOp; $this->_cOg[$_cOt]->addchild($_clu); $this->_cOg[$_cOe]=$_clu; return $_clu; } function addpanel($_cOt,$_cOe,$_clt) { $_clu=new slidemenupanel($_cOe); $_clu->content =$_clt; $this->_cOg[$_cOt]->addchild($_clu); $this->_cOg[$_cOe]=$_clu; return $_clu; } function getitem($_cOe) { return $this->_cOg[$_cOe]; } function _cOu() { $this->styleFolder =_cO4("\134","/",$this->styleFolder); $_clj=trim($this->styleFolder ,"/"); $_clv=strrpos($_clj,"\057"); $this->_clh =substr($_clj,($_clv ? $_clv: -1)+1); } function registercss() { $this->_cOu(); $_cOv="\074scr\151\160t t\171\160e=\047\164ex\164\057ja\166\141sc\162\151pt\047>if\040\050do\143umen\164.ge\164\105le\155\145nt\102yId\050'__\173\163ty\154e}KS\115')=\075nul\154\051\173\166ar \137hea\144\040=\040doc\165\155e\156\164.\147\145tE\154eme\156tsB\171\124a\147Nam\145('h\145ad'\051[0]\073va\162\040_\154ink\040= d\157cu\155\145n\164.cr\145ate\105lem\145nt\050'li\156k')\073 _\154ink\056id\040= \047__\173\163t\171\154e\175KS\115\047;\137li\156k.\162\145l\075's\164yl\145\163h\145et\047; \137li\156\153.\150re\146=\047\173\163\164y\154ep\141th\175/\173\163t\171\154e\175/\173\163t\171le\175.c\163s'\073_h\145ad\056ap\160en\144Ch\151ld\050_\154in\153);\175</\163cr\151pt\076"; $_clw=_cO4("\173\163tyle\175",$this->_clh ,$_cOv); $_clw=_cO4("\173styl\145\160ath\175",$this->_cOw(),$_clw); return $_clw; } function render() { $_clw="\n<!-\055KoolS\154\151deM\145\156u \166\145rs\151\157n ".$this->_cl0."\040- w\167\167.ko\157\154php\056net \055\055>\n"; $_clw.=$this->registercss(); $_clw.=$this->renderslidemenu(); $_clx= isset ($_POST["\137\137ko\157\154aja\170"]) || isset ($_GET["\137_ko\157\154aja\170"]); $_clw.=($_clx) ? "": $this->registerscript(); $_clw.="\074scri\160\164 ty\160\145='t\145\170t/\152\141va\163\143ri\160\164'\076"; $_clw.=$this->startupscript(); $_clw.="\074/scr\151\160t>"; return $_clw; } function renderslidemenu() { $tpl_bound="\173boun\144\143ont\145\156t}"; $tpl_parent="<di\166\040cla\163\163='\153\163mIn\047\076\173\160aren\164\143o\156\164en\164\175</\144\151v\076"; $tpl_childbox="\173\143\150ildb\157\170co\156\164en\164\175"; $tpl_child="<sp\141\156 cl\141\163s='\153\163mI\156\047>\173\143hil\144\143on\164ent}\074/sp\141\156>"; $tpl_panel="\074di\166\040cl\141\163s='\153\163mIn\047\076\173\160ane\154\143on\164\145nt\175\074/\144\151v>"; $this->_cOu(); include "\163tyl\145\163"."\057".$this->_clh."\057".$this->_clh.".t\160\154"; $_cOx="\074ul\040\143las\163\075'k\163\155UL\040\173bo\170\110ei\147\150t}\047>\173\160\141re\156\164s\175\074/\165\154>"; $_cly="\074sty\154\145 re\154\075's\164\171le\163\150eet\047> .\173\163ty\154\145}K\123\115 .\153\163mB\157xHei\147ht .\153\163m\103\150i\154\144Bo\170 \173\150\145ig\150t:\173\142oxH\145igh\164\175p\170\073o\166\145rf\154ow:\173\157v\145\162f\154\157w\175\073}\040</\163\164y\154\145>"; $_cla=_cO4("\173tp\154\137bou\156\144}",$tpl_bound,_cl9()); $_cla=_cO4("\173\151d}",$this->id ,$_cla); $_cla=_cO4("\173\167\151dt\150\175",$this->width ,$_cla); $_cla=_cO4("\173\163tyl\145\175",$this->_clh ,$_cla); $_clu=$this->_cO5; $_cOy=""; for ($_cOa=0; $_cOa<sizeof($_clu->_cOd); $_cOa ++) { $_cOy.=$this->_clz($_clu->_cOd[$_cOa]); } $_cOz=_cO4("\173paren\164\163}",$_cOy,$_cOx); if ($this->boxHeight <0) { $_cOk=""; $_cOz=_cO4("\173boxHe\151\147ht}","",$_cOz); } else { $_cOk=_cO4("\173\163tyle\175",$this->_clh ,$_cly); $_cOk=_cO4("\173bo\170\110eig\150\164}",$this->boxHeight ,$_cOk); $_cOk=_cO4("\173ove\162\146low\175",($this->scrollEnable) ? "a\165\164o": "\150\151dd\145\156",$_cOk); $_cOz=_cO4("\173\142oxHe\151\147ht}","\153smBox\110\145igh\164",$_cOz); } if (_cO9($_cla)) { $_cla=_cO4("\173\142\157und\143\157nt\145\156t}",$_cOz,$_cla); } $_cla=_cO4("\173ver\163\151on\175",$this->_cl0 ,$_cla); $_cla=_cO4("\173\142oxH\145\151ght\175",$_cOk,$_cla); return $_cla; } function _clz($_clu) { $tpl_bound="\173\142\157und\143\157nte\156\164}"; $tpl_parent="\074di\166\040cl\141\163s='\153\163mIn\047\076\173\160are\156\164co\156\164en\164\175</\144\151v\076"; $tpl_childbox="\173chil\144\142oxc\157\156te\156\164}"; $tpl_child="\074spa\156\040cl\141\163s='\153\163mIn\047>\173c\150\151ld\143\157n\164\145nt\175\074/\163\160an\076"; $tpl_panel="\074div\040\143la\163\163='k\163\155In'\076\173pa\156\145lc\157\156t\145\156t}\074/div\076"; include "\163\164yle\163"."\057".$this->_clh."/".$this->_clh.".tp\154"; $_clw=""; $_cl10=""; if ($_clu === $_clu->parent->_cOd[0]) { $_cl10="\153smFi\162\163t"; } else if ($_clu === $_clu->parent->_cOd[sizeof($_clu->parent->_cOd)-1]) { $_cl10="\153\163mLa\163\164"; } switch (strtolower(get_class($_clu))) { case "s\154\151dem\145\156up\141\162ent": $_cO10="\074li \151\144='\173\151d}' \143\154as\163\075'k\163\155LI\040\153sm\114evel\173\154ev\145l} \173\143ol\154\141ps\145\175 \173\160o\163\175'>\173\160a\162\145nt\143ont\145\156t\175\173ch\151\154d\142\157x}\074/li\076"; $_cl11="\074a c\154\141ss=\047\153sm\101\040ks\155\120ar\145\156t'\040\150r\145\146='\173\154in\153\175'\040\173t\141\162ge\164\175 \173\164it\154e} \076\173t\160\154_p\141ren\164\175<\057\141>"; $_cO11="\074\144iv\040\143la\163\163='k\163\155Ch\151\154dBo\170\047>\173\164pl\137\143hi\154\144b\157\170}<\057div\076"; $_cl12="\074ul c\154\141ss=\047\153sm\125\114'>\173\143hil\144\162en\175\074/\165\154>"; $_cO12=_cO4("\173\164pl_pa\162\145nt\175",$tpl_parent,$_cl11); $_cO12=_cO4("\173par\145\156tco\156\164ent\175",$_clu->text ,$_cO12); $_cO12=_cO4("\173l\151\156k}",$_clu->link ,$_cO12); $_cO12=_cO4("\173\164arget\175",($_clu->target != NULL) ? "\164\141rge\164\075'".$_clu->target."'": "",$_cO12); $_cO12=_cO4("\173\164\151tle\175",($_clu->title != NULL) ? "\164it\154\145='".$_clu->title."\047": "",$_cO12); $_cOd=""; for ($_cOa=0; $_cOa<sizeof($_clu->_cOd); $_cOa ++) { $_cOd.=$this->_clz($_clu->_cOd[$_cOa]); } if ($_cOd != "") { $_cl13=_cO4("\173\143\150ild\162\145n}",$_cOd,$_cl12); $_cO13=_cO4("\173\164pl\137\143hil\144\142ox}",$tpl_childbox,$_cO11); $_cO13=_cO4("\173\143hild\142\157xco\156\164en\164\175",$_cl13,$_cO13); } $_clw=_cO4("\173pa\162\145ntc\157\156ten\164\175",$_cO12,$_cO10); $_clw=_cO4("\173\143hild\142\157x}",$_cO13,$_clw); $_clw=_cO4("\173id\175",$_clu->id ,$_clw); $_clw=_cO4("\173lev\145\154}",$_clu->_cle ,$_clw); $_clw=_cO4("\173p\157\163}",$_cl10,$_clw); $_clw=_cO4("\173\143olla\160\163e}",($_clu->expand) ? "": "\153\163mCo\154\154apse",$_clw); break; case "slide\155\145nuc\150\151ld": $_cl14="<\154\151 id\075\047\173\151d}' \143\154as\163\075'k\163\155LI\040\173p\157\163}'\076\074a\040\143l\141\163s=\047\153s\155\101 k\163mCh\151\154d\040\173se\154ect\145\144}\047\040h\162\145f=\047\173\154\151nk\175' \173\164ar\147\145t\175\040\173\164it\154\145}\040>\173\164pl_\143hil\144}</\141></\154i>"; $_clw=_cO4("\173tpl_\143\150il\144\175",$tpl_child,$_cl14); $_clw=_cO4("\173child\143\157nte\156\164}",$_clu->text ,$_clw); $_clw=_cO4("\173link\175",$_clu->link ,$_clw); $_clw=_cO4("\173t\141\162get\175",($_clu->target != NULL) ? "targ\145\164='".$_clu->target."\047": "",$_clw); $_clw=_cO4("\173\164itl\145\175",($_clu->title != NULL) ? "t\151\164le=\047".$_clu->title."'": "",$_clw); $_clw=_cO4("\173\151d}",$_clu->id ,$_clw); $_clw=_cO4("\173\160os}",$_cl10,$_clw); $_clw=_cO4("\173sele\143\164ed\175",($this->selectedId == $_clu->id) ? "ksmSe\154\145cte\144": "",$_clw); break; case "s\154\151dem\145\156upa\156\145l": $_cO14="\074li \151\144='\173\151d}' \143\154as\163\075'k\163\155LI\040\153sm\120anel\040\173p\157\163}'\076\173t\160\154_p\141\156e\154\175<\057\154i>"; $_clw=_cO4("\173tpl\137\160ane\154\175",$tpl_panel,$_cO14); $_clw=_cO4("\173\160\141nel\143\157nt\145\156t}",$_clu->content ,$_clw); $_clw=_cO4("\173id}",$_clu->id ,$_clw); $_clw=_cO4("\173pos}",$_cl10,$_clw); break; } return $_clw; } function registerscript() { $_cOv="<scri\160\164 ty\160\145='t\145\170t/\152\141va\163\143ri\160\164'>\151\146(t\171\160eo\146 _li\142KSM\075\075'\165\156de\146\151n\145\144'\051\173do\143ume\156\164.w\162ite\050\165n\145\163ca\160e(\042\0453C\163cri\160\164 \164\171p\145\075'\164\145x\164\057j\141vas\143rip\164\047 \163rc=\047\173\163\162c\175\047%\063E \045\063C\057sc\162\151p\164\0453\105\042\051);_\154ib\113\123M\0751;\175\074/\163cr\151\160t\076"; $_clw=_cO4("\173\163\162c}",$this->_cl15()."\077".md5("js"),$_cOv); return $_clw; } function startupscript() { $_cOv="\166\141r \173\151d};\040\146un\143\164ion\040\173id\175\137in\151\164\050)\173\040\173\151d} \075\040n\145\167 K\157\157l\123\154id\145Men\165\050'\173\151d}\047,\173\163ele\143\164En\141ble\175\054\173\163li\144\151ng\123pee\144},\173\163in\147\154e\105\170p\141\156d\175\054\173\142ox\110eig\150t},\042\173\143\154i\145\156t\123tat\145}\042\051;}"; $_cOv.="if\040(type\157\146(Ko\157\154Sl\151\144eMe\156\165)=\075'fun\143tion\047)\173\173\151d}\137\151ni\164();\175"; $_cOv.="else\173\151f(t\171\160eof\050__KS\115\111ni\164\163)=\075\047u\156\144ef\151\156e\144\047)\173\137_K\123\115In\151\164s\075\156e\167\040A\162\162ay\050);}\040__K\123MIn\151\164s\056\160u\163\150(\173\151d}\137ini\164\051;\173reg\151ste\162\137s\143\162i\160t}}"; $_cO15="if(ty\160\145of(\137\154ib\113\123M)=\075\047u\156\144ef\151\156ed\047)\173\166\141r \137\150ea\144\040=\040docu\155ent.\147etE\154\145m\145\156ts\102\171Ta\147Nam\145\050'\150\145ad\047)[0\135;va\162\040_\163\143r\151\160t \075 d\157\143um\145nt.\143rea\164eEl\145men\164\050'\163cri\160t')\073 _\163\143r\151\160t\056typ\145='t\145xt\057\152a\166asc\162ip\164\047;\040_s\143\162i\160t.s\162c=\047\173\163\162c\175'; \137he\141d.a\160pe\156\144C\150il\144(_\163\143r\151pt\051;_\154ib\113\123M\0751;\175"; $_cl16=_cO4("\173\163rc\175",$this->_cl15()."?".md5("js"),$_cO15); $_cO16="\173's\145\154ect\145\144Id'\072'\173s\145\154ec\164\145dI\144\175'}"; $_clw=_cO4("\173i\144\175",$this->id ,$_cOv); $_clw=_cO4("\173\163ingle\105\170pa\156\144}",($this->singleExpand) ? "1": "0",$_clw); $_clw=_cO4("\173\163\145le\143\164Ena\142\154e}",($this->_clg) ? "1": "\060",$_clw); $_clw=_cO4("\173slid\151\156gSp\145\145d}",$this->slidingSpeed ,$_clw); $_clw=_cO4("\173b\157\170Hei\147\150t}",$this->boxHeight ,$_clw); $_cl17=_cO4("\173s\145\154ect\145\144Id}",$this->selectedId ,$_cO16); $_clw=_cO4("\173\143li\145\156tSt\141\164e}",$_cl17,$_clw); $_clw=_cO4("\173regis\164\145r_\163\143rip\164\175",$_cl16,$_clw); return $_clw; } function _cl15() { if ($this->scriptFolder == "") { $_cO5=_cO3(); $_cO17=substr(_cO4("\134","/",__FILE__),strlen($_cO5)); return $_cO17; } else { $_cO17=_cO4("\134","/",__FILE__); $_cO17=$this->scriptFolder.substr($_cO17,strrpos($_cO17,"/")); return $_cO17; } } function _cOw() { $_cl18=$this->_cl15(); $_cO18=_cO4(strrchr($_cl18,"\057"),"",$_cl18)."\057\163tyl\145\163"; return $_cO18; } } } ?>
Function Calls
| None |
Stats
| MD5 | f87bfe3e5b3b95c1197dc781b8f2d0d2 |
| Eval Count | 0 |
| Decode Time | 175 ms |