summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/account.php15
-rw-r--r--includes/notary.inc.php4
-rw-r--r--pages/account/43.php1
3 files changed, 13 insertions, 7 deletions
diff --git a/includes/account.php b/includes/account.php
index 162d8d9..5544bdb 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -2701,9 +2701,14 @@
}
//check if ticket number was entered
- if ( $id== 43) {
- $ticketno=mysql_real_escape_string($_REQUEST['ticketno']);
- $ticketvalidation=valid_ticket_number($ticketno);
+ if ( $id== 43 or $oldid==43) {
+ $ticketno = 0;
+ $ticketvalidation = FALSE;
+ if ($_REQUEST['ticketno']) {
+ $ticketno = mysql_real_escape_string(trim($_REQUEST['ticketno']));
+ $ticketvalidation = valid_ticket_number($ticketno);
+ }
+
$_SESSION['ticketno']=$ticketno;
}
@@ -2721,7 +2726,7 @@
$userid = intval($_REQUEST['userid']);
$query = "update `users` set `fname`='$fname',`mname`='$mname',`lname`='$lname',`suffix`='$suffix',`dob`='$year-$month-$day' where `id`='$userid'";
mysql_query($query);
- write_se_log($userid,$_SESSION[''], $_SESSION['profile']['id'],'AD Name/DOB Change',$ticketno);
+ write_se_log($userid, $_SESSION['profile']['id'],'AD Name/DOB Change',$ticketno);
}else{
$_SESSION['ticketmsg']='No action taken. Ticket number is missing!';
}
@@ -3235,7 +3240,7 @@
*/
if($id == 59){
if ($oldid==43) {
- se_write_log($_REQUEST['userid'], $_SESSION['profile']['id'], 'View account history', $_REQUEST['ticketno']);
+ write_se_log($_REQUEST['userid'], $_SESSION['profile']['id'], 'View account history', $_REQUEST['ticketno']);
$support=1;
}ELSEIF ($oldid==13){
$support=0;
diff --git a/includes/notary.inc.php b/includes/notary.inc.php
index a0eb793..83709c1 100644
--- a/includes/notary.inc.php
+++ b/includes/notary.inc.php
@@ -1123,7 +1123,7 @@ function get_user_agreement($memid){
}
/**
- * se_write_log()
+ * write_se_log()
* writes an information to the adminlog
*
* @param mixed $uid - id of the user account
@@ -1132,7 +1132,7 @@ function get_user_agreement($memid){
* @param mixed $info - the ticket / arbitration no or other information
* @return
*/
-function se_write_log($uid, $adminid, $type, $info){
+function write_se_log($uid, $adminid, $type, $info){
//records all support engineer actions changing a user account
$uid = intval($uid);
$adminid = intval($adminid);
diff --git a/pages/account/43.php b/pages/account/43.php
index ec82b5a..686a61b 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -243,6 +243,7 @@ if(intval($_REQUEST['userid']) > 0) {
</select>
<input type="text" name="year" value="<?=$year?>" size="4">
<input type="submit" value="Go">
+ <input type="hidden" name="ticketno" value="<?=$ticketno?>"/>
</form>
</nobr>
</td>