• Login
  • Register
  • Zoek
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Filebase Entry
  • More Options

ICTscripters

Dé plek voor IT

Dé plek voor IT

Login

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  9. Goedkope domeinnamen
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Games
  4. Criminals & Maffiagames
  5. Uitbreidingen en Overige
  6. Archief
  7. Banditi

Forum

  • Beta-testers gezocht voor Crypto-oefenplatform

    Syntax 29 januari 2026 om 16:11
  • Na 15 jaar terug van weggeweest: iCriminals.nl is terug (BETA)!

    Syntax 19 januari 2026 om 09:34
  • Developer Gezocht

    Mikevdk 10 januari 2026 om 18:57
  • Op zoek naar de legends

    Syntax 5 januari 2026 om 13:50
  • [FREE] WeFact Hosting module

    Jeroen.G 13 oktober 2025 om 14:09
  • Help testers nodig voor android app Urgent

    urgentotservices 26 september 2025 om 10:21
  • Versio vervanger

    Jeroen.G 25 augustus 2025 om 15:56
  • Afspraken systeem met planbeperking

    Lijno 1 augustus 2025 om 23:04

Marktplaats

  • 350 Nieuwe Domeinnamen Januari 2026

    shiga 1 februari 2026 om 14:21
  • 321 Nieuwe Domeinnamen December 2025

    shiga 1 januari 2026 om 10:26
  • Meerdere mafia game template te koop

    Syntax 26 december 2025 om 00:07

