doorverwijzing probleem index.php

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Java Front-end Developer

Dit ga je doen Ontwikkelen van nieuwe functionaliteiten in Java met tools als Springboot, MS SQL Server (T-SQL) en JavaScript; Het onderhouden van de (web-)applicaties binnen een complexe omgeving; Werken aan de migratie van een monolithisch systeem naar een architectuur gebaseerd op Kubernetes; Code reviews met collega's en actieve kennisuitdelingsessies voeren; Het uitvoeren van unit- en systeemtests Experimenteren met nieuwe tools en technieken. Hier ga je werken Binnen deze organisatie kom je te werken op de afdeling die gegevens verzamelt vanuit het hele land. Denk hierbij aan vertrouwelijke persoonsgegevens. Het team verwerkt al deze data met als doel het waarborgen

Bekijk vacature »

PHP Developer

Dit ga je doen Je werkt nauw samen met het websitebureau aan de ontwikkeling en optimalisering van het internationale platform; Je ziet nieuwe webshops op en voert optimalisaties door; Je bouwt aan technische, functioneel en commercial resultaat; Je vindt het leuk om zelfstandig binnen een internationale organisatie te werken, maar krijgt ook energie om samen met collega's te werken. Hier ga je werken Voor een bedrijf in de regio Rotterdam zijn wij opzoek naar een PHP Developer. Je wordt onderdeel van het communicatieteam en gaat je bezighouden met het optimaliseren van de website van dit internationale bedrijf. Je schakelt veel

Bekijk vacature »

Back-end Developer

Functie omschrijving Als Back-end Developer heb je de eer om als eerste interne developer bij deze organisatie te beginnen. Op dit moment zijn er externe developers, maar daar wil de organisatie verandering in brengen. Op termijn moet de gehele afdeling uit intern personeel bestaan. Je kan je voorstellen dat de eerste interne developer ook de nodige kennis mee moet brengen. Dat klopt. Je gaat je namelijk aan het begin bekommeren over de externe developers en uiteindelijk over je interne collega's. Verder ga je het volgende doen: Het bedenken, beheren en onderhouden van webportalen, API-koppelingen en applicaties; Je bedenkt en werkt

Bekijk vacature »

Fullstack developer

Functieomschrijving Heb jij kort geleden jouw HBO ICT diploma in ontvangst mogen nemen? Of ben je toe aan een andere uitdaging? Voor een erkende werkgever in de omgeving van Breda zijn wij op zoek naar een Fullstack developer. Kennis of ervaring met C# & SQL is een must! Je houdt je bezig met het ontwikkelen van nieuwe functionaliteiten; Je bent verantwoordelijk voor de beheer en ontwikkeling van de software; Je draagt bij aan de implementatie van aanpassingen, verbeteringen en aanvullingen in de C# based applicaties; Je test de software en ontwikkelt deze door; Je brengt de aanpassingssuggesties van klanten in

Bekijk vacature »

Medior Mobile Developer iOS Amsterdam

Functie What will you be doing as Mobile Developer? As an iOS app developer you will work in a multidisciplinary team of app developers, web developers and designers. You will work on world-class apps that will be used by thousands of people. There is a lot of room for self-development on a technical and personal level. Together with the rest of the team you develop in the newest techniques and you go for the best quality. We work with Kotlin Multiplatform Mobile to develop hybrid apps and we guarantee quality with peer reviews, unit testing and we use a CI/CD.

Bekijk vacature »

Developer

Functie omschrijving In deze functie ga je werken als C# Developer. Jij gaat aan de slag met de volgende taken: Maatwerk software bouwen; Huidige softwareprojecten verder uitbouwen en optimaliseren; Ideeën van de klant omzetten naar handige oplossingen en tools; Bovenstaande doe je middels de Microsoft- stack: C#, ASP.NET en MVC/ Entity Framework. Ben je net afgestudeerd aan een HBO opleiding Informatica, aarzel dan niet om te solliciteren. Dit is namelijk de ideale startersfunctie! Bedrijfsprofiel Deze organisatie is gevestigd in de regio van Boxtel. Het is van oorsprong een familiebedrijf, die gestart zijn met het bouwen van websites. Dit is door

Bekijk vacature »

Senior Fullstack Developer (GOLang, TypeScript)

