Skip to content

Instantly share code, notes, and snippets.

View ombagrao22's full-sized avatar

Omprakash ombagrao22

  • mumbai
View GitHub Profile
<?php
/*Code to retrieve RSS feeds from another website.*/
$rss_url = 'http://tech.firstpost.com/feed'; /*Specify your blog url to from where you want to retrieve posts*/
if( !class_exists( 'WP_Http' ) ) {
include_once( ABSPATH . WPINC. '/class-http.php' );
}
$request = new WP_Http;
$result = $request->request( $rss_url );
/*Check where data exists for requested url*/
if (!empty($result['body'])) {
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
<?php
/*
* Template Name: Responce
*/
//I want to retrive sessionid variable inside this template file.
class wpsc_merchant_citrus_standard extends wpsc_merchant {
var $name = '';
var $paypal_ipn_values = array();
<?php
/*
* This is custom gateway for "Citrus Payement Sloution"
* @created: 5 MARCH 2013
* @author: Omprakash
*/
$nzshpcrt_gateways[$num]['name'] = 'Citrus Pay Gateway';
$nzshpcrt_gateways[$num]['internalname'] = 'citrus_pay_gateway';
$nzshpcrt_gateways[$num]['function'] = 'gateway_citrus_pay_gateway';