2 if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root']))
3 die("Restricted access");
4 include_once($path_to_root . "/includes/ui/ui_view.inc");
5 // Display demo user name and password within login form if "$allow_demo_mode" is true
7 if ($allow_demo_mode == True)
9 $demo_text = "Login as user: demouser and password: cooldemo";
13 $demo_text = "Please login here";
17 $def_theme = $path_to_root . '/themes/default';
21 <?php echo get_js_png_fix(); ?>
22 <script type="text/javascript">
23 function defaultCompany()
25 document.forms[0].company_login_name.options[<?php echo $def_coy; ?>].selected = true;
28 <title><?php echo $app_title . " " . $version;?></title>
29 <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
30 <link rel="stylesheet" href="<?php echo $def_theme;?>/login.css" type="text/css" />
33 <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="defaultCompany()">
34 <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
36 <td align="center" valign="bottom"><a target="_blank" href="<?php $power_url; ?>"><img src="<?php echo $def_theme;?>/images/logo_frontaccounting.png" alt="FrontAccounting" width="250" height="50" onload="fixPNG(this)" border="0" /></a></td>
40 <td align="center" valign="top">
42 <table border="0" cellpadding="0" cellspacing="0">
43 <tr><td colspan=2 align="center"><font size=4><b><?php echo _("Version") . " " . $version . " Build " . $build_version ?><b><br><br></td></tr>
45 <td colspan="2" rowspan="2">
46 <table width="346" border="0" cellpadding="0" cellspacing="0">
47 <form action="<?php echo $_SERVER['PHP_SELF'];?>" name="loginform" method="post">
49 <td colspan="5" bgcolor="#FFFFFF"><img src="<?php echo $def_theme; ?>/images/spacer.png" width="346" height="1" alt="" /></td>
57 <td bgcolor="#367CB5"><img src="<?php echo $def_theme; ?>/images/spacer.png" width="12" height="200" alt="" /></td>
59 <!--<td background="<?php echo $def_theme; ?>/images/outline/bg.png" width="233" height="200" colspan="3" valign="top">-->
60 <td class="login" colspan="3" valign="top">
61 <table border="0" cellpadding="3" cellspacing="0" width="100%">
63 <td align="right"><!--<span class="loginText">Client login<input name="external_login" type="checkbox" value="1" class="loginText"></span>--><br /></td>
67 <td width="90"></td><td class="loginText" width="283"><span>User name:</span><br />
68 <input type="text" name="user_name_entry_field"/><br />
69 <span>Password:</span><br />
70 <input type="password" name="password">
72 <span>Company:</span></br>
73 <!--<select name="company_login_name" onchange="setCookie()">-->
74 <select name="company_login_name">
76 for ($i = 0; $i < count($db_connections); $i++)
78 echo "<option value=$i>" . $db_connections[$i]["name"] . "</option>";
83 <?php echo $demo_text;?>
88 <td></td><td align="left"><input type="submit" value=" Login -->" name="SubmitUser" /></td>
94 <td colspan="5" bgcolor="#FFFFFF"><img src="<?php echo $def_theme; ?>/images/spacer.png" width="346" height="1" alt="" /></td>
99 <!--<td background="<?php echo $def_theme; ?>/images/outline/r.png" colspan="3" align="right" valign="top"><img src="<?php echo $def_theme; ?>/images/outline/tr.png" width="10" height="10" alt="" /></td>-->
102 <!--<td background="<?php echo $def_theme; ?>/images/outline/r.png"><img src="<?php echo $def_theme; ?>/images/outline/r.png" width="10" height="10" alt=""></td>-->
105 <!--<td background="<?php echo $def_theme; ?>/images/outline/bm.png"><img src="<?php echo $def_theme; ?>/images/outline/bl.png" width="10" height="10" alt=""></td>
106 <!--<td background="<?php echo $def_theme; ?>/images/outline/bm.png"><img src="<?php echo $def_theme; ?>/images/outline/bm.png" width="10" height="10" alt=""></td>-->
107 <!--<td><img src="<?php echo $def_theme; ?>/images/outline/br.png" width="10" height="10" alt="" /></td>-->
109 <tr><td> </td></tr><tr>
110 <td align="center" class="footer"><font size=1><a target='_blank' style="text-decoration: none" HREF='<?php echo $power_url; ?>'><font color="#FFFF00" valign="top"> <?php echo $power_by; ?></font></a></font></td>
112 <!--<tr><td> </td></tr><tr>
113 <td align="center" class="footer"><a target="_blank" HREF="http://frontaccounting.com/"><img src="<?php echo $def_theme; ?>/images/logo_frontaccounting.png" height="60" width="60" border="0"/></a></td>
116 if ($allow_demo_mode == true)
120 <!--<td><br><div align="center"><a href="http://frontaccounting.com"><img src="<?php echo $def_theme; ?>/images/logo_frontaccounting.png" border="0" align="middle" /></a></div></td>-->
130 <script language="JavaScript" type="text/javascript">
133 document.forms[0].user_name_entry_field.select();
134 document.forms[0].user_name_entry_field.focus();