Bedrijfsomschrijving Our client is one of the large worldwide accounting firms. Functieomschrijving We are looking for a senior (all-round) developer (Project On Demand / Tax Technology) Uses as much as possible technology in support of the development process: Git, Jenkins, Docker, npm, skaffold, helm, etc. We are looking for a real hands-on developer; ie not a team lead or other managerial-style role; Acts with integrity both internally and externally and takes personal responsibility in this respect; Curious about the developments within their field and driven to make a difference with the team; Able to empathize with colleagues and stakeholders and

Bekijk vacature »

Senior Cobol Applicatieontwikkelaar

Bedrijfsomschrijving De IV- organisatie van de Belastingdienst is verantwoordelijk voor en verzorgt de ICT- voorzieningen. Het merendeel van de applicaties wordt op dit moment door de IV- organisatie zelf ontwikkeld, onderhouden en beheerd in het eigen data center. Naast de zorg voor continuïteit op de massale heffing- en inningsprocessen die plaatsvinden binnen een degelijke, stabiele omgeving, wordt er tevens volop gewerkt aan modernisering van het IV- landschap. Dit gebeurt deels intern door gebruik te maken van de expertise die intern aanwezig is, maar ook door het aantrekken van (kant-en-klaar) oplossingen en expertise uit de markt. Functieomschrijving In de applicatie ETM

Bekijk vacature »

Senior .NET developer

Functie As a Senior .NET developer you will work in our Research & development team. Our team consists of 17 colleagues! We are currently busy setting up a completely new architecture for a new product. We use VS2022 and .NET 6.0 for our new product. Your function is therefore mainly backend oriented. Since we develop measuring equipment for the chemical industry, it is also very important to develop high-quality software for its control. You are also responsible for designing, implementing and testing new features. For this position its also very important to ensure future-proof and sustainable architecture. Eisen - A

Bekijk vacature »

Technical Asset Specialist Substations

TenneT is growing fast to realize its strategic ambitions. We play a leading role in driving the energy transition. We are looking for a passionate Technical Asset Specialist for substations (onshore and offshore) at our location in Arnhem who will contribute to this and that might be you? Your contribution to TenneT We are searching for a motivated and engaged colleague as a technical asset specialist (onshore and offshore) for instrument transformers and surge arresters, with preferably a strong background in the area of insulation coordination. As a specialist for insulation coordination you are responsible for overarching topics regarding insultation

Bekijk vacature »

Embedded Software Developer

Functie omschrijving Ben jij een Embedded Software Developer die affiniteit heeft met de allernieuwste technieken? Voor een mooi softwarebedrijf in omgeving Gouda zijn wij op zoek naar een Embedded Software developer. Binnen deze rol houdt jij je bezig met alle werkzaamheden die nodig zijn om een functionaliteit te bouwen. Denk aan ontwerpen, architectuur, programmeren en algoritmes. Je voert test en validatie werkzaamheden uit bij de implementatie bij de klant. Ben jij enthousiast en een echte team player? Lees dan snel verder en laat wat van je horen! Bedrijfsprofiel Onze opdrachtgever bestaat uit een groot aantal creatieve en ambitieuze ontwikkelaars. Ze

Bekijk vacature »

Software Programmeur PHP - JAVA

Functie Heb jij altijd al willen werken voor een bedrijf, dat veilige netwerkverbindingen levert, door middel van veilige oplossingen, die door middel van de nieuwste technologieën ontwikkelt zijn? Stop dan nu met zoeken! Voor een opdrachtgever in omgeving Moordrecht zijn wij op zoek naar een programmeur. Hoe kan jouw dag er straks uitzien? Je gaat software en webapplicaties ontwikkelen met behulp van de talen C / C++ / PHP. Je gaat technische klussen uitvoeren op locatie bij klanten. Je onderhoudt contact met de projectleider om er zeker van te zijn dat een projecten goed verlopen. Je gaat klanten ondersteunen op

Bekijk vacature »

C#.NET Developer Jr. Functie

Functie omschrijving Bouw jij graag aan applicaties om processen in distributiecentra te optimaliseren? Wij zijn op zoek naar een C#.NET ontwikkelaar in regio Breda die hier graag een steentje aan bijdraagt! Jouw werkzaamheden zullen er als volgt uitzien: Je krijgt veel vrijheid in de keuze van de technieken die je gaat gebruiken. Uiteraard wel binnen de gestelde kaders, en door gebruik te maken van het .NET platform. Je gaat aan de slag met de ontwikkeling van een nieuwe module binnen de WMS suite van dit bedrijf. Deze "carrier" module gaat er voor zorgen dat de selectie van een vervoerder volledig

Bekijk vacature »

Front-end developer E-Commere

