Automatic VIP after calling
Ohai, Me and Lolisloltje(from talpahotel.nl) did make a little script. It's nothing big or something, But it is gonna help the noobs out here.
PHP Code:
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'me');
$username = $core->EscapeString($_SESSION['username']);
header('Location: index.php');
?>
<?php
$con = mysql_connect("localhost","root","hoi123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$query = "UPDATE users SET vip='1' WHERE username = '".$_SESSION['username']."' ";
mysql_query($query) or die (mysql_error());
mysql_close($con);
?>
Je bent vip je word redirected
It's coded for Phoenix. If you have your VIP page for rank 2 not VIP 1 The code is here:
PHP Code:
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'me');
$username = $core->EscapeString($_SESSION['username']);
header('Location: index.php');
?>
<?php
$con = mysql_connect("localhost","root","hoi123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$query = "UPDATE users SET rank='2' WHERE username = '".$_SESSION['username']."' ";
mysql_query($query) or die (mysql_error());
mysql_close($con);
?>
Je bent vip je word redirected
Or just making Rank 2 and VIP 1 lol
PHP Code:
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'me');
$username = $core->EscapeString($_SESSION['username']);
header('Location: index.php');
?>
<?php
$con = mysql_connect("localhost","root","hoi123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$query = "UPDATE users SET vip='1' WHERE username = '".$_SESSION['username']."' ";
$query = "UPDATE users SET rank='2' WHERE username = '".$_SESSION['username']."' ";
mysql_query($query) or die (mysql_error());
mysql_close($con);
?>
Je bent vip je word redirected
EDIT: Bug fixed, It only makes the user vip now.
Credits: 50% Me, Coding this shiz. 50% lolisloltje, Bringing the idea helping me.
And again, This is for the noobs out here.
And it's orginal coded for PhoenixPHP. [Or MabboCMS whatever you like]
'XoXo
Donny.
-Sorry for my bad english.
EDIT:
If you redirect it, And give the page a REALLY hard name. Nobody will know i guess;p (Thanks to lolisloltje for the idea)
Re: Automatic VIP after calling
Nice donny (i hope rofl)
Domain nakker ^^ :$
Re: Automatic VIP after calling
Remember this isn't secure. There isn't a protection in it so if someone knows the pagename someone could make hisself VIP. How it works? Just redirect someone to this page if he payed.
Re: Automatic VIP after calling
Quote:
Originally Posted by
Lolisloltje
Remember this isn't secure. There isn't a protection in it so if someone knows the pagename someone could make hisself VIP.
Indeed, But i'm not gonna protect it. Because i know noobs are gonna rip my shit.
Quote:
Originally Posted by
sSjoerd
Nice donny (i hope rofl)
Domain nakker ^^ :$
Please, quit that word. Because jovaini gived the domains to me, i didn't scam you. So knock of with calling me and judging me like that.
'XoXo
Donny.
-Sorry for my bad english, im dutch!
Re: Automatic VIP after calling
This isnt secure.
Ill post an better script soon from my own hotel -,-
Cya,
Joost
Posted via Mobile Device
Re: Automatic VIP after calling
I'm making it secure for now. Just wait and don't use this.
Re: Automatic VIP after calling
umm why dont you just make the script only work for hosts ip / a specific ip ...
Re: Automatic VIP after calling
Where is the db selection please make a screen
http://forum.ragezone.com/data:image...AAAElFTkSuQmCC
---------- Post added at 08:15 PM ---------- Previous post was at 08:13 PM ----------
Where is the db selection please make a screen:$:
http://forum.ragezone.com/data:image...AAAElFTkSuQmCC
http://forum.ragezone.com/data:image...AAAElFTkSuQmCC
Re: Automatic VIP after calling
Quote:
Originally Posted by
mastercredit
Where is the db selection please make a screen
u should not need it..... global is included
PHP Code:
<?php
//DonSzeh!?
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'me');
$username = $core->EscapeString($_SESSION['username']);
header('Location: index.php');
$query = "UPDATE users SET rank='2'";
mysql_query($query) or die (mysql_error());
?>
Re: Automatic VIP after calling
Lololol dont use this, the query is ducked up if one person buy VIP. Everybody gets VIP, you dont have a where id shit on your query,
No check if the user did call the number or whatever ,
Posted via Mobile Device
Re: Automatic VIP after calling
YOU HAVE TO BE FUCKING KIDDING ME.
$query = "UPDATE users SET vip='1'";
Makes everyone VIP
Re: Automatic VIP after calling
Quote:
Originally Posted by
Shredinator
YOU HAVE TO BE FUCKING KIDDING ME.
$query = "UPDATE users SET vip='1'";
Makes everyone VIP
HAHA, i didn't even notice that but ur absolutely right
PHP Code:
<?php
//DonSzeh!?
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'me');
$username = $core->EscapeString($_SESSION['username']);
header('Location: index.php');
$query = "UPDATE users SET rank='2' WHERE username='".$username."'";
mysql_query($query) or die (mysql_error());
?>
Re: Automatic VIP after calling
Quote:
Originally Posted by
joopie
Lololol dont use this, the query is ducked up if one person buy VIP. Everybody gets VIP, you dont have a where id shit on your query,
No check if the user did call the number or whatever ,
Posted via Mobile Device
Thanks for saying, I fixed it.
Quote:
Originally Posted by
Shredinator
YOU HAVE TO BE FUCKING KIDDING ME.
$query = "UPDATE users SET vip='1'";
Makes everyone VIP
Thanks for saying, i fixed it.
Quote:
Originally Posted by
kbj
This isnt secure.
Ill post an better script soon from my own hotel -,-
Cya,
Joost
Posted via Mobile Device
I'm not going to make it secure, Because i know people will rip. They need to make it secure by themself.
Re: Automatic VIP after calling
PHP Code:
<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'me');
$username = $core->EscapeString($_SESSION['username']);
header('Location: betaald.php');
?>
<?php
$con = mysql_connect("LOCALHOST","ROOT","PASSWORD");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$query = "UPDATE users SET rank='2' WHERE username = '".$_SESSION['username']."' ";
mysql_query($query) or die (mysql_error());
$query = "UPDATE users SET vip='1' WHERE username = '".$_SESSION['username']."' ";
mysql_query($query) or die (mysql_error());
mysql_close($con);
?>
This should work fine. Save this file as a difficult name like 59035kfj3459fj3D39fj.php. Than if you are using Mollie redirect it to this page. It should work.
---------- Post added at 09:56 AM ---------- Previous post was at 09:54 AM ----------
Quote:
Originally Posted by
joopie
Lololol dont use this, the query is ducked up if one person buy VIP. Everybody gets VIP, you dont have a where id shit on your query,
No check if the user did call the number or whatever ,
Posted via Mobile Device
Like we said it isn't secure.
Re: Automatic VIP after calling
But if someone finds the "really hard url" or some shares the url that they're redirected to.. then the hotels basically kinda stuffed? Free VIP to people who know? :S