This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| <?php | |
| session_start(); | |
| $user_2p = ''; // your 2parale user | |
| $pass_2p = ''; // your 2parale pass | |
| function get_page($link) { | |
| global $user_2p, $pass_2p; | |
| $ch = curl_init($link); |
| <?php | |
| function recursive_campaigns($api_url, &$campaigns, &$page) { | |
| global $url; | |
| $response = file_get_contents($api_url); | |
| $json_obj = json_decode($response); | |
| if( count($json_obj) > 1 ) { | |
| foreach($json_obj as $obj) { | |
| if( $obj->campaign->default_lead_commission_rate != "" ) { |