[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> install.php (source)

   1  <?php
   2  gp_title( __('Install &lt; GlotPress') );
   3  gp_breadcrumb( array(
   4      'install' == $action? __('Install') : __('Upgrade'),
   5  ) );
   6  
   7  gp_tmpl_header();
   8  ?>
   9  
  10  <?php if ($errors): ?>
  11      <?php _e('There were some errors:'); ?>
  12      <pre>
  13          <?php echo implode("\n", $errors); ?>
  14      </pre>
  15  <?php 
  16      else:
  17          echo $success_message;
  18      endif;
  19  ?>
  20  
  21  <?php
  22  // TODO: deny access to scripts folder
  23  if ( $show_htaccess_instructions ): ?>
  24      <p>
  25          <?php _e('Please add this to your <code>.htaccess</code> file:'); ?>
  26          <pre>
  27          # BEGIN GlotPress
  28          &lt;IfModule mod_rewrite.c&gt;
  29          RewriteEngine On
  30          RewriteBase <?php echo $path . "\n"; ?>
  31          RewriteCond %{REQUEST_FILENAME} !-f
  32          RewriteCond %{REQUEST_FILENAME} !-d
  33          RewriteRule . <?php echo $path; ?>index.php [L]
  34          &lt;/IfModule&gt;
  35          # END GlotPress
  36          </pre>
  37          <?php _e('<strong>The default username is <code>admin</code>, whose password is simply <code>a</code>.</strong>'); ?>
  38      </p>
  39  <?php endif; ?>
  40      
  41  <?php gp_tmpl_footer(); ?>


Generated: Thu May 24 03:59:35 2012 Hosted by follow the white rabbit.