Пример #1
0
         echo 'reload';
     }
     if (isset($_POST['id'])) {
         echo $api->removeSearchStream($_POST['id']);
     } else {
         echo 'error';
     }
     break;
 case 'verifyGPLoginAndPages':
     if (!$api->ifUserLogined()) {
         echo 'reload';
     }
     if (isset($_POST['accountID'])) {
         //$account = $api->getAccountDataByID( $_POST['accountID'], $_POST['profileID'] );
         if (isset($_POST['url'])) {
             echo $api->verifyGPLoginAndPages($_POST['accountID'], $_POST['includeLogin'], $_POST['includeProfile'], $_POST['text2'], $_POST['encText2'], $_POST['url']);
         } else {
             echo $api->verifyGPLoginAndPages($_POST['accountID'], $_POST['includeLogin'], $_POST['includeProfile'], $_POST['text2'], $_POST['encText2']);
         }
     } else {
         echo 'error';
     }
     break;
 case 'setAccountData':
     if (!$api->ifUserLogined()) {
         echo 'reload';
     }
     if (isset($_POST['accountID'])) {
         echo $api->setAccountData($_POST['type'], $_POST['accountID'], $_POST['includeLogin'], $_POST['includeProfile'], $_POST['text2'], $_POST['encText2'], $_POST['encTextUser']);
     } else {
         echo 'error';