Kieren
The OGz
Code:
badge_name_GLO02=BADGENAME
badge_desc_GLO02=BADGEDESCRIPTION
badge_name_GLO03=BADGENAME
badge_desc_GLO03=BADGEDESCRIPTION
badge_name_GLO04=BADGENAME
badge_desc_GLO04=BADGEDESCRIPTION
If this manages to fail it's most likely to be this;
Put in the base dir and call it externals.php. Make your external url in your client domain/swfs/externals.php?id=external_flash_texts
PHP:
<?php
$con = mysql_connect("host", "user", "pass");
mysql_select_db("zapdb", $con);
if(isset($_GET["id"])) { $id = $_GET["id"]; } else { exit; }
$context = array('http'=>array('max_redirects' => 99));
$contextm = stream_context_create($context);
if($id == "external_flash_texts") {
echo @file_get_contents("external_flash_texts.txt");
$query = mysql_query("SELECT * FROM external_texts");
while($ext = mysql_fetch_assoc($query)) {
echo $ext['skey'] . "=" . $ext['sval'] . chr(13);
}
}
else if($id == "external_variables") {
echo @file_get_contents("external_variables.txt");
}
?>
Thanks to Goodworks