Commit 9d4126ae authored by Brian Dukes's avatar Brian Dukes

initial commit

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.
nbproject/
vendor/
/deploy-config/
/ssh/
/Vagrantfile
/.vagrant
\ No newline at end of file
# README #
This is Base Site 5
### What is this repository for? ###
* Base Site
* 5.0.2
### How do I get set up? ###
* Copy /app/config/config.dist.inc.php to config.inc.php and edit with database credentials
* Make the following directories writable
* /app/design/content
* /app/modules
* /app/packages
* /cache
* /content
* /d3panel
* /media/files
* /media/images
* /media/uploads
* Run http://domain.com/d3panel/install.php to installer
### Who do I talk to? ###
* Brian Liccardo <brian@d3corp.com>
\ No newline at end of file
{
"name": "d3corp/ops",
"description": "DevOps web app.",
"authors": [
{
"name": "DJ",
"email": "dwalker@d3corp.com"
}
],
"require": {
"phpseclib/phpseclib": "~2.0",
"twig/twig": "dev-master",
"symfony/yaml": "3.0",
"guzzlehttp/guzzle":"*"
}
}
This diff is collapsed.
# Uncomment the following line when a site is not in development
#php_flag display_errors on
#php_flag magic_quotes_gpc off
Options +FollowSymLinks
RewriteEngine On
# Preserve existing file/directory based urls
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
# Site Controller Should be last in all rules
# used to be RewriteRule .* /index.php [NC,L] before i added in subfolder capabilities
RewriteRule .* index.php [NC,L]
Order deny,allow
Deny from all
This diff is collapsed.
This diff is collapsed.
<?php
/**
* JSMin.php - modified PHP implementation of Douglas Crockford's JSMin.
*
* <code>
* $minifiedJs = JSMin::minify($js);
* </code>
*
* This is a modified port of jsmin.c. Improvements:
*
* Does not choke on some regexp literals containing quote characters. E.g. /'/
*
* Spaces are preserved after some add/sub operators, so they are not mistakenly
* converted to post-inc/dec. E.g. a + ++b -> a+ ++b
*
* Preserves multi-line comments that begin with /*!
*
* PHP 5 or higher is required.
*
* Permission is hereby granted to use this version of the library under the
* same terms as jsmin.c, which has the following license:
*
* --
* Copyright (c) 2002 Douglas Crockford (www.crockford.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* The Software shall be used for Good, not Evil.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
* --
*
* @package JSMin
* @author Ryan Grove <ryan@wonko.com> (PHP port)
* @author Steve Clay <steve@mrclay.org> (modifications + cleanup)
* @author Andrea Giammarchi <http://www.3site.eu> (spaceBeforeRegExp)
* @copyright 2002 Douglas Crockford <douglas@crockford.com> (jsmin.c)
* @copyright 2008 Ryan Grove <ryan@wonko.com> (PHP port)
* @license http://opensource.org/licenses/mit-license.php MIT License
* @link http://code.google.com/p/jsmin-php/
*/
class JSMin {
const ORD_LF = 10;
const ORD_SPACE = 32;
const ACTION_KEEP_A = 1;
const ACTION_DELETE_A = 2;
const ACTION_DELETE_A_B = 3;
protected $a = "\n";
protected $b = '';
protected $input = '';
protected $inputIndex = 0;
protected $inputLength = 0;
protected $lookAhead = null;
protected $output = '';
protected $lastByteOut = '';
protected $keptComment = '';
/**
* Minify Javascript.
*
* @param string $js Javascript to be minified
*
* @return string
*/
public static function minify($js)
{
$jsmin = new JSMin($js);
return $jsmin->min();