summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2014-03-04 23:05:21 +0100
committerINOPIAE <inopiae@cacert.org>2014-03-04 23:05:21 +0100
commit67637d2f29aed7a01a221b4f536f1d3a67f91fa1 (patch)
treece6392ffaab96c78be0bce7960073f404dd0c202
parente793c525ccd3267efee764c0cb75a831fc098a1b (diff)
downloadcacert-devel-67637d2f29aed7a01a221b4f536f1d3a67f91fa1.tar.gz
cacert-devel-67637d2f29aed7a01a221b4f536f1d3a67f91fa1.tar.xz
cacert-devel-67637d2f29aed7a01a221b4f536f1d3a67f91fa1.zip
bug 1138: moved write_se_log from account.php to account/59.php
-rw-r--r--includes/account.php1
-rw-r--r--pages/account/59.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/includes/account.php b/includes/account.php
index eedc867..cf2509e 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -3242,7 +3242,6 @@ function buildSubjectFromSession() {
*/
if($id == 59){
if ($oldid == 43 && $_SESSION['profile']['admin'] == 1) {
- write_se_log(intval($_REQUEST['userid']), $_SESSION['profile']['id'], 'SE View account history', $_REQUEST['ticketno']);
$_SESSION['support']=1;
}ELSEIF ($oldid == 13 && intval($_REQUEST['userid']) == $_SESSION['profile']['id']){
$_SESSION['support']=0;
diff --git a/pages/account/59.php b/pages/account/59.php
index 2fc8aa2..51eb6ef 100644
--- a/pages/account/59.php
+++ b/pages/account/59.php
@@ -50,6 +50,9 @@ if (!valid_ticket_number($ticketno) && $support == 1) {
showfooter();
exit;
}
+if ( $support == 1) {
+ write_se_log($userid, $_SESSION['profile']['id'], 'SE View account history', $_REQUEST['ticketno']);
+}
?>
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>