• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

The Best Comfirmation System ~ By Fewdox

fewdox

New Member
Joined
Jan 9, 2010
Messages
244
Reaction score
2
Location
192.168.1.2 else try 127.0.0.1
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

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';
(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 :D (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;
}
?>
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 :D
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 ++
 
sorry, dont get it

:p

Why Dont Get It .. It More easy to sell points man . u give codes to reseller then when anyone pay he get code .LOL

Approved.

Tanks Samme .. i Tinked This Method Is More Easy To Dedicated Server .. And More Protect .. U Need Only To Change The Payment Method Via Code .. When Player Wanna Buy , He Pay In Bank , Then Comfirm Payment In Donation Site (Pag Seguro , pAYPAL , DaoPay ) then the Donation Site give one of codes :peace:

And I Need To Reformule Sytem To More Points Package Like

3 tables example : if FRIST string of PiN CODE IS hmm TPMC
the TPMC value is 1 point if string of pin code is TPCA the value is 10 points .. know Then check the frist string and rest of code like

TPMC000000258 (the 000000258 is the code of db)
 
Last edited by a moderator:
$randomCode = rand(1,100000000000000);

fuck that

$randomCode = uniqid().time();

PAXTON .. u can add the codes in db manualy no need
$randomCode = uniqid().time();

this random is hased .. if u want this

$randomCode = uniqid().time();

to add string to db they have to change the colun to string table ..:p and u add all codes then remove the script from root directory ()BUUMP.!
 
Back
Top