Uhm, because you can steal Ipadresses very easy from someones loader. I thought it would be nice to protect against that.
Some more info:
- You can't open a PHP file if you don't actually have it yourself.
- You are able to protect everything now, from your ip to your dcrs!
Well, it's very simple actually:
1) Open Notepad
2) Put this in:
Code:
<?php
$ip="Your IP here (I prefer masked ips. no-ip.com. If you don't know how? Google it!)";
$infoport="Your gameport here";
$musport="Your musport here"; // Default: 30001
/*
$ExternalText="The link to your external texts";
$Variables="The link to your variables";
$Dcrs="The link to your dcrs";
*/
?>
3) Safe this as config.php or whatever. It doesn't matter. And put it in the same folder as your loader.
NOTE: If you also want to protect your externals and such. Remove the /* and */ !
4) Now, open up your loader. Put this at the top:
Code:
<?php
include("config.php");
?>
5) Go to the part of connection.info.host=
Where you normally put your ip, put this: <?php echo $ip ?>
And where you normally put your port, do this: <?php echo $infoport ?>
And so on
I think it's pretty easy and it speaks for itself. Questions? Post them here!
~Maik/Mambo (BTW, if it has been released already, idc!)
PS: There might be one little stupid fault in it. But i'm no webcoder..
Credits:
100% me