Functie E-commerce is een ‘’snelle’’ wereld. Om hierin continu voorop te blijven omarmen ze in een vroeg stadium nieuwe technieken. Een webshop is nooit af en kan altijd beter, sneller en efficiënter. Tegelijkertijd hebben ze vanaf hun oprichting altijd vastgehouden aan kwaliteit boven snelheid, en dit loont. Als front-end developer heb je een adviserende rol en sta je aan het eindpunt van alles wat met designs te maken heeft. Je overlegt met klanten en collega’s, en zet je in om ideeen om te zetten tot unieke concepten. Je bent het aanspreekpunt voor de klant en bewaakt tevens de planning. Eisen

Bekijk vacature »

Java developer (remote)

Functie Wat ga je doen als Java Developer? Jij als Java ontwikkelaar komt te werken in 1 van onze SCRUM teams. Momenteel werken er zo’n 30 ontwikkelaars binnen onze organisatie waarbij jij de brug slaat tussen het bouwen van verschillende functionaliteiten binnen onze applicaties en deze vervolgens te integreren in onze centrale hub. Je start je dag om 9 uur met een stand up en dan pak je jouw taken op voor de dag. Hieronder een aantal taken die jij zal uitvoeren: – Het bedenken en uitbouwen van features binnen de verschillende applicaties – Onderhouden van CI/CD pipelines – Bezighouden

Bekijk vacature »

Pagina: 1 2 3 volgende »

Simone Joosten

Simone Joosten

30/01/2014 06:50:32
Quote Anchor link
Hallo ik ben een site aan het maken, maar helaas werkt de index niet goed.
Zodra je op mijn site op bestellen klikt, of in wil loggen in het admin gedeelte
dan krijg je alleen een doorverwijzingslink ipv de pagina waar hij heen moet gaan.

Site waar het omgaat : http://1-product.nl


Helaas weet ik niet hoe ik hier de code moet plaatsen.

Hopelijk kan iemand mij helpen dit te herstellen.
Gewijzigd op 30/01/2014 10:32:36 door Simone Joosten
 
PHP hulp

PHP hulp

12/05/2024 07:25:00
 
Michael -

Michael -

30/01/2014 08:18:39
Quote Anchor link
Open in FTP je index.php
Zoek in dat bestand naar 'http://1-product.nl/order.php'
En kopier die regel en aantal omliggende code.
Om de code hier te plaatsen zet je het tussen [code.] en [/code.] (zonder punt)
 
Simone Joosten

Simone Joosten

30/01/2014 08:22:08
Quote Anchor link
Hier bij de code waar het omgaat :

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
// Process form
if (fRequest::isPost()) {
    $amount = fRequest::get('amount');
    $_SESSION['amount']=$amount;
    fURL::redirect('order.php');
}
?>

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<?php echo WEBSITE_TITLE; ?>
</title>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<?php include_once('meta.inc.php'); ?>

<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.green.css">
<script src="js/modernizr.js"></script>
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<link rel="stylesheet" type="text/css" href="css/iefix.css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie7fix.css" />
<![endif]-->

<!--[if IE 9]>
<style>
label.number-select.ind:before {
margin-right: 1px;
height: 48px;
margin-top: 16px;
}
</style>
<![endif]-->
</head>
<body>
<div class="container wrap">
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<?php include_once('header.inc.php'); ?>


<section style="margin-bottom: 30px;">
<section class="full_width product">
<div class="product_information">
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
<?php
            if($product_images != null){ ?>

<a href="#" class="unslider-arrow prev">Previous slide</a>
<a href="#" class="unslider-arrow next">Next slide</a>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<?php } ?>

<div class="slider_wrapper">
<ul>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
<?php
                        if($product_images != null){
                        foreach ($product_images as $p_img) {
                            echo '<li><img src="img/product/'.$p_img["image_url"].'" /></li>';
                        }
                        }

                    ?>

</ul>
</div>

<div>
<h1>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<?php echo $product['name']; ?>
</h1>
<h2>Product informatie</h2>
<p>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<?php echo $product['description']; ?>
</p>
<span class="deliver_time">Voor 16:00 besteld, morgen in huis</span>
</div>

<div class="clearfix"></div>
</div>
<div>
<ul>
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
<?php
                        if(TARGETPAY_STATUS == 1) {
                           if(PAYSAFE_STATUS == 1) { echo '<li><img src="img/payment_paysafecard_small.png" alt="PaysafeCard" /></li>'; }
                            if(IDEAL_STATUS == 1) { echo '<li><img src="img/payment_ideal_small.png" alt="iDeal" /></li>'; }
                            if(BANCONTACT_STATUS == 1) { echo '<li><img src="img/payment_bancontact_small.png" alt="Bancontact" /></li>'; }
                        }

                        if(PAYPAL_STATUS == 1) {
                            echo '<li><img src="img/payment_paypal_small.png" alt="PayPal" /></li>';
                        }

                    ?>

