- Joined
- Jan 3, 2008
- Messages
- 182
- Reaction score
- 179
Hair Change
Bright pt Reset
Just Change the red in the line in hairchange.php
<a href=http://xx.xx.xx.xx/ran/home.php?page=brightpt><img src=img/stat.jpg border=0></a>
Cost per Hairstyle..Find this line in hairchange.php
$User = $_COOKIE['user'];
$Hair = $_POST['expoint'];
$Total = 2000000; //how much hair change is worth.
$CNum = $_POST['kode'];
If you have any question just post it here^^
PHP:
<?php
//
echopage('header', 'Hair Changer');
$CNum = $_POST['kode'];
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER_NUMBER,$CNum));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$Gold = ($ChaMoney);
$CNum = ($ChaNum);
}
echo '
<script>
function checkform() {
}
</script>
';
$User = $_COOKIE['user'];
$Hair = $_POST['expoint'];
$Total = 2000000;
$CNum = $_POST['kode'];
if($Gold >= $Total) {
if($_POST['hair']=='Tukar') {
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
mssql_query(sprintf(GOLD_DECREASE, $Total, $CNum));
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
mssql_query(sprintf(HAIR_CHANGE, $Hair, $CNum));
echo '
<div align=center>
<font size=2 color=green><strong>Hair Change Success!</strong></font><p>
</div>
';
$user = $_COOKIE['user'];
connectdb($CONFIG['dbdbname'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_USER_PASS,$user));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$UNum = ($UserNum);
$Point = ($UserPoint);
}
}
} else {
echo '
<div align=center>
<font size=2 color=orange><strong>Sorry you do not have enough gold!</strong></font><p>
</div>
';
}
$user = $_COOKIE['user'];
connectdb($CONFIG['dbdbname'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_USER_PASS,$user));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$UNum = ($UserNum);
$Point = ($UserPoint);
}
echo "
<table width=676><tr><td align=center>
<font size=2 color=orange></strong><br>
2 Million Ran Gold to Change Hair.<br>
</td></tr></table><br>
<center><table width=500><tr><td width=25% bgcolor=#FFFFFF> <Font size=2><strong>Name</strong></font></td>
<td width=25% bgcolor=#FFFFFF> <Font size=2><strong>Gold</strong></font></td>
<td width=20% bgcolor=#FFFFFF> <Font size=2><strong>HairStyle#</strong></font></td>
<td width=15% bgcolor=#FFFFFF> <Font size=2><strong>Code</strong></font></td></tr><tr>
";
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER2,$UNum));
if ($rows == 0) {
echo '
<div align=center>
<font size=2 color=orange><strong>No Character!</strong></font><p>
</div>
';
} else {
while ($line = mssql_fetch_assoc($result)) {
foreach ($line as $display_index => $col_value) {
if ($display_index == 1) {
$col_value = determine_chaclass($col_value);
}
echo "<td valign=top> $col_value</td>";
}
echo "</tr><tr>";
}
}
echo "</tr></table></center><br>
<center><table width=500><tr><td><br>
<form name='hairchange' action='home.php?page=hairchange' method='post' onsubmit='return checkform()' autocomplete='off'>
<font size=2 color=orange>Code : </font>
<select name=kode>
";
$UserNum = ($UserNum);
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER_CODE,$UserNum));
while ($line = mssql_fetch_assoc($result)) {
foreach ($line as $display_index => $col_value) {
echo"
<option value=$col_value>$col_value
";
}
}
echo "
</select>
</td><td><font size=2 color=orange>amount point you want to change : </font>
<select name=expoint>
<option value=1>1
<option value=2>2
<option value=3>3
<option value=4>4
<option value=5>5
<option value=6>6
<option value=7>7
<option value=8>8
<option value=9>9
<option value=10>10
<option value=11>11
<option value=12>12
</select>
<input type=hidden name=hair value='Tukar'>
<input type=submit name=submit value='Change'></td></tr></table>
</form>
<a href=http://24.180.32.219/ran/home.php?page=brightpt><img src=img/stat.jpg border=0></a>
";
echopage('footer', '');
?>
PHP:
<?php
//
echopage('header', 'Bright pts. Reset');
$CNum = $_POST['kode'];
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER_NUMBER,$CNum));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$Gold = ($ChaMoney);
$CNum = ($ChaNum);
}
echo '
<script>
function checkform() {
}
</script>
';
$User = $_COOKIE['user'];
$Reset = $_POST['expoint'];
$Total = 2000000;
$CNum = $_POST['kode'];
if($Gold >= $Total) {
if($_POST['bright']=='Tukar') {
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
mssql_query(sprintf(GOLD_DECREASE, $Total, $CNum));
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
mssql_query(sprintf(BRIGHT_CHANGE, $CNum));
echo '
<div align=center>
<font size=3 color=green><strong>Bright Point Reset Success!</strong></font><p>
</div>
';
$user = $_COOKIE['user'];
connectdb($CONFIG['dbdbname'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_USER_PASS,$user));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$UNum = ($UserNum);
$Point = ($UserPoint);
}
}
} else {
echo '
<div align=center>
<font size=2 color=orange><strong>Sorry you do not have enough gold!</strong></font><p>
</div>
';
}
$user = $_COOKIE['user'];
connectdb($CONFIG['dbdbname'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_USER_PASS,$user));
$rows=mssql_num_rows($result);
if ($rows>0) {
$rows=mssql_fetch_assoc($result);
extract($rows);
$UNum = ($UserNum);
$Point = ($UserPoint);
}
echo "
<table width=676><tr><td align=center>
<font size=4 color=yellow></strong><br>
1 Million Ran Gold to reset Bright pts..<br>
</td></tr></table><br>
<center><table width=500><tr><td width=25% bgcolor=#FFFFFF> <Font size=2><strong>Name</strong></font></td>
<td width=25% bgcolor=#FFFFFF> <Font size=2><strong>Gold</strong></font></td>
<td width=20% bgcolor=#FFFFFF> <Font size=2><strong>BrightPoints</strong></font></td>
<td width=15% bgcolor=#FFFFFF> <Font size=2><strong>Code</strong></font></td></tr><tr>
";
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER3,$UNum));
if ($rows == 0) {
echo '
<div align=center>
<font size=2 color=orange><strong>No Character!</strong></font><p>
</div>
';
} else {
while ($line = mssql_fetch_assoc($result)) {
foreach ($line as $display_index => $col_value) {
if ($display_index == 1) {
$col_value = determine_chaclass($col_value);
}
echo "<td valign=top> $col_value</td>";
}
echo "</tr><tr>";
}
}
echo "</tr></table></center><br>
<center><table width=500><tr><td><br>
<form name='brightpt' action='home.php?page=brightpt' method='post' onsubmit='return checkform()' autocomplete='off'>
<font size=2 color=orange>Code : </font>
<select name=kode>
";
$UserNum = ($UserNum);
connectdb($CONFIG['dbdbname1'], $CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
$result = mssql_query(sprintf(SELECT_CHARACTER_CODE,$UserNum));
while ($line = mssql_fetch_assoc($result)) {
foreach ($line as $display_index => $col_value) {
echo"
<option value=$col_value>$col_value
";
}
}
echo "
<input type=hidden name=bright value='Tukar'>
<input type=submit name=submit value='Reset'></td></tr></table>
</form>
";
echopage('footer', '');
?>
<a href=http://xx.xx.xx.xx/ran/home.php?page=brightpt><img src=img/stat.jpg border=0></a>
Cost per Hairstyle..Find this line in hairchange.php
$User = $_COOKIE['user'];
$Hair = $_POST['expoint'];
$Total = 2000000; //how much hair change is worth.
$CNum = $_POST['kode'];
If you have any question just post it here^^
Attachments
Last edited: