function instapush_notify($ipappid, $ipappsecret, $event, $time, $reason) { echo "\ninstapush \n"; //Send notification to instapush, man $ip = InstaPush::getInstance($ipappid, $ipappsecret); $ip->track($event, array("time" => $time, "reason" => $reason)); }