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 | |
/** | |
* @category Fishpig | |
* @package Fishpig_Wordpress | |
* @license http://fishpig.co.uk/license.txt | |
* @author Ben Tideswell <[email protected]> | |
*/ | |
?> | |
<?php $post = $this->getPost() ?> | |
<?php if ($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 | |
/** maxmind geoip integration in php */ | |
function get_real_ip() { | |
$ipaddress = ''; | |
if(empty($_REQUEST['ip']) && @$_REQUEST['ip']==""){ | |
if (@$_SERVER['HTTP_CLIENT_IP']) | |
$ipaddress = @$_SERVER['HTTP_CLIENT_IP']; | |
else if(@$_SERVER['HTTP_X_FORWARDED_FOR']) | |
$ipaddress = @$_SERVER['HTTP_X_FORWARDED_FOR']; | |
else if(@$_SERVER['HTTP_X_FORWARDED']) |
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
function highlightSingleIssue(r) { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var colsCount = sheet.getDataRange().getNumColumns(); | |
var dataRange = sheet.getRange(r, 1, 1, colsCount); | |
var data = dataRange.getValues(); | |
var row = data[0]; | |
var colors = { | |
Open: {bg: '#ffffff', fg: 'green'}, |
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
SELECT | |
DATE_FORMAT(dpp.created, '%Y-%m-%dT%TZ') AS press_created, | |
dpp.press_source_id, | |
dss.source_name AS press_source_name, | |
dpp.id press_pk_id, | |
dpp.press_id, | |
dtt_i.tag_lang, | |
dcc.country_name AS press_country_name, | |
dcc.country_keywords AS press_country_keywords, |
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
SELECT | |
DATE_FORMAT(dpp.created, '%Y-%m-%dT%TZ') AS press_created, | |
dpp.press_source_id, | |
dss.source_name AS press_source_name, | |
dpp.id press_pk_id, | |
dpp.press_id, | |
dtt_i.tag_lang, | |
dcc.country_name AS press_country_name, | |
dcc.country_keywords AS press_country_keywords, |
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
</head> | |
<body> | |
<?php if(@$_GET['finalups']==1): ?> | |
<iframe src="/ups/rev-calc/" style="display:none;width:0;height:0;"></iframe> | |
<?php endif; ?> | |
<!-- END PIXEL CODES HERE --> | |
<script type="text/javascript"> | |
setTimeout(function(){ | |
location.href="http://<?php echo $cbpid; ?>.beabadass.pay.clickbank.net/?<?php echo $cbur . $cbf . $cbfid . $vtid . $cbrblaccpt; ?>"; | |
},3000); |
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
SELECT | |
DATE_FORMAT(dpp.created, '%Y-%m-%dT%TZ') AS press_created, | |
dpp.press_source_id, | |
dss.source_name AS press_source_name, | |
dpp.id press_pk_id, | |
dpp.press_id, | |
dtt_i.tag_lang, | |
dcc.country_name AS press_country_name, | |
dcc.country_keywords AS press_country_keywords, | |
dss.source_slug, |
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 | |
//usage: | |
//url_title($title); | |
if ( ! function_exists('url_title')) | |
{ | |
/** | |
* Create URL Title | |
* |
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 | |
$subjects = array("Agriculture","Economy","Politics"); | |
$array_params = array("Subjects:" . implode(" OR Subjects:",$subjects)); | |
$AdditionalParameters = array('fq' => array_merge($array_params), 'sort' => array($sortval . $score_sort), 'facet' => 'on', 'facet.mincount' => 1); | |
$search->setQuery("*:*"); | |
$search->get_results(); | |
//objects function may vary this is a sample code only. | |
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 | |
/** | |
* Add wpml-{ICL_LANGUAGE_CODE} class to body tag | |
*/ | |
function wpml_body_class( $classes ) { | |
if ( defined( 'ICL_LANGUAGE_CODE' ) ) | |
$classes[] = 'wpml-' . strtolower( ICL_LANGUAGE_CODE ); | |
return $classes; | |
} | |
add_filter( 'body_class', 'wpml_body_class' ); |