I got lost on formatting the nested if/else's on the bottom of the
file right up the last else/if there seems to be a stray bracket. I'm
trying to line up the brackets so I can read it. Is it okay to split
a long line setting a variable on two lines at the equals sign? That
is so you can read it in google groups.
<?
//Send payement advices
$TPL_auction_id = $auction_id;
$user_id=$userr ec["id"];
if(!$sessionVar s["SELL_actio n"]) {
include "header.php ";
}
if($FEE>0) {
if($SETTINGS["invoicing"] == 'y') {
if(!$sessionVar s["SELL_actio n"]=="edit") {
include phpa_include("t emplate_menu_ph p.html");
include phpa_include("t emplate_sell_re sult_php.html") ;
} else {
$auction_url =
$SETTINGS["siteurl"] . "item.php?mode= 1&id=".$auction _id;
if($sessionVars["SELL_actio n"]=="edit") {
unset($_SESSION["sessionVar s"]);
unset($_SESSION["RELISTEDAUCTIO N"]);
if(isset($_SESS ION['backtolist']))
header("Locatio n: ".$_SESSION['backtolist']."?PAGE=
".$_SESSION['backtolist_pag e']);
else
header("Locatio n: yourauctions.ph p?PAGE=
".$_SESSION['backtolist_pag e']);
exit;
}
if($sessionVars["SELL_actio n"]=="reopen") {
unset($_SESSION["sessionVar s"]);
unset($_SESSION["RELISTEDAUCTIO N"]);
header("Locatio n: yourauctions_c. php?PAGE=
".$_SESSION['backtolist_pag e']);
exit;
}
}
} elseif($SETTING S["feetype"] == "prepay") {
if(!$sessionVar s["SELL_actio n"]) {
//include "header.php ";
}
include "lib/auctionsetup_pa yment.php";
} else {
if($sessionVars["SELL_actio n"]) {
include "header.php ";
include phpa_include("t emplate_menu_ph p.html");
}
?>
thanks,
file right up the last else/if there seems to be a stray bracket. I'm
trying to line up the brackets so I can read it. Is it okay to split
a long line setting a variable on two lines at the equals sign? That
is so you can read it in google groups.
<?
//Send payement advices
$TPL_auction_id = $auction_id;
$user_id=$userr ec["id"];
if(!$sessionVar s["SELL_actio n"]) {
include "header.php ";
}
if($FEE>0) {
if($SETTINGS["invoicing"] == 'y') {
if(!$sessionVar s["SELL_actio n"]=="edit") {
include phpa_include("t emplate_menu_ph p.html");
include phpa_include("t emplate_sell_re sult_php.html") ;
} else {
$auction_url =
$SETTINGS["siteurl"] . "item.php?mode= 1&id=".$auction _id;
if($sessionVars["SELL_actio n"]=="edit") {
unset($_SESSION["sessionVar s"]);
unset($_SESSION["RELISTEDAUCTIO N"]);
if(isset($_SESS ION['backtolist']))
header("Locatio n: ".$_SESSION['backtolist']."?PAGE=
".$_SESSION['backtolist_pag e']);
else
header("Locatio n: yourauctions.ph p?PAGE=
".$_SESSION['backtolist_pag e']);
exit;
}
if($sessionVars["SELL_actio n"]=="reopen") {
unset($_SESSION["sessionVar s"]);
unset($_SESSION["RELISTEDAUCTIO N"]);
header("Locatio n: yourauctions_c. php?PAGE=
".$_SESSION['backtolist_pag e']);
exit;
}
}
} elseif($SETTING S["feetype"] == "prepay") {
if(!$sessionVar s["SELL_actio n"]) {
//include "header.php ";
}
include "lib/auctionsetup_pa yment.php";
} else {
if($sessionVars["SELL_actio n"]) {
include "header.php ";
include phpa_include("t emplate_menu_ph p.html");
}
?>
thanks,
Comment