Jump to content
GIGN Forum

Sms Shop Kodings


JAKuT
 Share

Recommended Posts

Es gribetu, uzzinat... ka to izdarit?? nekadas idejas nenak galva..

PHP

<form method="POST" action="smscw.php">

<select name="prece">

<option value="1">#1</option>

<option value="2">#2</option>

<option value="3">#3</option>

<option value="4">#4</option>

<option value="5">#5</option>

<option value="6">#6</option>

<option value="7">#7</option>

</select><br>

       <input type='hidden' name='action' value='insert'>

          <tr bgcolor="#ffffff">

            <td height='16' width='30%'>Код (который получиле в SMS):</td>

            <td height='16' width='70%'><input type='text' name='kods' style='font-family: verdana, tahoma, arial; font-size: 10px; width: 100px'></td>

          </tr>

    <tr bgcolor="#ffffff">

        <td height='16' width='100%' colspan='2'align='right'><input type='submit' name='submit' value='Загрузить' style='font-family: verdana, tahoma, arial; font-size: 10px;'></td>

          </tr>

</form>

</center>

uzspiezot, pogu zagruzit`.. lai ja kods, der.. tad uzreiz lade nevis atveras taads raksts

PHP

//parbauda vai der

if(mysql_result(mysql_query("SELECT COUNT(*) FROM code WHERE code = '$code'"),0,'COUNT(*)') > 0){

        echo "<b><body background-color:#C0C0C0><br>Ваш код подошол! Теперь можете кочать по этой <a href='$links'>сылке</a>!";

    }

else{

    echo "<script>alert('Код не правельный!');window.back()</script>";

    unset($code);

    exit();

}

Link to comment
Share on other sites

Nepareizi, raksta tagad kad uzspiedzu zagruzit`..

Parse error: parse error, unexpected T_ELSE in C:\AppServ\www\s\smscw.php on line 87

//parbauda vai der
if(mysql_result(mysql_query("SELECT COUNT(*) FROM code WHERE code = '$code'"),0,'COUNT(*)') > 0){
else { 
    header('Location:&links');
}
else{
    echo "<script>alert('Код не правельный!');window.back()</script>";
    unset($code);
    exit();
}
$delete = "DELETE FROM code WHERE code = '$code'";
mysql_query($delete) or die(mysql_error());
mysql_close();
?>

izradiju, taa... kads var palidzet???? kad uzspiez, zagruzit`, ta vins parbaud vai kods der, un dod noladet tev failu! uzreiz! nevis, uz link jaspiez!

Link to comment
Share on other sites

Pārāk neiedziļināšos

//parbauda vai der
$res=mysql_query("SELECT COUNT(*) AS c FROM `code` WHERE code='".mysql_real_escape_string($code)."'");
$row=mysql_fetch_object($res);
if($row->c>0){
  // laižam klāt
}else{
  header("Location: /links/");
  exit;
}
$delete="DELETE FROM code WHERE code = '".mysql_real_escape_string($code)."'";
mysql_query($delete)or die(mysql_error());
?>

EDIT: Par to download`ošanu - paskaties tepat forumā, nesen vienā topikā iedevu kodu.

Edited by X ID
Link to comment
Share on other sites

Nekaa, nestrada...! :( man vajag, lai vins pats skatas. kadu failu izvelejies, jo tas &links rada, kuru failu tu gribi!

if(isset($_POST['prece'])) {
            
            if ($_POST['prece'] == '1') {
                $links = '/s/web.rar';
                
            }
            elseif ($_POST['prece'] == '2') {
                $links = '/s/acc_php_script.rar';
                
            }
            elseif ($_POST['prece'] == '3') {
                $links = '/s/unban_php_script.rar';

            }
            elseif ($_POST['prece'] == '4') {
                $links = '/s/cw_own_web.rar';
                
            }
            elseif ($_POST['prece'] == '5') {
                $links = '/s/zombie_server.rar';
                }    
                    }
            elseif ($_POST['prece'] == '6') {
                $links = '/s/csdm_server.rar';
                
            }
            elseif ($_POST['prece'] == '7') {
                $links = '/s/cw_server.rar';
                }

Link to comment
Share on other sites

mjā pats pārbaudīju uz header , atver tukšu lapu, viņs to failu nolasa kā lapu tpc vajag , laikam linku uz html or php faila un tad lai tas nokačā to sūdu, vel jau var kaut kā dabūt tā kad uzspiežot "Piekriest" un ja kods pareizs uzreiz downlodot!

Link to comment
Share on other sites

  • 11 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...