Index: trunk/kernel/include/modules.php =================================================================== diff -u -r1035 -r1172 --- trunk/kernel/include/modules.php (.../modules.php) (revision 1035) +++ trunk/kernel/include/modules.php (.../modules.php) (revision 1172) @@ -616,8 +616,8 @@ function _LoadLicense($LoadRemote=FALSE) { global $pathtoroot, $objConfig; - $f = $pathtoroot."intechnic.php"; + _falseIsLocalSite($f); if(file_exists($f)) { $contents = file($f); @@ -643,7 +643,7 @@ function _ParseLicense($txt) { global $i_User, $i_Pswd, $i_Keys; - + _falseIsLocalSite($txt); $data = _decrypt($txt,"beagle"); $i_Keys = array(); $lines = explode("\n",$data); @@ -678,9 +678,53 @@ } } +function _GetObscureValue($i) +{ + if ($i == 'x') return 0254; + if ($i == 'z') return 0x7F.'.'; + if ($i >= 5 && $i < 7) return _GetObscureValue($z)*_GetObscureValue('e'); + if ($i > 30) return Array(0x6c,0x6f,0x63,0x61,0x6c,0x68,0x6f,0x73,0x74); + if ($i > 20) return 99; + if ($i > 10) return '.'.(_GetObscureValue(6.5)+1); + if ($i == 'a') return 0xa; +} + +function _Chr($val) +{ + $x = _GetObscureValue(25); + $f = chr($x).chr($x+5).chr($x+15); + return $f($val); +} + function _IsLocalSite($domain) { + $ee = _GetObscureValue(35); + foreach ($ee as $e) { + $yy .= _Chr($e); + } $localb = FALSE; + if(substr($domain,0,3)==_GetObscureValue('x')) + { + $b = substr($domain,0,6); + $p = explode(".",$domain); + $subnet = $p[1]; + if($p[1]>15 && $p[1]<32) + $localb=TRUE; + } + $zz = _GetObscureValue('z')._GetObscureValue(5).'.'.(int)_GetObscureValue(7)._GetObscureValue(12); + $ff = _GetObscureValue('z')+65; + $hh = $ff-0x18; + if($domain==$yy || $domain==$zz || substr($domain,0,7)==$ff._Chr(46).$hh || + substr($domain,0,3)==_GetObscureValue('a')._Chr(46) || $localb || strpos($domain,".")==0) + { + return TRUE; + } + return FALSE; +} + +function _falseIsLocalSite($domain) +{ + $localb = FALSE; if(substr($domain,0,3)=="172") { $b = substr($domain,0,6);