This file contains 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
var consoleHolder = console; | |
/** | |
* Set the debug level | |
* @type int | |
* 0/false = disabled | |
* 1 = enabled | |
*/ | |
var debug_lvl = false; | |
function debug(bool){ | |
if ( !bool ){ |
This file contains 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 | |
/** | |
* Encrypts an email w/out mailto link via rot13 encryption | |
* decrypts it via javascript | |
* @param string $email Email | |
* @param boolean $mailto Wrap in <a href='mailto:'></a> | |
* @return string Safe Email | |
*/ | |
function safeMail($email,$mailto=true){ | |
$e = str_rot13($email); |
This file contains 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
# Auth | |
AuthName "Stage" | |
AuthType Basic | |
AuthUserFile /path/to/.htpasswd | |
Require valid-user | |
SetEnvIf Host stage.domain.de DEV | |
Order Allow,Deny | |
Allow from all |
This file contains 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
# Wartungsmodus | |
RewriteCond %{REMOTE_ADDR} !=84.46.78.143 | |
RewriteCond %{REQUEST_URI} !=/wartung.html | |
RewriteRule ^(.*)$ /wartung.html?%{REMOTE_ADDR} [R=503,L] |
This file contains 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
# no-www | |
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | |
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] |
This file contains 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
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
# Alternative via Port | |
#RewriteCond %{SERVER_PORT} !^443$ | |
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
This file contains 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
AuthType Basic | |
AuthName "Development" | |
AuthUserFile /var/.htpasswd | |
Require valid-user |
This file contains 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
# User specific & automatically generated files | |
/dist | |
/composer.lock | |
/phpunit.xml | |
/phpcs.xml | |
bower_components | |
node_modules | |
#kirby | |
/site/accounts |
This file contains 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
<script src="https://cdn.jsdelivr.net/webfontloader/1.6.27/webfontloader.js"></script> | |
<script> | |
WebFont.load({ | |
google: { | |
families: ['Source Serif Pro','Source Sans Pro:400,700'] | |
}, | |
custom: { | |
families: ['FontAwesome'], | |
urls: ['https://cdn.jsdelivr.net/fontawesome/4.7.0/css/font-awesome.min.css'] | |
} |
This file contains 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
<div style="overflow:hidden;width:0;height:0;"><div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="email" name="email" tabindex="-1" value="" autocomplete="off"></div></div> |