<?PHP
if(empty($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
}
// Strip off query string so dirname() doesn't get confused
$url = preg_replace('/\?.*$/', '', $_SERVER['REQUEST_URI']);
if( isset($_SERVER['HTTPS']) == True ) {
$url = 'https://'.$_SERVER['HTTP_HOST'].'/'.ltrim(dirname($url), '/').'/';
} else {
$url = 'http://'.$_SERVER['HTTP_HOST'].'/'.ltrim(dirname($url), '/').'/';
}//if( isset($_SERVER['HTTPS']) == True )
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Workorder TS Login</title>
<link rel="icon" href="<?PHP echo $url ?>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<?PHP echo $url ?>favicon.ico" type="image/x-icon" />
</head>
<body onLoad="document.forms[0].Username.focus();">
<div style="text-align: center;font-weight: bold;"><br>
<?PHP if( file_exists($disp_complogolocation) == TRUE && $disp_complogolocation != './grfx/' ) {
echo('<img src="'.$disp_complogolocation.'" alt="'.$disp_cname.'">');
} else { //No Logo Location Set, display name only
echo $disp_cname;
} //if( $disp_complogolocation )
?>
<br />
<p style="text-decoration: underline;">Workorder TS Login</p></div>
<form method="post" name="Workorder Processing Technician Login Form">
<div align="center">
<table width="345" border="0" cellspacing="0" cellpadding="1">
<tr>
<td width="102"><div align="right">Username:</div></td>
<td width="233"><input name="Username" tabindex="1" size="30"></td>
</tr>
<tr>
<td><div align="right">Password:</div></td>
<td><input name="Password" type="password" tabindex="2" size="30"></td>
</tr>
</table>
<p><span style="text-align: center;">
<input tabindex="3" name="Login" value="Login" type="submit">
</span></p>
<p>
<input type="hidden" name="TargetQueryPass" value="<?PHP echo $disp_tarqpass; ?>">
<input type="hidden" name="TargetURLPass" value="<?PHP echo $disp_targeturl; ?>">
</p>
</form>
<?PHP
if( $disp_cust_login == 1 ) { //Show customer login link if it is enabled.
echo ('The Customer Login Form is <a href="guest_login.php">located here.</a>');
} //if( $disp_cust_login == 1 )
?>
</div></div>
<?PHP
if( file_exists("IsOnlineDemo") == True ) { // Display Special Login Information for the Online Demo
echo('<p>Online Demo Login Information:<br />
Username: admin Password: admin This account is allowed to configure WorkOrder TS, configuration changes are not actually saved in Online Demo mode.<br />
Username: jacky Password: jacky This is a regular user account assigned to branch 1<br />
Username: bryan Password: bryan This is a regular user account assigned to branch 2 in a multibranch setup.<br />
Username: donna Password: donna This is a regular user account assigned to branch 3 in a multibranch setup.<br />
</p>');
} //if( file_exists("IsOnlineDemo") == True )
if( file_exists("$disp_incdir/pro/calendar.php") == False ) { // Pro Test
echo('<BR><BR><BR><small><center>This is a Free Installation of <a href="http://www.WorkOrderTS.com" target="_blank">Workorder TS</a> the operating system independent, multi-user workorder tracking application.</center></small>');
}
?>
</body>
</html>