Fix adding TTP assurance method on testserver
  (was: admin console lists "empty" and "Unknown" ...)
pull/1/head
Wytze van der Raay 13 years ago
parent 13c5993ce8
commit 1e6bf29530

@ -29,9 +29,9 @@
if($_SESSION['profile']['ttpadmin'] == 1 && $_SESSION['profile']['board'] == 1)
{
$methods = array("Face to Face Meeting", "Trusted 3rd Parties", "Thawte Points Transfer", "Administrative Increase", "CT Magazine - Germany");
$methods = array("Face to Face Meeting", "Trusted Third Parties", "Thawte Points Transfer", "Administrative Increase", "CT Magazine - Germany");
} else if($_SESSION['profile']['ttpadmin'] == 1) {
$methods = array("Face to Face Meeting", "Trusted 3rd Parties");
$methods = array("Face to Face Meeting", "Trusted Third Parties");
}
$cap = "/cap.php?";

@ -297,7 +297,7 @@ $iecho= "c";
$query .= ",\n`sponsor`='".intval($_POST['sponsor'])."'";
} else if($_SESSION['profile']['board'] == 1) {
$query .= ",\n`method`='".mysql_escape_string(stripslashes($_POST['method']))."'";
} else if($_SESSION['profile']['ttpadmin'] == 1 && ($_POST['method'] == 'Trusted 3rd Parties' || $_POST['method'] == 'Trusted third Parties')) {
} else if($_SESSION['profile']['ttpadmin'] == 1 && ($_POST['method'] == 'Trusted 3rd Parties' || $_POST['method'] == 'Trusted Third Parties')) {
$query .= ",\n`method`='Trusted Third Parties'";
}
mysql_query($query);

Loading…
Cancel
Save