</ul>
<form action="
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<?php echo fURL::get() ?>
" method="post">
<strong>€
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
<?php echo $product['price']; ?>
<bdi>incl. 21% BTW</bdi></strong>
<label class="number-select ind">
<select name="amount">
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
<?php
                        for ($x=1; $x<=10; $x++)
                        {

                            echo '<option value="'.$x.'">'.$x.'</option>';
                        }

                        ?>

</select>
</label>
<button type="submit">Bestellen</button>
</form>
</div>


De tekst die jij zei Michael staat er niet in
 
Michael -

Michael -

30/01/2014 08:44:05
Quote Anchor link
Graag nog even tussen [code.] en [/code.] zetten zoals ik al zei.
Op deze regel fURL::redirect('order.php'); zou die naar order.php moeten verwijzen, maar doet dit dus niet...
Gewijzigd op 30/01/2014 08:51:57 door Michael -
 
Simone Joosten

Simone Joosten

30/01/2014 09:59:22
Quote Anchor link
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
// Initialise Flourish Library
include_once('inc/init.php');

// Get product information
$product = pProduct::getProduct();
$product_images = pProduct::getImages();


// Process form
if (fRequest::isPost()) {
    $amount = fRequest::get('amount');
    $_SESSION['amount']=$amount;
    fURL::redirect('order.php');
}

?>

<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php echo WEBSITE_TITLE; ?></title>
    <?php include_once('meta.inc.php'); ?>
    <link rel="stylesheet" href="css/normalize.min.css">
    <link rel="stylesheet" href="css/main.green.css">
    <script src="js/modernizr.js"></script>
    <!--[if lt IE 9]>
        <script src="js/html5shiv.js"></script>
        <link rel="stylesheet" type="text/css" href="css/iefix.css" />
    <![endif]-->
    <!--[if IE 7]>
        <link rel="stylesheet" type="text/css" href="css/ie7fix.css" />
    <![endif]-->

     <!--[if IE 9]>
        <style>
            label.number-select.ind:before {
                margin-right: 1px;
                height: 48px;
                margin-top: 16px;
            }
        </style>
    <![endif]-->
</head>
<body>
<div class="container wrap">
    <?php include_once('header.inc.php'); ?>
    
    <section style="margin-bottom: 30px;">
        <section class="full_width product">
            <div class="product_information">
                <?php
            if($product_images != null){ ?>

                <a href="#" class="unslider-arrow prev">Previous slide</a>
                <a href="#" class="unslider-arrow next">Next slide</a>
            <?php } ?>
            <div class="slider_wrapper">
                <ul>
                    <?php
                        if($product_images != null){
                        foreach ($product_images as $p_img) {
                            echo '<li><img src="img/product/'.$p_img["image_url"].'" /></li>';
                        }
                        }

                    ?>

                </ul>
            </div>
            
            <div>
                <h1><?php echo $product['name']; ?></h1>
                <h2>Product informatie</h2>
                <p><?php echo $product['description']; ?></p>
                <span class="deliver_time">Voor 16:00 besteld, morgen in huis</span>
            </div>
            
            <div class="clearfix"></div>
            </div>
            <div>
                <ul>
                    <?php
                        if(TARGETPAY_STATUS == 1) {
                           if(PAYSAFE_STATUS == 1) { echo '<li><img src="img/payment_paysafecard_small.png" alt="PaysafeCard" /></li>'; }
                            if(IDEAL_STATUS == 1) { echo '<li><img src="img/payment_ideal_small.png" alt="iDeal" /></li>'; }
                            if(BANCONTACT_STATUS == 1) { echo '<li><img src="img/payment_bancontact_small.png" alt="Bancontact" /></li>'; }
                        }

                        if(PAYPAL_STATUS == 1) {
                            echo '<li><img src="img/payment_paypal_small.png" alt="PayPal" /></li>';
                        }

                    ?>

                </ul>
                <form action="<?php echo fURL::get() ?>" method="post">
                    <strong> <?php echo $product['price']; ?> <bdi>incl. 21% BTW</bdi></strong>
                    <label class="number-select ind">
                    <select name="amount">
                        <?php
                        for ($x=1; $x<=10; $x++)
                        {

                            echo '<option value="'.$x.'">'.$x.'</option>';
                        }

                        ?>

                    </select>
                    </label>
                    <button type="submit">Bestellen</button>
                </form>
            </div>
            
        </section>
    
    </section>
    
    <section class="testimonials">
            <h2><img src="img/icon_testimonials.png" alt="" /> Wat zeggen onze klanten</h2>
            <div>
                <p>Zeer snelle levering! Binnen een dag had ik hem al op de mat.
                    Helaas paste de ring mij niet en kon ik hem gratis omruilen voor een kleinere! Het werkt </p>
                <strong>Janette Verschuren</strong>
            </div>
            <div>
                <p>Zeer snelle levering! Binnen een dag had ik hem al op de mat.
                    Helaas paste de ring mij niet en kon ik hem gratis omruilen voor een kleinere! Het werkt </p>
                <strong>Janette Verschuren</strong>
            </div>
            <div>
                <p>Zeer snelle levering! Binnen een dag had ik hem al op de mat.
                    Helaas paste de ring mij niet en kon ik hem gratis omruilen voor een kleinere! Het werkt </p>
                <strong>Janette Verschuren</strong>
            </div>
            <div class="clearfix"></div>
        </section>
        <div class="clearfix"></div>
