Fix adding TTP assurance method on testserver
  (was: admin console lists "empty" and "Unknown" ...)
This commit is contained in:
Wytze van der Raay 2012-01-19 20:22:45 +00:00
parent 13c5993ce8
commit 1e6bf29530
2 changed files with 3 additions and 3 deletions

View file

@ -29,9 +29,9 @@
if($_SESSION['profile']['ttpadmin'] == 1 && $_SESSION['profile']['board'] == 1) 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) { } 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?"; $cap = "/cap.php?";

View file

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