@@ -48,15 +48,15 @@ discard block |
||
48 | 48 | $this->email->to($user_email); |
49 | 49 | $this->email->cc($_SESSION['ldap']['email']); |
50 | 50 | $this->email->subject('Private Drive Access Request'); |
51 | - $this->email->message('Access to a private drive has been requested for ' . $user . ' by ' . $requester . '. |
|
52 | - This request is currently waiting for approval by ' . $approver . '. |
|
51 | + $this->email->message('Access to a private drive has been requested for '.$user.' by '.$requester.'. |
|
52 | + This request is currently waiting for approval by ' . $approver.'. |
|
53 | 53 | |
54 | 54 | You can check the status of the request at the following link: |
55 | 55 | https://intranet.cant-col.ac.uk/dashboard/computing-support/private-drive/check |
56 | 56 | |
57 | 57 | If this request was made by mistake; you can cancel the request using the same link. |
58 | 58 | |
59 | - Folder path: ' . $path . ' |
|
59 | + Folder path: ' . $path.' |
|
60 | 60 | Access level: ' . $access); |
61 | 61 | $this->email->send(); |
62 | 62 | |
@@ -66,13 +66,13 @@ discard block |
||
66 | 66 | $this->email->from('[email protected]', 'Private Drive Access'); |
67 | 67 | $this->email->to($faculty_email); |
68 | 68 | $this->email->subject('Private Drive Access Request'); |
69 | - $this->email->message('Access to a private drive has been requested for ' . $user . ' by ' . $requester . '. |
|
69 | + $this->email->message('Access to a private drive has been requested for '.$user.' by '.$requester.'. |
|
70 | 70 | You have been marked as the approver for this request. |
71 | 71 | |
72 | 72 | Please approve or reject this request using the following link: |
73 | 73 | https://intranet.cant-col.ac.uk/dashboard/computing-support/private-drive/check |
74 | 74 | |
75 | - Folder path: ' . $path . ' |
|
75 | + Folder path: ' . $path.' |
|
76 | 76 | Access level: ' . $access); |
77 | 77 | $this->email->send(); |
78 | 78 | |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $id = $_GET['id']; |
144 | 144 | $this->private_drive_model->cancel($id); |
145 | 145 | |
146 | - $function = 'private_drive_CANCEL_' . $id; |
|
146 | + $function = 'private_drive_CANCEL_'.$id; |
|
147 | 147 | $this->user_model->function_log($function); |
148 | 148 | |
149 | 149 | redirect($_SERVER['HTTP_REFERER']); |
@@ -175,16 +175,16 @@ discard block |
||
175 | 175 | $this->email->to($requester_email); |
176 | 176 | $this->email->cc($user_email); |
177 | 177 | $this->email->subject('Private Drive Access Request Rejected'); |
178 | - $this->email->message('Access to a private drive has been requested for ' . $get_request[0]['user'] . ' by ' . $get_request[0]['requester'] . ' has been rejected by ' . $get_request[0]['approver'] . '. |
|
178 | + $this->email->message('Access to a private drive has been requested for '.$get_request[0]['user'].' by '.$get_request[0]['requester'].' has been rejected by '.$get_request[0]['approver'].'. |
|
179 | 179 | |
180 | 180 | You can view the status of this request and others like it using the below link: |
181 | 181 | https://intranet.cant-col.ac.uk/dashboard/computing-support/private-drive/check |
182 | 182 | |
183 | - Folder path: ' . $get_request[0]['path'] . ' |
|
183 | + Folder path: ' . $get_request[0]['path'].' |
|
184 | 184 | Access level: ' . $get_request[0]['access']); |
185 | 185 | $this->email->send(); |
186 | 186 | |
187 | - $function = 'private_drive_FH_REJECT_' . $id; |
|
187 | + $function = 'private_drive_FH_REJECT_'.$id; |
|
188 | 188 | $this->user_model->function_log($function); |
189 | 189 | |
190 | 190 | redirect($_SERVER['HTTP_REFERER']); |
@@ -211,18 +211,18 @@ discard block |
||
211 | 211 | $this->email->to('[email protected]'); |
212 | 212 | $this->email->cc('[email protected]'); |
213 | 213 | $this->email->subject('Private Drive Access Request Approved'); |
214 | - $this->email->message('Access to a private drive has been requested for ' . $get_request[0]['user'] . ' by ' . $get_request[0]['requester'] . ' has been approved by ' . $get_request[0]['approver'] . '. |
|
214 | + $this->email->message('Access to a private drive has been requested for '.$get_request[0]['user'].' by '.$get_request[0]['requester'].' has been approved by '.$get_request[0]['approver'].'. |
|
215 | 215 | |
216 | 216 | This request needs to be actioned |
217 | 217 | |
218 | 218 | View the details of the request at the following link: |
219 | 219 | https://intranet.cant-col.ac.uk/dashboard/computing-support/private-drive/pending |
220 | 220 | |
221 | - Folder path: ' . $get_request[0]['path'] . ' |
|
221 | + Folder path: ' . $get_request[0]['path'].' |
|
222 | 222 | Access level: ' . $get_request[0]['access']); |
223 | 223 | $this->email->send(); |
224 | 224 | |
225 | - $function = 'private_drive_FH_APPROVED_' . $id; |
|
225 | + $function = 'private_drive_FH_APPROVED_'.$id; |
|
226 | 226 | $this->user_model->function_log($function); |
227 | 227 | |
228 | 228 | redirect($_SERVER['HTTP_REFERER']); |
@@ -254,16 +254,16 @@ discard block |
||
254 | 254 | $this->email->to($requester_email); |
255 | 255 | $this->email->cc($user_email); |
256 | 256 | $this->email->subject('Private Drive Access Request Rejected'); |
257 | - $this->email->message('Access to a private drive has been requested for ' . $get_request[0]['user'] . ' by ' . $get_request[0]['requester'] . ' and approved by ' . $get_request[0]['approver'] . ' has been rejected by Computing Support. |
|
257 | + $this->email->message('Access to a private drive has been requested for '.$get_request[0]['user'].' by '.$get_request[0]['requester'].' and approved by '.$get_request[0]['approver'].' has been rejected by Computing Support. |
|
258 | 258 | |
259 | 259 | You can view the status of this request and others like it using the below link: |
260 | 260 | https://intranet.cant-col.ac.uk/dashboard/computing-support/private-drive/check |
261 | 261 | |
262 | - Folder path: ' . $get_request[0]['path'] . ' |
|
262 | + Folder path: ' . $get_request[0]['path'].' |
|
263 | 263 | Access level: ' . $get_request[0]['access']); |
264 | 264 | $this->email->send(); |
265 | 265 | |
266 | - $function = 'private_drive_CS_REJECT_' . $id; |
|
266 | + $function = 'private_drive_CS_REJECT_'.$id; |
|
267 | 267 | $this->user_model->function_log($function); |
268 | 268 | |
269 | 269 | redirect($_SERVER['HTTP_REFERER']); |
@@ -296,18 +296,18 @@ discard block |
||
296 | 296 | $this->email->to($requester_email); |
297 | 297 | $this->email->cc($user_email); |
298 | 298 | $this->email->subject('Private Drive Access Request Actioned'); |
299 | - $this->email->message('Access to a private drive has been requested for ' . $get_request[0]['user'] . ' by ' . $get_request[0]['requester'] . ' and approved by ' . $get_request[0]['approver'] . ' has been actioned by Computing Support. |
|
299 | + $this->email->message('Access to a private drive has been requested for '.$get_request[0]['user'].' by '.$get_request[0]['requester'].' and approved by '.$get_request[0]['approver'].' has been actioned by Computing Support. |
|
300 | 300 | |
301 | 301 | For the permissions to be applied, you must log out and on again. |
302 | 302 | |
303 | 303 | You can view your other requests at the following link. |
304 | 304 | https://intranet.cant-col.ac.uk/dashboard/computing-support/private-drive/check |
305 | 305 | |
306 | - Folder path: ' . $get_request[0]['path'] . ' |
|
306 | + Folder path: ' . $get_request[0]['path'].' |
|
307 | 307 | Access level: ' . $get_request[0]['access']); |
308 | 308 | $this->email->send(); |
309 | 309 | |
310 | - $function = 'private_drive_CS_APPROVED_' . $id; |
|
310 | + $function = 'private_drive_CS_APPROVED_'.$id; |
|
311 | 311 | $this->user_model->function_log($function); |
312 | 312 | |
313 | 313 | redirect($_SERVER['HTTP_REFERER']); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $this->load->view('computing-support/room-move/complete'); |
53 | 53 | $this->load->view('templates/footer'); |
54 | 54 | |
55 | - if ($furniture == "No Furniture"){ |
|
55 | + if ($furniture == "No Furniture") { |
|
56 | 56 | |
57 | 57 | $to_add = array('[email protected]', '[email protected]', '[email protected]'); |
58 | 58 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | $staff_involved_un6 = $user_un6; |
166 | 166 | $staff_involved_email6 = $this->room_move_model->get_email_username($staff_involved_un6); |
167 | 167 | |
168 | - $staff_involved_un7= $user_un7; |
|
168 | + $staff_involved_un7 = $user_un7; |
|
169 | 169 | $staff_involved_email7 = $this->room_move_model->get_email_username($staff_involved_un7); |
170 | 170 | |
171 | 171 | $staff_involved_un8 = $user_un8; |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | $id = $_GET['id']; |
257 | 257 | $this->room_move_model->cancel($id); |
258 | 258 | |
259 | - $function = 'room_move_CANCEL_' . $id; |
|
259 | + $function = 'room_move_CANCEL_'.$id; |
|
260 | 260 | $this->user_model->function_log($function); |
261 | 261 | |
262 | 262 | $get_request = $this->room_move_model->get_request($id); |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | $staff_involved_un6 = $get_request[0]['staff_involved_un6']; |
283 | 283 | $staff_involved_email6 = $this->room_move_model->get_email_username($staff_involved_un6); |
284 | 284 | |
285 | - $staff_involved_un7= $get_request[0]['staff_involved_un7']; |
|
285 | + $staff_involved_un7 = $get_request[0]['staff_involved_un7']; |
|
286 | 286 | $staff_involved_email7 = $this->room_move_model->get_email_username($staff_involved_un7); |
287 | 287 | |
288 | 288 | $staff_involved_un8 = $get_request[0]['staff_involved_un8']; |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | $id = $_GET['id']; |
329 | 329 | $this->room_move_model->eh_reject($id); |
330 | 330 | |
331 | - $function = 'room_move_EH_REJECT_' . $id; |
|
331 | + $function = 'room_move_EH_REJECT_'.$id; |
|
332 | 332 | $this->user_model->function_log($function); |
333 | 333 | |
334 | 334 | $get_request = $this->room_move_model->get_request($id); |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | $staff_involved_un6 = $get_request[0]['staff_involved_un6']; |
355 | 355 | $staff_involved_email6 = $this->room_move_model->get_email_username($staff_involved_un6); |
356 | 356 | |
357 | - $staff_involved_un7= $get_request[0]['staff_involved_un7']; |
|
357 | + $staff_involved_un7 = $get_request[0]['staff_involved_un7']; |
|
358 | 358 | $staff_involved_email7 = $this->room_move_model->get_email_username($staff_involved_un7); |
359 | 359 | |
360 | 360 | $staff_involved_un8 = $get_request[0]['staff_involved_un8']; |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | $id = $_GET['id']; |
403 | 403 | $this->room_move_model->eh_approve($id); |
404 | 404 | |
405 | - $function = 'room_move_EH_APPROVED_' . $id; |
|
405 | + $function = 'room_move_EH_APPROVED_'.$id; |
|
406 | 406 | $this->user_model->function_log($function); |
407 | 407 | |
408 | 408 | $get_request = $this->room_move_model->get_request($id); |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | $reason = $_GET['reason']; |
445 | 445 | $this->room_move_model->cs_reject($id); |
446 | 446 | |
447 | - $function = 'room_move_CS_REJECT_' . $id; |
|
447 | + $function = 'room_move_CS_REJECT_'.$id; |
|
448 | 448 | $this->user_model->function_log($function); |
449 | 449 | |
450 | 450 | $get_request = $this->room_move_model->get_request($id); |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | $staff_involved_un6 = $get_request[0]['staff_involved_un6']; |
471 | 471 | $staff_involved_email6 = $this->room_move_model->get_email_username($staff_involved_un6); |
472 | 472 | |
473 | - $staff_involved_un7= $get_request[0]['staff_involved_un7']; |
|
473 | + $staff_involved_un7 = $get_request[0]['staff_involved_un7']; |
|
474 | 474 | $staff_involved_email7 = $this->room_move_model->get_email_username($staff_involved_un7); |
475 | 475 | |
476 | 476 | $staff_involved_un8 = $get_request[0]['staff_involved_un8']; |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | $id = $_GET['id']; |
519 | 519 | $this->room_move_model->cs_approve($id); |
520 | 520 | |
521 | - $function = 'room_move_CS_APPROVED_' . $id; |
|
521 | + $function = 'room_move_CS_APPROVED_'.$id; |
|
522 | 522 | $this->user_model->function_log($function); |
523 | 523 | |
524 | 524 | $get_request = $this->room_move_model->get_request($id); |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | $staff_involved_un6 = $get_request[0]['staff_involved_un6']; |
545 | 545 | $staff_involved_email6 = $this->room_move_model->get_email_username($staff_involved_un6); |
546 | 546 | |
547 | - $staff_involved_un7= $get_request[0]['staff_involved_un7']; |
|
547 | + $staff_involved_un7 = $get_request[0]['staff_involved_un7']; |
|
548 | 548 | $staff_involved_email7 = $this->room_move_model->get_email_username($staff_involved_un7); |
549 | 549 | |
550 | 550 | $staff_involved_un8 = $get_request[0]['staff_involved_un8']; |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | $id = $_GET['id']; |
592 | 592 | $this->room_move_model->cs_complete($id); |
593 | 593 | |
594 | - $function = 'room_move_CS_COMPLETE_' . $id; |
|
594 | + $function = 'room_move_CS_COMPLETE_'.$id; |
|
595 | 595 | $this->user_model->function_log($function); |
596 | 596 | |
597 | 597 | $get_request = $this->room_move_model->get_request($id); |
@@ -617,7 +617,7 @@ discard block |
||
617 | 617 | $staff_involved_un6 = $get_request[0]['staff_involved_un6']; |
618 | 618 | $staff_involved_email6 = $this->room_move_model->get_email_username($staff_involved_un6); |
619 | 619 | |
620 | - $staff_involved_un7= $get_request[0]['staff_involved_un7']; |
|
620 | + $staff_involved_un7 = $get_request[0]['staff_involved_un7']; |
|
621 | 621 | $staff_involved_email7 = $this->room_move_model->get_email_username($staff_involved_un7); |
622 | 622 | |
623 | 623 | $staff_involved_un8 = $get_request[0]['staff_involved_un8']; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $crud = new grocery_CRUD(); |
73 | 73 | $crud->set_table('disposals'); |
74 | 74 | $crud->set_subject('disposals', 'Disposals'); |
75 | - $crud->display_as('sn','Serial Number'); |
|
75 | + $crud->display_as('sn', 'Serial Number'); |
|
76 | 76 | $crud->unset_columns('id'); |
77 | 77 | $crud->unset_add(); |
78 | 78 | $crud->unset_read(); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $crud->set_table('disposals_current'); |
99 | 99 | $crud->set_subject('disposals', 'Disposals'); |
100 | 100 | $crud->set_primary_key('id'); |
101 | - $crud->display_as('sn','Serial Number'); |
|
101 | + $crud->display_as('sn', 'Serial Number'); |
|
102 | 102 | $crud->unset_columns('id'); |
103 | 103 | $crud->unset_add(); |
104 | 104 | $crud->unset_read(); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $this->email->to($_SESSION['ldap']['email']); |
34 | 34 | $this->email->subject('Mobile Phone Policy'); |
35 | 35 | $this->email->message( |
36 | - 'Name: ' . $_SESSION['ldap']['fll_name']. ' |
|
36 | + 'Name: '.$_SESSION['ldap']['fll_name'].' |
|
37 | 37 | |
38 | 38 | Has accepted the Canterbury College mobile phone policy. |
39 | 39 | |
@@ -66,11 +66,11 @@ discard block |
||
66 | 66 | $this->email->to('[email protected]'); |
67 | 67 | $this->email->subject('Mobile Phone Policy Accepted'); |
68 | 68 | $this->email->message( |
69 | - 'Name: ' . $_SESSION['ldap']['full_name'] . ' |
|
69 | + 'Name: '.$_SESSION['ldap']['full_name'].' |
|
70 | 70 | |
71 | 71 | Has accepted the Canterbury College mobile phone policy. |
72 | 72 | |
73 | - ' . date("d/m/Y") . ' ' . date("h:i")); |
|
73 | + ' . date("d/m/Y").' '.date("h:i")); |
|
74 | 74 | $this->email->send(); |
75 | 75 | |
76 | 76 | $function = 'mobile_policy_accepted'; |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | $data['faculty'] = $this->temporary_account_model->get_faculty(); |
18 | 18 | $data['department'] = $this->temporary_account_model->get_department(); |
19 | - $data['tempid'] = "tempuser" . $this->temporary_account_model->get_next_temp(); |
|
19 | + $data['tempid'] = "tempuser".$this->temporary_account_model->get_next_temp(); |
|
20 | 20 | |
21 | 21 | //validation |
22 | 22 | $this->form_validation->set_rules('faculty', 'Faculty', 'trim|required'); |
@@ -46,10 +46,10 @@ discard block |
||
46 | 46 | $this->email->from('[email protected]', 'Temporary Logon Account Request'); |
47 | 47 | $this->email->to('[email protected]'); |
48 | 48 | $this->email->subject('Temporary Logon Account Request'); |
49 | - $this->email->message('A temporary network account has been requested by ' . $_SESSION['ldap']['full_name'] |
|
50 | - . ' for ' . $this->input->post('requester') |
|
49 | + $this->email->message('A temporary network account has been requested by '.$_SESSION['ldap']['full_name'] |
|
50 | + . ' for '.$this->input->post('requester') |
|
51 | 51 | . '' |
52 | - . 'the user will be: ' . $this->input->post('first_name') . ' ' . $this->input->post('last_name') |
|
52 | + . 'the user will be: '.$this->input->post('first_name').' '.$this->input->post('last_name') |
|
53 | 53 | . '' |
54 | 54 | . 'Approve https://intranet.cant-col.ac.uk/dashboard/computing-support/temporary-account/approve'); |
55 | 55 | $this->email->send(); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $id = $_GET['id']; |
119 | 119 | $this->temporary_account_model->cancel($id); |
120 | 120 | |
121 | - $function = 'temp_account_CANCEL_' . $id; |
|
121 | + $function = 'temp_account_CANCEL_'.$id; |
|
122 | 122 | $this->user_model->function_log($function); |
123 | 123 | |
124 | 124 | redirect($_SERVER['HTTP_REFERER']); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $id = $_GET['id']; |
139 | 139 | $this->temporary_account_model->reject($id); |
140 | 140 | |
141 | - $function = 'temp_account_REJECT_' . $id; |
|
141 | + $function = 'temp_account_REJECT_'.$id; |
|
142 | 142 | $this->user_model->function_log($function); |
143 | 143 | |
144 | 144 | redirect($_SERVER['HTTP_REFERER']); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | $id = $_GET['id']; |
160 | 160 | //$this->temporary_account_model->approve($id); |
161 | 161 | |
162 | - $function = 'temp_account_APPROVED_' . $id; |
|
162 | + $function = 'temp_account_APPROVED_'.$id; |
|
163 | 163 | $this->user_model->function_log($function); |
164 | 164 | |
165 | 165 | $data['AD'] = $this->temporary_account_model->get_account($id); |
@@ -174,12 +174,12 @@ discard block |
||
174 | 174 | |
175 | 175 | //Format dd-mm-yyyy |
176 | 176 | //Expiry is beginning of day (thats why +1 day |
177 | - $dateFromForm = date('d-m-Y', strtotime($data['AD'][0]['expiry']. ' +1 day')); |
|
177 | + $dateFromForm = date('d-m-Y', strtotime($data['AD'][0]['expiry'].' +1 day')); |
|
178 | 178 | |
179 | 179 | //Format hh:mm:ss |
180 | 180 | $timeFromForm = "00:00:00"; |
181 | 181 | |
182 | - $dateWithTime = $dateFromForm . " " . $timeFromForm; |
|
182 | + $dateWithTime = $dateFromForm." ".$timeFromForm; |
|
183 | 183 | |
184 | 184 | function convertDateToUnix($input) { |
185 | 185 | $format = 'd-m-Y H:i:s'; |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | //$WIN = convertUnixtoWin($UNIX); |
197 | 197 | |
198 | 198 | //Create Unicode password |
199 | - $passwordWithQuotes = '"' . $data['AD'][0]['password'] . '"'; |
|
199 | + $passwordWithQuotes = '"'.$data['AD'][0]['password'].'"'; |
|
200 | 200 | $ldaprecord["unicodepwd"] = iconv('UTF-8', 'UTF-16LE', $passwordWithQuotes); |
201 | 201 | |
202 | 202 | //Build Active Directory record |
@@ -205,20 +205,20 @@ discard block |
||
205 | 205 | $ldaprecord["sn"] = $data['AD'][0]['last_name']; |
206 | 206 | $ldaprecord["mail"] = $data['AD'][0]['email']; |
207 | 207 | $ldaprecord["sAMAccountName"] = $data['AD'][0]['username']; |
208 | - $ldaprecord["displayName"] = $data['AD'][0]['first_name'] . " " . $data['AD'][0]['last_name']; |
|
208 | + $ldaprecord["displayName"] = $data['AD'][0]['first_name']." ".$data['AD'][0]['last_name']; |
|
209 | 209 | $ldaprecord["l"] = "Canterbury"; |
210 | - $ldaprecord["description"] = "Temp account created by dashboard for " . $ldaprecord["displayName"]; |
|
210 | + $ldaprecord["description"] = "Temp account created by dashboard for ".$ldaprecord["displayName"]; |
|
211 | 211 | //$ldaprecord["accountExpires"] = $WIN; |
212 | 212 | $ldaprecord["UserAccountControl"] = "512"; //512 - Enabled Account |
213 | - $ldaprecord['userPrincipalName'] = $data['AD'][0]['username'] . '@cant-col.ac.uk'; |
|
213 | + $ldaprecord['userPrincipalName'] = $data['AD'][0]['username'].'@cant-col.ac.uk'; |
|
214 | 214 | $ldaprecord['objectclass'][0] = "top"; |
215 | 215 | $ldaprecord['objectclass'][1] = "person"; |
216 | 216 | $ldaprecord['objectclass'][2] = "organizationalPerson"; |
217 | 217 | $ldaprecord['objectclass'][3] = "user"; |
218 | - $dn = 'CN=' . $ldaprecord["cn"] . ',OU=Temp Accounts,OU=Students,OU=Accounts,DC=cant-col,DC=ac,DC=uk'; |
|
218 | + $dn = 'CN='.$ldaprecord["cn"].',OU=Temp Accounts,OU=Students,OU=Accounts,DC=cant-col,DC=ac,DC=uk'; |
|
219 | 219 | |
220 | 220 | // Connect to Active Directory |
221 | - $ds = ldap_connect('ldaps://' . $AD_server); |
|
221 | + $ds = ldap_connect('ldaps://'.$AD_server); |
|
222 | 222 | |
223 | 223 | if ($ds) { |
224 | 224 | ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); |
@@ -44,11 +44,11 @@ |
||
44 | 44 | $this->email->from('[email protected]', 'Address Book Update'); |
45 | 45 | $this->email->to('[email protected]'); |
46 | 46 | $this->email->subject('Address Book Update'); |
47 | - $this->email->message('A global address book update request been made by ' . $_SESSION['ldap']['full_name'] . ' |
|
48 | - Change name to: ' . $name . ' |
|
49 | - Change Faculty to: ' . $faculty[0]['faculty'] . ' |
|
50 | - Change Department to: ' . $department[0]['subfaculty'] . ' |
|
51 | - Change Room to : ' . $room . ' |
|
47 | + $this->email->message('A global address book update request been made by '.$_SESSION['ldap']['full_name'].' |
|
48 | + Change name to: ' . $name.' |
|
49 | + Change Faculty to: ' . $faculty[0]['faculty'].' |
|
50 | + Change Department to: ' . $department[0]['subfaculty'].' |
|
51 | + Change Room to : ' . $room.' |
|
52 | 52 | Change Telephone to : ' . $phone.' |
53 | 53 | Change Position to : ' . $position); |
54 | 54 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | !empty($entries[$x]['samaccountname'][0]) && |
38 | 38 | !empty($entries[$x]['sn'][0]) && |
39 | 39 | !empty($entries[$x]['mail'][0])) { |
40 | - $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '. trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
40 | + $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '.trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | } |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | !empty($entries[$x]['samaccountname'][0]) && |
50 | 50 | !empty($entries[$x]['sn'][0]) && |
51 | 51 | !empty($entries[$x]['mail'][0])) { |
52 | - $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '. trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
52 | + $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '.trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | !empty($entries[$x]['samaccountname'][0]) && |
62 | 62 | !empty($entries[$x]['sn'][0]) && |
63 | 63 | !empty($entries[$x]['mail'][0])) { |
64 | - $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '. trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
64 | + $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '.trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
65 | 65 | } |
66 | 66 | } |
67 | 67 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | !empty($entries[$x]['samaccountname'][0]) && |
74 | 74 | !empty($entries[$x]['sn'][0]) && |
75 | 75 | !empty($entries[$x]['mail'][0])) { |
76 | - $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '. trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
76 | + $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '.trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
77 | 77 | } |
78 | 78 | } |
79 | 79 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | !empty($entries[$x]['samaccountname'][0]) && |
86 | 86 | !empty($entries[$x]['sn'][0]) && |
87 | 87 | !empty($entries[$x]['mail'][0])) { |
88 | - $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '. trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
88 | + $ad_users[] = array('first_name' => trim($entries[$x]['givenname'][0]), 'last_name' => trim($entries[$x]['sn'][0]), 'full_name' => trim($entries[$x]['givenname'][0]).' '.trim($entries[$x]['sn'][0]), 'username' => trim($entries[$x]['samaccountname'][0]), 'email' => trim($entries[$x]['mail'][0])); |
|
89 | 89 | } |
90 | 90 | } |
91 | 91 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | $ldap = ldap_connect($this->config->item('ldapserver')); |
15 | 15 | |
16 | - $ldaprdn = $this->config->item('ldapshortdomain') . $username; |
|
16 | + $ldaprdn = $this->config->item('ldapshortdomain').$username; |
|
17 | 17 | |
18 | 18 | ldap_set_option($ldap, LDAP_OPT_PROTOCOL_VERSION, 3); |
19 | 19 | ldap_set_option($ldap, LDAP_OPT_REFERRALS, 0); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | $two_hour_login = strtotime("-2 hours"); |
136 | 136 | $current_timestamp = date("Y-m-d H:i:s", time()); |
137 | 137 | $login_count = 1; |
138 | - $browser = $this->agent->browser() . ' ' . $this->agent->version(); |
|
138 | + $browser = $this->agent->browser().' '.$this->agent->version(); |
|
139 | 139 | |
140 | 140 | if ($query->num_rows() > 0) { |
141 | 141 | |
@@ -235,8 +235,8 @@ discard block |
||
235 | 235 | |
236 | 236 | $iv = mcrypt_create_iv(IV_SIZE, MCRYPT_DEV_URANDOM); |
237 | 237 | $crypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $encrypt_item, MCRYPT_MODE_CBC, $iv); |
238 | - $combo = $iv . $crypt; |
|
239 | - $output = base64_encode($iv . $crypt); |
|
238 | + $combo = $iv.$crypt; |
|
239 | + $output = base64_encode($iv.$crypt); |
|
240 | 240 | |
241 | 241 | return $output; |
242 | 242 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | 'last_name' => $this->input->post('last_name'), |
13 | 13 | 'email' => $this->input->post('email'), |
14 | 14 | 'postcode' => $this->input->post('postcode'), |
15 | - 'date_birth' => $this->input->post('dob_d') .'/'. $this->input->post('dob_m') .'/'. $this->input->post('dob_y'), |
|
15 | + 'date_birth' => $this->input->post('dob_d').'/'.$this->input->post('dob_m').'/'.$this->input->post('dob_y'), |
|
16 | 16 | 'current_school' => $this->input->post('current'), |
17 | 17 | 'current_other' => $this->input->post('current_other'), |
18 | 18 | 'subject_interest' => implode(', ', $this->input->post('subject')), |