Skip to content

Commit

Permalink
Merge pull request #11 from grycap/devel
Browse files Browse the repository at this point in the history
Merge Devel
  • Loading branch information
micafer committed Feb 29, 2016
2 parents 10d5e72 + e31ddd6 commit aa600c8
Showing 1 changed file with 52 additions and 13 deletions.
65 changes: 52 additions & 13 deletions credinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,36 @@
$imuser = $_SESSION['user'];
$id = $_POST['id'];
$type = $_POST['type'];
$host = $_POST['host'];
$username = $_POST['username'];
$password = $_POST['password'];
$token_type = $_POST['token_type'];
$project = $_POST['project'];

$host = "";
$username = "";
$password = "";
$token_type = "";
$project = "";
$proxy = "";
$private_key = "";
$public_key = "";
$certificate = "";
$tenant = $_POST['tenant'];
$tenant = "";

if (isset($_POST['host'])) {
$host = $_POST['host'];
}
if (isset($_POST['username'])) {
$username = $_POST['username'];
}
if (isset($_POST['password'])) {
$password = $_POST['password'];
}
if (isset($_POST['token_type'])) {
$token_type = $_POST['token_type'];
}
if (isset($_POST['project'])) {
$project = $_POST['project'];
}
if (isset($_POST['tenant'])) {
$tenant = $_POST['tenant'];
}

if (isset($_FILES['proxy']['tmp_name'])) {
$proxy = file_get_contents($_FILES['proxy']['tmp_name']);
Expand All @@ -84,18 +104,37 @@
if (isset($_POST['id'])) {
$rowid = $_POST['rowid'];
$id = $_POST['id'];

$type = $_POST['type'];
$host = $_POST['host'];
$username = $_POST['username'];
$password = $_POST['password'];
$token_type = $_POST['token_type'];
$project = $_POST['project'];

$host = "";
$username = "";
$password = "";
$token_type = "";
$project = "";
$proxy = "";
$private_key = "";
$public_key = "";
$certificate = "";
$tenant = $_POST['tenant'];
$tenant = "";

if (isset($_POST['host'])) {
$host = $_POST['host'];
}
if (isset($_POST['username'])) {
$username = $_POST['username'];
}
if (isset($_POST['password'])) {
$password = $_POST['password'];
}
if (isset($_POST['token_type'])) {
$token_type = $_POST['token_type'];
}
if (isset($_POST['project'])) {
$project = $_POST['project'];
}
if (isset($_POST['tenant'])) {
$tenant = $_POST['tenant'];
}

if (isset($_FILES['proxy']['tmp_name'])) {
$proxy = file_get_contents($_FILES['proxy']['tmp_name']);
Expand Down

0 comments on commit aa600c8

Please sign in to comment.