
Originally Posted by
Troll Hotel
i dont know how your code looks like so i cant help you but as i see you need a check with if(isset($_GET['ebpin'])) {
//code here
}
PM me your code i will help you :)
i did a bit research and i found that you probably have a link from eurobellen where the check should be like
Code:
file_get_contents('http://www.eurobellen.nl/bel/check.php?test=sbmwu&userid=0cschou3&ebpin='.$_GET['ebpin']);
but this wont work as you have a different link :p
after that you could do :
Code:
if(isset($_GET['ebpin'])) {
if(file_get_contents('http://www.eurobellen.nl/bel/check.php?test=sbmwu&userid=0cschou3&ebpin='.$_GET['ebpin']) == 'OK')
{
// query
} else
// error
}
ofcourse you can make it better this is just an example ;p
Here's my page mate:
Code:
<?php
$ebcheck = file_get_contents("https://www.eurobellen.nl/bel/check.php?userid=61slijn&ip=".$_SERVER['REMOTE_ADDR']."&ebpin=".$_GET['ebpin']);
if($ebcheck!="OK") {
echo "Pincode validatie mislukt ($ebcheck)";
exit;
}
?>
<html lang="no">
<head>
<meta charset="utf-8"/>
<title>{username} - Onderhoud!</title>
<link rel="shortcut icon" href="{url}/static/favicon.ico"/>
<link rel="stylesheet" href="{url}/static/dashboard/css/dashboard.css"/>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic|Ubuntu+Condensed"/>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="{url}/static/animate.css/animate.min.css"/>
<meta http-equiv="refresh" content="8;url=/index" />
</head>
<body>
<div id="main-container" class="container">
<div id="content-cover">
<a href="{url}" id="cover-logo"></a>
</div>
<div id="content-wrap">
<div id="content-left" class="full-width">
<div class="panel panel-primary">
<div class="panel-heading">
<center><h3 class="panel-title"><i class="fa "></i> {hotelname} - Aankoop geslaagd!</h3></center>
</div>
<center><div class="panel-body">
<div>
<?php
mysql_query("UPDATE users SET rank_vip = '1' WHERE username = '{$_SESSION['user']['username']}'");
mysql_query($q_edituser);
echo('<div class = "alert">Aankoop geslaagd! Herlaad je client voor je VIP.</div>');
?>
</div></center>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<?php include('includes/footers.php'); ?>
<script src="{url}/static/jquery/jquery-2.1.1.min.js"></script>
<script src="{url}/static/bootstrap-3.2.0-custom/js/bootstrap.min.js"></script>
<script src="{url}/static/dashboard/js/dashboard.js"></script>
<script type="text/javascript">news_box.init();</script>
<script type="text/javascript">user_tag_list.init();</script>
</body>
</html>