Date: 09/06/07 (Code WTF) Keywords: php 1
3 4 {php} 5 $cursec=(int)$_REQUEST['section']; 6 $t_tpl=$this->_tpl_vars; 7 $j=0; 8 $opendiv=0; 9 $js=0; 10 for ($i=0;$i 12 if ($opendiv==0){ 13 $jscur=0; 14 $divid++; 15 $starttree=$i-1; 16 $starttree1=$j-1; 17 $menu[$j-1]=' 37 $j++; 38 $opendiv=0; 39 if($jscur===0) { 40 $menu = array_slice($menu, 0, $starttree1); 41 $menu[$starttree1]=' 42 $j=$starttree1+1; 43 44 } 45 46 } 47 $menu[$j]=' 48 }; 49 $j++; 50 } 51 if(!$js) $js=''; 54 echo implode("\n", $menu).$js; 55 {/php} 56 57 58 Source: http://community.livejournal.com/code_wtf/100090.html
|