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
if((self.parent && !(self.parent===self)) || (self.parent.frames.length!=0) || (parent.frames.length > 0) || ( window!= window.top )){self.parent.location=document.location;} |
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 | |
/* | |
* Name: Song name in ShoutCast | |
* Version: 1.16.10.15.0 | |
* Description: Get the song name in Shoutcast, example of use ( ajax.php?domain='Your IP or domain name'&port='Number port' ); | |
* Author: Lenivene Bezera | |
* Licence: MPL | |
*/ | |
$ip = ( isset($_GET['domain']) && !empty($_GET['domain']) ) ? $_GET['domain'] : '69.46.88.19'; | |
$port = ( isset($_GET['port']) && !empty($_GET['port']) ) ? $_GET['port'] : '80'; |
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 | |
/** | |
* Somatório da função "wesley_safadao" | |
* @param {number} $num [Numero máximo a ser somado] | |
* @return {number} [Numero somado] | |
*/ | |
function somatorio( $num ){ | |
$somatorio = 0; | |
for($valor = 1; $valor <= $num; $valor++){ | |
$somatorio += $valor; |
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 %{HTTP_HOST} !^$ | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteCond %{HTTPS}s ^on(s)| | |
RewriteRule ^ http%1://www.%{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
<?php | |
/* | |
* Filter in functions 'the_content' and 'the_excerpt' | |
*/ | |
add_filter( 'get_the_excerpt', 'esc_spaces' ); | |
// add_filter( 'the_excerpt', 'esc_spaces' ); // Don't required | |
add_filter( 'the_content', 'esc_spaces' ); | |
function esc_spaces( $content ){ | |
if ( '' == $content ) | |
return $content; |
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 | |
/** | |
* Author: Rhuan Carlos | |
*/ | |
function insert_likes_custom_field( $post_ID ) { | |
global $wpdb; | |
if ( !wp_is_post_revision( $post_ID ) ){ | |
add_post_meta( $post_ID, 'likes_count', '0', true ); | |
} |
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 | |
/** | |
* Filter from "the_excerpt". | |
* | |
* @since 1.0.0 | |
* @param string $post_excerpt The post excerpt. | |
* | |
*/ | |
function get_excerpt_by_ID( $post = 0){ | |
$post = get_post( $post ); |
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 | |
/* | |
* Check number is positive | |
* PHP Version required >= 4.0 | |
*/ | |
function is_num_negative( $num ){ | |
if( empty( trim( $num ) ) || ! is_numeric( $num ) ){ | |
return; | |
} | |
/* |
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 | |
/** | |
* Disable WordPress Responsive Images | |
*/ | |
add_filter( 'wp_calculate_image_srcset', '__return_false' ); |
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
if(window.jQuery) | |
$(document).ready(function(){ | |
/** | |
* More informations | |
* URI: http://api.vagalume.com.br/docs/radios/ | |
*/ | |
var radio = "coca-cola-fm", // Your webradio here | |
api_key = ""; // Get key here http://auth.vagalume.com.br/settings/api/ | |
if(typeof "undefined" != radio |
OlderNewer