예제 #1
0
파일: AInfo.php 프로젝트: Apfelnerd/iNuven
// Extra
//
extract($ActivationInfoDEC);
// This is an extremely needed check :).
//
$Check_iDevice = Check_iDevice($ProductType);
$Check_iDevice_Type = Check_iDevice($ProductType, true);
$Check_iDevice_Name = Check_iDevice($ProductType, true, true);
//
//
if ($Check_iDevice === true) {
    $Msg->Info("Check_iDevice = Look for SIMStatus\r\n", "AInfo");
    $Has_SIM = true;
    if (array_key_exists('SIMStatus', get_defined_vars())) {
        $Msg->Info("SIMStatus = Checked " . $SIMStatus, "AInfo");
        if (Check_SIMStatus($SIMStatus) === true) {
            $Msg->Info("SIMStatus = Normal " . $SIMStatus, "AInfo");
            $SIM_OK = true;
        } else {
            $Msg->Info("SIMStatus = Warning " . $SIMStatus, "AInfo");
            $SIM_OK = false;
        }
    } else {
        $Msg->Info("SIMStatus = Error " . $SIMStatus, "AInfo");
        $SIM_OK = false;
    }
} else {
    $Msg->Info("SIMStatus = Default SIM Status to Normal " . $SIMStatus, "AInfo");
    $Has_SIM = false;
    $SIM_OK = false;
}
예제 #2
0
 extract($activation_info);
 // Prepare ActivationInfoXML.plist File.
 $ActivationInfoDEC = base64_decode($ActivationInfoXML);
 file_put_contents($Request_Path . DS . "ActivationInfoXML.plist", $ActivationInfoDEC);
 $ActivationInfoDEC = $parser->parse($ActivationInfoDEC);
 extract($ActivationInfoDEC);
 // Get All Files Saved Correctly.
 unlink($Request_Path . DS . "deviceActivation_Ticket_Request.serialized");
 rename($Request_Path . DS . "deviceActivation_Ticket_Request.json", $Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "deviceActivation_Ticket_Request.json");
 rename($Request_Path . DS . "activation-info.plist", $Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "activation-info.plist");
 rename($Request_Path . DS . "ActivationInfoXML.plist", $Request_Path . DS . $ProductType . "_" . $BuildVersion . "_" . "ActivationInfoXML.plist");
 // This is an extremely needed check :).
 $Check_iDevice = Check_iDevice($ProductType);
 if ($Check_iDevice == true) {
     if (Get_Var_Exists('SIMStatus') == true) {
         if (Check_SIMStatus($SIMStatus)) {
             $SIM_OK = true;
         } else {
             $SIM_OK = false;
         }
     } else {
         $SIM_OK = false;
     }
 } else {
     $SIM_OK = true;
 }
 // Get Device Type.
 if ($DeviceClass == "iPhone" or strpos($ProductType, "iPhone") !== false) {
     $iDeviceType = "iPhone";
 } else {
     $iDeviceType = "iDevice";