201
Admin <? session_start(); include ("dbConn.inc.php"); ?> <html> <head> <title>RAN</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="ran.css" rel="stylesheet" type="text/css">
<script src="jsran.js" language="javascript"></script> </head>
<body topmargin="10" leftmargin="0" rightmargin="0" bottommargin="0" onLoad="updateJudul('Home');">
<center>
<table width="780" border="0" cellspacing="0" cellpadding="0" id="tableutama"> <tr> <td><? include ("atas.php") ?></td> </tr> </table></td> </tr> <tr>
<td><table width="780" height="28" border="0" cellpadding="0" cellspacing="0"> <tr>
<td width="199" height="28" align="left" valign="top"><? include ("kiri.php") ?></td> <td height="400" align="left" valign="top"><table width="580" border="0" cellpadding="0" cellspacing="0" class="isi">
<tr>
<td width="10"> </td>
<td height="50" align="left" valign="top" class="Label1">:: <span id="judul"></span> :: </td> </tr> <tr> <td width="10" height="1"></td> <td height="1" bgcolor="#DEC76F"></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> <? include("contents.inc.php") ?> </td> </tr> </table></td> </tr> </table></td> </tr> <? include ("bawah.php") ?> </table> </center> </body>
</html>
Banner
<? include ("dbConn.inc.php"); ?> <? include ("fungsi.php"); ?> <?
if (($_REQUEST["action"] == "e") && ($_REQUEST["do"] == "s")) { $sqlh = "update banner set ";
$sql = ""; if (basename($_FILES['filebanner']['name'][0]) != ""){ $sql = " header='" . $_FILES['filebanner']['name'][0] . "'"; } if (basename($_FILES['filebanner']['name'][1]) != ""){ if ($sql != "") $sql .= ","; $sql .= " companyinfo='" . $_FILES['filebanner']['name'][1] . "'"; }
for ($i=2; $i<=8; $i++){ $k = $i - 1; if (basename($_FILES['filebanner']['name'][$i]) != ""){ if ($sql != "") $sql .= ","; $sql .= " sponsor$k='" . $_FILES['filebanner']['name'][$i] . "' "; } if ($sql != "") $sql .= ","; $sql .= " link$k='" . $_REQUEST["linksponsor"][$k-1] . "' "; } $sql = $sqlh . $sql; //echo $sql; return; db_query($sql, $con); $msg = "Data sudah tersimpan";
//BEGIN UPLOAD FILE //if ($_FILES['fgbr']['name'] != ""){
//foreach ($_FILES['fgbr']['name'] as nm => d) { $uploaddir = 'images/banner/';
if ($_FILES['filebanner']['name'][0] != ""){
$uploadfile = $uploaddir . basename($_FILES['filebanner']['name'][0]); if (($_FILES["filebanner"]["type"][0] == "image/gif") ||
($_FILES["filebanner"]["type"][0] == "image/pjpeg") || ($_FILES["filebanner"]["type"][0] == "image/jpeg") && ($_FILES["filebanner"]["size"][0] < 500000))
{
if (move_uploaded_file($_FILES['filebanner']['tmp_name'][0], $uploadfile)) { $param="msg=uploadok"; chmod($uploadfile, 0604);
} else {
$param = "msg=uploadfail"; break; } }else{ $param="msg=uploadfail"; break; } } if (basename($_FILES['filebanner']['name'][1]) != ""){
if (($_FILES["filebanner"]["type"][1] == "image/gif") ||
($_FILES["filebanner"]["type"][1] == "image/pjpeg") || ($_FILES["filebanner"]["type"][1] == "image/jpeg") && ($_FILES["filebanner"]["size"][1] < 500000))
{
if (move_uploaded_file($_FILES['filebanner']['tmp_name'][1], $uploadfile)) { $param="msg=uploadok"; chmod($uploadfile, 0604);
} else {
$param = "msg=uploadfail"; break; }
}else{
$param="msg=uploadfail"; break; }
}
for ($i=2; $i<=8; $i++){
$uploadfile = $uploaddir . basename($_FILES['filebanner']['name'][$i]); if (basename($_FILES['filebanner']['name'][$i]) != ""){
if (($_FILES["filebanner"]["type"][$i] == "image/gif") ||
($_FILES["filebanner"]["type"][$i] == "image/pjpeg") || ($_FILES["filebanner"]["type"][$i] == "image/jpeg") && ($_FILES["filebanner"]["size"][$i] < 500000))
{
if (move_uploaded_file($_FILES['filebanner']['tmp_name'][$i], $uploadfile)) {
$param="msg=uploadok"; chmod($uploadfile, 0604); } else {
$param = "msg=uploadfail"; break; } }else{ $param="msg=uploadfail"; break; } } }
//END UPLOAD FILE
//echo $sql; return; $param = "msg=editok";
} else if ($_REQUEST["action"] == "d") { $sql = "delete from bank ";
$sql .= " where norek='" . $_REQUEST["id"] . "'"; db_query($sql, $con);
$msg = "Data sudah dihapus"; }
$sql = "select * from banner "; $rs = db_query($sql, $con);
?>
<link href="ran.css" rel="stylesheet" type="text/css"> <body id="tableutama">
<form action="banner.php" method="post" enctype="multipart/form-data" name="form1"> <input type="hidden" name="action" value="e">
<input type="hidden" name="do" value="s">
<table width="400" border="0" cellspacing="0" cellpadding="0" class="isi"> <tr>
<td width="120" class="garis"><span class="Label3">Banner</span></td> <td width="15" class="garis"> </td>
</tr> <tr> <td width="120" height="8"> </td> <td width="15" height="8"> </td> <td height="8"> </td> </tr> <tr> <td width="120"> Banner Header</td> <td width="15">:</td>
<td><? if (getRs($rs, 0) != "") { echo "<img src='./images/banner/" . getRs($rs, 0) . "' width=100'>"; } ?> <input name="filebanner[]" type="file" id="filebanner[]"></td>
</tr> <tr>
<td width="120"> Banner Company Info </td> <td width="15">:</td>
<td><? if (getRs($rs, 1) != "") { echo "<img src='./images/banner/" . getRs($rs, 1) . "' width=100'>"; } ?> <input name="filebanner[]" type="file" id="filebanner[]"></td>
</tr>
<tr>
<td width="120"> Banner Sponsor1</td> <td width="15">:</td>
<td><? if (getRs($rs, 2) != "") { echo "<img src='./images/banner/" . getRs($rs, 2) . "' width=100'>"; } ?> <input name="filebanner[]" type="file" id="filebanner[]"></td>
</tr>
<tr>
<td width="120"> Link Sponsor1</td> <td width="15">:</td>
<td><input name="linksponsor[]" type="text" id="linksponsor[]" value="<?= getRs($rs, 3) ?>"></td> </tr>
<tr>
<td width="120"> Banner Sponsor2</td> <td width="15">:</td>
<td><? if (getRs($rs, 4) != "") { echo "<img src='./images/banner/" . getRs($rs, 4) . "' width=100'>"; } ?> <input name="filebanner[]" type="file" id="filebanner[]"></td>
</tr>
<tr>
<td width="120"> Link Sponsor2</td> <td width="15">:</td>
<td><input name="linksponsor[]" type="text" id="linksponsor[]" value="<?= getRs($rs, 5) ?>"></td> </tr>
<tr>
<td width="120"> Banner Sponsor3</td> <td width="15">:</td>
<td><? if (getRs($rs, 6) != "") { echo "<img src='./images/banner/" . getRs($rs, 6) . "' width=100'>"; } ?> <input name="filebanner[]" type="file" id="filebanner[]"></td>
</tr>
<tr>
<td width="120"> Link Sponsor3</td> <td width="15">:</td>
<td><input name="linksponsor[]" type="text" id="linksponsor[]" value="<?= getRs($rs, 7) ?>"></td> </tr>
<tr>
<td width="120"> Banner Sponsor4</td> <td width="15">:</td>
<td><? if (getRs($rs, 8) != "") { echo "<img src='./images/banner/" . getRs($rs, 8) . "' width=100'>"; } ?> <input name="filebanner[]" type="file" id="filebanner[]"></td>
</tr>
<tr>
<td width="120"> Link Sponsor4</td> <td width="15">:</td>
<td><input name="linksponsor[]" type="text" id="linksponsor[]" value="<?= getRs($rs, 9) ?>"></td> </tr>
<tr>
<td width="120"> Banner Sponsor5</td> <td width="15">:</td>
<td><? if (getRs($rs, 10) != "") { echo "<img src='./images/banner/" . getRs($rs, 10) . "' width=100'>"; } ?> <input name="filebanner[]" type="file" id="filebanner[]"></td>
</tr>
<tr>
<td width="120"> Link Sponsor5</td> <td width="15">:</td>
<td><input name="linksponsor[]" type="text" id="linksponsor[]" value="<?= getRs($rs, 11) ?>"></td>
</tr>
<tr>
<td width="120"> Banner Sponsor6</td> <td width="15">:</td>
<td><? if (getRs($rs, 12) != "") { echo "<img src='./images/banner/" . getRs($rs, 12) . "' width=100'>"; } ?> <input name="filebanner[]" type="file" id="filebanner[]"></td>
</tr>
<tr>
<td width="120"> Link Sponsor6</td> <td width="15">:</td>
<td><input name="linksponsor[]" type="text" id="linksponsor[]" value="<?= getRs($rs, 13) ?>"></td>
</tr>
<tr>
<td width="120"> Banner Sponsor7</td> <td width="15">:</td>
<td><? if (getRs($rs, 14) != "") { echo "<img src='./images/banner/" . getRs($rs, 14) . "' width=100'>"; } ?> <input name="filebanner[]" type="file" id="filebanner[]"></td>
</tr>
<tr>
<td width="120"> Link Sponsor7</td> <td width="15">:</td>
<td><input name="linksponsor[]" type="text" id="linksponsor[]" value="<?= getRs($rs, 15) ?>"></td>
</tr> <tr>
<td width="120"> </td> <td width="15"> </td>
<td><input type="submit" name="Submit" value="Simpan"></td> </tr>
<tr>
<td width="120" height="8" class="garis"> </td> <td width="15" height="8" class="garis"> </td> <td height="8" class="garis"> </td>
</tr> </table> </form> </body>
Beliitem <? include ("dbConn.inc.php"); ?> <? include ("fungsi.php"); ?> <? session_start(); $action = $_REQUEST["action"]; if ($_REQUEST["action"] == "s"){
$sql = "insert into trbelirareitem (username, IDItem, transfer, konfirmasi, nick) "; $sql .= " values ('" . $_SESSION["sUsername"] . "', " . $_REQUEST["iditem"] . ", '" . $_REQUEST["transfer"] . "', '" . $_REQUEST["konfirmasi"] . "', '" . $_REQUEST["nick"] . "')"; db_query($sql, $con); Header("Location: http://".$host.$vname."index.php"); } ?> <html> <head>
<title>Ran Online Gold</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="frontcss.css" rel="stylesheet" type="text/css">
<script language="javascript" src="jsran.js"></script> <script>
function fconfirmasi() {
var d = confirm ("Anda yakin melakukan transaksi ini?"); if (d) return true; else return false; } </script> </head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#111100"> <center>
<table width="780" border="0" cellspacing="0" cellpadding="0"> <tr>
<td><? include ("atasmain.php") ?></td> </tr>
<tr>
<td><table width="780" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr valign="top">
<td width="150"><? include("bannerkiri.php") ?></td> <td width="5"> </td>
<td height="400"><table width="470" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr><td><? include ("mainbanner.php")?></td>
</tr> <tr> <td><br>
<span class="he1">Rare Item Shop</span> <? if ($_SESSION["sSignIn"] == false) { ?> Anda harus melakukan Login terlebih dahulu<br>
<?
include ("loginfrontalone.php"); } else {
if ($action == "buy"){ ?>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#111100" class="isi2">
<form name="form1" method="post" action="beliitem.php" onSubmit="return fconfirmasi();">
<input type="hidden" name="action" value="s"> <input type="hidden" name="iditem" value="<?= $_REQUEST["iditem"] ?>">
<tr>
<td width="10"> </td> <td width="1"></td>
<td width="120" height="20"><input name="kat" type="hidden" id="kat" value="user"></td>
<td width="200"> </td> <td width="5"> </td> <td width="1"></td> </tr> <tr> <td width="10"></td>
<td width="1" height="1" id="headtable"></td> <td height="18" colspan="2" align="left" class="ver12b" id="headtable">Form Pembelian Item </td>
<td width="5" align="left" id="headtable" class="ver12b"></td> <td width="1" id="headtable"></td> </tr> <tr> <td width="10" height="2"></td> <td height="2" id="headtable"></td> <td width="120" align="left" valign="top" id="inheadtable"></td>
<td width="200" height="2" align="left" valign="top" id="inheadtable"></td>
<td height="2" align="left" valign="top" id="inheadtable"></td> <td height="2" id="headtable"></td> </tr> <tr> <td> </td> <td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> </td>
<td width="200" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td> </tr> <tr> <td width="10"> </td> <td width="1" id="headtable"></td> <td width="120" align="left" valign="top" id="inheadtable"> Nick Character</td>
<td width="200" align="left" valign="top" id="inheadtable"><input name="nick" type="text" id="nick" value="<?= $_SESSION["sNick"]
?>"></td>
<td width="5" align="left" valign="top" id="inheadtable"> </td> <td width="1" id="headtable"></td> </tr> <tr> <td> </td> <td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> Transfer Via </td>
<td width="200" align="left" valign="top" id="inheadtable">
<select name="transfer" id="transfer" onChange="requestRekening(this.value)">
<option value="">--Pilih Bank--</option> <?
$sql = "Select * from bank";
$rs = db_query($sql,$con);
while (!$rs->EOF){ ?>
<option value="<?= getRs($rs, 0 ) ?>"><?= getRs($rs, 2 ) ?></option> <? $rs->MOVENEXT; } ?> </select><br> <span id="rek"></span> </td> <td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td> </tr> <tr> <td> </td> <td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> Konfirmasi Via </td>
<td width="200" align="left" valign="top" id="inheadtable"><select name="konfirmasi" id="konfirmasi">
<option value="SMS">SMS</option> <option value="EMAIL">EMAIL</option> </select></td> <td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td> </tr> <tr> <td> </td> <td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> </td>
<td width="200" align="left" valign="top" id="inheadtable"><input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset"></td> <td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td> </tr> <tr> <td> </td> <td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> </td>
<td width="200" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td> </tr> <tr> <td width="10"></td>
<td width="1" height="1" id="headtable"></td> <td width="120" id="headtable"></td>
<td width="200" height="1" id="headtable"></td> <td width="5" id="headtable"></td> <td width="1" id="headtable"></td> </tr> <tr> <td width="10" height="12"></td> <td width="1" height="12"></td> <td width="120"></td> <td width="200" height="12"></td> <td width="5" height="12"></td> <td width="1" height="12"></td> </tr></form> </table> <? } else { ?>
<table width="466" border="0" cellspacing="0" cellpadding="0"> <?
$sql = "select IDItem, NamaItem, ket, harga, Status "; $sql .= ", (select count(*) from trbelirareitem where IDItem=j.IDItem) as NumBooked";
$sql .= ", (select datediff(hh, min(tglpesan), { fn NOW()}) from trbelirareitem where iditem=j.iditem) as masaexpired";
$sql .= " , urlimage, tglterjual"; $sql .= " FROM trjualrareitem j "; $sql .= " where tglmulaijual <> ''";
$sql .= " and tglPembayaran is null";
//echo $sql; return;
$rs = db_query($sql, $con);
while (! $rs ->EOF ){
$numbooked = getRs($rs, 5);
$masaExpired = (getRs($rs,5) * 48) - getRs($rs, 6);
//echo $masaExpired; return;
$masaExpired = $masaExpired - ($n * 48);
$numbooked = ceil ($numbooked - (($numbooked * 48) - ((getRs($rs,5) * 48) - getRs($rs, 6)))/48);
//echo $n; return;
$masaExpired .= " jam";
// . " jam ";
$status = "Belum dipesan";
if ($numbooked > 0) {
$status = "Sudah dipesan";
}
//if(getRs($rs,4) == "1"){ if(getRs($rs,8) != ""){
$status = "Sudah terjual";
$numbooked = "-"; $masaExpired = "-"; } ?> <tr>
<td width="100" valign="top"><div align="center"><img src="images/<?= getRs($rs, 7) ?>" border="0" width="90"><br>
<a href="beliitem.php?action=buy&iditem=<?= getRs($rs,0)?>">BUY</a></div></td>
<td><table width="337" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr> <td width="177">Nama Barang </td> <td width="197"><?= getRs($rs, 1) ?></td> </tr> <tr> <td>Deskripsi</td> <td><?= getRs($rs, 2) ?></td> </tr> <tr> <td>Harga</td> <td><?= getRs($rs, 3) ?></td> </tr> <tr> <td>Number Booked </td> <td><?= $numbooked ?></td> </tr> <tr> <td>Status Pemesanan </td> <td><?= $status ?></td> </tr> <tr>
<td>Batas Kadaluarsa Pemesanan </td> <td><?= $masaExpired ?></td> </tr> <tr> <td> </td> <td> </td> </tr> </table></td> </tr>
<tr> <td width="100"><a href="#" onClick="javascript:history.go(-1);"><<back</a></td> <td> </td> </tr> <? $rs->MOVENEXT; } ?> </table> <? } } ?> </td> </tr> </table></td> <td width="5"> </td> <td width="150"><? include("bannerkanan.php") ?></td> </tr> </table></td> </tr> <tr>
<td align="center"><? include ("bawahmain.php") ?></td> </tr> </table> </center> </body> </html> Buygold <? include ("dbConn.inc.php"); ?> <? include ("fungsi.php"); ?> <? session_start(); if ($_REQUEST["action"] == "s"){
$sql = "insert into trbeligold (username, jmlgold, transfer, konfirmasi, nick) ";
$sql .= " values ('" . $_SESSION["sUsername"] . "', " . $_REQUEST["jumlah"] . ", '" . $_REQUEST["transfer"] . "', '" . $_REQUEST["konfirmasi"] . "', '" . $_REQUEST["nick"] . "')"; db_query($sql, $con); Header("Location: http://".$host.$vname."index.php"); } ?> <html> <head>
<title>Ran Online Gold</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="frontcss.css" rel="stylesheet" type="text/css">
<script language="javascript" src="jsran.js"></script> <script>
function fconfirmasi() {
var d = confirm ("Anda yakin melakukan transaksi ini?"); if (d)
return true;
else
} </script> </head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#111100"> <center>
<table width="780" border="0" cellspacing="0" cellpadding="0"> <tr>
<td><? include ("atasmain.php") ?></td> </tr>
<tr>
<td><table width="780" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr valign="top">
<td width="150"><? include("bannerkiri.php") ?></td> <td width="5"> </td>
<td height="400"><table width="470" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr><td><? include ("mainbanner.php")?></td>
</tr> <tr> <td><br>
<? if ($_SESSION["sSignIn"] == false) { ?> Anda harus melakukan Login terlebih dahulu<br>
<?
include ("loginfrontalone.php"); } else { ?>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#111100" class="isi2">
<form name="form1" method="post" action="buygold.php" onSubmit="return fconfirmasi();">
<input type="hidden" name="action" value="s"> <tr>
<td width="10"> </td> <td width="1"></td>
<td width="120" height="20"><input name="kat" type="hidden" id="kat" value="user"></td> <td width="200"> </td> <td width="5"> </td> <td width="1"></td> </tr> <tr> <td width="10"></td>
<td width="1" height="1" id="headtable"></td>
<td height="18" colspan="2" align="left" class="ver12b" id="headtable">Form Pembelian Gold </td>
<td width="5" align="left" id="headtable" class="ver12b"></td> <td width="1" id="headtable"></td>
</tr> <tr>
<td width="10" height="2"></td> <td height="2" id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"></td>
<td width="200" height="2" align="left" valign="top" id="inheadtable"></td> <td height="2" align="left" valign="top" id="inheadtable"></td>
<td height="2" id="headtable"></td> </tr>
<tr>
<td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> </td> <td width="200" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td>
<td id="headtable"></td> </tr>
<tr>
<td width="10"> </td> <td width="1" id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> Nick Character</td>
<td width="200" align="left" valign="top" id="inheadtable"><input name="nick" type="text" id="nick" value="<?= $_SESSION["sNick"] ?>"></td>
<td width="5" align="left" valign="top" id="inheadtable"> </td> <td width="1" id="headtable"></td>
</tr> <tr>
<td> </td> <td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> Jumlah</td> <td width="200" align="left" valign="top" id="inheadtable">
<select name="jumlah" id="jumlah" onChange="requestHargaGold(this.value)">
<option value="">--Pilih Jumlah Gold--</option> <?
$sql = "Select * from hargagold";
$rs = db_query($sql,$con);
while (!$rs->EOF){ ?>
<option value="<?= getRs($rs, 0 ) ?>"><?= getRs($rs, 0) ?></option> <? $rs->MOVENEXT; } ?> </select><span id="gold"></span> </td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr>
<tr> <td> </td>
<td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> Transfer Via </td>
<td width="200" align="left" valign="top" id="inheadtable">
<select name="transfer" id="transfer" onChange="requestRekening(this.value)">
<option value="">--Pilih Bank--</option> <?
$sql = "Select * from bank";
$rs = db_query($sql,$con);
while (!$rs->EOF){ ?>
<option value="<?= getRs($rs, 0 ) ?>"><?= getRs($rs, 2 ) ?></option> <?
} ?> </select><br>
<span id="rek"></span> </td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr>
<tr> <td> </td>
<td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> Konfirmasi Via </td>
<td width="200" align="left" valign="top" id="inheadtable"><select name="konfirmasi" id="konfirmasi">
<option value="SMS">SMS</option> <option value="EMAIL">EMAIL</option> </select></td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td> </td> <td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> </td>
<td width="200" align="left" valign="top" id="inheadtable"><input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset"></td> <td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td> </td> <td id="headtable"></td>
<td width="120" align="left" valign="top" id="inheadtable"> </td> <td width="200" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td>
<td id="headtable"></td> </tr>
<tr>
<td width="10"></td>
<td width="1" height="1" id="headtable"></td> <td width="120" id="headtable"></td>
<td width="200" height="1" id="headtable"></td> <td width="5" id="headtable"></td> <td width="1" id="headtable"></td> </tr> <tr> <td width="10" height="12"></td> <td width="1" height="12"></td> <td width="120"></td> <td width="200" height="12"></td> <td width="5" height="12"></td> <td width="1" height="12"></td> </tr></form> </table>
<? } ?> </td> </tr> </table></td> <td width="5"> </td> <td width="150"><? include("bannerkanan.php") ?></td> </tr> </table></td> </tr> <tr>
<td align="center"><? include ("bawahmain.php") ?></td> </tr> </table> </center> </body> </html> CekLogin <? include ("dbConn.inc.php") ?> <? if ($_REQUEST["kat"] == "user") {
$sql = "select username, nama, passwd, nick from member";
$sql .= " where Username='". $_REQUEST["username"] . "' and [passwd] ='". $_REQUEST["passwd"] . "'";
$sql .= " and approved='1'"; if (! $rs = db_query($sql, $con)){
$errMsg = "Query Error"; return 0; }else{ if (!$rs->EOF){ session_start(); if (getRs($rs,2) == $_REQUEST["passwd"]){ $_SESSION["sUsername"] = getRs($rs,0); $_SESSION["sNick"] = getRs($rs,3); $_SESSION["sNama"] = getRs($rs,1); $_SESSION["sSignIn"] = true; Header("Location: http://".$host.$vname."index.php?msg=loginok&t=" . date('mns')); } }else{ Header("Location: http://".$host.$vname."index.php?ErrLogin=1"); } } } else {
$sql = "select username, nama, passwd from admin";
$sql .= " where Username='". $_REQUEST["username"] . "' and [passwd] ='". $_REQUEST["passwd"] . "'";
if (! $rs = db_query($sql, $con)){
$errMsg = "Query Error"; return 0; }else{ if (!$rs->EOF){ session_start(); if (getRs($rs,2) == $_REQUEST["passwd"]){ $_SESSION["sUsername"] = getRs($rs,0); $_SESSION["sNama"] = getRs($rs,1);
$_SESSION["sSignInAdmin"] = true; Header("Location: http://".$host.$vname."admin.php?msg=loginok&t=" . date('mns')); } }else{ Header("Location: http://".$host.$vname."admin.php?ErrLogin=1"); } } } ?> EditProfile <? include ("dbConn.inc.php"); ?> <? include ("fungsi.php"); ?> <? session_start(); header("Cache-Control: no-cache"); header("Pragma: no-cache"); if ($_REQUEST["action"] == "s") {
$sql = "update member set email='" . $_REQUEST["email"] . "', alamat='" . $_REQUEST["alamat"] . "', hp='" . $_REQUEST["hp"] . "'" ;
$sql .= " where username='" . $_REQUEST["username"] . "'"; $rs = db_query($sql, $con);
$msg = "Data Member sudah terupdate"; }
?> <html> <head>
<title>Ran Online Gold</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="frontcss.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#111100"> <center>
<table width="780" border="0" cellspacing="0" cellpadding="0"> <tr>
<td><? include ("atasmain.php") ?></td> </tr>
<tr>
<td><table width="780" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr valign="top">
<td width="150"><? include("bannerkiri.php") ?></td> <td width="5"> </td>
<td height="400"><table width="470" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr><td><? include ("mainbanner.php")?></td> </tr> <tr> <td><br> <? if ($_SESSION["sSignIn"] == true) { ?> <? echo $msg . "<br>"; ?>
<form name="form1" method="post" action="editprofile.php"> <tr>
<td width="10"> </td> <td width="1"></td>
<td width="100" height="20"><input name="action" type="hidden" id="action" value="s"></td> <td width="180"> </td> <td width="5"> </td> <td width="1"></td> </tr> <tr> <td width="10"></td>
<td width="1" height="1" id="headtable"></td>
<td height="18" colspan="2" align="left" class="ver12b" id="headtable"> Profile Member</td>
<td width="5" align="left" id="headtable" class="ver12b"></td> <td width="1" id="headtable"></td>
</tr> <tr>
<td width="10" height="2"></td> <td height="2" id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"></td>
<td width="180" height="2" align="left" valign="top" id="inheadtable"></td> <td height="2" align="left" valign="top" id="inheadtable"></td>
<td height="2" id="headtable"></td> </tr>
<tr>
<td> </td> <td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> </td> <td width="180" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td>
<td id="headtable"></td> </tr>
<tr>
<td width="10"> </td> <td width="1" id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> Username</td> <td width="180" align="left" valign="top" id="inheadtable"><input name="username" type="text" id="username" value="<?= $_SESSION["sUsername"] ?>" readonly="true"></td> <td width="5" align="left" valign="top" id="inheadtable"> </td>
<td width="1" id="headtable"></td> </tr>
<tr> <td> </td>
<td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> E-mail</td> <td width="180" align="left" valign="top" id="inheadtable"><input name="email" type="text" id="email" size="40" <?= $isReadOnlyD ?>></td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr>
<tr> <td> </td>
<td id="headtable"></td>
<td width="180" align="left" valign="top" id="inheadtable"><textarea name="alamat" cols="30" rows="4" id="alamat" <?= $isReadOnlyD ?>></textarea></td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr>
<tr> <td> </td>
<td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> No. HP </td> <td width="180" align="left" valign="top" id="inheadtable"><input name="hp" type="text" id="hp" size="30" <?= $isReadOnlyD ?>></td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td> </td> <td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> </td>
<td width="180" align="left" valign="top" id="inheadtable"><input type="submit" name="Submit" value="Submit"> </td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td> </td> <td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> </td> <td width="180" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td>
<td id="headtable"></td> </tr>
<tr>
<td width="10"></td>
<td width="1" height="1" id="headtable"></td> <td width="100" id="headtable"></td>
<td width="180" height="1" id="headtable"></td> <td width="5" id="headtable"></td> <td width="1" id="headtable"></td> </tr> <tr> <td width="10" height="12"></td> <td width="1" height="12"></td> <td width="100"></td> <td width="180" height="12"></td> <td width="5" height="12"></td> <td width="1" height="12"></td> </tr></form> </table> <? } ?></td> </tr> </table></td> <td width="5"> </td> <td width="150"><? include("bannerkanan.php") ?></td> </tr> </table></td> </tr>
<tr>
<td align="center"><? include ("bawahmain.php") ?></td> </tr> </table> </center> </body> </html> ForgetPassword <? include ("dbConn.inc.php"); ?> <? include ("fungsi.php"); ?> <? session_start(); header("Cache-Control: no-cache"); header("Pragma: no-cache"); if ($_REQUEST["action"] == "s") {
$sql = "select passwd from member where username='" . $_REQUEST["username"] . "' and email='" . $_REQUEST["email"] . "'";
$rs = db_query($sql, $con); if ($rs->EOF){
$msg = "Email Error"; }else{
$msg = "Password has been sent to your email."; $pesan = "Password anda : " . getRs($rs, 0);
//mail ($_REQUEST["email"], "Change Password", $pesan); }
} ?> <html> <head>
<title>Ran Online Gold</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="frontcss.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#111100"> <center>
<table width="780" border="0" cellspacing="0" cellpadding="0"> <tr>
<td><? include ("atasmain.php") ?></td> </tr>
<tr>
<td><table width="780" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr valign="top">
<td width="150"><? include("bannerkiri.php") ?></td> <td width="5"> </td>
<td height="400"><table width="470" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr><td><? include ("mainbanner.php")?></td> </tr> <tr> <td><br> <? if ($_SESSION["sSignIn"] == false) { ?> <? echo $msg . "<br>";
?>
<table border="0" cellpadding="0" cellspacing="0" class="isi2">
<form name="form1" method="post" action="forgetpasswd.php"> <tr>
<td width="10"> </td> <td width="1"></td>
<td width="100" height="20"><input name="action" type="hidden" id="action" value="s"></td> <td width="180"> </td> <td width="5"> </td> <td width="1"></td> </tr> <tr> <td width="10"></td>
<td width="1" height="1" id="headtable"></td>
<td height="18" colspan="2" align="left" class="ver12b" id="headtable"> Forget Password </td>
<td width="5" align="left" id="headtable" class="ver12b"></td> <td width="1" id="headtable"></td>
</tr> <tr>
<td width="10" height="2"></td> <td height="2" id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"></td>
<td width="150" height="2" align="left" valign="top" id="inheadtable"></td> <td height="2" align="left" valign="top" id="inheadtable"></td>
<td height="2" id="headtable"></td> </tr>
<tr>
<td> </td> <td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> </td> <td width="180" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td>
<td id="headtable"></td> </tr>
<tr>
<td width="10"> </td> <td width="1" id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> Username</td> <td width="180" align="left" valign="top" id="inheadtable"><input name="username" type="text" id="username" ></td>
<td width="5" align="left" valign="top" id="inheadtable"> </td> <td width="1" id="headtable"></td>
</tr> <tr>
<td> </td> <td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> E-mail</td> <td width="180" align="left" valign="top" id="inheadtable"><input name="email" type="text" id="email" size="40"></td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> </td>
<td width="180" align="left" valign="top" id="inheadtable"><input type="submit" name="Submit" value="Submit"> </td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td> </td> <td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> </td> <td width="180" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td>
<td id="headtable"></td> </tr>
<tr>
<td width="10"></td>
<td width="1" height="1" id="headtable"></td> <td width="100" id="headtable"></td>
<td width="180" height="1" id="headtable"></td> <td width="5" id="headtable"></td> <td width="1" id="headtable"></td> </tr> <tr> <td width="10" height="12"></td> <td width="1" height="12"></td> <td width="100"></td> <td width="180" height="12"></td> <td width="5" height="12"></td> <td width="1" height="12"></td> </tr></form> </table> <? } ?></td> </tr> </table></td> <td width="5"> </td> <td width="150"><? include("bannerkanan.php") ?></td> </tr> </table></td> </tr> <tr>
<td align="center"><? include ("bawahmain.php") ?></td> </tr> </table> </center> </body> </html> Hargagold <? include ("dbConn.inc.php"); ?> <? include ("fungsi.php"); ?> <?
if (($_REQUEST["action"] == "a") && ($_REQUEST["do"] == "s")) {
$sql = "insert into hargagold(gold, harga) values (" . $_REQUEST["gold"] . ", " . $_REQUEST["harga"] . ")";
$msg = "Data sudah tersimpan";
} else if (($_REQUEST["action"] == "e") && ($_REQUEST["do"] == "s")) { $sql = "update hargagold set harga=" . $_REQUEST["harga"]; $sql .= " where gold=" . $_REQUEST["gold"] ;
db_query($sql, $con);
$msg = "Data sudah tersimpan";
} else if (($_REQUEST["action"] == "d") && ($_REQUEST["do"] == "s")){ $sql = "delete from hargagold ";
$sql .= " where gold=" . $_REQUEST["gold"]; db_query($sql, $con);
$msg = "Data sudah dihapus"; }
?>
<link href="ran.css" rel="stylesheet" type="text/css"> <body id="tableutama">
<? if (($_REQUEST["action"] == "a") || ($_REQUEST["action"] == "e") || ($_REQUEST["action"] == "d")){
echo "<span class='msg'>" . $msg . "</span>"; if ($_REQUEST["action"] != "a"){
$sql = "select * from hargagold where gold=" . $_REQUEST["gold"]; $rs = db_query($sql, $con); if (($_REQUEST["action"] == "e")){ $isReadOnly= " readonly=true"; } if ($_REQUEST["action"] == "d"){ $isReadOnlyD= " readonly=true"; $isReadOnly= " readonly=true"; } } ?>
<form name="form1" method="post" action="hargagold.php">
<input type="hidden" name="action" value="<?= $_REQUEST["action"] ?>"> <input type="hidden" name="do" value="s">
<table width="400" border="0" cellspacing="0" cellpadding="0" class="isi"> <tr>
<td colspan="3" class="garis"><span class="Label3">Update Harga Gold </span></td> </tr> <tr> <td width="120" height="8"> </td> <td width="15" height="8"> </td> <td height="8"> </td> </tr> <tr> <td width="120"> Jumlah Gold</td> <td width="15">:</td>
<td><input name="gold" type="text" id="gold" value="<?= getRs($rs, 0) ?>" size="25" <?= $isReadOnly ?>></td>
</tr> <tr>
<td width="120"> Harga</td> <td width="15">:</td>
<td><input name="harga" type="text" id="harga" value="<?= getRs($rs, 1) ?>" size="30" <?= $isReadOnlyD ?>></td>
<tr>
<td width="120"> </td> <td width="15"> </td> <td>
<? if ($_REQUEST["action"] == "d") { ?>
<input type="submit" name="Submit" value="Delete"> <? } else {?>
<input type="submit" name="Submit" value="Simpan"> <? } ?>
</td> </tr> <tr>
<td width="120" height="8" class="garis"> </td> <td width="15" height="8" class="garis"> </td> <td height="8" class="garis"> </td>
</tr> </table> </form> <? } else { ?>
<a href="hargagold.php?action=a">Add New Record </a>
<table width="400" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr>
<td width="10"> </td>
<td width="160" align="center" class="garis">Jumlah Gold</td> <td align="center" class="garis">Harga</td>
<td width="50" align="center" class="garis">Edit</td> <td width="50" align="center" class="garis">Del</td> </tr>
<?
$sql = "select * from hargagold order by gold";
$rs = db_query($sql, $con); while (!$rs->EOF){ ?> <tr> <td width="10"> </td> <td width="160"> <?= getRs($rs, 0) ?></td> <td> <?= getRs($rs, 1) ?></td>
<td width="50" align="center"><a href="hargagold.php?action=e&gold=<?= getRs($rs, 0) ?>">edit</a></td>
<td width="50" align="center"><a href="hargagold.php?action=d&gold=<?= getRs($rs, 0) ?>">del</a></td> </tr> <? $rs->MOVENEXT; } ?> <tr height="1"> <td width="10"> </td> <td width="160" class="garis"> </td> <td class="garis"> </td> <td width="50" class="garis"> </td> <td width="50" class="garis"> </td> </tr> </table> <? } ?> </body>
Home
<link href="ran.css" rel="stylesheet" type="text/css"> <body id="tableutama">
Home pphp uth... asfa </body> Index <? include ("dbConn.inc.php"); ?> <? include ("fungsi.php"); ?> <? session_start(); header("Cache-Control: no-cache"); header("Pragma: no-cache"); ?> <html> <head>
<title>Ran Online Gold</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="frontcss.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" bgcolor="#111100"> <center>
<table width="780" border="0" cellspacing="0" cellpadding="0"> <tr>
<td><? include ("atasmain.php") ?></td> </tr>
<tr>
<td><table width="780" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr valign="top">
<td width="150"><? include("bannerkiri.php") ?></td> <td width="5"> </td>
<td height="400"><table width="470" border="0" cellpadding="0" cellspacing="0" class="isi"> <tr><td><? include ("mainbanner.php")?></td>
</tr> <tr> <td>
<? if ($_SESSION["sSignIn"] == true) { ?> <span class="he1">Selamat Datang di Ran Online Gold</span>
<p>Mencari gold di game Ran Online tidaklah mudah, tapi sekarang anda dapat membeli gold, menaikkan level, membeli rare item dengan melakukan pemesanan melalui website ini.<br>
Untuk apa mencari resiko dengan membeli gold dan rare item dari sumber yang tidak jelas?<br>
Untuk apa mencari resiko dengan mempercayakan character anda kepada joki yang tidak anda kenal?<br>
Ran Online Gold menyediakan pemecahan dari semua masalah itu.<br> Selamat bermain dan jadilah juara !!<br>
<? } ?>
<? if ($_SESSION["sSignIn"] == false) {
if ($_REQUEST["ErrLogin"]=="1"){
echo ("<span class='errmsg'>Username dan Password salah</span>");
} ?>
</p>
<table border="0" cellpadding="0" cellspacing="0" class="isi2">
<form name="form1" method="post" action="cekLogin.php"> <tr>
<td width="10"> </td> <td width="1"></td>
<td width="100" height="20"><input name="kat" type="hidden" id="kat" value="user"></td> <td width="150"> </td> <td width="5"> </td> <td width="1"></td> </tr> <tr> <td width="10"></td>
<td width="1" height="1" id="headtable"></td>
<td width="100" height="18" align="left" class="ver12b" id="headtable">Login</td> <td width="150" height="1" id="headtable" class="ver12b"> </td>
<td width="5" align="left" id="headtable" class="ver12b"></td> <td width="1" id="headtable"></td>
</tr> <tr>
<td width="10" height="2"></td> <td height="2" id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"></td>
<td width="150" height="2" align="left" valign="top" id="inheadtable"></td> <td height="2" align="left" valign="top" id="inheadtable"></td>
<td height="2" id="headtable"></td> </tr>
<tr>
<td> </td> <td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td width="10"> </td> <td width="1" id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> Username</td> <td width="150" align="left" valign="top" id="inheadtable"><input name="username" type="text" id="username"></td>
<td width="5" align="left" valign="top" id="inheadtable"> </td> <td width="1" id="headtable"></td>
</tr> <tr>
<td> </td> <td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> Password</td> <td align="left" valign="top" id="inheadtable"><input name="passwd" type="password" id="passwd"></td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> </td>
<td align="left" valign="top" id="inheadtable"><input type="submit" name="Submit" value="Login">
</td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td> </td> <td id="headtable"></td>
<td width="100" align="left" valign="top" id="inheadtable"> </td> <td align="left" valign="top" id="inheadtable"> </td>
<td align="left" valign="top" id="inheadtable"> </td> <td id="headtable"></td>
</tr> <tr>
<td width="10"></td>
<td width="1" height="1" id="headtable"></td> <td width="100" id="headtable"></td>
<td width="150" height="1" id="headtable"></td> <td width="5" id="headtable"></td> <td width="1" id="headtable"></td> </tr> <tr> <td width="10" height="12"></td> <td width="1" height="12"></td> <td width="100"></td> <td width="150" height="12"></td> <td width="5" height="12"></td> <td width="1" height="12"></td> </tr></form> </table> <? } ?></td> </tr> </table></td> <td width="5"> </td> <td width="150"><? include("bannerkanan.php") ?></td> </tr> </table></td> </tr> <tr>
<td align="center"><? include ("bawahmain.php") ?></td> </tr> </table> </center> </body> </html> Inforareitem <? include ("dbConn.inc.php"); ?> <? include ("fungsi.php"); ?>
<link href="ran.css" rel="stylesheet" type="text/css"> <body id="tableutama">
<? if ( ($_REQUEST["action"] == "v")){ $iditem = $_REQUEST["iditem"];