<?php
include("inc/func.inc.php");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
if(!db()){
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getdberror();
echo "</body>";
echo "</html>";
exit();
}
$show = $_GET["show"];
$hits = $_GET["hits"];
$page = $_GET["page"];
$who = $_GET["who"];
$uid = getuid_hits($hits);
$uip = getip();
$ubr = $_SERVER['HTTP_USER_AGENT'];
cleardata();
addvisitor();
if(isipbanned($uip,$ubr)){
if(!isshield(getuid_hits($hits))){
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getipbanned($uip, $ubr);
echo "</body>";
echo "</html>";
exit();
}
}
if(($show != "") && ($show != "terms")){
$uid = getuid_hits($hits);
if((islogged($hits)==false)||($uid==0)){
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getsesexplog();
echo "</body>";
echo "</html>";
exit();
}
}
if((isbanned($uid))&&($uid != '0')){
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getbanned($uid);
echo "</body>";
echo "</html>";
exit();
}
if($show=="main")
{
addonline(getuid_hits($hits),"Carta Radio - Menu","");
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Carta Radio - Menu\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Carta Radio</b>";
echo "<div class=\"box_sub\" align=\"left\">";
echo "• <a href=\"radio.php?show=view&hits=$hits&radio=1\">Hot FM</a><br/>";
echo "• <a href=\"radio.php?show=view&hits=$hits&radio=2\">Era FM</a><br/>";
echo "• <a href=\"radio.php?show=view&hits=$hits&radio=3\">Sinar FM</a>";
echo "</div>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
else if($show=="view")
{
addonline(getuid_hits($hits),"Carta Radio - View","");
$radio = $_GET["radio"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Carta Radio - View\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Carta Top 10</b>";
echo "<div class=\"box_sub\" align=\"left\">";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='1'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "1. $name $edit<br/><br/>";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='2'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "2. $name $edit<br/><br/>";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='3'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "3. $name $edit<br/><br/>";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='4'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "4. $name $edit<br/><br/>";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='5'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "5. $name $edit<br/><br/>";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='6'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "6. $name $edit<br/><br/>";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='7'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "7. $name $edit<br/><br/>";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='8'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "8. $name $edit<br/><br/>";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='9'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "9. $name $edit<br/><br/>";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, id FROM mx_radio WHERE radio='".$radio."' AND no='10'"));
$lname = $radion[1];
$song = $radion[0];
if(isadmin(getuid_hits($hits)))
{
$edit = "<a href=\"radio.php?show=edit&hits=$hits&id=$radion[2]\">[e]</a>";
}
if($song=="")
{
$name = "No Song Yet";
}else{
if($lname=="")
{
$name = "$song";
}else{
$name = "<a href=\"$lname\">$song</a>";
}
}
echo "10. $name $edit";
echo "</div>";
echo "<a href=\"radio.php?show=main&hits=$hits\">Carta Radio</a><br/>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
else if($show=="edit")
{
addonline(getuid_hits($hits),"Carta Radio - Update","");
$id = $_GET["id"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"Carta Radio - Update\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Update Songs</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(!isadmin(getuid_hits($hits)))
{
echo "You Not An Admin!!";
}else{
echo "<onevent type=\"onenterforward\">";
$radion = mysql_fetch_array(mysql_query("SELECT name, link, radio, no FROM mx_radio WHERE id='".$id."'"));
$lname = $radion[1];
$song = $radion[0];
echo "<refresh>
<setvar name=\"lname\" value=\"$lname\"/>
<setvar name=\"song\" value=\"$song\"/>
";
echo "</refresh></onevent>";
echo "<form action=\"radio.php?show=update&hits=$hits&id=$id\" method=\"post\">";
echo "Song Name<br/><input name=\"song\" value=\"$song\" maxlength=\"100\"/><br/>";
echo "*Upload first song. Then use file link<br/>";
echo "Download Url<br/><input name=\"lname\" value=\"$lname\" maxlength=\"100\"/><br/>";
echo "<input type=\"submit\" value=\"Update\"/></form>";
}
echo "</div>";
echo "<a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
else if($show=="update")
{
addonline(getuid_hits($hits),"Carta Radio - Update","");
$id = $_GET["id"];
$song = $_POST["song"];
$lname = $_POST["lname"];
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
///echo "<card=\"main\" title=\"MaxHits.CO.CC\">";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>Update Songs</b>";
echo "<div class=\"box_sub\" align=\"center\">";
if(!isadmin(getuid_hits($hits)))
{
echo "You Not An Admin!!";
}else{
$res = mysql_query("UPDATE mx_radio SET name='".$song."', link='".$lname."' WHERE id='".$id."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>Updated successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Error updating";
}
}
echo "</div><a href=\"index.php?show=main&hits=$hits\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a></div>";
include("wapv.php");
echo "</body>";
}
else{
echo "<head>";
echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getpagerror();
echo "</body>";
}
?>
</html>