Passed
Push — master ( ce6199...f8d49f )
by Saepul
02:14
created
home.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<?php 
require 'core/init.php';
$general->logged_out_protect();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Helpdesk System</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
</head>
<frameset name="mainfs" rows="85,*" frameborder="0" border="0" framespacing="0">
	<frame src="header.php" name="topFrame" scrolling="NO" noresize />
	<frameset name="contentfs" cols="200,*" frameborder="0" border="0" framespacing="0">
		<frame src="navigator.php" name="leftFrame" scrolling="NO" noresize />
		<frame src="content.php" name="contentFrame" />
	</frameset>
</frameset><noframes></noframes>
<body>
</body>
</html>
2 1
\ No newline at end of file
2
+<?php 
require 'core/init.php'; $general->logged_out_protect(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Helpdesk System</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
</head>
<frameset name="mainfs" rows="85,*" frameborder="0" border="0" framespacing="0">
	<frame src="header.php" name="topFrame" scrolling="NO" noresize />
	<frameset name="contentfs" cols="200,*" frameborder="0" border="0" framespacing="0">
		<frame src="navigator.php" name="leftFrame" scrolling="NO" noresize />
		<frame src="content.php" name="contentFrame" />
	</frameset>
</frameset><noframes></noframes>
<body>
</body>
</html>
3 3
\ No newline at end of file
Please login to merge, or discard this patch.
userlist.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         foreach ($members as $member) {
65 65
             if ($member['confirmed'] == '1') {
66 66
                 $locked = 'No';
67
-            } else {
67
+            }else {
68 68
                 $locked = 'Yes';
69 69
             }
70 70
             echo '<tr><td><a href=useredit.php?id='.$member['id'].'>'.$member['username'].'</a></td>'.
Please login to merge, or discard this patch.
ticketlistuser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 $user = $users->userdata($_SESSION['loginid']);
6 6
 if ($user['level'] == 'Admin' || $user['level'] == 'Manager') {
7 7
     $akses = true;
8
-} else {
8
+}else {
9 9
     $akses = false;
10 10
 }
11 11
 if ($akses = false) {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             } elseif ($currenttime >= $slawarningtime) {
79 79
                 $slabgcolor = '#FFFF00';
80 80
                 $slatxtcolor = '#000000';
81
-            } else {
81
+            }else {
82 82
                 $slabgcolor = '#00FF00';
83 83
                 $slatxtcolor = '#000000';
84 84
             }
Please login to merge, or discard this patch.
changepwd.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     $userpassword = $user['password'];
9 9
     if ($oldpassword != $userpassword) {
10 10
         $errors[] = 'The old password does not match!';
11
-    } else {
11
+    }else {
12 12
         $newpassword1 = $_POST['newpassword1'];
13 13
         $users->changepwd($userid, $newpassword1);
14 14
         $users->log_users($_SESSION['loginid'], 'Change the old password');
Please login to merge, or discard this patch.
login.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@
 block discarded – undo
9 9
         $errors[] = 'Sorry, but we need your username and password.';
10 10
     } elseif ($users->user_exists($username) === false) {
11 11
         $errors[] = 'Sorry, that username doesn\'t exists. Please try again.';
12
-    } else {
12
+    }else {
13 13
         $login = $users->login($username, $password);
14 14
         if ($login === false) {
15 15
             $errors[] = 'Sorry, that username/password is invalid. Please try again.';
16 16
         } elseif (!$users->email_confirmed($username)) {
17 17
             $errors[] = 'Sorry, your account is locked. Please contact Administrator.';
18
-        } else {
18
+        }else {
19 19
             $_SESSION['loginid'] = $login;
20 20
             $users->log_users($login, 'Login to Helpdesk System');
21 21
             echo $login;
Please login to merge, or discard this patch.
slaadd.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     $slawarning = $_POST['slawarning'];
15 15
     if ($slas->sla_exists($slaid) === true) {
16 16
         $errors[] = 'SLA ID is already exists!';
17
-    } else {
17
+    }else {
18 18
         $slas->add_sla($slaid, $namasla, $responsetime, $resolutiontime, $slawarning);
19 19
         header('location:slalist.php');
20 20
     }
Please login to merge, or discard this patch.
email/notify_new_ticket.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     $ok = mail($to, $subject, $message, implode("\r\n", $headers));
23 23
     if ($ok) {
24 24
         $emails->update_status_email($idemail, 'Sent');
25
-    } else {
25
+    }else {
26 26
         $emails->update_status_email($idemail, 'Cannot Send');
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
email/test_send_email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
 $ok = mail($to, $subject, $message, implode("\r\n", $headers));
23 23
 if ($ok) {
24 24
     echo 'Email sent successfully!!';
25
-} else {
25
+}else {
26 26
     echo 'Failed: Email cannot be sent!!';
27 27
 }
Please login to merge, or discard this patch.
core/classes/Tickets.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
             $rows = $query->fetchColumn();
21 21
             if ($rows == 1) {
22 22
                 return true;
23
-            } else {
23
+            }else {
24 24
                 return false;
25 25
             }
26
-        } catch (PDOException $e) {
26
+        }catch (PDOException $e) {
27 27
             die($e->getMessage());
28 28
         }
29 29
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         try {
52 52
             $query->execute();
53
-        } catch (PDOException $e) {
53
+        }catch (PDOException $e) {
54 54
             die($e->getMessage());
55 55
         }
56 56
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         try {
82 82
             $query->execute();
83
-        } catch (PDOException $e) {
83
+        }catch (PDOException $e) {
84 84
             die($e->getMessage());
85 85
         }
86 86
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         try {
95 95
             $query->execute();
96
-        } catch (PDOException $e) {
96
+        }catch (PDOException $e) {
97 97
             die($e->getMessage());
98 98
         }
99 99
     }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
             $query->execute();
108 108
 
109 109
             return $query->fetch();
110
-        } catch (PDOException $e) {
110
+        }catch (PDOException $e) {
111 111
             die($e->getMessage());
112 112
         }
113 113
     }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
         try {
120 120
             $query->execute();
121
-        } catch (PDOException $e) {
121
+        }catch (PDOException $e) {
122 122
             die($e->getMessage());
123 123
         }
124 124
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
         try {
133 133
             $query->execute();
134
-        } catch (PDOException $e) {
134
+        }catch (PDOException $e) {
135 135
             die($e->getMessage());
136 136
         }
137 137
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
         try {
146 146
             $query->execute();
147
-        } catch (PDOException $e) {
147
+        }catch (PDOException $e) {
148 148
             die($e->getMessage());
149 149
         }
150 150
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
         try {
160 160
             $query->execute();
161
-        } catch (PDOException $e) {
161
+        }catch (PDOException $e) {
162 162
             die($e->getMessage());
163 163
         }
164 164
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 
173 173
         try {
174 174
             $query->execute();
175
-        } catch (PDOException $e) {
175
+        }catch (PDOException $e) {
176 176
             die($e->getMessage());
177 177
         }
178 178
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
         try {
188 188
             $query->execute();
189
-        } catch (PDOException $e) {
189
+        }catch (PDOException $e) {
190 190
             die($e->getMessage());
191 191
         }
192 192
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
         try {
203 203
             $query->execute();
204
-        } catch (PDOException $e) {
204
+        }catch (PDOException $e) {
205 205
             die($e->getMessage());
206 206
         }
207 207
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 
216 216
         try {
217 217
             $query->execute();
218
-        } catch (PDOException $e) {
218
+        }catch (PDOException $e) {
219 219
             die($e->getMessage());
220 220
         }
221 221
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
         try {
232 232
             $query->execute();
233
-        } catch (PDOException $e) {
233
+        }catch (PDOException $e) {
234 234
             die($e->getMessage());
235 235
         }
236 236
 
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
         try {
245 245
             $query->execute();
246
-        } catch (PDOException $e) {
246
+        }catch (PDOException $e) {
247 247
             die($e->getMessage());
248 248
         }
249 249
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 
257 257
         try {
258 258
             $query->execute();
259
-        } catch (PDOException $e) {
259
+        }catch (PDOException $e) {
260 260
             die($e->getMessage());
261 261
         }
262 262
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
 
271 271
         try {
272 272
             $query->execute();
273
-        } catch (PDOException $e) {
273
+        }catch (PDOException $e) {
274 274
             die($e->getMessage());
275 275
         }
276 276
 
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 
285 285
         try {
286 286
             $query->execute();
287
-        } catch (PDOException $e) {
287
+        }catch (PDOException $e) {
288 288
             die($e->getMessage());
289 289
         }
290 290
 
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
             $query->execute();
300 300
 
301 301
             return $query->fetch();
302
-        } catch (PDOException $e) {
302
+        }catch (PDOException $e) {
303 303
             die($e->getMessage());
304 304
         }
305 305
     }
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
 
348 348
         try {
349 349
             $query->execute();
350
-        } catch (PDOException $e) {
350
+        }catch (PDOException $e) {
351 351
             die($e->getMessage());
352 352
         }
353 353
     }
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 
360 360
         try {
361 361
             $query->execute();
362
-        } catch (PDOException $e) {
362
+        }catch (PDOException $e) {
363 363
             die($e->getMessage());
364 364
         }
365 365
 
Please login to merge, or discard this patch.