</div>

<?php include_once('footer.inc.php'); ?>

<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<?php if($product_images != null){ ?>
<script src="js/unslider.min.js"></script>
<script type="text/javascript">
$(function() {
    var unslider = $('.slider_wrapper').unslider({
        delay: <?php echo SLIDER_TIMER * 1000; ?>
    });
        data = unslider.data('unslider');
        <?php if(SLIDER == 0) {
            echo "data.stop();";            
        }
?>

    $('.unslider-arrow').click(function() {
        var fn = this.className.split(' ')[1];
        
        //  Either do unslider.data('unslider').next() or .prev() depending on the className
        unslider.data('unslider')[fn]();
    });
});    
</script>
<?php } ?>
</body>
</html>


Ik heb hem weer tussen die code's gezet, maar volgens mij werkt dat niet echt
en ja hij zou inderdaad naar http://site.nl/order.php moeten gaan
 
- Ariën  -
Beheerder

- Ariën -

30/01/2014 10:21:03
Quote Anchor link
Heb je ook een class met de naam: fURL?
Kan je er iets relevants over in vinden, in inc/init.php?
 
Simone Joosten

Simone Joosten

30/01/2014 10:30:35
Quote Anchor link
In inc/init.php staat helemaal niks met fURL :(
 
- Ariën  -
Beheerder

- Ariën -

30/01/2014 10:32:52
Quote Anchor link
Heb je al bovenaan dit geplaatst. Altijd zeer handig bij onverwachte fouten.
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
<?php
error_reporting(E_ALL);
ini_set('display_errors',1);
?>
Gewijzigd op 30/01/2014 10:33:02 door - Ariën -
 
Simone Joosten

Simone Joosten

30/01/2014 10:34:14
Quote Anchor link
in init.php moet ik dat plaatsen ?
 
Michael -

Michael -

30/01/2014 10:44:08
Quote Anchor link
Simone Joosten op 30/01/2014 10:34:14:
in init.php moet ik dat plaatsen ?

Nee, helemaal bovenaan in je index.php
 
Simone Joosten

Simone Joosten

30/01/2014 10:45:29
Quote Anchor link
Heb ik gedaan, maar dan gebeurd er niks
 
- Ariën  -
Beheerder

- Ariën -

30/01/2014 10:54:08
Quote Anchor link
Wat staat er in init.inc.php, ik neem aan dat dit geen hele lap code is?
 
Simone Joosten

Simone Joosten

30/01/2014 10:56:38
Quote Anchor link
nee dat is het niet, dit is wat erin staat :

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
<?php
define("INSTALL_LOCATION", "");
include($_SERVER['DOCUMENT_ROOT'] . INSTALL_LOCATION . '/inc/config.php');
?>
 
Michael -

Michael -

30/01/2014 10:59:17
Quote Anchor link
Staat die fURL niet in config.php?
 
- Ariën  -
Beheerder

- Ariën -

30/01/2014 10:59:19
Quote Anchor link
Dan vrees ik dat je script incompleet is, tenzij er nog wat interessants in je config zal staan, maar dat zal uit vast enkele tientallen configuratie-items zijn, ben ik bang.
 
Simone Joosten

Simone Joosten

30/01/2014 11:01:12
Quote Anchor link
Dit is config.php er staan alleen nog de inloggegevens boven dit.

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
define("LOGO", "logo_waxlon.png");
define("WEBSITE_TITLE", "Demonstratie");
define("WEBSITE_KEYWORDS", "Product Systeem, Webshop");
define("WEBSITE_DESCRIPTION", "Dit is een voorbeeld description");
define("SLIDER", "0");
define("SLIDER_TIMER", "3");

define("TARGETPAY_ID", "84909");
define("TARGETPAY_STATUS", "1");
define("TARGETPAY_TEST", "1");
define("BANCONTACT_STATUS", "1");
define("BANCONTACT_FEE", "0.2");
define("IDEAL_STATUS", "1");
define("IDEAL_FEE", "0");
define("BELLEN_STATUS", "1");
define("BELLEN_FEE", "0.66");
define("PAYSAFE_STATUS", "1");
define("PAYSAFE_FEE", "0");
    
define("PAYPAL_EMAIL", "*****");
define("PAYPAL_PASSWORD", "***");
define("PAYPAL_SIGNATURE", "***");
define("PAYPAL_STATUS", "1");
define("PAYPAL_TEST", "0");
define("PAYPAL_FEE", "0.57");

define("FB_URL", "http://www.facebook.com/t");
define("TWITTER_URL", "http://www.twitter.com/t");

/**
 * Automatically includes classes
 *
 * @throws Exception
 *
 * @param  string $class_name  Name of the class to load
 * @return void
 */
function __autoload($class_name)
{
    // Customize this to your root Flourish directory
    $flourish_root = $_SERVER['DOCUMENT_ROOT'] . INSTALL_LOCATION . '/inc/flourish/';
    
    $file = $flourish_root . $class_name . '.php';

    if (file_exists($file)) {
        include $file;
        return;
    }
    
    throw new Exception('The class ' . $class_name . ' could not be loaded');
}

// Authorisation levels
fAuthorization::setLoginPage('admin/index.php');
fAuthorization::setAuthLevels(array('admin' => 2, 'user' => 0));
?>

Edit:
Veiligheidsedit
Gewijzigd op 30/01/2014 11:10:05 door - Ariën -
 
Michael -

Michael -

30/01/2014 11:03:52
Quote Anchor link
Je mag je paypal password en signature wel even weg halen.
Lijkt me dan inderdaad dat je iets mist.
Edit:

of er moet in de map 'flourish' nog een furl.php o.i.d. zijn.
Gewijzigd op 30/01/2014 11:04:59 door Michael -
 
Simone Joosten

Simone Joosten

30/01/2014 11:15:49
Quote Anchor link
er heeft iemand nagekeken en de fout zit in "Redirect gaat niet goed: fURL::redirect, gebruikte framework is Flourish"wat het inhoud weet ik niet helaas :(

Er idd een furl.php in flourish hier onder de code

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<?php
/**
 * Provides functionality to retrieve and manipulate URL information
 *
 * This class uses `$_SERVER['REQUEST_URI']` for all operations, meaning that
 * the original URL entered by the user will be used, or that any rewrites
 * will **not** be reflected by this class.
 *
 * @copyright  Copyright (c) 2007-2011 Will Bond
 * @author     Will Bond [wb] <[email protected]>
 * @license    http://flourishlib.com/license
 *
 * @package    Flourish
 * @link       http://flourishlib.com/fURL
 *
 * @version    1.0.0b10
 * @changes    1.0.0b10  Fixed some method signatures [wb, 2011-08-24]
 * @changes    1.0.0b9   Fixed ::redirect() to handle no parameters properly [wb, 2011-06-13]
 * @changes    1.0.0b8   Added the `$delimiter` parameter to ::makeFriendly() [wb, 2011-06-03]
 * @changes    1.0.0b7   Fixed ::redirect() to be able to handle unqualified and relative paths [wb, 2011-03-02]
 * @changes    1.0.0b6   Added the `$max_length` parameter to ::makeFriendly() [wb, 2010-09-19]
 * @changes    1.0.0b5   Updated ::redirect() to not require a URL, using the current URL as the default [wb, 2009-07-29]
 * @changes    1.0.0b4   ::getDomain() now includes the port number if non-standard [wb, 2009-05-02]
 * @changes    1.0.0b3   ::makeFriendly() now changes _-_ to - and multiple _ to a single _ [wb, 2009-03-24]
 * @changes    1.0.0b2   Fixed ::makeFriendly() so that _ doesn't appear at the beginning of URLs [wb, 2009-03-22]
 * @changes    1.0.0b    The initial implementation [wb, 2007-06-14]
 */

class fURL
{
    // The following constants allow for nice looking callbacks to static methods
    const get                   = 'fURL::get';
    const getDomain             = 'fURL::getDomain';
    const getQueryString        = 'fURL::getQueryString';
    const getWithQueryString    = 'fURL::getWithQueryString';
    const makeFriendly          = 'fURL::makeFriendly';
    const redirect              = 'fURL::redirect';
    const removeFromQueryString = 'fURL::removeFromQueryString';
    const replaceInQueryString  = 'fURL::replaceInQueryString';
    
    
    /**
     * Returns the requested URL, does no include the domain name or query string
     *
     * This will return the original URL requested by the user - ignores all
     * rewrites.
     *
     * @return string  The requested URL without the query string
     */

    static public function get()
    {

        return preg_replace('#\?.*$#D', '', $_SERVER['REQUEST_URI']);
    }

    
    
    /**
     * Returns the current domain name, with protcol prefix. Port will be included if not 80 for HTTP or 443 for HTTPS.
     *
     * @return string  The current domain name, prefixed by `http://` or `https://`
     */

    static public function getDomain()
    {

        $port = (isset($_SERVER['SERVER_PORT'])) ? $_SERVER['SERVER_PORT'] : NULL;
        if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
            return 'https://' . $_SERVER['SERVER_NAME'] . ($port && $port != 443 ? ':' . $port : '');
        }
else {
            return 'http://' . $_SERVER['SERVER_NAME'] . ($port && $port != 80 ? ':' . $port : '');
        }
    }

    
    
    /**
     * Returns the current query string, does not include parameters added by rewrites
     *
     * @return string  The query string
     */

    static public function getQueryString()
    {

        return preg_replace('#^[^?]*\??#', '', $_SERVER['REQUEST_URI']);
    }

    
    
    /**
     * Returns the current URL including query string, but without domain name - does not include query string parameters from rewrites
     *
     * @return string  The URL with query string
     */

    static public function getWithQueryString()
    {

        return $_SERVER['REQUEST_URI'];
    }

    
    
    /**
     * Changes a string into a URL-friendly string
     *
     * @param  string   $string      The string to convert
     * @param  integer  $max_length  The maximum length of the friendly URL
     * @param  string   $delimiter   The delimiter to use between words, defaults to `_`
     * @param  string   |$string
     * @param  string   |$delimiter
     * @return string  The URL-friendly version of the string
     */

    static public function makeFriendly($string, $max_length=NULL, $delimiter=NULL)
    {

        // This allows omitting the max length, but including a delimiter
        if ($max_length && !is_numeric($max_length)) {
            $delimiter  = $max_length;
            $max_length = NULL;
        }


        $string = fHTML::decode(fUTF8::ascii($string));
        $string = strtolower(trim($string));
        $string = str_replace("'", '', $string);

        if (!strlen($delimiter)) {
            $delimiter = '_';
        }


        $delimiter_replacement = strtr($delimiter, array('\\' => '\\\\', '$' => '\\$'));
        $delimiter_regex       = preg_quote($delimiter, '#');

        $string = preg_replace('#[^a-z0-9\-_]+#', $delimiter_replacement, $string);
        $string = preg_replace('#' . $delimiter_regex . '{2,}#', $delimiter_replacement, $string);
        $string = preg_replace('#_-_#', '-', $string);
        $string = preg_replace('#(^' . $delimiter_regex . '+|' . $delimiter_regex . '+$)#D', '', $string);
        
        $length = strlen($string);
        if ($max_length && $length > $max_length) {
            $last_pos = strrpos($string, $delimiter, ($length - $max_length - 1) * -1);
            if ($last_pos < ceil($max_length / 2)) {
                $last_pos = $max_length;
            }

            $string = substr($string, 0, $last_pos);
        }

        
        return $string;
    }

    
    
    /**
     * Redirects to the URL specified, without requiring a full-qualified URL
     *
     *  - If the URL starts with `/`, it is treated as an absolute path on the current site
     *  - If the URL starts with `http://` or `https://`, it is treated as a fully-qualified URL
     *  - If the URL starts with anything else, including a `?`, it is appended to the current URL
     *  - If the URL is ommitted, it is treated as the current URL
     *
     * @param  string $url  The url to redirect to
     * @return void
     */

    static public function redirect($url=NULL)
    {

        if (strpos($url, '/') === 0) {
            $url = self::getDomain() . $url;

        }
elseif (!preg_match('#^https?://#i', $url)) {
            
            $prefix = self::getDomain() . self::get();
            
            if (strlen($url)) {
                // All URLs that have more than the query string need to
                // be appended to the current directory name

                if ($url[0] != '?') {
                    $prefix = preg_replace('#(?<=/)[^/]+$#D', '', $prefix);
                }


                // Clean up ./ relative URLS
                if (substr($url, 0, 2) == './') {
                    $url = substr($url, 2);
                }


                // Resolve ../ relative paths as far as possible
                while (substr($url, 0, 3) == '../') {
                    if ($prefix == self::getDomain() . '/') { break; }
                    $prefix = preg_replace('#(?<=/)[^/]+/?$#D', '', $prefix);
                    $url    = substr($url, 3);
                }
            }


            $url = $prefix . $url;
        }

        
        // Strip the ? if there are no query string parameters
        if (substr($url, -1) == '?') {
            $url = substr($url, 0, -1);
        }

        
        
        exit($url);
    }

    
    
    /**
     * Removes one or more parameters from the query string
     *
     * This method uses the query string from the original URL and will not
     * contain any parameters that are from rewrites.
     *
     * @param  string $parameter  A parameter to remove from the query string
     * @param  string ...
     * @return string  The query string with the parameter(s) specified removed, first character is `?`
     */

    static public function removeFromQueryString($parameter)
    {

        $parameters = func_get_args();
        
        parse_str(self::getQueryString(), $qs_array);
        if (get_magic_quotes_gpc()) {
            $qs_array = array_map('stripslashes', $qs_array);
        }

        
        foreach ($parameters as $parameter) {
            unset($qs_array[$parameter]);
        }

        
        return '?' . http_build_query($qs_array, '', '&');
    }

    
    
    /**
     * Replaces a value in the query string
     *
     * This method uses the query string from the original URL and will not
     * contain any parameters that are from rewrites.
     *
     * @param  string|array  $parameter  The query string parameter
     * @param  string|array  $value      The value to set the parameter to
     * @return string  The full query string with the parameter replaced, first char is `?`
     */

    static public function replaceInQueryString($parameter, $value)
    {

        parse_str(self::getQueryString(), $qs_array);
        if (get_magic_quotes_gpc()) {
            $qs_array = array_map('stripslashes', $qs_array);
        }

        
        settype($parameter, 'array');
        settype($value, 'array');
        
        if (sizeof($parameter) != sizeof($value)) {
            throw new fProgrammerException(
                "There are a different number of parameters and values.\nParameters:\n%1\$s\nValues\n%2\$s",
                $parameter,
                $value
            );
        }

        
        for ($i=0; $i<sizeof($parameter); $i++) {
            $qs_array[$parameter[$i]] = $value[$i];
        }

        
        return '?' . http_build_query($qs_array, '', '&');
    }

    
    
    /**
     * Forces use as a static class
     *
     * @return fURL
     */

    private function __construct() { }
}




/**
 * Copyright (c) 2007-2011 Will Bond <[email protected]>
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
[/code]
Gewijzigd op 30/01/2014 12:12:43 door Simone Joosten
 
- Ariën  -
Beheerder

- Ariën -

30/01/2014 15:55:28
Quote Anchor link
Ik mis in ieder geval een

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
header('Location:'.$url);

in het script, als er ge-redirected moet worden.
Wat die exit() op lijn 189 doet, vind ik maar vreemd. Die redirect code in plaats van dat, zou veel zinvoller zijn.
Gewijzigd op 30/01/2014 15:57:31 door - Ariën -
 
Simone Joosten

Simone Joosten

30/01/2014 16:01:24
Quote Anchor link
Jij raad aan om dan de regel van 189 te vervangen voor de redirect url die je schrijft ?
Ik heb het aangepast en de exit url weg gehaald nu gebeurt er niks als je op bestellen klikt
Gewijzigd op 30/01/2014 16:05:33 door Simone Joosten
 
Michael -

Michael -

30/01/2014 16:02:22
Quote Anchor link
Simone Joosten op 30/01/2014 16:01:24:
Jij raad aan om dan de regel van 189 te vervangen voor de redirect url die je schrijft ?

Je kunt die regel van Aar op regel 188 zetten en kijken of het dan wel goed gaat. Zo niet, haal je hem weer weg.
Gewijzigd op 30/01/2014 16:02:47 door Michael -
 

Pagina: 1 2 3 volgende »



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.