<?php /* Smarty version 2.6.2, created on 2012-10-21 01:11:17
         compiled from install.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'install.tpl', 24, false),array('modifier', 'escape', 'install.tpl', 24, false),)), $this); ?>
<?php if ($this->_tpl_vars['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>
<?php endif; ?>

<?php if ($this->_tpl_vars['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>
<?php endif; ?>

<?php if ($this->_tpl_vars['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="<?php echo ((is_array($_tmp=((is_array($_tmp=@$this->_tpl_vars['frm']['mysql_host'])) ? $this->_run_mod_handler('default', true, $_tmp, 'localhost') : smarty_modifier_default($_tmp, 'localhost')))) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr><tr>
 <th>Mysql Database Name:</th>
 <td><input type=text name=mysql_db value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['mysql_db'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr><tr>
 <th>Mysql Username:</th>
 <td><input type=text name=mysql_username value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['mysql_username'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr><tr>
 <th>Mysql password:</th>
 <td><input type=text name=mysql_password value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['mysql_password'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr><tr>
 <th colspan=2>License data:</th>
</tr><tr>
 <th>Host:</th>
 <td><?php echo $this->_tpl_vars['hostname']; ?>
</td>
</tr><tr>
 <th>License key:</th>
 <td><input type=text name=license_string value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['license_string'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, '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="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['admin_email'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr><tr>
 <th>System E-mail:</th>
 <td><input type=text name=system_email value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['system_email'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
"></td>
</tr><tr>
 <th>Admin Login:</th>
 <td><input type=text name=admin_login value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['admin_login'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, '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>
<?php 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="<?php echo $this->_tpl_vars['script_path']; ?>
" target=_blank><?php echo $this->_tpl_vars['script_path']; ?>
</a></td>
</tr>
<tr>
 <th>Admin Panel URL:</th>
 <td><a href="<?php echo $this->_tpl_vars['script_path']; ?>
/admin.php" target=_blank><?php echo $this->_tpl_vars['script_path']; ?>
/admin.php</a></td>
</tr>
<tr>
 <th>Admin Login:</th>
 <td><?php echo $this->_tpl_vars['frm']['admin_login']; ?>
</td>
</tr>
<tr>
 <th>Admin Password:</th>
 <td><?php echo $this->_tpl_vars['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>
<?php endif; ?>