Ejemplo n.º 1
0
 	}
 	break;
 */
 case "unobfuscatedusers":
     if ($len == 2) {
         if (isset($unobfuscationid) && $unobfuscationid != "") {
             $keyArray = getObfuscationKey($unobfuscationid, $request);
             if (!$keyArray instanceof Error) {
                 $key = $keyArray['ObfuscationKey'];
                 $iv = $keyArray['ObfuscationIV'];
                 //error_log("key for users=".$key);
                 //error_log("iv for users=".$iv);
                 if (isset($key) && isset($iv)) {
                     $cipher = new Cipher();
                     $cipher->setKey($key);
                     $cipher->setIV($iv);
                 }
             }
             if ($cipher == "") {
                 error_log("unobfuscation key invalid or expired");
                 global $ERROR;
                 $ERROR = new error();
                 $ERROR->createAccessDeniedError();
                 include $HUB_FLM->getCodeDirPath("core/formaterror.php");
                 die;
             } else {
                 $userset = new UnobfuscatedUserSet();
                 $userset->cipher = $cipher;
                 // add users
                 $users = getObfuscationUsers($unobfuscationid);
                 //error_log("Users=".print_r($users, true));