Beispiel #1
0
 private static function rewrite($settings)
 {
     $htaccess = Braces::compile(APP . 'storage/htaccess.distro', array('base' => $settings['metadata']['site_path'], 'index' => is_cgi() ? 'index.php?/$1' : 'index.php/$1'));
     if (isset($htaccess) and is_writable($filepath = PATH . '.htaccess')) {
         file_put_contents($filepath, $htaccess);
     } else {
         Session::put('htaccess', $htaccess);
     }
 }
Beispiel #2
0
    ?>

								<p>Looks like you are running apache with <code>mod_rewrite</code> enabled.<br>
								The installer will create the .htaccess for you.</p>
				
							<?php 
} elseif (is_apache()) {
    ?>
				
								<p>Looks like you are running apache, but <code>mod_rewrite</code> is not enabled.</p>
				
								<p><input id="rewrite" name="rewrite" type="checkbox" value="1">
								Create the .htaccess file for me anyway.</p>
				
							<?php 
} elseif (is_cgi()) {
    ?>
				
								<p>Looks like you are running <code>PHP</code> as a fastcgi process.<br>
								You will have to setup your own url rewriting.</p>
				
							<?php 
}
?>
		                </div>
					</div>
	            </div>
				
				<div class="form-actions">
					<div class="row">
						<a href="<?php