Removed html specific to htaccessbuilder.com

Enabled inclusion of custom html and config.
This commit is contained in:
2013-02-08 20:47:30 +00:00
parent cc66e22142
commit 5949059f99
5 changed files with 106 additions and 144 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
/html/bottom-custom.php
/html/head-custom.php
/config.local.php

View File

@@ -1,7 +1,10 @@
<?php <?php
$config = array(); $config = array();
$config['BasePath'] = (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].'/'; $config['BasePath'] = (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://').$_SERVER['HTTP_HOST'].'/';
$config['Debug'] = $_SERVER['HTTP_HOST'] == 'dev.htaccessbuilder.com'; $config['Debug'] = False;
if (is_file('config.local.php'))
include('config.local.php');

View File

@@ -1,26 +1,21 @@
<div style="clear: both;">&nbsp;</div> <div style="clear: both;">&nbsp;</div>
</div> <!-- / content --> </div> <!-- / content -->
<?php if (isset($sidebar) && $sidebar == True) include('sidebar.php'); ?> <?php if (isset($sidebar) && $sidebar == True) include('sidebar.php'); ?>
</div><!-- / page-content --> </div><!-- / page-content -->
</div><!-- / page-bgbtm --> </div><!-- / page-bgbtm -->
</div><!-- / page-bgtop --> </div><!-- / page-bgtop -->
</div><!-- / page --> </div><!-- / page -->
</div><!-- / wrapper --> </div><!-- / wrapper -->
<?php include('footer.php'); ?> <?php include('footer.php'); ?>
<div style="clear: both;">&nbsp;</div>
<div style="clear: both;">&nbsp;</div> <?php
<script type="text/javascript"> if (is_file(dirname(__FILE__).'/bottom-custom.php'))
var uvOptions = {}; include(dirname(__FILE__).'/bottom-custom.php');
(function() { ?>
var uv = document.createElement('script'); uv.type = 'text/javascript'; uv.async = true; </body>
uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/3Kr8ahaGdYLcNwpTEtA7fQ.js'; </html>
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(uv, s); <!--
})(); GentleBreeze Design by Free CSS Templates
</script>
</body>
</html>
<!--
GentleBreeze Design by Free CSS Templates
--> -->

View File

@@ -1,93 +1,74 @@
<!DOCTYPE HTML> <!DOCTYPE HTML>
<html> <html>
<head> <head>
<meta charset="UTF-8"/> <meta charset="UTF-8"/>
<meta name="keywords" content="htaccess, htaccess builder, htaccess generator, apache, apache rewrite, rewrite" /> <meta name="keywords" content="htaccess, htaccess builder, htaccess generator, apache, apache rewrite, rewrite" />
<meta name="description" content="Build htaccess rules for apache 2 easily." /> <meta name="description" content="Build htaccess rules for apache 2 easily." />
<title>Htaccess Builder</title> <title>Htaccess Builder</title>
<base href="<?php echo System::Config()->BasePath; ?>"/> <base href="<?php echo System::Config()->BasePath; ?>"/>
<link href="Media/style.css" rel="stylesheet" type="text/css"/> <link href="Media/style.css" rel="stylesheet" type="text/css"/>
<link href='http://fonts.googleapis.com/css?family=Oswald|Arvo|Telex' rel='stylesheet' type='text/css'/> <link href='http://fonts.googleapis.com/css?family=Oswald|Arvo|Telex' rel='stylesheet' type='text/css'/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
if(typeof jQuery == 'undefined'){document.write("<scr"+"ipt src=\"Media/jquery.min.js\" type=\"text/javascript\"><\/scr"+"ipt>");} if(typeof jQuery == 'undefined'){document.write("<scr"+"ipt src=\"Media/jquery.min.js\" type=\"text/javascript\"><\/scr"+"ipt>");}
</script> </script>
<?php if (defined('CREATOR')): ?> <?php if (defined('CREATOR')): ?>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
<link href="Media/impromptu.css" rel="stylesheet" type="text/css"/> <link href="Media/impromptu.css" rel="stylesheet" type="text/css"/>
<script src="Media/jquery-impromptu.3.2.min.js" type="text/javascript"></script> <script src="Media/jquery-impromptu.3.2.min.js" type="text/javascript"></script>
<link href="Media/tooltipster-1.2/css/tooltipster.css" rel="stylesheet" type="text/css"/> <link href="Media/tooltipster-1.2/css/tooltipster.css" rel="stylesheet" type="text/css"/>
<script src="Media/tooltipster-1.2/js/jquery.tooltipster.min.js" charset="UTF-8" type="text/javascript"></script> <script src="Media/tooltipster-1.2/js/jquery.tooltipster.min.js" charset="UTF-8" type="text/javascript"></script>
<script src="Media/index.js" type="text/javascript"></script> <script src="Media/index.js" type="text/javascript"></script>
<script src="Media/rules.js" type="text/javascript"></script> <script src="Media/rules.js" type="text/javascript"></script>
<?php endif; ?> <?php endif; ?>
<?php if (System::Config()->Debug): ?> <?php if (System::Config()->Debug): ?>
<style type="text/css"> <style type="text/css">
body { body {
background-color: #700000; background-color: #700000;
} }
</style> </style>
<?php endif; ?> <?php endif; ?>
<script type="text/javascript"> <?php
if (is_file(dirname(__FILE__).'/head-custom.php'))
var _gaq = _gaq || []; include(dirname(__FILE__).'/head-custom.php');
_gaq.push(['_setAccount', 'UA-32779476-1']); ?>
_gaq.push(['_trackPageview']); <?php if (isset($head)) echo $head; ?>
</head>
(function() { <body id="<?php if (isset($pageid)) echo $pageid; ?>">
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; <a href="https://github.com/sam159/HtaccessBuilder"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; <div id="wrapper">
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); <div id="header-wrapper">
})(); <div id="header">
<div id="logo">
</script> <h1><a href="#">Htaccess Builder</a></h1>
<?php if (isset($head)) echo $head; ?> <p>
</head> Beta!
<body id="<?php if (isset($pageid)) echo $pageid; ?>"> </p>
<div id="wrapper"> </div>
<div id="header-wrapper"> </div>
<div id="header"> </div>
<div id="logo"> <div id="menu-wrapper">
<h1><a href="#">Htaccess Builder</a></h1> <div id="menu">
<p> <ul>
Beta! <li class="page-builder"><a href="">Builder</a></li>
</p> </ul>
</div> </div>
</div> </div>
</div> <?php $class = ''; if (!isset($sidebar) || $sidebar == False) $class = 'class="fullwidth"'?>
<div id="menu-wrapper"> <div id="page" <?=$class?>>
<div id="menu"> <div id="page-bgtop" <?=$class?>>
<ul> <div id="page-bgbtm" <?=$class?>>
<li class="page-builder"><a href="">Builder</a></li> <div id="page-content" <?=$class?>>
</ul> <?php if (isset($sidebar) && $sidebar == True): ?>
</div> <div id="content">
</div> <?php else: ?>
<!--<div id="donate"> <div id="content-fullwidth">
Find this useful? <br/> <?php endif; ?>
<div>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <noscript>
<input type="hidden" name="cmd" value="_s-xclick"/> <div id="js-notice">
<input type="hidden" name="hosted_button_id" value="N7V2ZSKNXCGW8"/> Javascript is required to use this website :(
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif" class="image" border="0" name="submit" alt="&pound;1" title="&pound;1"/> </div>
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"/> </noscript>
</form>
</div>
</div>-->
<?php $class = ''; if (!isset($sidebar) || $sidebar == False) $class = 'class="fullwidth"'?>
<div id="page" <?=$class?>>
<div id="page-bgtop" <?=$class?>>
<div id="page-bgbtm" <?=$class?>>
<div id="page-content" <?=$class?>>
<?php if (isset($sidebar) && $sidebar == True): ?>
<div id="content">
<?php else: ?>
<div id="content-fullwidth">
<?php endif; ?>
<noscript>
<div id="js-notice">
Javascript is required to use this website :(
</div>
</noscript>
<img id="loading" src="Media/Images/loading.gif" alt="[*]" style="display: none;"/> <img id="loading" src="Media/Images/loading.gif" alt="[*]" style="display: none;"/>

View File

@@ -1,20 +0,0 @@
<?php
define('INDEX',True);
require('includer.php');
include('html/top.php');
?>
<h2>Thanks for the donation!</h2>
<p>
If you have any ideas or comments please drop me a mail at <a href="mailto:sam@xnet.tk">sam@xnet.tk</a>.
</p>
<p>
Cheers!<br/>
Sam
</p>
<?php
include('html/bottom.php');