Icoon verslepen lukt niet

  • Toontjuhh
  • 29 mei 2010 om 12:53
  • Toontjuhh
    Intermediate
    Berichten
    192
    • 29 mei 2010 om 12:53
    • #1

    Hallo scripters.

    Ik heb op mijn site het OSbanditi script, waar ook de buycredits.php in zit.

    Nu zit ik alleen met het volgende probleem, namelijk dat als mensen callcredits willen bestellen met wallie, ze het icoontje niet kunnen verslepen..

    (voorbeeld)

    Script:

    PHP
    <?
    if(isset($_POST['first'])){
    if($data->callcredits >= 8){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'8', `vipdays`=`vipdays`+'15' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['second'])){
    if($data->callcredits >= 15){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'15', `vipdays`=`vipdays`+'30' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['third'])){
    if($data->callcredits >= 8){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'8', `bank`=`bank`+'3000000' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['fourth'])){
    if($data->callcredits >= 15){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'15', `bank`=`bank`+'6000000' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['fifth'])){
    if($data->callcredits >= 4){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'4', `bankstandard`=`bankstandard`+'5' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['sixth'])){
    if($data->callcredits >= 7){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'7', `dagenrente`=`dagenrente`+'15' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['seventh'])){
    if($data->callcredits >= 9){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'9', `maffia`=`maffia`+'24' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['eighth'])){
    if($data->callcredits >= 13){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'13', `maffia`=`maffia`+'48' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['nineth'])){
    if($data->callcredits >= 8){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'8', `maffia`=`maffia`+'12', `power`=`power`+'1500', `bank`=`bank`+'1000000' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['tenth'])){
    if($data->callcredits >= 15){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'15', `power`=`power`+'75000' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['eleventh'])){
    if($data->callcredits >= 28){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'28', `health`='100' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['twelveth'])){
    if($data->callcredits >= 7){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'7' WHERE `login`='$data->login'");
    mysql_query("UPDATE `clicks` SET `active`='0' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['thirteenth'])){
    if($data->callcredits >= 7){
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'7', `kogels`=`kogels`+'150' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    if(isset($_POST['fourteenth'])){
    if($data->callcredits >= 15){
    mysql_query("UPDATE `registered_ip` SET `max`=`max`+'1' WHERE `ip`='$data->IP'");
    mysql_query("UPDATE `users` SET `callcredits`=`callcredits`-'15' WHERE `login`='$data->login'");
       header("Location: $sitelink/v3/buycredits.php?p=shop");
    }
    }
    ?>
    					<script language="javascript">
    	function handleTabs(pTab){
    
    
    		var tabblad;
    		var tabbladen = new Array();
    		tabbladen[0] = 'buy';
    		tabbladen[1] = 'info';
    		tabbladen[2] = 'shop';
    		tabbladen[3] = 'bel';
    		tabbladen[4] = 'wallie';
    
    
    		for(i=0;i<tabbladen.length;i++){
    			document.getElementById('tab_' + tabbladen[i]).style.backgroundImage = 'url(images/tab_dark.jpg)';
    			document.getElementById('page_' + tabbladen[i]).style.display = 'none';
    		}
    
    
    		document.getElementById('tab_' + pTab).style.backgroundImage = 'url(images/tab_light.jpg)';
    		document.getElementById('page_' + pTab).style.display = 'block';
    	}
    </script>
    <h1 id="ajax_targetpay" style="display:none">AJAX TEST</h1>
    
    
    		<div class="title_bg">
    			<div class="title">Callcredit shop</div>
    		</div>
    
    
    		<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">
    		<table cellpadding="0" cellspacing="0" width="100%"><tr><td>
    		<table cellpadding="0" cellspacing="0" border="0">
    	<tr>
    		<td>
    			<div id="tab_buy" style="float:left; width:130px; height:35px; background: url(images/tab_dark.jpg) no-repeat;">
    				<div style="margin-left:15px; margin-top:8px;"><img src="images/icons/money.png" align="bottom">
    					<a style="font-size:16px; color:black" href="javascript:handleTabs('buy')">Kopen</a>
    				</div>
    			</div>
    			<div id="tab_bel">
    			<div id="tab_wallie">
    			</div>
    			<div id="tab_info" style="float:left; width:130px; height:35px; background: url(images/tab_dark.jpg) no-repeat; margin-left:10px;">
    				<div style="margin-left:15px; margin-top:8px;"><img src="images/icons_gif/information.gif" align="bottom">
    					<a style="font-size:16px; color:black" href="javascript:handleTabs('info')">Info</a>
    				</div>
    			</div>
    			<div id="tab_shop" style="float:right; width:130px; height:35px; background: url(images/tab_dark.jpg) no-repeat; margin-left:10px;">
    				<div style="margin-left:15px; margin-top:8px;"><img src="images/icons_gif/basket.gif" align="bottom">
    					<a style="font-size:16px; color:black" href="javascript:handleTabs('shop')">Callshop</a>
    				</div>
    			</div>
    		</td>
    	</tr><?if($data->vermoord > 0){?>
    							<div id="page_nl" style="display:none;">
    					<table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3" style="margin-top:0px;">
    												<tr>
    							<td width="100%" colspan="2">
    								<div id="js_msg"  style="width:100%; background:url(images/js_msg/bg.gif) repeat-y; margin-top:10px; margin-left:2px;margin-right:2px;">
    									<table cellpadding="0" cellspacing="0" border="0" align="center" width="596">
    										<tr>
    											<td colspan="4" height="4px"><img src="images/js_msg/top.gif"></td>
    										</tr>
    										<tr>
    											<td width="2px">&nbsp;</td>
    											<td align="center" valign="middle" style="padding-top:0; padding-left:3px"  bgcolor="#FFFFFF">
    												<table cellspacing="5">
    													<tr>
    														<td>
    															<img src="images/js_msg/exl_big_red.gif">
    														</td>
    													</tr>
    												</table>
    											</td>
    											<td width="556px" bgcolor="#FFFFFF">
    												<div id="text_shop" style="display:block; line-height:135%; font-size:12px; font-weight:bold">
    											    	<font color='black' id="js_msg_msg">
    											    		<table width="100%">
    														<tr>
    
    
    															<td width="100%">
    																<b style="font-size:18px">Helaas, je bent vermoord...</b><br>
    																<br>
    																Om jezelf weer tot leven te wekken dien je onderstaande stappen te volgen. <br>
    																<br>
    																Naast 100% leven krijg je ook nog eens <b>28</b> callcredits, welke je daarna in de Callshop kunt gebruiken om jezelf nog beter en sterker te maken!															</td>
    															<td>
    																<img src="images/dood.jpg" align="left" width="200px">
    															</td>
    														</tr>
    													</table>
    											    	</font>
    												</div>
    											</td>
    											<td width="2px"></td>
    										</tr>
    										<tr>
    											<td colspan="4" height="13px"><img src="images/js_msg/bottom.gif"></td>
    										</tr>
    									</table>
    
    
    								</div>
    
    
    
    
    							</td>
    						</tr><?}?>
    	<tr>
    		<td>
    				<div id="page_buy" style="display:none;">
    		<table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3" style="margin-top:0px;">
    										<tr>
    										<td>
    									<div id="alerter" style="width:600px; height: 65px; background:url(images/alert_balloon.jpg) no-repeat; margin-top:10px;">
    								<div id="text_nl" style="position:absolute; height:65px; margin-left:35px; margin-top: 8px; line-height:135%; font-size:14px;">
    									Kies hieronder uit de betaalmogelijkheden, om de credits te bestellen.
    								</div>
    							</div>
    							<br />
    										</td>
    										</tr>
    										<tr>
    							<table>
    							<td style="border: 1px solid black; padding: 0px;">
    						<table bgcolor="#DBD2B7" style="cursor: pointer;" onclick="javascript:handleTabs('wallie'); " width="100%" border="0" cellpadding="0" cellspacing="0">
    							<tbody><tr>
    								<td>
    									<img src="images/wallie.gif">
    								</td>
    								<td valign="top" width="100%">
    									<font color="#442C14" size="+1">Wallie-card</font><br>
    
    
    									<font color="#442C14" size="2">Wallie-Cards zijn prepaid kaarten die in vele landen te koop zijn. Kras de beschermlaag weg en u ziet de code die u direct kan gebruiken.</font>							</td>
    																	<td valign="bottom" align="right">
    										<img src="images/actie.gif">
    									</td>
    															</tr>
    													</tbody></table>
    							</td>
    										</tr><br />
    																				<tr>
    							<td style="border: 1px solid black; padding: 0px;" colspan="10">
    						<table bgcolor="#DBD2B7" style="cursor: pointer;" onclick="javascript:handleTabs('bel'); " width="100%" border="0" cellpadding="0" cellspacing="0">
    							<tbody><tr>
    								<td>
    									<img src="images/telefoon.gif">
    								</td>
    								<td valign="top" width="100%">
    									<font color="#442C14" size="+1">Telefoon</font><br>
    
    
    									<font color="#442C14" size="2">Bel via uw reguliere of mobiele telefoon en het bedrag zal via uw (prepaid) telefoon rekening verrekend worden.</font>							</td>
    																	<td valign="bottom" align="right">
    										<img src="images/actie.gif">
    									</td>
    															</tr>
    													</tbody></table>
    					</td>
    										</tr>
    		</table>
    		</div>
    			<div id="page_wallie" style="display:none;">
    			<?php include "wallie.php"; ?>
    			</div>
    			<div id="page_bel" style="display:none;">
    				<table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3" style="margin-top:0px;">
    										<tr>
    						<td width="400" colspan="2">
    							<div id="alerter" style="width:600px; height: 65px; background:url(images/alert_balloon.jpg) no-repeat; margin-top:10px;">
    								<div id="text_nl" style="position:absolute; height:65px; margin-left:35px; margin-top: 8px; line-height:135%; font-size:14px;">
    									Om spullen uit de callshop te kopen heb je callcredits nodig.<br>
    									Je kunt op de volgende manier <b>28 callcredits</b> krijgen:
    								</div>
    							</div>
    						</td>
    					</tr>
    <?
    echo $error;
    ?>
    										<tr>
    						<td colspan="2">
    							<form method="GET">
    							<table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3">
    								<tr>
    									<td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" height="40">
    										<div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Wat je moet doen</div>
    
    
    									</td>
    
    
    									<td rowspan="6" valign="top" align="right" style="padding-right:10px;">
    <embed src="flash/gratis_callcredits.swf?callcredits=28+callcredits&amp;prijs=[#EURO]%201,30&amp;top=normal&amp;bottom=normal&amp;gratisbedrag=20" allowscriptaccess="always" wmode="transparent" allowfullscreen="true" width="160" height="175">
    									</td>
    								</tr>
    
    
    								<tr>
    
    
    									<td colspan=2>
    										<br>
    										<div style="margin-left:10px; font-family:Verdana; font-size:14px;">Callcredits kosten in Nederland €1,30 per telefoontje.<BR>In België is dit €1,50 per minuut, en het telefoontje<BR>zal dan ook ongeveer een minuut duren.<BR>Selecteer je land en volg de onderstaande instructies.</div>
    										<br><br>
    									</td>
    								</tr>
    
    
    								<tr>
    									<td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" width="395px" height="40">
    
    
    										<div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Stap 2</div>
    									</td>
    								</tr>
    
    
    								<tr>
    									<td>
    										<br>
    										<div style="margin-left:10px; font-family:Verdana; font-size:12px;">
    Kies land voor de betaling:<br />
        <table>
        <tr>
        <td><a href="index.php?a=buycredits&c=31"></a></td>
        <td><a href="index.php?a=buycredits&c=31">Nederland</a></td>
        <td width="10"> </td>
        <td><a href="index.php?a=buycredits&c=32"></a></td>
        <td><a href="index.php?a=buycredits&c=32">Belgi&euml;</a></td>
        </tr>
        </table>
        <br />
    
    
    <br />
    										</div>
    										<br><br>
    									</td>
    								</tr>
    
    
    								<tr>
    									<td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" width="395px" height="40">
    										<div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Stap 3</div>
    
    
    									</td>
    								</tr>
    
    
    								<tr>
    									<td>
    										<br>
    										<div style="margin-left:10px; font-family:Verdana; font-size:12px;width:370px">
    <?
        require('classes/class.micropayment-mollie.php');
    
    
        $m = new micropayment();
    
    
        $m->setPartnerID(369215); # Verander dit naar jouw eigen Partner ID te vinden onder de Tab Account bij Mollie
        if (isset($_GET['c']) and is_numeric($_GET['c'])) $m->setCountry($_GET['c']);
        $m->setAmount(1.30); # Hier kun je de prijs per gesprek instellen
    
    
        if (isset($_GET['action']) and $_GET['action'] == 'check' and isset($_SESSION['servicenumber']) and isset($_SESSION['paycode']) and $_SESSION['servicenumber'] and $_SESSION['paycode']) {
            /* user posted a paymentcheck, so below we'll check if the servicenumber and the paycode is fully payed */
    
    
            $m->setServicenumber($_SESSION['servicenumber']);
            $m->setPaycode($_SESSION['paycode']);
            $m->checkPayment();
    
    
            if ($m->payed) {
            mysql_query("UPDATE `users` SET `callcredits`=`callcredits`+'28' WHERE `login`='$data->login'");
    if($data->vermoord > 0){
    mysql_query("UPDATE `users` SET `health`='100',`vermoord`='0' WHERE `login`='$data->login'");
    }
                           echo "Je hebt nu 28 extra credits!";
            exit;
            }
            else {
                # payment is not (fully) done, send the user back to the payment-screen
    echo "<font color=red><b>Betaling is niet afgerond.<br>Zorg er wel voor dat je de goede code intoetst!</b></font><br /><br />";
            }
        }
    
    
        if (!$m->payed) {
            /* Below we include the payment-screen, because no payment is received (yet) */
            include('includes/include.paymentscreen.php');
        }
    ?>
    											<!--<center><img src="ajax/loading.gif" align="middle"></center>-->
    										</div>
    										<br><br>
    									</td>
    								</tr>
    							</table>
    						</td>
    					</tr>
    				</table>
    				</form>
    			</div>
    			<div id="page_info" style="display:none">
    				<table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3" style="margin-top:0px;">
    										<tr>
    						<td width="400" colspan="2">
    							<div id="alerter" style="width:600px; height: 65px; background:url(images/alert_balloon.jpg) no-repeat; margin-top:10px;">
    								<div id="text_be" style="position:absolute; height:65px; margin-left:35px; margin-top: 8px; line-height:135%; font-size:14px;">
             Hier vind je alle informatie over callcredits:
    								</div>
    							</div>
    						</td>
    					</tr>
    										<tr>
    						<td colspan="2">
    							<form method="GET">
    								<input type="hidden" name="a" value="mod_credit_shop_new">
    								<input type="hidden" name="f" value="phone_be">
    								<table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3">
    									<tr>
    										<td background="images/subheader_bg.jpg" style="background-repeat:no-repeat;" width="395" height="40">
    											<div style="margin-left:10px; font-family:Verdana; font-size:16px; font-weight:bold;">Informatie</div>
    										</td>
    
    
    									</tr>
    
    
    									<tr>
    										<td>
    											<br>
    											<div style="margin-left:10px; font-family:Verdana; font-size:14px;">Callcredits zijn extraatjes die je koopt om sterker,<br> of beter te worden<br>Een aanrader is het betaald account. Dit is een grote<BR>combinatie van voordelen.<br>Je krijgt hierbij ook elke week <b><u>2</b></u> callcredits, dus kopen<BR>HOEFT niet!</div>
    
    
    											<br><br>
    										</td>
    									</tr>
    								</table>
    							</td>
    						</tr>
    					</table>
    				</form>
    			</div>
    
    
    
    
    			<div id="page_shop" style="display:none">
    				<table border="0px" cellpadding="0px" cellspacing="0px" width="100%" bgcolor="#e5dfd3" style="margin-top:0px;">
    					<tr>
    						<td width="400" colspan="2">
    							<div id="alerter" style="width:600px; height: 65px; background:url(images/alert_balloon.jpg) no-repeat; margin-top:10px;">
    								<div id="text_be" style="position:absolute; height:65px; margin-left:35px; margin-top: 8px; line-height:135%; font-size:14px;">
    									<a style="color:black" href="javascript:handleTabs('buy')">Je hebt nu <b><?echo $data->callcredits;?></b> callcredits, klik hier om het aantal op te laden!</a>
    								</div>
    							</div>
    						</td>
    					</tr>
    					<tr>
    						<td colspan="2">
    							<table width="100%" border="0" cellspacing="2" cellpadding="2" class="mod_list" bgcolor="#e5dfd3">
    								<tr>
    									<td align="center" width="3%" class="subtable">&nbsp;</td>
    									<td class="subtable"><strong>Item</strong></td>
    									<td class="subtable" align="center"><strong>Credits</strong></td>
    									<td align="center" width="6%" class="subtable"><strong>Koop</strong></td>
    								</tr>
    	<form method="POST">
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/star_big.gif' alt='15 dagen betaald account' border='0'></td>
    									<td class="subtable">
    										15 dagen betaald account
    																				</td>
    									<td class="subtable">8 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 8){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="first"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/star_big.gif' alt='30 dagen betaald account' border='0'></td>
    									<td class="subtable">
    										30 dagen betaald account
    																				</td>
    									<td class="subtable">15 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 15){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="second"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/money.gif' alt='Extra geld: &euro; 3.000.000' border='0'></td>
    									<td class="subtable">
    										Extra geld: &euro; 3.000.000																				</td>
    									<td class="subtable">8 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 8){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="third"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/money.gif' alt='Extra geld: &euro; 6.000.000' border='0'></td>
    									<td class="subtable">
    										Extra geld: &euro; 6.000.000																				</td>
    									<td class="subtable">15 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 15){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="fourth"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/money.gif' alt='5 keer vaker storten bij de bank' border='0'></td>
    									<td class="subtable">
    										5 keer vaker storten bij de bank																				</td>
    									<td class="subtable">4 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 4){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="fifth"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/money.gif' alt='15 dagen lang 10% rente' border='0'></td>
    									<td class="subtable">
    										15 dagen lang 10% rente																				</td>
    									<td class="subtable">7 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 7){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="sixth"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/shield.gif' alt='24 uur bescherming' border='0'></td>
    									<td class="subtable">
    										24 uur bescherming																				</td>
    									<td class="subtable">9 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 9){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="seventh"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/shield.gif' alt='48 uur bescherming' border='0'></td>
    									<td class="subtable">
    										48 uur bescherming																				</td>
    									<td class="subtable">13 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 13){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="eighth"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/shield.gif' alt='&euro; 1.000.000, 12 uur bescherming en 1.500 power' border='0'></td>
    									<td class="subtable">
    										&euro; 1.000.000, 12 uur bescherming en 1500 power																				</td>
    									<td class="subtable">8 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 8){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="nineth"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/lightning.gif' alt='75000 extra power' border='0'></td>
    									<td class="subtable">
    										75000 extra power																				</td>
    									<td class="subtable">15 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 15){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="tenth"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/heart.gif' alt='Volledige gezondheid (100%)' border='0'></td>
    									<td class="subtable">
    										Volledige gezondheid (100%)																				</td>
    									<td class="subtable">28 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 28){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="eleventh"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/delete.gif' alt='Secret Link Cleaner' border='0'></td>
    									<td class="subtable">
    										Secret Link Cleaner																				</td>
    									<td class="subtable">7 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 7){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="twelveth"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/brick.gif' alt='Maarliefst 150 attack coins' border='0'></td>
    									<td class="subtable">
    										Maarliefst 150 attack coins																				</td>
    									<td class="subtable">7 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 7){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="thirteenth"><?}?>
    																			</td>
    								</tr>
    																<tr class="top">
    									<td align="center" width="6%" class="subtable"><img width="16" src='images/icons_gif/status_offline.gif' alt='Extra account' border='0'></td>
    									<td class="subtable">
    										Extra account
    																				</td>
    									<td class="subtable">15 Credits</td>
    									<td align="center" width="6%" class="subtable">
    <?if($data->callcredits < 15){?>
    																					<font class="callshop_kopen_no">&nbsp;Kopen&nbsp;</font>
    <?}else{?>				<input type="submit" class="mod_submit" value="&nbsp;Kopen&nbsp;" name="fourteenth"><?}?>
    																			</td>
    								</tr>
    															</table>
            </form>
    						</td>
    					</tr>
    				</table>
    			</div>
    
    
    
    
    
    
    					</td>
    	</tr>
    </table>
    <?if($_GET['p'] == shop){
    ?>
    	<script language="javascript">
    		handleTabs('shop');
    	</script>
    <?}
    if(isset($_POST['amount'])){
    ?>
    	<script language="javascript">
    		handleTabs('wallie');
    	</script>
    <?php
    } else if($_GET['action'] == "check"){
    ?>
    	<script language="javascript">
    		handleTabs('bel');
    	</script>
    <?
    }
    else if($_GET['p'] != shop){
    ?>
    	<script language="javascript">
    		handleTabs('buy');
    	</script>
    <?}?>
    
    
    		</td></tr></table>
    		</div>
    
    
    		<table width='100%' cellspacing='2' cellpadding='2'>
    			<tr>
    
    
    				<td class='content_bottom'></td>
    			</tr>
    		</table>
    
    
    <script language="javascript">
    
    
    
    
    
    
      setTimeout("do_nl()",10000);
      setTimeout("do_be()",11000);
    
    
    	function do_nl(){
    		new Ajax.PeriodicalUpdater('ajax_targetpay', 'http://www.goldmaffia.nl/v3//ajax/targetpay.php?code=615158&country=NL',
    	  		{
    	    	method: 'get',
    	    	frequency: 2,
    	    	decay: 1,
    	    	onSuccess: function(transport){
    				var response = transport.responseText.split("|");
          			if(response[0] == "NL_OK"){
          				document.location.href = 'index.php?a=mod_credit_shop_new&f=done_nl&credits='+response[1];
          			}
        		}
    
    
    	  		}
    	  	);
    	}
    
    
    	function do_be(){
    		new Ajax.PeriodicalUpdater('ajax_targetpay', 'http://www.goldmaffia.nl/v3//ajax/targetpay.php?code=615083&country=BE',
    	  		{
    	    	method: 'get',
    	    	frequency: 2,
    	    	decay: 1,
    	    	onSuccess: function(transport){
    				var response = transport.responseText.split("|");
          			if(response[0] == "BE_OK"){
          				document.location.href = 'index.php?a=mod_credit_shop_new&f=done_be&credits='+response[1];
          			}
        		}
    	  		}
    	  	);
    	}
    </script>		</div>
    	</td>
    	</tr>
    
    
    	</table>
    	</td>
    Toon Meer

    Alvast bedankt.

    Gegroet,
    Toon

    Een dag niet gelachen, is een dag niet geleefd!

  • Toontjuhh
    Intermediate
    Berichten
    192
    • 30 mei 2010 om 19:39
    • #2

    Niemand..?:(

    Een dag niet gelachen, is een dag niet geleefd!

  • L.Groot
    Elite members
    Ontvangen Reacties
    31
    Berichten
    4.888
    • 30 mei 2010 om 19:41
    • #3

    Post wallie.php eens?
    Ik weet waarschijnlijk waar het aan ligt ;)

  • Toontjuhh
    Intermediate
    Berichten
    192
    • 30 mei 2010 om 19:50
    • #4
    PHP
    <?php
    // Verander hieronder alleen dingen waarvan je zelf verstand hebt.
    // Als je de database velden niet hebt veranderd hoeft er niks veranderd te worden.
    $siteurl = 'http://www.crimediti.v3host.be/v3'; // Je website link ZONDER backslash (/) op het eind, met v3/ en met http:// en eventueel www.
    $stukprijs = 0.039; // De prijs per credit. (in hele euro's. dus 0.01 is 1 cent!)
    $begin = 25; // Minimaal te kopen credit(s).
    $eind = 1000; // Maximaal te kopen credits.
    $stap = 25; // De stapgrootte voor de slider
    $mid = 369215; // Mollie partner id.
    // Eind gegevens
    
    
    // Begin mollie Wallie base source
    /**
     * Mollie Wallie API
     *
     * For Mollie B.V.
     * More information? Go to www.mollie.nl
     *
     * LICENSE
     *
     * You can use this code freely, if you don't change this comment.
     * Do you make any changes, please provide them back to help us all
     *
     * @category   Mollie
     * @package    Mollie_Wallie
     * @copyright  (c) 2009 Mollie B.V.
     * @author     René Feiner
     * @link       http://www.mollie.nl/
     * @version 1.1
     */
    
    
    class Mollie_Wallie 
    {
    	private $partnerId        = 369215;
    	private $transactionId    = 0;
    	private $amount           = 0;
    	private $reportUrl        = '';
    	private $returnUrl        = '';
    	private $language         = 'NL';     // Default: Dutch (NL)
    	private $currency         = 'EUR';    // Default: Euro
    	private $wallieUrl        = '';
    	private $payed            = false;
    	private $statusMessage    = '';
    
    
    	protected $_errorMessage = '';
    	protected $_errorCode = 0;
    
    
    	/**
    	* Constructor
    	*
    	* @param integer $partnerId
    	*/
    	function __construct($partnerId) 
    	{
    		$this->setPartnerID($partnerId);
    	}
    
    
    	/**
    	* Prepare a Payment
    	*
    	* @param integer $amount
    	* @param string $reportUrl
    	* @param string $returnUrl
    	* @return boolean True on succes, false otherwise
    	*/
    	public function createPayment($amount, $reportUrl, $returnUrl) 
    	{
        
    		if (!$this->setAmount($amount)
    			|| !$this->setReportUrl($reportUrl)
    			|| !$this->setReturnUrl($returnUrl)) 
    		{
    			$this->_errorMessage = "The given arguments are incorrect or incomplete.";
    			return false;
    		}
    
    
    		$result = $this->sendToHost('www.mollie.nl', '/xml/wallie/',
    									'a=fetch' .
    									'&partnerid=' . urlencode($this->getPartnerId()) .
    									'&amount=' .    urlencode($this->getAmount()) .
    									'&reporturl=' . urlencode($this->getReportUrl()) .
    									'&returnurl=' . urlencode($this->getReturnUrl()) .
    									'&language=' .  urlencode($this->getLanguage())
    		);
    		
    		if (empty($result)) 
    		{
    			return false;
    		}
    
    
    		list($headers, $xml) = preg_split("/(\r?\n){2}/", $result, 2);
    
    
    		try {
    			$data = $this->_XMLtoObject($xml);
    
    
    			if ($data == false || $this->_XMLisError($data)) {
    				return false;
    			}
    
    
    			$data          = $data->order;
    			$transactionId = (int) $data->transaction_id;
    			$amount        = (int) $data->amount;
    			$currency      = (string) $data->currency;
    			$wallieUrl     = html_entity_decode((string) $data->URL);
    			$status        = (string) $data->message;
    
    
    			if (!$this->setTransactionId($transactionId)
    					|| !$this->setAmount($amount)
    					|| !$this->setCurrency($currency)
    					|| !$this->setWallieUrl($wallieUrl)
    					|| !$this->setStatus($status)) {
    				return false;
    			}
    		}
    		catch (Exception $e)
    		{
    			return false;
    		}
    
    
    		return true;
    	}
    
    
    	/**
    	* Check if the payment was succesfull
    	*
    	* @param integer $transactionId
    	* @param integer $amount
    	* @return boolean True on succes, false otherwise
    	*/
    	public function checkPayment($transactionId, $amount) 
    	{
    		// set transaction id & amount
    		if (!$this->setTransactionId($transactionId)
    		    || !$this->setAmount($amount)) 
    		{
    			$this->_errorMessage = "The given transactionID and/or amount is incorrect.";
    			return false;
    		}
    
    
    		// check a payment with mollie
    		$result = $this->sendToHost('www.mollie.nl', '/xml/wallie/',
    									'a=check' .
    									'&partnerid=' .      urlencode($this->getPartnerId()).
    									'&transaction_id=' . urlencode($this->getTransactionId()).
    									'&amount='.          urlencode($this->getAmount()));
    		if (empty($result)) 
    		{
    			return false;
    		}
    
    
    		list($headers, $xml) = preg_split("/(\r?\n){2}/", $result, 2);
    
    
    		try 
    		{
    			$data = $this->_XMLtoObject($xml);
    
    
    			if ($data == false ) 
    			{
    				return false;
    			}
    
    
    			$data     = $data->order;
    			$payed    = ($data->payed == 'true');
    			$amount   = (int) $data->amount;
    			$status   = (string) $data->message;
    
    
    			if (!$this->setPayed($payed)
    				|| !$this->setAmount($amount)
    				|| !$this->setStatus($status)) 
    			{
    				return false;
    			}
    		} 
    		catch (Exception $e) 
    		{
    			return false;
    		}
    		
    		return true;
    	}
    
    
    	protected function _XMLtoObject ($xml) 
    	{
    		try 
    		{
    			$xml_object = new SimpleXMLElement($xml);
    			if ($xml_object == false) {
    				$this->error_message = "Kon XML resultaat niet verwerken";
    				return false;
    			}
    		}
    		catch (Exception $e) 
    		{
    			return false;
    		}
    
    
    		return $xml_object;
    	}
    	
    	protected function _XMLisError($xml)
    	{
    		if (isset($xml->item))
    		{
    			$attributes = $xml->item->attributes();
    			if ($attributes['type'] == 'error')
    			{
    				$this->_errorMessage = (string) $xml->item->message;
    				$this->_errorCode    = (string) $xml->item->errorcode;
    			
    				return true;
    			}
    		}
    		
    		return false;
    	}
    
    
    	/**
    	* Send data to given host
    	*
    	* @param string $host Full webhost Url (like 'www.mollie.nl')
    	* @param string $path Path of script
    	* @param string $data Data to send
    	* @return string
    	*/
    	protected function sendToHost($host, $path, $data) 
    	{
    		// posts data to server
    		$fp = @fsockopen($host, 80);
    		$buf = '';
    		if ($fp) 
    		{
    			@fputs($fp, "POST $path HTTP/1.0\n");
    			@fputs($fp, "Host: $host\n");
    			@fputs($fp, "Content-type: application/x-www-form-urlencoded\n");
    			@fputs($fp, "Content-length: " . strlen($data) . "\n");
    			@fputs($fp, "Connection: close\n\n");
    			@fputs($fp, $data);
    			
    			while (!feof($fp)) 
    			{
    				$buf .= fgets($fp, 128);
    			}
    		
    			fclose($fp);		
    		}
    		
    		return $buf;
    	}
    
    
     	/**
    	* Set the Partner Id
    	*
    	* @param integer $partnerId
    	* @return boolean
    	*/
    	protected function setPartnerId($partnerId) 
    	{
    		if (!is_numeric($partnerId)) 
    		{
    			return false;
    		}
    		
    		$this->partnerId = $partnerId;
    		return true;
    	}
    
    
    	/**
    	* Get the Partner Id
    	*
    	* @return integer
    	*/
    	
    	protected function getPartnerId() 
    	{
    		return $this->partnerId;
    	}
    
    
    	/**
    	 * Set transaction amount (price) in cents
    	 *
    	 * @param integer $amount Minimum amount is the cost of a transaction!
    	 * @return boolean
    	 */
    	protected function setAmount($amount) 
    	{	
    		if (!is_numeric($amount)) 
    		{
    			return false;
    		}
    		
    		$this->amount = $amount;
    		return true;
    	}
    
    
    	/**
    	* Get the Amount (price) in cents
    	*
    	* @return integer
    	*/
    	public function getAmount() 
    	{
    		return $this->amount;
    	}
    
    
    	/**
    	 * Set Currency
    	 *
    	 * @param string $currency
    	 * @return boolean
    	 */
    	protected function setCurrency($currency) 
    	{
    		if (empty($currency)) 
    		{
    			return false;
    		}
    		
    		$this->currency = $currency;
    		return true;
    	}
    
    
    	/**
    	 * Get the Currency
    	 *
    	 * @return string
    	 */
    	protected function getCurrency() 
    	{
    		return $this->currency;
    	}
    
    
    	/**
         * Set the Language
         *
         * @param integer $language
         * @return boolean
         */
    	protected function setLanguage($language) 
    	{
    		if (empty($language)) 
    		{
    			return false;
    		}
    		
    		$this->language = $language;
    		return true;
    	}
    
    
    	/**
    	 * Get the Language
    	 *
    	 * @return integer
    	 */
    	protected function getLanguage() 
    	{
    		return $this->language;
    	}
    
    
    	/**
    	 * Set the Url where Mollie reports to if the status of one of our
    	 * payments changes
    	 *
    	 * Mollie adds the 'transaction_id' to this url
    	 *
    	 * @param string $reportUrl
    	 * @return boolean
    	 */
    	protected function setReportUrl($reportUrl) 
    	{
    	
    		if (!preg_match('|(\w+)://([^/:]+)(:\d+)?/(.*)|', $reportUrl)) 
    		{
    			return false;
    		}
    
    
    		$this->reportUrl = $reportUrl;
    		return true;
    	}
    
    
    	/**
    	 * Get the Report Url
    	 *
    	 * @return string
    	 */
    	protected function getReportUrl() 
    	{
    		return $this->reportUrl;
    	}
    
    
    	/**
    	 * Set the Url where Mollie returns to when the payment is done
    	 *
    	 * Mollie add the 'transaction_id' to this url
    	 *
    	 * @param string $returnUrl
    	 * @return boolean
    	 */
    	protected function setReturnUrl($returnUrl) 
    	{
    		if (!preg_match('|(\w+)://([^/:]+)(:\d+)?/(.*)|', $returnUrl)) 
    		{
    			return false;
    		}
    		
    		$this->returnUrl = $returnUrl;
    		return true;
    	}
    
    
    	/**
    	 * Get the Return Url
    	 *
    	 * @return string
    	 */
    	protected function getReturnUrl() 
    	{
    		return $this->returnUrl;
    	}
    
    
    	/**
    	 * Set Payed status
    	 *
    	 * @param boolean $payed
    	 * @return boolean
    	 */
    	protected function setPayed($payed)
    	{
    		if ($payed === false) 
    		{
    			$this->payed = false;
    			return false;
    		}
    		
    		$this->payed = true;
    		return true;
    	}
    
    
    	/**
         * Get the payed status
         *
         * @return boolean
         */
    	protected function getPayed() 
    	{
    		return $this->payed;
    	}
    
    
    	/**
    	 * Set Status message
    	 *
    	 * @param string $status
    	 * @return boolean
    	 */
    	protected function setStatus($status)
    	{
    		if (empty($status)) 
    		{
    			return false;
    		}
    		
    		$this->statusMessage = $status;
    		return true;
    	}
    
    
    	/**
    	 * Get the Status message
    	 *
    	 * @return string
    	 */
    	public function getStatus() 
    	{
    		return $this->statusMessage;
    	}
    
    
    	/**
    	 * Set the Transaction Id
    	 *
    	 * @param integer $transactionId
    	 * @return boolean
    	 */
    	protected function setTransactionId($transactionId) 
    	{
    		if (empty($transactionId)) 
    		{
    			return false;
    		}
    		
    		$this->transactionId = $transactionId;
    		return true;
    	}
    
    
    	/**
         * Get the Transaction Id
         *
         * @return integer
         */
    	public function getTransactionId() 
    	{
    		return $this->transactionId;
    	}
    
    
    	/**
    	 * Get the URL of the Walliepaymentscreen
    	 *
    	 * @return null|string Bank URL when exists, else null
    	 */
    	public function getWallieUrl() 
    	{
    		if (is_null($this->wallieUrl)) 
    		{
    			return null;
    		}
    		
    		return $this->wallieUrl;
    	}
    
    
    	/**
    	* Set the URL of the Walliepaymentscreen
    	*
    	* @param string $bankUrl
    	* @return boolean
    	*/
    	protected function setWallieUrl($wallieUrl) 
    	{	
    		if (!preg_match('|(\w+)://([^/:]+)(:\d+)?/(.*)|', $wallieUrl)) 
    		{
    			return false;
    		}
    		
    		$this->wallieUrl = $wallieUrl;
    		return true;
    	}
    
    
    	public function getErrorMessage()
    	{
    		return $this->_errorMessage;
    	}
    	
    	public function getErrorCode()
    	{
    		return $this->_errorCode;
    	}  
    }
    // End mollie wallie source
    
    
    // Begin script voor banditi
    
    
    
    
    $molliePartnerID = $mid;
    
    
    // Get an instance of the Mollie_Wallie class
    $wallie = new Mollie_Wallie($molliePartnerID);
    
    
    if (!isset($_GET['transaction_id']) and !isset($_GET['amount'])) {
    if(isset($_POST['amount'])){
    
    
      // Create the payment, true on succes, false otherwise
      // $amount = the total money amount that the user has to pay (in cents!)
      // $siteReportUrl = the url where Mollie reports to when the payment is complete.
      //                  Mollie will add payment_type=wallie&transaction_id=<transactionId>&amount=<amount> to this url!
      // $siteReturnUrl = the url where Mollie returns to when the payment is complete.
      //                  Mollie will add transaction_id=<transactionId>&amount=<amount> to this url!
    
    
      $amount        = number_format($_POST['credits']*$stukprijs,2,'','');
      $amount2        = number_format($_POST['credits']*$stukprijs,2,',','.');
      $siteReportUrl = $siteurl.'/index.php?a=wallie';
      $siteReturnUrl = $siteurl.'/index.php?a=wallie';
      
      if ($wallie->createPayment($amount, $siteReportUrl, $siteReturnUrl)) {
      mysql_query("DELETE FROM walliepayments WHERE username='".$data->login."'");
      mysql_query("INSERT INTO walliepayments (username, credits, ontvangen, trxid, datum, pmstatus) VALUES ('".$data->login."', '".$_POST['credits']."', '0', '".$wallie->getTransactionId()."', '".date("m")."', '0')");
    ?>
    				<table border="0px" cellpadding="0px" cellspacing="0px" width="600px" bgcolor="#e5dfd3" style="margin-top:0px;">
    										<tr>
    						<td width="600px" colspan="2">
    							<div id="alerter" style="width:600px; height: 65px; background:url(images/alert_balloon.jpg) no-repeat; margin-top:10px;">
    								<div id="text_nl" style="position:absolute; height:65px; margin-left:35px; margin-top: 8px; line-height:135%; font-size:14px;">
    							Om spullen uit de callshop te kopen heb je callcredits nodig.<br>
    							Je kunt op de volgende manier <b><?php echo $_POST['credits']; ?> callcredits</b> krijgen.
    								</div>
    							</div>
    						</td>
    					</tr>
    										<tr>
    						<td colspan="2">
    <table width="100%">
    <tr>
    <td width="75%">
    <iframe src="<?php echo $wallie->getWallieUrl(); ?>" width="350px" height="195px" frameborder="0"></iframe>
    </td>
    <td width="25%">
    <embed src="flash/gratis_callcredits.swf?callcredits=<?php echo $_POST['credits']; ?>+callcredits&amp;prijs=[#EURO]%20<?php echo $amount2; ?>&amp;top=normal&amp;bottom=normal&amp;gratisbedrag=20" allowscriptaccess="always" wmode="transparent" allowfullscreen="true" width="160" height="175">
    </td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    </table>
    <?php
      }
      else {
        // show message that the payment could not be created
        // the function $wallie->getStatus() returns the status
        // message that Mollie returns
      }
    } else{
    ?>
    <script>
    window.dhx_globalImgPath = "<?php echo $siteurl; ?>/codebase/imgs/";
    </script>
    <script  src="<?php echo $siteurl; ?>/codebase/dhtmlxcommon.js"></script>
    <script  src="<?php echo $siteurl; ?>/codebase/dhtmlxslider.js"></script>
    <script  src="<?php echo $siteurl; ?>/codebase/ext/dhtmlxslider_start.js"></script>
    <link rel="STYLESHEET" type="text/css" href="<?php echo $siteurl; ?>/codebase/dhtmlxslider.css">  
        <script language="javascript"> 
    
    
    		function doe2(pos, slider)  
    		{
    		var cc = pos * <?php echo $stukprijs; ?>;
    		var cred = Math.round(cc * 100) / 100;
    		document.getElementById("a10").value = cred;
    		}
            function berekenamount(pos, slider)  
            {
            var cc = pos * <?php echo $stukprijs; ?>; 
    		var cred = cc.toFixed(2);
    		document.getElementById("mod_wallie_1").innerHTML = cred;
    		document.getElementById("mod_wallie_3").innerHTML = pos;
    		document.getElementById("mod_wallie_4").innerHTML = pos;
    		document.getElementById("mod_wallie_5").innerHTML = pos;
    		document.getElementById("a20").value = pos;
    		var credits = pos, prijs = cred; 
    		document.getElementById("mfla").src = 'flash/gratis_callcredits.swf?callcredits=' + pos + '+callcredits&prijs=[#EURO]%' + cred + '&top=normal&bottom=normal&gratisbedrag=20';
            }
        </script>
    				<table border="0px" cellpadding="0px" cellspacing="0px" width="600px" bgcolor="#e5dfd3" style="margin-top:0px;">
    										<tr>
    						<td width="600px" colspan="2">
    							<div id="alerter" style="width:600px; height: 65px; background:url(images/alert_balloon.jpg) no-repeat; margin-top:10px;">
    								<div id="text_nl" style="position:absolute; height:65px; margin-left:35px; margin-top: 8px; line-height:135%; font-size:14px;">
    									Om spullen uit de callshop te kopen heb je callcredits nodig.<br>
    									Je kunt op de volgende manier <b><span id="mod_wallie_3"><?php echo $begin; ?></span> callcredits</b> krijgen:
    								</div>
    							</div>
    						</td>
    					</tr>
    										<tr>
    						<td colspan="2">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<u><b><font color="#442C14" size="2">Hoeveel callcredits wil je kopen?</font></b></u>
    <table width="100%">
    <tr>
    <td width="75%">
    <form method="post" name="form">
    <div align="center">
    <input type="hidden" id="a10" value="20" name="amount">
    <input type="hidden" id="a20" value="20" name="credits">
    <font color="#442C14" size="2">Aantal callcredits:</font>
    <script>
    		var slider1 = new dhtmlxSlider(null, 250, "callshop", false, <?php echo $begin; ?>, <?php echo $eind; ?>, 20, <?php echo $stap; ?>);
    		slider1.attachEvent("onChange", berekenamount);
    		slider1.attachEvent("onChange", doe2);
    		slider1.linkTo('a20');
    		slider1.init();
    </script>
    <i><font color="#442C14" size="2">Versleep het icoon om nog meer callcredits te kopen.</font></i><br /><br /><br />
    <font color="#442C14" size="2">Ik wil <b><span id="mod_wallie_4"><?php echo $begin; ?></span> callcredits</b> voor <b>&euro;<span id="mod_wallie_1"><?php echo number_format($stukprijs*$begin,2,'.','.'); ?></span></b> via <u>Wallie</u> kopen.</font><br />
    </div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value="Start Wallie" onclick="javascript:handleTabs('wallie');">
    
    
    </td>
    </form>
    <td width="25%">
    <embed id='mfla' src='flash/gratis_callcredits.swf?callcredits=<?php echo $stukprijs; ?> euro &prijs=per callcredit&top=normal&bottom=normal&gratisbedrag=20' allowscriptaccess='always' wmode='transparent' allowfullscreen='true' width='160' height='175'>
    
    
    </td>
    </tr>
    </table>
    </div>
    </td>
    </tr>
    </table>
    <?php
    }
    } else if (isset($_GET['payment_type']) and $_GET['payment_type'] == 'wallie' and isset($_GET['transaction_id']) and isset($_GET['amount'])) {
      // Check if payment is OK.
      $checkPayment = $wallie->checkPayment($_GET['transaction_id'], $_GET['amount']);
      // Mollie makes sure a transaction can only
      // be used one time!
      
      if ($checkPayment == true) {
        // Get the amount of money the user has payed
        $paymentAmount = $wallie->getAmount();
        // Set in your database the paymentstatus to OK.
        mysql_query("UPDATE walliepayments SET pmstatus='1' WHERE username='".$data->login."'");
      }  
      else {
        // Payment failed
      }
    } else {
        $rees = mysql_query("SELECT credits FROM walliepayments WHERE username='".$data->login."'");
        $sel = mysql_fetch_array($rees);
        $query = mysql_query("UPDATE users SET callcredits=callcredits+'".$sel['credits']."' WHERE login='".$data->login."'");
    if($query){
    ?>
    	<div class="title_bg">
    			<div class="title">Koop <?php echo $sel['credits']; ?> credits met Wallie</div>
    		</div>
    
    
    		<div style="background-color:#E5DFD3; padding:10px; padding-top:4px;">
    <?php
        mysql_query("UPDATE walliepayments SET ontvangen='1' WHERE username='".$data->login."'");
      // Check in your database if the customer has payed using $_GET['transaction_id'] parameter
      // and show customer a 'thank you'-page or a 'your order will be processed'-page.
     
     echo '<b>De betaling is met succes verwerkt.<br />Er zijn zojuist <u>'.$sel['credits'].' callcredits</u> op jouw account bijgeschreven.<br />Veel succes ermee!</b>';
    ?>
    </div>
    <?php
    } else{
    echo '<font color="red"><b>De callcredits zijn <u>niet</u> bijgeschreven.<br />Stuur a.u.b. een mailtje naar [email protected] met hierin je gebruikersnaam.<br />Wij checken dan de status van jouw betaling.</b>';
    }
    }
    ?>
    Toon Meer

    Alstu:cheer:

    Een dag niet gelachen, is een dag niet geleefd!

  • A.Bijlsma
    Web Developer
    Ontvangen Reacties
    3
    Berichten
    1.795
    • 12 februari 2011 om 14:08
    • #5

    Heb je het al lars?

    Met vriendelijke groet,

    A.Bijlsma
    Venimo

  • L.Groot
    Elite members
    Ontvangen Reacties
    31
    Berichten
    4.888
    • 12 februari 2011 om 14:17
    • #6

    Ik script zo wel even een nieuwe unbugged van wallie ;)
    Post ik vanavond hier de betaallink.
    Wel met de jQuery slider dus hij word wel iets anders ;).

  • A.Bijlsma
    Web Developer
    Ontvangen Reacties
    3
    Berichten
    1.795
    • 12 februari 2011 om 15:01
    • #7

    Oke.

    Met vriendelijke groet,

    A.Bijlsma
    Venimo

  • Thisguyisgone
    Elite members
    Ontvangen Reacties
    197
    Berichten
    7.880
    • 12 februari 2011 om 21:16
    • #8

    Kan je het ook voor andere sources doen ? Zodat het gemakkelijk aanpasbaar is :).

  • Sourceshop
    Alles wat u wenst op sour
    Berichten
    780
    • 12 februari 2011 om 21:18
    • #9

    Is simpel aan te passen Maviose, voor welke source

    Alles wat u wenst op Sourceshop.nl
    Voor uw Banditi :!:
    Voor me mobile website Alles wat u wenst!

  • Thisguyisgone
    Elite members
    Ontvangen Reacties
    197
    Berichten
    7.880
    • 12 februari 2011 om 21:20
    • #10

    Zelf gemaakte.

  • L.Groot
    Elite members
    Ontvangen Reacties
    31
    Berichten
    4.888
    • 13 februari 2011 om 14:36
    • #11

    Zo, ik heb hem afgerond.

    Voorbeeld:
    http://rapifia.nl/banditi/v3/index.php?a=buycredits
    Login: demo
    Passw: demo

    Downloaden: (á ?1,50)
    http://www.mollie.nl/partners/betaa…09921&id=932937

    Ik hoop dat hij voor veel mensen te gebruiken is.

  • A.Bijlsma
    Web Developer
    Ontvangen Reacties
    3
    Berichten
    1.795
    • 13 februari 2011 om 14:42
    • #12

    Mooi gemaakt, wanneer geef je de van sms vrij?

    Met vriendelijke groet,

    A.Bijlsma
    Venimo

  • L.Groot
    Elite members
    Ontvangen Reacties
    31
    Berichten
    4.888
    • 13 februari 2011 om 14:44
    • #13

    Geen idee, in ieder geval niet meer deze week.

  • A.Bijlsma
    Web Developer
    Ontvangen Reacties
    3
    Berichten
    1.795
    • 13 februari 2011 om 15:01
    • #14

    Wat bedoel je met deze stukje script?:

    PHP
    $returnurl = 'http://osbanditi.nl/walliecb.php'; // Return link van consument
    $reporturl = 'http://jouwsite.nl/banditi/walliecb.php'; // Report link van mollie

    Moet ik 2 keer het zelfde invoeren want heb geen map van banditi

    Met vriendelijke groet,

    A.Bijlsma
    Venimo

  • L.Groot
    Elite members
    Ontvangen Reacties
    31
    Berichten
    4.888
    • 13 februari 2011 om 15:08
    • #15

    Ja, twee maal hetzelfde ;)
    Is gewoon het walliecb.php scriptje van de ROOT map.
    Dus bij jou is het http://osbanditi.nl/walliecb.php idd.
    En vergeet niet om de MySQL gegevens in dat walliecb.php bestandje in te vullen.

    En je mag het script o.a. niet bij iemand installeren als hij het script niet heeft, of het script doorverkopen aan andere mensen.

  • A.Bijlsma
    Web Developer
    Ontvangen Reacties
    3
    Berichten
    1.795
    • 13 februari 2011 om 15:13
    • #16

    En nog een vraag op mijn site, zie je geen icoon om te slepen.
    site: http://www.osbanditi.nl/v3/index.php?a=wallie
    account: demo
    wachtwoord: demo

    Met vriendelijke groet,

    A.Bijlsma
    Venimo

  • Nillas
    NJMedia
    Berichten
    1.106
    • 13 februari 2011 om 16:04
    • #17

    A.Bijlsma: Ik zie het wel gewoon hoor...

  • A.Bijlsma
    Web Developer
    Ontvangen Reacties
    3
    Berichten
    1.795
    • 13 februari 2011 om 16:12
    • #18

    Ja, nu wel komt omdat hij me op msn geholpen heeft.

    Voor degene die hem al hebben gekocht en geen jQuery map in de v3 map hebben, moeten Lars even vragen voor die map. Hij was die map vergeten erin te doen.

    Met vriendelijke groet,

    A.Bijlsma
    Venimo

  • L.Groot
    Elite members
    Ontvangen Reacties
    31
    Berichten
    4.888
    • 13 februari 2011 om 16:34
    • #19

    Ja, de nieuwe kopers hebben hem er nu al wel in zitten ;)
    Hij werkt iig.

  • mattie1992
    Intermediate
    Berichten
    172
    • 13 februari 2011 om 23:19
    • #20

    walliecb.php zit niet in de zip file?

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!

Maak een account aan Login

ICT Nieuws

  • Fijne feestdagen

    tcbhome 28 december 2025 om 13:55
  • Kritieke update voor Really Simple Security-plug-in

    K.Rens 16 november 2024 om 16:12
  • ING Nederland streeft naar ondersteuning van Google Pay tegen eind februari

    K.Rens 2 november 2024 om 16:09

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37

Gebruikers die dit topic bekijken

  • 2 Gasten
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacy Policy
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen | Beste Zetes eid kaartlezer webshop
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design