Created
October 27, 2016 12:25
-
-
Save chateaux/f2b14a10e76029031125f17d96d80f40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="featurette" id="contact"> | |
<h2 class="featurette-heading">Referrer | |
<span class="text-muted">data</span> | |
</h2> | |
<p class="lead"> | |
As a marketer you will need to learn how to send data to our games, the following cookie data is associated to your account: | |
</p> | |
<p> | |
<table class="table"> | |
<tr> | |
<td colspan="2"><b>Campaign Data:</b></td> | |
</tr> | |
<?php | |
$data = $this->CookieHelper('referrer'); | |
if (!$data) | |
{ | |
$data = []; | |
} | |
function recursiveArray($array) | |
{ | |
foreach ($array AS $key => $item) | |
{ | |
if (!is_array($item)) { | |
echo "<tr><td>".$key."</td><td>".$item."</td></tr>"; | |
} else { | |
echo "<table class='table'><tr><th colspan='2'>".$key."</th></tr>"; | |
recursiveArray($item); | |
echo "</table>"; | |
} | |
} | |
} | |
recursiveArray($data); | |
?> | |
</table> | |
</p> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment