fewdox
New Member
The Best Comfirmation Sytem .!
For Wath Is This ?
To Comfirm The Points With Other Method
Nice For Players Of Have Deticated Server's
Ok ok .. Here We Are
:thumbup:
Frist Create A Script Of Name is -> Credit.php
Then Add That
NOTE .!
Please Set The Value Of Points See The
(Each Code Credited Value Of All Codes is = 5 Points .!
Please Translate The Alert Mensages If U Need
Then Save In You Main Website Directory
-->
Stop See Sources (It Can Only Disable The View - Souce On Right Click .. (No Need To Put This Script In Any Folder Of Posted In This Topic) Only If U nEEd :blink:
<--
OK
Created The Credit.php
Lets Make The Database Table
Go In You Database Manager Or Phpmyadmin -> Db Manager O.O
And Execute This Query
Done .. Added The Colun .. Lets Make Script To Add Pin Codes
Create One File Name: insert.php
Paste it in file
Then Execute It Some Times And Get You Pin From Db With Export Action (If Use Php My Admin) Or Get In Answer from script
Go In -/layouts/tibiacom/layouts.php
If Gesior Go To Line 350 ~=~ 400 . Add This
Done ? NO.!
Go To Index.php and add this
Why Not Add The insert.php ..
For you not get hacked
Execute The Script Insert To Add Code By Yourself Then Remove Script From Directory And Add Back When You Codes is empty :thumbup:
Done ? YES .!!!
Please Rep ++
For Wath Is This ?
To Comfirm The Points With Other Method
Nice For Players Of Have Deticated Server's
Ok ok .. Here We Are
:thumbup:
Frist Create A Script Of Name is -> Credit.php
Then Add That
PHP:
<?php
@mysql_connect("localhost","root"," you password here");
@mysql_select_db("you db name here");
$main_content .='
<script language="javascript">
function click() {
if (event.button==2||event.button==3) {
oncontextmenu="return false";
}
}
document.onmousedown=click
document.oncontextmenu = new Function("return false;")
</script>
';
{
$main_content .='
<table border="0"><tr border="1"><td border="1"><h2><b><font color="green">Credit</font> You Points<font color="blue"> Now.!</b></font></h2>
<br>
<form action="" method="post" align="top" >
<b>Enter You Character Name</b><br>
<input type="textbox" name="character" size="60" value=""><b>Example:</b><font color="green"><b>Golex Golen</b><br></font>
<b>Enter PIN Code Here</b><br>
<input type="textbox" maxLength="14" name="code" size="60" value=""><b><font color="red">10-12</font> Characters Length </b><br>
<b>Enter Password Here</b><br>
<input type="textbox" maxLength="15" name="password" size="60"><font color="red"><b>10-12</font> Characters Length </b><br>
<input type="submit" value="Credit" name="submitCode" value="">
<INPUT type="reset" value="Reset Fields">
</ul></td></tr></table>
</form>';
}
if($_POST['submitCode'])
{
if(($codeRows1['password']) == ($password));
$code = mysql_real_escape_string($_POST['code']);
$password = mysql_real_escape_string($_POST['password']);
$codeQuery1 = mysql_query ('SELECT id, password FROM codes WHERE password = '.$password.'') or die ("<script> alert('Preencha Todos Os Campos Como Na Imagem Ao Lado');window.location = '?subtopic=buypoints'; </script>");
$codeQuery = mysql_query ('SELECT id, code, password FROM codes WHERE code = '.$code.'') or die ("<script> alert('Preencha Todos Os Campos Como Na Imagem Ao Lado');window.location = '?subtopic=buypoints';</script>");
$player = stripslashes(ucwords(strtolower(trim($_REQUEST['character'])))) or die ("<script> alert('Preencha Todos Os Campos Como Na Imagem Ao Lado');window.location = '?subtopic=buypoints';</script>");
$points = '5';
$codeRows = mysql_fetch_array($codeQuery)or die ("<script> alert('Por Favor Insira Um Codigo Valido , Pois o Codigo = ".$code." Não é Um Codigo Valido.!');window.location = '?subtopic=buypoints'; </script>");
$codeRows1 = mysql_fetch_array($codeQuery1)or die ("<script> alert('Por Favor Insira Um Password Valido, Pois o Password = ".$password." Não é Um Password Valido.!');window.location = '?subtopic=buypoints'; </script>");
$player_data = $SQL->query("SELECT * FROM `players` WHERE `name` = '".$player."';")->fetch();
{
mysql_query('DELETE FROM codes WHERE id = '.$codeRows['id'].' LIMIT 1') or die(mysql_error());
}
{
mysql_query("UPDATE `accounts` SET `premium_points` = `premium_points` + '".$points."' WHERE `id` = '".$player_data['account_id']."'");
}
$main_content .='<BR><BR><BR>';
{
$main_content .= '<b><table border="1"><tr border="2"><td border="2"><font color="Green"><center>You Used The</font><font color="Blue"> Code:</font><b>'.$code.'</b><font color="Green"> And The</font><font color="blue"> Password:</font><b>'.$password.'</b><b><font color="Green"> Then '.$points.' Premium Points added to the account of </font><font color="red"><i>'.$player.'</font></i>! <b>Please Check You Account If Not Recived The Points You Can Report<a href="?subtopic=bugtracker">Here</a></b></center></td></tr></table></b>';
}
}
?>
NOTE .!
Please Set The Value Of Points See The
PHP:
$points = '5';
Please Translate The Alert Mensages If U Need
Then Save In You Main Website Directory
-->
Stop See Sources (It Can Only Disable The View - Souce On Right Click .. (No Need To Put This Script In Any Folder Of Posted In This Topic) Only If U nEEd :blink:
PHP:
<script language="javascript">
function click() {
if (event.button==2||event.button==3) {
oncontextmenu="return false";
}
OK
Created The Credit.php
Lets Make The Database Table
Go In You Database Manager Or Phpmyadmin -> Db Manager O.O
And Execute This Query
PHP:
CREATE TABLE `you database name here`.`codes` (
`id` INT NOT NULL AUTO_INCREMENT ,
`code` INT NOT NULL ,
`password` INT NOT NULL ,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM ;
Done .. Added The Colun .. Lets Make Script To Add Pin Codes
Create One File Name: insert.php
Paste it in file
PHP:
<?php
mysql_connect("localhost", "root", "you password here");
mysql_select_db("you db name here");
for($i=0; $i <= 10; $i++)
{
$randomCode = rand(1,100000000000000);
$randomPassword = rand(1,100000000000);
$randomPassword = ($randomPassword);
mysql_query("INSERT INTO codes (code, password) VALUES('$randomCode', '$randomPassword') ") or die(mysql_error());
echo $i.': Code = '.$randomCode.' and password = '.$randomPassword;
}
?>
Go In -/layouts/tibiacom/layouts.php
If Gesior Go To Line 350 ~=~ 400 . Add This
PHP:
<a href='?subtopic=credit'>
<div id='submenu_tibiarules' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
<div id='ActiveSubmenuItemIcon_tibiarules' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'>Credit You Points</div>
<div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>
</div>
</a>
Done ? NO.!
Go To Index.php and add this
PHP:
case "Credit";
$subtopic = "credit";
$topic = "Credit Points";
include("credit.php");
break;
Why Not Add The insert.php ..
For you not get hacked
Execute The Script Insert To Add Code By Yourself Then Remove Script From Directory And Add Back When You Codes is empty :thumbup:
Done ? YES .!!!
Please Rep ++