Jump to content

help with case: i think?@?@


supergrame

Recommended Posts

Im very new to php but i have this script and on the join page. the user has 2 do  3 things berore he can create his/her account but when we try it out it does the first  stage and goes back to the same page over and over i have no idea why here is the join.php and a couple of lines from config.php

 

<?
session_start();
include'config.php';
$title="Join now to $CONFIG->sitename";
include("$CONFIG->templatedir/header_locked.php");
///////////////////////////////////////
$stage=$_GET['stage'];
switch($stage){
default:

$page_content="
<div align=center class=text>
<br>Your sponsor is :<font color=red>".$_SESSION["sponsor"]["firstname"]
."  ".$_SESSION["sponsor"]["lastname"]."</font>";
$page_content.=grab_content("joinp");
$page_content=html_entity_decode(stripslashes($page_content));
$page_content.="
<fieldset class=text><legend>Please choose the payment processor</legend>
";
//include the payment forms

if($CONFIG->allowpaypal){$page_content.=add_paypal($CONFIG->sponsorfee,$_SESSION["sponsor"]["paypal"],"1");}

if($CONFIG->allowstormpay){$page_content.=add_stormpay($CONFIG->sponsorfee,$_SESSION["sponsor"]["stormpay"],"1");}

if($CONFIG->allowegold){$page_content.=add_egold($CONFIG->sponsorfee,$_SESSION["sponsor"]["egold"],"1");}

if($CONFIG->allowintgold){$page_content.=add_intgold($CONFIG->sponsorfee,$_SESSION["sponsor"]["intgold"],"1");}
$page_content.="</fieldset>";
Break;
case 'primu':

$_SESSION["sponsor"]["pay"]='ok';
$page_content="
<div align=center class=text>
<b>First step succeded!<br>You are now on the second step.</b>
<br>Your random sponsor is :<font color=red>".$_SESSION["random1"]["firstname"]
."  ".$_SESSION["random1"]["lastname"]."</font>";
$page_content.="
<fieldset class=text><legend>Please choose the payment processor</legend>
";
//include the payment forms

if($CONFIG->allowpaypal){$page_content.=add_paypal($CONFIG->randomfee,$_SESSION["random1"]["paypal"],"2");}

if($CONFIG->allowstormpay){$page_content.=add_stormpay($CONFIG->randomfee,$_SESSION["random1"]["stormpay"],"2");}

if($CONFIG->allowegold){$page_content.=add_egold($CONFIG->randomfee,$_SESSION["random1"]["egold"],"2");}

if($CONFIG->allowintgold){$page_content.=add_intgold($CONFIG->randomfee,$_SESSION["random1"]["intgold"],"2");}
$page_content.="</fieldset>";
break;
/**************************ADMIN*********************************/
case 'adminul':
$_SESSION["sponsor1"]["pay"]='ok';

$page_content="
<div align=center class=text>
<b>Final step!<br>Pay the $CONFIG->sitename admin<br></b>";
$page_content.="
<fieldset class=text><legend>Please choose the payment processor</legend>
";
$q1=db_fetch_array(db_query("select username , paypal ,stormpay,egold,intgold from users where id='1'"));
//include the payment forms

if($CONFIG->allowpaypal){$page_content.=add_paypal($CONFIG->adminfee,$q1["paypal"],"3");}

if($CONFIG->allowstormpay){$page_content.=add_stormpay($CONFIG->adminfee,$q1["stormpay"],"3");}

if($CONFIG->allowegold){$page_content.=add_egold($CONFIG->adminfee,$q1["egold"],"3");}

if($CONFIG->allowintgold){$page_content.=add_intgold($CONFIG->adminfee,$q1["intgold"],"3");}
$page_content.="</fieldset>";
break;

}
include("$CONFIG->templatedir/content.php");
include("$CONFIG->templatedir/footer.php");
?>[/sup][/sub]

 

 

 

 

 

config.php

[sup]
$CONFIG->primu=$CONFIG->siteurl."/&#106&#111&#105&#110&#46&#112&#104&#112&#63&#115&#116&#97&#103&#101&#61&#112&#114&#105&#109&#117";
$CONFIG->adminul=$CONFIG->siteurl."/&#106&#111&#105&#110&#46&#112&#104&#112&#63&#115&#116&#97&#103&#101&#61&#97&#100&#109&#105&#110&#117&#108&#13&#10";
$CONFIG->hidden="&#104&#105&#100&#100&#101&#110";
$CONFIG->complete=$CONFIG->siteurl."/&#117&#115&#101&#114&#115&#47&#99&#111&#109&#112&#108&#101&#116&#101&#46&#112&#104&#112";[/sup]

Link to comment
https://forums.phpfreaks.com/topic/136691-help-with-case-i-think/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.