Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Hoo\Configuration;
- use Hoo\Eravage;
- use Hoo\JsonResponse;
- use Hoo\Lead;
- use Hoo\MooglePost;
- require 'vendor/autoload.php';
- Lead::save();
- MooglePost::collect();
- /* Hack ER */
- $ratio_ER = Configuration::get('eravage.ratio', 0);
- $random = mt_rand(0, 100);
- if ($random <= $ratio_ER) {
- $result = Eravage::api();
- if (false !== $result) {
- JsonResponse::send($result);
- }
- }
- $result = \Hoo\Payglad::api();
- if (false === $result) {
- $result = Eravage::api();
- if (false === $result) {
- $result = Eravage::url();
- }
- }
- JsonResponse::send($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement