Beispiel #1
0
Import to: <label><input type="radio" name="to" value="0" checked="checked" />MyApps</label> <label><input type="radio" name="to" value="1" />WishList</label><br />
<input type="submit" value="Submit" />
</form>
<?php 
if (isset($_REQUEST['to']) && $_REQUEST['to']) {
    header('location: http://github.com/sskaje/appstore/');
    exit;
}
$apple_id = isset($_REQUEST['apple_id']) && !empty($_REQUEST['apple_id']) ? trim($_REQUEST['apple_id']) : die('Apple ID!!!');
$apple_password = isset($_REQUEST['apple_password']) && !empty($_REQUEST['apple_password']) ? trim($_REQUEST['apple_password']) : die('Apple ID Password!!!');
$appshopper_username = isset($_REQUEST['appshopper_username']) && !empty($_REQUEST['appshopper_username']) ? trim($_REQUEST['appshopper_username']) : die('AppShopper Username!!!');
$appshopper_password = isset($_REQUEST['appshopper_password']) && !empty($_REQUEST['appshopper_password']) ? trim($_REQUEST['appshopper_password']) : die('AppShopper Password!!!');
require __DIR__ . '/classes/iTunes.class.php';
require __DIR__ . '/classes/Appshopper.class.php';
$appshopper = new Appshopper();
$appshopper->login($appshopper_username, $appshopper_password);
$itunes = new iTunes();
$itunes->apple_id = $apple_id;
$itunes->password = $apple_password;
$itunes->guid = '11111111.22222222.00000000.44444444.CC0183D3.33019387.512309CA';
$itunes->login();
$app_ids = array();
$ids = $itunes->getPurchasedIDList();
if (!isset($ids['Apps']) || empty($ids['Apps'])) {
    die('No purchased app found.');
}
$app_ids += $ids['Apps'];
$ih = 'no';
if (isset($_REQUEST['import_hidden']) && $_REQUEST['import_hidden']) {
    $ids = $itunes->getPurchasedIDList(true);
    if (isset($ids['Apps']) && !empty($ids['Apps'])) {
<?php

require __DIR__ . '/../src/classes/Appshopper.class.php';
$appshopper = new Appshopper();
$appshopper->login('sskaje', 'password');
$appshopper->detail('473056224');