Jump to content
GIGN Forum

Acc Script For Solarf


chillout
 Share

Recommended Posts

Plzz! Palidziet man ar scriptu solarf . Kad Sutiju to kodu SLR15 tad man rada kad kods nav pareizs PSC kas pa ppc! :( Plzz pastieties kas nav pareizs!???

<?

$host = "localhost";

$db = "bans";

$mysql_user = "root";

$mysql_pw = "password";

mysql_connect ($host, $mysql_user, $mysql_pw)or die("neizdevas piekonekteeties: ".mysql_error());

mysql_select_db($db) or die(mysql_error());

// DB CONNECT

$cena = "1.50"; // CENA PAR NIKA REG

$nr = "157"; // NUMMURS ( DEF. 157 SOLAR-F )

$user_id = "555"; // SOLAR-F ID ( no http://stats.solarf.lv )

function ex($get) {

$bbcode = array('.');

$htmlcode = array('');

$newpw = str_replace($bbcode, $htmlcode, $get);

return $newpw;

}

$slr = ex("$cena");

$unlock = "$slr";

?>

<center><b>LMT/Tele2/Bite</b>

<br>

<b>SMS Numurs: <font color=red><? echo "$nr"; ?></font>

<br>

SMS Teksts: <font color=red><? echo "$slr"; ?></font><br>

<b>Summa: <font color=red><? echo "$cena"; ?> Ls</font><br>

<form action="" method="post">

<b>Niks:</b><br><input type="text" name="nickname"><br>

<b>Serveris:</b><br>

<select name='server_id'>

<?

$select = mysql_query("SELECT * FROM `amx_serverinfo`");

while($arr = mysql_fetch_array($select))

{

$serv_id = $arr["id"];

$serv_name = $arr["hostname"];

echo "

<option value='$serv_id' name='$serv_id'> $serv_name</option>

";

}

?>

</select><br>

<b>Parole:</b><br><input type="text" name="password"><br>

<b>Atkartot paroli:</b><br><input type="text" name="pw_coniform"><br>

<b>SLR KODS:</b><br><input type="text" name="slr"><br><br>

<input type="submit" name="submit" value="Registret">

</form>

</center>

<?

if($_POST["submit"]){

$slr = mysql_escape_string($_POST["slr"]);

if (! is_numeric($_POST['slr'])) {

die ("<center><font color=green><b>TOD Niku reģistracijas sistema by DyC.Lv (© Daboy)</b></font><br><br><br><br><br><br><br><br><b><font color=red>Kods nederigs!</font></b></center>");

}

$answer = join('', file("http://sms.solarf.lv/confirm.php?code=$slr&id=$user_id&price=$unlock"));

if ($answer != "key_ok" ) {

die ("<div class=msg-error>Kļuda! Kods nav pareizs, meģini vēlāk.</div>");

}

if ($answer=="key_ok") {

$nick = $_POST['nickname'];

$pass = $_POST['password'];

$pass2 = $_POST['pw_coniform'];

$access = "z";

$flags = "ab";

$nickname = "regnick";

$ip = $_SERVER['REMOTE_ADDR'];

if($pass == $pass2){

echo "";

}else{

die ("<script>alert('Paroles nesakrit!');window.back()</script>");

}

$check = mysql_query("SELECT username FROM amx_amxadmins WHERE username='$nick'");

$exist = mysql_num_rows($check);

if($exist > 0){

echo "<script>alert('Tads niks ir jau registrets!');window.back()</script>";

unset($nick);

exit();

}

if(empty($nick)){

die ("<script>alert('Ieraksti niku!'); window.back()</script>");

}

if(empty($pass)){

die ("<script>alert('Ieraksti paroli!'); window.back()</script>");

}

$register = "INSERT INTO amx_amxadmins ( username, password, access, flags, nickname)

VALUES('$nick', '$pass', '$access', '$flags', '$nickname')";

mysql_query($register) or die(mysql_error());

$id = mysql_insert_id();

mysql_query("INSERT INTO amx_admins_servers (admin_id, server_id) VALUES ($id, $server_id)");

mysql_close();

echo "<div class=msg-ok><br>Reģistracija pagaja veiksmigi!<br>

Konsolē ieraksti:<br>

<u>setinfo _tod $pass</u></div>";

}

}

//header('location: index.php');

?>

Kas man ir jaizdara ta lai scripts ietu kaa ACC kadi flagi tur jaliek un kads tur iisti kods jaraksta ieksha?

Edited by chillout
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...