Index: branches/unlabeled/unlabeled-1.1.2/kernel/include/obscure.php =================================================================== diff -u -r6981 -r7308 --- branches/unlabeled/unlabeled-1.1.2/kernel/include/obscure.php (.../obscure.php) (revision 6981) +++ branches/unlabeled/unlabeled-1.1.2/kernel/include/obscure.php (.../obscure.php) (revision 7308) @@ -1,4 +1,4 @@ -#!/usr/local/bin/php +#!/usr/bin/php $attr) { $line = $code[$x]; @@ -149,13 +149,13 @@ } } } - + for($x=0;$x0) { if(substr($line,$p,2)!="$$") @@ -168,29 +168,29 @@ $variables[$name] = '$_'.gen_name($VarCount++); } } - $p = strpos($line,"$",$p+1); - } - } - + $p = strpos($line,"$",$p+1); + } + } + for($x=0;$x$varname) - { + { //echo "strpos ".$code[$x].', '.$v."\n"; $p = strpos($code[$x],$v); while(is_numeric($p)) { $t = GetVarName(substr($code[$x],$p)); if('$'.$t == $v) - { + { $code[$x] = substr_replace($code[$x],$varname,$p,strlen($t)+1); } $p = strpos($code[$x],$v,$p+1); } - } + } } - + $o = "function $NewName"."("; if (is_array($a)) { foreach($a as $attr) @@ -207,24 +207,24 @@ //$o = str_replace("\n","",$o); return $o; } - + $out = ""; $outline = 0; - + $shuffled = array_rand($functions, count($functions)); // print_r($shuffled); foreach ($shuffled as $name) { $pos = $functions[$name]; - + //foreach($functions as $name =>$pos) //{ $dest = $pos["start"]; $newname = $pos["newname"]; if(!$outline) $outline = $dest; - + unset($code); for($x=$dest+1;$x<=$pos["end"];$x++) { @@ -237,10 +237,10 @@ { for($x=$pos["start"];$x<=$pos["end"];$x++) { - $php[$x] = ""; + $php[$x] = ""; } } - + $code =array(); for($x=0;$x