@@ -1,1 +1,1 @@ |
||
| 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 |
@@ -64,7 +64,7 @@ |
||
| 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>'. |
@@ -8,7 +8,7 @@ |
||
| 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'); |
@@ -9,13 +9,13 @@ |
||
| 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; |
@@ -14,7 +14,7 @@ |
||
| 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 | } |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | $query->execute(); |
| 19 | 19 | |
| 20 | 20 | return $query->fetch(); |
| 21 | - } catch (PDOException $e) { |
|
| 21 | + }catch (PDOException $e) { |
|
| 22 | 22 | die($e->getMessage()); |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | try { |
| 31 | 31 | $query->execute(); |
| 32 | - } catch (PDOException $e) { |
|
| 32 | + }catch (PDOException $e) { |
|
| 33 | 33 | die($e->getMessage()); |
| 34 | 34 | } |
| 35 | 35 | |
@@ -19,10 +19,10 @@ discard block |
||
| 19 | 19 | $rows = $query->fetchColumn(); |
| 20 | 20 | if ($rows == 1) { |
| 21 | 21 | return true; |
| 22 | - } else { |
|
| 22 | + }else { |
|
| 23 | 23 | return false; |
| 24 | 24 | } |
| 25 | - } catch (PDOException $e) { |
|
| 25 | + }catch (PDOException $e) { |
|
| 26 | 26 | die($e->getMessage()); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | try { |
| 41 | 41 | $query->execute(); |
| 42 | - } catch (PDOException $e) { |
|
| 42 | + }catch (PDOException $e) { |
|
| 43 | 43 | die($e->getMessage()); |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | try { |
| 58 | 58 | $query->execute(); |
| 59 | - } catch (PDOException $e) { |
|
| 59 | + }catch (PDOException $e) { |
|
| 60 | 60 | die($e->getMessage()); |
| 61 | 61 | } |
| 62 | 62 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | try { |
| 71 | 71 | $query->execute(); |
| 72 | - } catch (PDOException $e) { |
|
| 72 | + }catch (PDOException $e) { |
|
| 73 | 73 | die($e->getMessage()); |
| 74 | 74 | } |
| 75 | 75 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $query->execute(); |
| 84 | 84 | |
| 85 | 85 | return $query->fetch(); |
| 86 | - } catch (PDOException $e) { |
|
| 86 | + }catch (PDOException $e) { |
|
| 87 | 87 | die($e->getMessage()); |
| 88 | 88 | } |
| 89 | 89 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | try { |
| 96 | 96 | $query->execute(); |
| 97 | - } catch (PDOException $e) { |
|
| 97 | + }catch (PDOException $e) { |
|
| 98 | 98 | die($e->getMessage()); |
| 99 | 99 | } |
| 100 | 100 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $R = $L * 255; |
| 44 | 44 | $G = $L * 255; |
| 45 | 45 | $B = $L * 255; |
| 46 | - } else { |
|
| 46 | + }else { |
|
| 47 | 47 | $var_2 = ($L < 0.5) ? ($L * (1 + $S)) : (($L + $S) - ($S * $L)); |
| 48 | 48 | $var_1 = 2 * $L - $var_2; |
| 49 | 49 | $R = 255 * self::_HSL_2_RGB($var_1, $var_2, $H + (1 / 3)); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $this->iNodeType = NODE_TYPE_ENDELEMENT; |
| 121 | 121 | $this->iNodeName = substr($name, 1); |
| 122 | 122 | $this->iNodeValue = ''; |
| 123 | - } else { |
|
| 123 | + }else { |
|
| 124 | 124 | if (!$this->isValidTagIdentifier($name)) { |
| 125 | 125 | $comment = false; |
| 126 | 126 | if ($name == '!--') { |
@@ -139,13 +139,13 @@ discard block |
||
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | return true; |
| 142 | - } else { |
|
| 142 | + }else { |
|
| 143 | 143 | $this->iNodeType = NODE_TYPE_ELEMENT; |
| 144 | 144 | $this->iNodeValue = ''; |
| 145 | 145 | $nameLength = strlen($name); |
| 146 | 146 | if ($nameLength > 0 && substr($name, $nameLength - 1, 1) == '/') { |
| 147 | 147 | $this->iNodeName = substr($name, 0, $nameLength - 1); |
| 148 | - } else { |
|
| 148 | + }else { |
|
| 149 | 149 | $this->iNodeName = $name; |
| 150 | 150 | } |
| 151 | 151 | $this->iNodeName = strtolower($this->iNodeName); |
@@ -157,14 +157,14 @@ discard block |
||
| 157 | 157 | $attrName = strtolower($attrName); |
| 158 | 158 | if (array_search($attrName, $HTML_ATTRIBUTE_STAND_ALONE) !== false) { |
| 159 | 159 | $this->iNodeAttributes[$attrName] = 1; |
| 160 | - } else { |
|
| 160 | + }else { |
|
| 161 | 161 | $this->skipBlanksInTag(); |
| 162 | 162 | if ($this->iCurrentChar == '=') { |
| 163 | 163 | $this->skipEqualsInTag(); |
| 164 | 164 | $this->skipBlanksInTag(); |
| 165 | 165 | $value = $this->readValueInTag(); |
| 166 | 166 | $this->iNodeAttributes[$attrName] = $value; |
| 167 | - } else { |
|
| 167 | + }else { |
|
| 168 | 168 | $this->iNodeAttributes[$attrName] = ''; |
| 169 | 169 | } |
| 170 | 170 | } |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | $this->skipInTag(["'"]); |
| 213 | 213 | $value = $this->skipToInTag(["'"]); |
| 214 | 214 | $this->skipInTag(["'"]); |
| 215 | - } else { |
|
| 215 | + }else { |
|
| 216 | 216 | $value = $this->skipToBlanksInTag(); |
| 217 | 217 | } |
| 218 | 218 | |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | $this->iHtmlTextIndex = $index; |
| 225 | 225 | if ($index >= $this->iHtmlTextLength) { |
| 226 | 226 | $this->iCurrentChar = -1; |
| 227 | - } else { |
|
| 227 | + }else { |
|
| 228 | 228 | $this->iCurrentChar = $this->iHtmlText[$index]; |
| 229 | 229 | } |
| 230 | 230 | } |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | $this->setTextIndex($this->iHtmlTextIndex + 1); |
| 236 | 236 | |
| 237 | 237 | return true; |
| 238 | - } else { |
|
| 238 | + }else { |
|
| 239 | 239 | return false; |
| 240 | 240 | } |
| 241 | 241 | } |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | while (($ch = $this->iCurrentChar) !== -1) { |
| 262 | 262 | if ($ch == '>') { |
| 263 | 263 | return $sb; |
| 264 | - } else { |
|
| 264 | + }else { |
|
| 265 | 265 | if (array_search($ch, $chars) === false) { |
| 266 | 266 | return $sb; |
| 267 | 267 | } |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | for ($i = $index; $i <= $end; $i++) { |
| 501 | 501 | $this->removeIndex($i); |
| 502 | 502 | } |
| 503 | - } else { |
|
| 503 | + }else { |
|
| 504 | 504 | $this->removeIndex($index); |
| 505 | 505 | } |
| 506 | 506 | } |
@@ -542,13 +542,13 @@ discard block |
||
| 542 | 542 | foreach ($attr[$i] as $key => $value) { |
| 543 | 543 | if (array_search($value, $HTML_ATTRIBUTE_STAND_ALONE) !== false) { |
| 544 | 544 | $str .= " $key"; |
| 545 | - } else { |
|
| 545 | + }else { |
|
| 546 | 546 | $str .= " $key=\"$value\""; |
| 547 | 547 | } |
| 548 | 548 | } |
| 549 | 549 | } |
| 550 | 550 | $str .= '>'; |
| 551 | - } else {//is tag ATEXTAREA |
|
| 551 | + }else {//is tag ATEXTAREA |
|
| 552 | 552 | $content = ''; |
| 553 | 553 | $str .= '<'.$name[$i]; |
| 554 | 554 | if (isset($attr[$i])) { |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | $content = $value; |
| 558 | 558 | } elseif (array_search($value, $HTML_ATTRIBUTE_STAND_ALONE) !== false) { |
| 559 | 559 | $str .= " $key"; |
| 560 | - } else { |
|
| 560 | + }else { |
|
| 561 | 561 | $str .= " $key=\"$value\""; |
| 562 | 562 | } |
| 563 | 563 | } |