function pusher() { IMBAuth::checkOAuth(); // pr($_POST); // if($_POST['ids'] == "")die("Please insert Customer ID"); if ($_POST['camp_id'] == "") { die("Please insert Campaign ID"); } // $ids = addslashes($_POST['ids']); $ps = new PushNotCamp(); $ps->getByID(addslashes($_POST['camp_id'])); $app = new AppAccount(); $app->getByID($ps->camp_client_id); $arrAcc = $ps->camp_client_id; //from acc get device ID Pusher::sendUsingArrayAcc($arrAcc, $ps, $app, 1); //1 for testing }