• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List

system/installer/config.php

00001 <?php namespace Habari; ?>
00002 <?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>
00003 <?php include( 'header.php' ); ?>
00004 <form action="" method="post">
00005 <?php
00006 foreach ($_POST as $key => $val) {
00007   if ( is_scalar( $_POST->raw($key) ) ) {
00008     echo '<input type="hidden" name="' . htmlentities($key, ENT_COMPAT, 'UTF-8') . '" value="' . htmlentities($_POST->raw($key), ENT_COMPAT, 'UTF-8') . '">';
00009   }
00010 }
00011 ?>
00012 <input type="hidden" name="locale" value="<?php echo Utils::htmlspecialchars($locale); ?>">
00013 
00014 <div class="installstep ready">
00015   <h2>Config.php<a href="#" class="help-me">(<?php _e('help'); ?>)</a></h2>
00016   <div class="options">
00017     <div class="inputfield">
00018       <?php _e('Your <strong>config.php</strong> file is not writable. In order to successfully install Habari, please paste the following into'); ?> <strong><?php echo $config_file; ?></strong>:<br />
00019       <textarea class="config"><?php echo $file_contents; ?></textarea>
00020       <div class="help">
00021         <?php _e('<strong>config.php</strong> is a file that tells Habari how to connect to your database. Habari is not able to write this file to your server automatically, so you must create this file yourself to continute the installation.'); ?>
00022         <a href="#"><?php _e('Learn More&hellip;'); ?></a>
00023       </div>
00024     </div>
00025   </div>
00026   <div class="bottom"></div>
00027 </div>
00028 
00029 <div class="next-section"></div>
00030 
00031 <div class="installstep ready">
00032   <h2><?php _e('Install'); ?></h2>
00033   <div class="options">
00034     <div class="inputfield submit">
00035       <div><?php _e('When you have successfully placed the config file, run the installer again.'); ?></div>
00036       <input type="submit" name="submit" value="<?php _e('Restart Installer'); ?>" />
00037     </div>
00038   </div>
00039   <div class="bottom"></div>
00040 </div>
00041 </form>
00042 
00043 <script type="text/javascript">
00044 $(document).ready(function() {
00045   $('.help-me').click(function(){$(this).parents('.installstep').find('.help').slideToggle();return false;})
00046   $('.help').hide();
00047 });
00048 </script>
00049 
00050 <?php include( 'footer.php' ); ?>

Generated on Sun Aug 4 2013 12:51:43 for Habari by  doxygen 1.7.1