Revcms .php?=...

Results 1 to 10 of 10
  1. #1
    Valued Member GlennXD is offline
    MemberRank
    Oct 2010 Join Date
    124Posts

    Revcms .php?=...

    Dear Ragezone,

    I have a script that whenever a user has paid a certain amount via Eurobellen.nl it redirects the user to a page that says: transaction succesfull, you'll be redirected.

    The page itself was no problem, but whenever i want to add the script from eurobellen.nl wich veryfies that you've paid, it stays blank because it tries to do this:
    Http://myipishidden/paymentdonevip?e...incodeprovided, as you can see this can't work, but whenever i tried to add .php in the url bar, it says not found, which is logical because it tries to search for it in the root of my webhost, but when i set the script here it can't work because he doesn't have the $_session in it, and my knowledge doesn't go that far to code it myself...

    It speaks for itself when i say that the .php file is located in app/tpl/skins/myskin/here it is located and that al my php files when typed in url bar leaves extension away.

    I hope you guys can help?
    greetings!


  2. #2
    Valued Member GlennXD is offline
    MemberRank
    Oct 2010 Join Date
    124Posts

    Re: Revcms .php?=...

    Bump? someone :(

  3. #3
    Valued Member Troll Hotel is offline
    MemberRank
    Nov 2012 Join Date
    SlovakiaLocation
    144Posts

    Re: Revcms .php?=...

    you need to add it to your web-config or htaccess aswell ;p
    Code:
      RewriteRule ^paymentdonevip?ebpin=(.*) ./yourphpfile.php?ebpin=$1

  4. #4
    Valued Member GlennXD is offline
    MemberRank
    Oct 2010 Join Date
    124Posts

    Re: Revcms .php?=...

    Quote Originally Posted by Troll Hotel View Post
    you need to add it to your web-config or htaccess aswell ;p
    Code:
      RewriteRule ^paymentdonevip?ebpin=(.*) ./yourphpfile.php?ebpin=$1
    Thanks for your reaction! But my page stays blank :(

  5. #5
    Valued Member Troll Hotel is offline
    MemberRank
    Nov 2012 Join Date
    SlovakiaLocation
    144Posts

    Re: Revcms .php?=...

    i dont know how your code looks like so i cant help you but as i see you need a check with if(isset($_GET['ebpin'])) {
    //code here

    }

    PM me your code i will help you :)

    i did a bit research and i found that you probably have a link from eurobellen where the check should be like

    Code:
    file_get_contents('http://www.eurobellen.nl/bel/check.php?test=sbmwu&userid=0cschou3&ebpin='.$_GET['ebpin']);
    but this wont work as you have a different link :p

    after that you could do :
    Code:
    if(isset($_GET['ebpin'])) {
    if(file_get_contents('http://www.eurobellen.nl/bel/check.php?test=sbmwu&userid=0cschou3&ebpin='.$_GET['ebpin']) == 'OK') 
    {
    // query
    } else
    // error
    }
    ofcourse you can make it better this is just an example ;p
    Last edited by Troll Hotel; 01-02-16 at 11:01 AM.

  6. #6
    Valued Member GlennXD is offline
    MemberRank
    Oct 2010 Join Date
    124Posts

    Re: Revcms .php?=...

    Quote Originally Posted by Troll Hotel View Post
    i dont know how your code looks like so i cant help you but as i see you need a check with if(isset($_GET['ebpin'])) {
    //code here

    }

    PM me your code i will help you :)

    i did a bit research and i found that you probably have a link from eurobellen where the check should be like

    Code:
    file_get_contents('http://www.eurobellen.nl/bel/check.php?test=sbmwu&userid=0cschou3&ebpin='.$_GET['ebpin']);
    but this wont work as you have a different link :p

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

  7. #7
    Valued Member Troll Hotel is offline
    MemberRank
    Nov 2012 Join Date
    SlovakiaLocation
    144Posts

    Re: Revcms .php?=...

    try this
    Code:
    <html lang="no">
    
    <head>
    <meta charset="utf-8"/>
    <title>{username} - Onderhoud!</title>
    <link rel="shortcut icon" href="{url}/static/favicon.ico"/>
    <link rel="stylesheet" href="{url}/static/dashboard/css/dashboard.css"/>
    <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic|Ubuntu+Condensed"/>
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="{url}/static/animate.css/animate.min.css"/>
    <meta http-equiv="refresh" content="8;url=/index" />
    </head>
    <body>
    
    <?php
    $ebcheck = file_get_contents("https://www.eurobellen.nl/bel/check.php?userid=61slijn&ip=".$_SERVER['REMOTE_ADDR']."&ebpin=".$_GET['ebpin']);
    if($ebcheck!="OK") {
       echo '<div class ="alert">Pincode validatie mislukt'.$ebpin.'</div>';
       
    } else {
        mysql_query("UPDATE users SET rank_vip = '1' WHERE username = '{$_SESSION['user']['username']}'");
                mysql_query($q_edituser);
                echo('<div class = "alert">Aankoop geslaagd! Herlaad je client voor je VIP.</div>');
    
    }
    ?>
    
    
    <div id="main-container" class="container">
    
    <div id="content-cover">
    <a href="{url}" id="cover-logo"></a>
    </div>
    <div id="content-wrap">
    <div id="content-left" class="full-width">
    <div class="panel panel-primary">
    <div class="panel-heading">
    <center><h3 class="panel-title"><i class="fa "></i> {hotelname} - Aankoop geslaagd!</h3></center>
    </div>
    <center><div class="panel-body">
    <div>      
    
    
    </div></center> 
    </div>
    </div>
    <div class="clearfix"></div>
    </div>
    </div>
    
    
    
    
    <?php include('includes/footers.php'); ?>
    <script src="{url}/static/jquery/jquery-2.1.1.min.js"></script>
    <script src="{url}/static/bootstrap-3.2.0-custom/js/bootstrap.min.js"></script>
    <script src="{url}/static/dashboard/js/dashboard.js"></script>
    <script type="text/javascript">news_box.init();</script>
    <script type="text/javascript">user_tag_list.init();</script>
    </body>
    </html>

  8. #8
    Valued Member GlennXD is offline
    MemberRank
    Oct 2010 Join Date
    124Posts

    Re: Revcms .php?=...

    Quote Originally Posted by Troll Hotel View Post
    try this
    Code:
    <html lang="no">
    
    <head>
    <meta charset="utf-8"/>
    <title>{username} - Onderhoud!</title>
    <link rel="shortcut icon" href="{url}/static/favicon.ico"/>
    <link rel="stylesheet" href="{url}/static/dashboard/css/dashboard.css"/>
    <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic|Ubuntu+Condensed"/>
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="{url}/static/animate.css/animate.min.css"/>
    <meta http-equiv="refresh" content="8;url=/index" />
    </head>
    <body>
    
    <?php
    $ebcheck = file_get_contents("https://www.eurobellen.nl/bel/check.php?userid=61slijn&ip=".$_SERVER['REMOTE_ADDR']."&ebpin=".$_GET['ebpin']);
    if($ebcheck!="OK") {
       echo '<div class ="alert">Pincode validatie mislukt'.$ebpin.'</div>';
       
    } else {
        mysql_query("UPDATE users SET rank_vip = '1' WHERE username = '{$_SESSION['user']['username']}'");
                mysql_query($q_edituser);
                echo('<div class = "alert">Aankoop geslaagd! Herlaad je client voor je VIP.</div>');
    
    }
    ?>
    
    
    <div id="main-container" class="container">
    
    <div id="content-cover">
    <a href="{url}" id="cover-logo"></a>
    </div>
    <div id="content-wrap">
    <div id="content-left" class="full-width">
    <div class="panel panel-primary">
    <div class="panel-heading">
    <center><h3 class="panel-title"><i class="fa "></i> {hotelname} - Aankoop geslaagd!</h3></center>
    </div>
    <center><div class="panel-body">
    <div>      
    
    
    </div></center> 
    </div>
    </div>
    <div class="clearfix"></div>
    </div>
    </div>
    
    
    
    
    <?php include('includes/footers.php'); ?>
    <script src="{url}/static/jquery/jquery-2.1.1.min.js"></script>
    <script src="{url}/static/bootstrap-3.2.0-custom/js/bootstrap.min.js"></script>
    <script src="{url}/static/dashboard/js/dashboard.js"></script>
    <script type="text/javascript">news_box.init();</script>
    <script type="text/javascript">user_tag_list.init();</script>
    </body>
    </html>
    Well, now it always says that it fails, but i'm using a testcode that always works...

  9. #9
    Valued Member Troll Hotel is offline
    MemberRank
    Nov 2012 Join Date
    SlovakiaLocation
    144Posts

    Re: Revcms .php?=...

    The code checks if https://www.eurobellen.nl/bel/check.php?userid=61slijn&ip=".$_SERVER['REMOTE_ADDR']."&ebpin=".$_GET['ebpin'] returns OK
    and probably it doesnt try going to the file like yourfile.php?ebpin= your ebpin

  10. #10
    Valued Member GlennXD is offline
    MemberRank
    Oct 2010 Join Date
    124Posts

    Re: Revcms .php?=...

    Quote Originally Posted by Troll Hotel View Post
    The code checks if https://www.eurobellen.nl/bel/check.php?userid=61slijn&ip=".$_SERVER['REMOTE_ADDR']."&ebpin=".$_GET['ebpin'] returns OK
    and probably it doesnt try going to the file like yourfile.php?ebpin= your ebpin
    This is what i tried, but unfortunatly it says that he can't find ebpin



Advertisement