@@ -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>'. |
@@ -5,7 +5,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -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'); |
@@ -1,3 +1,3 @@ |
||
| 1 | -<?php
require 'core/init.php';
$general->logged_out_protect();
$user = $users->userdata($_SESSION['loginid']);
$fullname = ucwords(strtolower($user['fullname']));
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Helpdesk System</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/time.js"></script>
</head>
<body bgcolor="#bb2a26" onload="startTime();">
<table class="header">
<tr>
<td width="120px"><img src="images/company-logo.png" alt="Company-Logo" width="120px" height="30px" align="middle"></td>
<td width="200px"><strong>HELPDESK SYSTEM</strong></td>
<td align="right"><span id="clocktime"></span><span id="welcome"><?php echo " :: Welcome $fullname "; ?> </span></td>
</tr>
<tr><td colspan="3">
<div id='topmenu'>
<ul>
<li class='active'><a href='home.php' target="_parent"><span>Home</span></a></li>
<li><a href='ticketnew.php' target="contentFrame"><span>New Ticket</span></a></li>
<?php
if ($user['level'] == 'Admin') { |
|
| 1 | +<?php
require 'core/init.php'; $general->logged_out_protect(); $user = $users->userdata($_SESSION['loginid']); $fullname = ucwords(strtolower($user['fullname'])); ?>
<!DOCTYPE HTML>
<html>
<head>
<title>Helpdesk System</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/time.js"></script>
</head>
<body bgcolor="#bb2a26" onload="startTime();">
<table class="header">
<tr>
<td width="120px"><img src="images/company-logo.png" alt="Company-Logo" width="120px" height="30px" align="middle"></td>
<td width="200px"><strong>HELPDESK SYSTEM</strong></td>
<td align="right"><span id="clocktime"></span><span id="welcome"><?php echo " :: Welcome $fullname "; ?> </span></td>
</tr>
<tr><td colspan="3">
<div id='topmenu'>
<ul>
<li class='active'><a href='home.php' target="_parent"><span>Home</span></a></li>
<li><a href='ticketnew.php' target="contentFrame"><span>New Ticket</span></a></li>
<?php
if ($user['level'] == 'Admin') { |
|
| 2 | 2 | echo "<li><a href='adminmenu.php' target='leftFrame'><span>Admin</span></a></li>"; |
| 3 | 3 | } ?> <li><a href='changepwd.php' target="contentFrame"><span>Change Password</span></a></li> <li class='last'><a href='logout.php' target="_parent"><span>Logout</span></a></li> </ul> </div> </td></tr> </table> <div style="clear:both; margin: 0 0 0px 0;"> </div> </body> </html> |
| 4 | 4 | \ No newline at end of file |
@@ -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 | } |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | $user = $users->userdata($_SESSION['loginid']); |
| 5 | 5 | if ($user['level'] == 'Admin' || $user['level'] == 'Manager') { |
| 6 | 6 | $akses = true; |
| 7 | -} else { |
|
| 7 | +}else { |
|
| 8 | 8 | $akses = false; |
| 9 | 9 | } |
| 10 | 10 | if ($akses = false) { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | } elseif ($currenttime >= $slawarningtime) { |
| 85 | 85 | $slabgcolor = '#FFFF00'; |
| 86 | 86 | $slatxtcolor = '#000000'; |
| 87 | - } else { |
|
| 87 | + }else { |
|
| 88 | 88 | $slabgcolor = '#00FF00'; |
| 89 | 89 | $slatxtcolor = '#000000'; |
| 90 | 90 | } |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | $emailstatus = $_POST['emailstatus']; |
| 8 | 8 | if ($emailstatus == 'Sent') { |
| 9 | 9 | $errors[] = 'You have sent this email!'; |
| 10 | - } else { |
|
| 10 | + }else { |
|
| 11 | 11 | $to = $_POST['emailto']; |
| 12 | 12 | $cc = substr($_POST['emailcc'], 0, -2); |
| 13 | 13 | $subject = $_POST['emailsubject']; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | if ($ok) { |
| 29 | 29 | $emails->update_status_email($idemail, 'Sent'); |
| 30 | 30 | header('Location: emailsend.php?success'); |
| 31 | - } else { |
|
| 31 | + }else { |
|
| 32 | 32 | $emails->update_status_email($idemail, 'Cannot Send'); |
| 33 | 33 | $errors[] = 'Sorry, email cannot send now! Please try again.'; |
| 34 | 34 | } |