Olá, Hoje eu gasto o meu proceso.php e dar forma automaticamente em Paygol vip ..
Proceso.php
O código para isso lhes dará proceso.php VIP, Rank: 2 e dar-lhes 20,000 pixels.
Graças à Alegames por FORM
para comprar é a imagem como esta:
Lembre-se que o arquivo config.php eu vou sair daqui em caso de necessidade:
Página VIP:
Aqui deixo a minha pag VIP bobmarley Isso Hiso de KM, e como é o uso de imagem:
Download:
http://www.mediafire.com/?6o8knbb95mu4b6t
VT:
https://2img.net/h/oi55.tinypic.com/24eawis.png
Proceso.php
- Código:
[color=#000000][color=#0000BB]<?php
[/color][color=#FF8000]//Probably you have to change this depending on your database connection and files
[/color][color=#007700]include([/color][color=#DD0000]"config.php"[/color][color=#007700]);
[/color][color=#FF8000]// check that the request comes from PayGol server
[/color][color=#007700]if(![/color][color=#0000BB]in_array[/color][color=#007700]([/color][color=#0000BB]$_SERVER[/color][color=#007700][[/color][color=#DD0000]'REMOTE_ADDR'[/color][color=#007700]],
array([/color][color=#DD0000]'109.70.3.48'[/color][color=#007700], [/color][color=#DD0000]'109.70.3.146'[/color][color=#007700], [/color][color=#DD0000]'109.70.3.58'[/color][color=#007700]))) {
[/color][color=#0000BB]header[/color][color=#007700]([/color][color=#DD0000]"HTTP/1.0 403 Forbidden"[/color][color=#007700]);
die([/color][color=#DD0000]"Error: Unknown IP"[/color][color=#007700]);
}
[/color][color=#FF8000]//Conectar
[/color][color=#0000BB]$host[/color][color=#007700]=[/color][color=#DD0000]"localhost"[/color][color=#007700];
[/color][color=#0000BB]$username[/color][color=#007700]=[/color][color=#DD0000]"root"[/color][color=#007700];
[/color][color=#0000BB]$password[/color][color=#007700]=[/color][color=#DD0000]"PASSWORD DE LA DB"[/color][color=#007700];
[/color][color=#0000BB]$dbname[/color][color=#007700]=[/color][color=#DD0000]"NOMBRE DE LA DB"[/color][color=#007700];
[/color][color=#FF8000]//Connect to DB
[/color][color=#0000BB]$connection [/color][color=#007700]= [/color][color=#0000BB]mysql_connect[/color][color=#007700]([/color][color=#0000BB]$host[/color][color=#007700], [/color][color=#0000BB]$username[/color][color=#007700], [/color][color=#0000BB]$password[/color][color=#007700]);
[/color][color=#0000BB]$db[/color][color=#007700]= [/color][color=#0000BB]mysql_select_db[/color][color=#007700]([/color][color=#0000BB]$dbname[/color][color=#007700]);
[/color][color=#FF8000]//echo "AAA";
//exit;
/*
If you need any help with the integration of PayGol in your system,
please contact us at support@paygol.com or via Skype at paygol.com
*/
// read the get from PayGol system
[/color][color=#0000BB]$message_id [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]message_id[/color][color=#007700]];
[/color][color=#0000BB]$shortcode [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]shortcode[/color][color=#007700]];
[/color][color=#0000BB]$keyword [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]keyword[/color][color=#007700]];
[/color][color=#0000BB]$message [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]message[/color][color=#007700]];
[/color][color=#0000BB]$sender [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]sender[/color][color=#007700]];
[/color][color=#0000BB]$operator [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]operator[/color][color=#007700]];
[/color][color=#0000BB]$country [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]country[/color][color=#007700]];
[/color][color=#0000BB]$username [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]custom[/color][color=#007700]];
[/color][color=#0000BB]$price [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]price[/color][color=#007700]];
[/color][color=#0000BB]$currency [/color][color=#007700]= [/color][color=#0000BB]$_GET[/color][color=#007700][[/color][color=#0000BB]currency[/color][color=#007700]];
[/color][color=#FF8000]//UPDATE to be VIP adn GIVe pixels
[/color][color=#0000BB]$sql [/color][color=#007700]= [/color][color=#DD0000]"UPDATE users SET vip = '1', rank = '2' WHERE id = '$username'"[/color][color=#007700];
echo [/color][color=#0000BB]$sql[/color][color=#007700];
[/color][color=#FF8000]//exit;
[/color][color=#0000BB]mysql_query[/color][color=#007700]([/color][color=#0000BB]$sql[/color][color=#007700]);
[/color][color=#FF8000]//give pixels
[/color][color=#0000BB]$sql [/color][color=#007700]= [/color][color=#DD0000]"UPDATE users SET activity_points = '20000' WHERE id = '$username'"[/color][color=#007700];
echo [/color][color=#0000BB]$sql[/color][color=#007700];
[/color][color=#FF8000]//exit;
[/color][color=#0000BB]mysql_query[/color][color=#007700]([/color][color=#0000BB]$sql[/color][color=#007700]);
[/color][color=#FF8000]/*
mysql_query($sql);
//echo $sql;
$days = 30;//Insert subscription for 30 days
$vip_ini = time();
$vip_end = time() + ($days*24*3600);
//Get id of user
$sql = "SELECT id FROM users WHERE username='$username'";
$result= mysql_query($sql);
$row = mysql_fetch_assoc($result);
//user id
$userid = $row[id];
//check first if user exist
$sql = "SELECT user_id, timestamp_expire FROM user_subscriptions WHERE user_id=$userid AND subscription_id='habbo_vip' ORDER BY timestamp_expire DESC LIMIT 1";
$result = mysql_query($sql);
$total_records = mysql_num_rows($result);
if ($total_records>0){
$row = mysql_fetch_assoc($result);
$current_exp = $row['timestamp_expire'];
//if user still have some days with subscription then add the time to his account
if($current_exp > time()){
$vip_end = $vip_end + ($current_exp - time());
}
//delete all recrods in subscriptions table for this user
$sql = "DELETE FROM user_subscriptions WHERE user_id=$userid AND subscription_id='habbo_vip'";
mysql_query($sql);
}
//Insert a new subscription with the corresponding time
$sql = "INSERT INTO user_subscriptions(user_id, subscription_id, timestamp_activated, timestamp_expire) VALUES ($userid, 'habbo_vip', $vip_ini, $vip_end)";
mysql_query($sql);
*/
[/color][color=#0000BB]?>[/color][/color]
O código para isso lhes dará proceso.php VIP, Rank: 2 e dar-lhes 20,000 pixels.
- Código:
<form name="pg_frm" method="post" action="http://www.paygol.com/micropayment/paynow_post" >
<input type="hidden" name="pg_serviceid" value="4362">
<input type="hidden" name="pg_currency" value="EUR">
<input type="hidden" name="pg_name" value="EL NOMBRE POR EJEMPLO TU HOTEL VIP">
<input type="hidden" name="pg_custom" value="[color=#000000][color=#0000BB]<?php [/color][color=#007700]echo [/color][color=#0000BB]USER_ID ?>[/color][/color]">
<!-- With Dropdown -->
<select name="pg_price">
<option value="4">1 Mes €3</option>
<option value="5">2 Meses €5</option>
<option value="6">3 Meses €7</option>
<option value="9">6 meses €9</option>
<option value="10">1 año €10</option>
</select>
<br>
<input type="hidden" name="pg_return_url" value="http://TUURL/onlyvip.php/exito">
<input type="hidden" name="pg_cancel_url" value="http://TUURL/onlyvip.php">
<input type="submit" name="pg_button" class="buttonv4"
border="0" alt="Realiza pagos con PayGol: la forma más
fácil!" title="Realiza pagos con PayGol: la forma
más fácil!" onClick="pg_reDirect(this.form)" value="Comprar">
</form>
Graças à Alegames por FORM
para comprar é a imagem como esta:
- Spoiler:
Lembre-se que o arquivo config.php eu vou sair daqui em caso de necessidade:
- Código:
[color=#000000][font='Times New Roman'][font='dejavu sans mono'][color=#0000BB]
$ Conn [/color][color=#007700]= [/color][color=#0000BB]mysql_connect [/color][color=#007700]( [/color][color=#DD0000]"localhost" [/color][color=#007700], [/color][color=#DD0000]"root" [/color][color=#007700], [/color][color=#DD0000]"DBPassword" [/color][color=#007700]);
[/color][color=#0000BB]$ conn [/color][color=#007700]= [/color][color=#0000BB]mysql_select_db [/color][color=#007700]( [/color][color=#DD0000]"NAME DB" [/color][color=#007700], [/color][color=#0000BB]$ conn [/color][color=#007700])
[/color][color=#0000BB]>?[/color][/font][/font][/color]
Página VIP:
Aqui deixo a minha pag VIP bobmarley Isso Hiso de KM, e como é o uso de imagem:
- Spoiler:
Download:
http://www.mediafire.com/?6o8knbb95mu4b6t
VT:
https://2img.net/h/oi55.tinypic.com/24eawis.png