{if $wrong_license}
<div class="error">
<b>Wrong license</b><br><br>
Please contact <a href="http://www.goldcoders.com">www.goldcoders.com</a> if you bought license to this host.
</div>
{/if}

{if $wrong_mysql_data}
<div class="error">
<b>Wrong mysql data</b><br><br>
Please make sure you have entered the right mysql host, mysql database name, mysql login, mysql password.<br>
Ask your hosting provider for this information if you are not sure.
</div>
{/if}

{if $installed != 1}
<form method=post action="">
<input type=hidden name=a value=install>
<table class="form">
<tr>
 <th colspan=2>MySQL data</th>
</tr><tr>
 <th>Mysql host:</th>
 <td><input type=text name=mysql_host value="{$frm.mysql_host|default:"localhost"|escape:html}"></td>
</tr><tr>
 <th>Mysql Database Name:</th>
 <td><input type=text name=mysql_db value="{$frm.mysql_db|escape:html}"></td>
</tr><tr>
 <th>Mysql Username:</th>
 <td><input type=text name=mysql_username value="{$frm.mysql_username|escape:html}"></td>
</tr><tr>
 <th>Mysql password:</th>
 <td><input type=text name=mysql_password value="{$frm.mysql_password|escape:html}"></td>
</tr><tr>
 <th colspan=2>License data:</th>
</tr><tr>
 <th>Host:</th>
 <td>{$hostname}</td>
</tr><tr>
 <th>License key:</th>
 <td><input type=text name=license_string value="{$frm.license_string|escape:html}"></td>
</tr><tr>
 <th colspan=2>System Settings:</th>
</tr><tr>
 <th>Administrator E-mail:</th>
 <td><input type=text name=admin_email value="{$frm.admin_email|escape:html}"></td>
</tr><tr>
 <th>System E-mail:</th>
 <td><input type=text name=system_email value="{$frm.system_email|escape:html}"></td>
</tr><tr>
 <th>Admin Login:</th>
 <td><input type=text name=admin_login value="{$frm.admin_login|escape:html}"></td>
</tr><tr>
 <th>Admin Password:</th>
 <td><input type=password name=admin_password value=""></td>
</tr><tr>
 <th></th>
 <td><input type=submit value='Install' class=sbmt></td>
</tr></table>
</form>
{else}
<div class="ok">The script has been successfully installed!</div>
<div class="message">Please delete the install.php file for security reasons.</div>
<table class="form">
<tr>
 <th>Site URL:</th>
 <td><a href="{$script_path}" target=_blank>{$script_path}</a></td>
</tr>
<tr>
 <th>Admin Panel URL:</th>
 <td><a href="{$script_path}/admin.php" target=_blank>{$script_path}/admin.php</a></td>
</tr>
<tr>
 <th>Admin Login:</th>
 <td>{$frm.admin_login}</td>
</tr>
<tr>
 <th>Admin Password:</th>
 <td>{$frm.admin_password}</td>
</tr>
</td></tr></table>
<div class="message">Login to the admin area, go to the settings screen and specify your sitename and other information.</div>
{/if}
