summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2014-01-21 16:54:22 +0100
committerINOPIAE <inopiae@cacert.org>2014-01-21 16:54:22 +0100
commitb3f41e8e5d12659536f9eab6d359edeb654b7189 (patch)
tree7305ec9464e43636b6c141ce9543874d9f659382
parent090bef8bd62b49b0b98e0574ec74f6545de94998 (diff)
downloadcacert-devel-b3f41e8e5d12659536f9eab6d359edeb654b7189.tar.gz
cacert-devel-b3f41e8e5d12659536f9eab6d359edeb654b7189.tar.xz
cacert-devel-b3f41e8e5d12659536f9eab6d359edeb654b7189.zip
bug 550: added orgadmin id to all org certificate creation
-rw-r--r--includes/account.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/includes/account.php b/includes/account.php
index f7670ec..12ca0f4 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -1533,7 +1533,8 @@ function buildSubjectFromSession() {
`created`=FROM_UNIXTIME(UNIX_TIMESTAMP()),
`codesign`='".$_SESSION['_config']['codesign']."',
`rootcert`='".$_SESSION['_config']['rootcert']."',
- `description`='".$_SESSION['_config']['description']."'";
+ `description`='".$_SESSION['_config']['description']."',
+ `orgadminid`='".intval($_SESSION['profile']['id'])."'";
mysql_query($query);
$emailid = mysql_insert_id();
@@ -1625,7 +1626,8 @@ function buildSubjectFromSession() {
`subject`='$csrsubject',
`codesign`='".$_SESSION['_config']['codesign']."',
`rootcert`='".$_SESSION['_config']['rootcert']."',
- `description`='".$_SESSION['_config']['description']."'";
+ `description`='".$_SESSION['_config']['description']."',
+ `orgadminid`='".intval($_SESSION['profile']['id'])."'";
mysql_query($query);
$emailid = mysql_insert_id();
@@ -1702,7 +1704,8 @@ function buildSubjectFromSession() {
`modified`=NOW(),
`codesign`='".$row['codesign']."',
`rootcert`='".$row['rootcert']."',
- `description`='".$row['description']."'";
+ `description`='".$row['description']."',
+ `orgadminid`='".intval($_SESSION['profile']['id'])."'";
mysql_query($query);
$newid = mysql_insert_id();
$newfile=generatecertpath("csr","orgclient",$newid);
@@ -1965,7 +1968,8 @@ function buildSubjectFromSession() {
`subject`='$csrsubject',
`rootcert`='".$_SESSION['_config']['rootcert']."',
`type`='$type',
- `description`='".$_SESSION['_config']['description']."'";
+ `description`='".$_SESSION['_config']['description']."',
+ `orgadminid`='".intval($_SESSION['profile']['id'])."'";
} else {
$query = "insert into `orgdomaincerts` set
`CN`='".$_SESSION['_config']['altrows']['0']."',
@@ -1974,7 +1978,8 @@ function buildSubjectFromSession() {
`subject`='$csrsubject',
`rootcert`='".$_SESSION['_config']['rootcert']."',
`type`='$type',
- `description`='".$_SESSION['_config']['description']."'";
+ `description`='".$_SESSION['_config']['description']."',
+ `orgadminid`='".intval($_SESSION['profile']['id'])."'";
}
mysql_query($query);
$CSRid = mysql_insert_id();
@@ -2051,7 +2056,8 @@ function buildSubjectFromSession() {
`subject`='".$row['subject']."',
`type`='".$row['type']."',
`rootcert`='".$row['rootcert']."',
- `description`='".$row['description']."'";
+ `description`='".$row['description']."',
+ `orgadminid`='".intval($_SESSION['profile']['id'])."'";
mysql_query($query);
$newid = mysql_insert_id();
//echo "NewID: $newid<br/>\n";