I'm working on a little script (habbo online loader creator) and i'm pretty mutch done except for one thing.
This is my page view.php
PHP Code:
$hname = $_GET['hotelname'];
$ip = $_GET['ip'];
$port = $_GET['port'];
$texts = $_GET['texts'];
$vars = $_GET['vars'];
$dcr = $_GET['dcr'];
$loader = $_GET['loader'];
$back = "index.php";
// HERE THE HNAME CONTROLS STARTS!
if (
!$hname || empty($hname)
)
{
echo "<font class=text>The <font class=error>hotel name</font> is empty!<br>";
}
// HERE THE HNAME CONTROLS END
// HERE THE IP CONTROLS STARTS!
if (
!$ip || empty($ip)
)
{
echo "<font class=text>The <font class=error>IP</font> is empty!<br>";
}
// HERE THE IP CONTROLS ENDS!
// HERE THE PORT CONTROLS STARTS!
if (
!$port || empty($port)
)
{
echo "<font class=text>The <font class=error>port</font> is empty!<br>
";
}
// HERE THE PORT CONTROLS ENDS!
// HERE THE TEXTS CONTROLS STARTS!
if (
!$texts || empty($texts)
)
{
echo "<font class=text>The <font class=error>texts</font> url is empty!<br>";
}
// HERE THE TEXTS CONTROLS END
// HERE THE VARS CONTROLS STARTS!
if (
!$vars || empty($vars)
)
{
echo "<font class=text>The <font class=error>vars url</font> is empty!<br>";
}
// HERE THE VARS CONTROLS END
// HERE THE DCR CONTROLS STARTS!
if (
!$dcr || empty($dcr)
)
{
echo "<font class=text>The <font class=error>DCR url</font> is empty!<br>";
}
// HERE THE DCR CONTROLS END
else {
// If none of the above statements is correct.
echo "<font class=text>And your loader is done, all you have to do i copy and paste!<br><br>";
echo "<font class=text2>Code:</font>";
echo "<table class=code width=650 valign=top>
<td class=code td valign=top>
<font class=text2>
<br><html>
<br><head>
<br><title><font class=info>$hname</font></title>
<br><base target=_blank>
<br></head>
<br><body bgcolor=#000000 topmargin=0 link=#FFFFFF vlink=#FFFFFF alink=#FFFFFF>
<br><div align=center>
<br><param name=src value=>
<br><param name=swRemote value=swSaveEnabled=true swVolume=true swRestart=false swPausePlay=false swFastForward=false swTitle=<font class=info>$hname</font> swContextMenu=true>
<br><param name=swStretchStyle value=none>
<br><param name=swText value=>
<br><param name=bgColor value=#000000>
<br><param name=sw6 value=external.texts.txt=<font class=info>$texts</font>>
<br><param name=sw2 value=connection.info.host=<font class=info>$ip</font>;connection.info.port=<font class=info>$port</font>>
<br><param name=sw4 value=connection.mus.host=;connection.mus.port=30 001>
<br><param name=sw3 value=client.reload.url=<font class=info>$loader</font>>
<br><param name=sw1 value=site.url=<font class=info>$loader</font>;url.prefix=<font class=info>$hname</font>>
<br><param name=sw5 value=external.variables.txt=<font class=info>$vars</font>>
<br><embed src=<font class=info>$dcr</font> bgColor=#000000 width=720 height=540 align=middle swRemote=swSaveEnabled=true swVolume=true swRestart=false swPausePlay=false swFastForward=false swTitle=massivewake swContextMenu=true swStretchStyle=none swText= type=application/x-director pluginspage=http://www.macromedia.com/shockwave/download/
<br>sw6=external.texts.txt=<font class=info>$texts</font>
<br>sw2=connection.info.host=<font class=info>$ip</font>;connection.info.port=<font class=info>$port</font>
<br>sw4=connection.mus.host=;connection.mus.port=30001
<br>sw3=client.reload.url=<font class=info>$dcr</font>
<br>sw1=site.url=<font class=info>$loader</font>;url.prefix=<font class=info>$hname</font>
<br>sw5=external.variables.txt=<font class=info>$vars</font>>
<br></div>
<br></body>
<br></html>
</td>
</table>";
echo "<br><font class=text>(All your info is marked <font class=info>red</font>!)</font>.";
echo "<br><br><a href=index.php><font class=text>Make a new loader (back to index)</a>.";
}
?>
And i wan't to add another if before the else, but i wan't it to show only if one of the above statements are true, (the if will containt a back button).
But i have no idea how to do that. Any help from you guys?