Skip to content

Commit

Permalink
Removed hardcoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
yamikaitou committed Jun 28, 2011
1 parent 88e38a3 commit 94edf36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amxmodx.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

sqlite_exec($sql, "INSERT INTO compile VALUES('$rand', 'amxx', '{$_POST['ver']}');");

$curl = curl_init("http://compiler.supercentral.net/compile.php?id=$rand");
$curl = curl_init("http://".$_SERVER["SERVER_NAME"].pathinfo($_SERVER["REQUEST_URI"], PATHINFO_DIRNAME)."/compile.php?id=$rand");
curl_exec($curl);
curl_close($curl);

Expand All @@ -67,7 +67,7 @@
{
?>
Use the link below to download your plugin. It will expire after 1 hour<br>
<a href="http://compiler.supercentral.net/download.php?id=<?php echo $rand; ?>">http://compiler.supercentral.net/download.php?id=<?php echo $rand; ?></a><br>
<a href="http://<?php echo $_SERVER["SERVER_NAME"].pathinfo($_SERVER["REQUEST_URI"], PATHINFO_DIRNAME); ?>/download.php?id=<?php echo $rand; ?>">http://<?php echo $_SERVER["SERVER_NAME"].pathinfo($_SERVER["REQUEST_URI"], PATHINFO_DIRNAME); ?>/download.php?id=<?php echo $rand; ?></a><br>
<br>
The compiler's output is shown below for reference.<br>
<br>
Expand Down

0 comments on commit 94edf36

Please sign in to comment.