This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IfModule mod_expires.c> | |
| # Enable expirations | |
| ExpiresActive On | |
| # Default directive | |
| ExpiresDefault "access plus 1 month" | |
| # My favicon | |
| ExpiresByType image/x-icon "access plus 1 year" | |
| # Images | |
| ExpiresByType image/gif "access plus 1 month" | |
| ExpiresByType image/png "access plus 1 month" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* validate verify token needed for setting up web hook */ | |
| if (isset($_GET['hub_verify_token'])) { | |
| if ($_GET['hub_verify_token'] === 'YOUR_SECRET_TOKEN') { | |
| echo $_GET['hub_challenge']; | |
| return; | |
| } else { | |
| echo 'Invalid Verify Token'; | |
| return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function minify_output($buffer) | |
| { | |
| $search = array('/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'); | |
| $replace = array('>', '<', '\\1'); | |
| if (preg_match("/\<html/i",$buffer) == 1 && preg_match("/\<\/html\>/i",$buffer) == 1) { | |
| $buffer = preg_replace($search, $replace, $buffer); | |
| } | |
| return $buffer; | |
| } | |
| ob_start("minify_output"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <head> | |
| <link href="/min/?g=css" rel="stylesheet"> | |
| <script src="/min/?g=js" type="text/javascript"></script> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return array( | |
| 'css' => array( | |
| '//css/bootstrap/bootstrap.min.css', | |
| '//css/fv/formValidation.css', | |
| '//css/chosen/chosen.css', | |
| '//css/misc/cropper.min.css', | |
| '//upl/fineuploader/custom.fineuploader-5.0.4.css', | |
| '//css/jquery/jquery-ui.min.css', | |
| '//css/main.css', | |
| '//css/progress.css', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <system.webServer> | |
| <!-- GZip static file content. Overrides the server default which only compresses static files over 2700 bytes --> | |
| <httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024"> | |
| <scheme dll="%Windir%\system32\inetsrv\gzip.dll" name="gzip"/> | |
| <staticTypes> | |
| <add enabled="true" mimeType="text/*"/> | |
| <add enabled="true" mimeType="message/*"/> | |
| <add enabled="true" mimeType="application/javascript"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # BEGIN GZIP | |
| <ifmodule mod_deflate.c> | |
| AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript | |
| </ifmodule> | |
| # END GZIP |