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
wp_enqueue_style( | |
'fancyboxstyles', | |
WP_PLUGIN_URL.'/chat/custom.css', | |
false, | |
all); | |
function my_init() { | |
if (!is_admin()) { | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js', false, '1.3.2', 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
function add_query_vars($aVars) { | |
$aVars[] = "user_id"; | |
return $aVars; | |
} | |
// hook add_query_vars function into query_vars | |
add_filter('query_vars', 'add_query_vars'); | |
function add_rewrite_rules($aRules) { |
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 | |
/* | |
Template Name: User Template | |
*/ | |
get_header(); | |
echo $user_id = ($wp_query->query_vars['user_id'] ? $wp_query->query_vars['user_id'] : '0'); | |
get_footer(); | |
?> |
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 | |
// Class Defination starts here. | |
//include('connection.php'); | |
// above class include for connect datbase connection | |
class validator{ | |
var $array_to_validate = ""; | |
var $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
$config = array(); | |
$config['array_to_validate'] = $_POST or array_need_to_validate; | |
$config['email'] = "email,forgot_email"; | |
$config['required'] = "date_birth,phone,mobile"; | |
$config['numeric'] = "mobile"; | |
$config['positive_numeric'] = "positive_number"; | |
$config['positive_integer'] = "positive_integer"; | |
$config['url'] = "url"; | |
$config['alpha'] = "name"; | |
$config['alphanumeric'] = "user_password"; |
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 | |
if (PHP_SAPI === 'cli') { | |
require("cronLockHelperClass.php"); | |
if (($pid = cronHelper::lock()) !== FALSE) { | |
// here need to apply the logic | |
cronHelper::unlock(); | |
} else { |
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 addPackageLineItem($input) | |
{ | |
$packageLineItem = array | |
( | |
'SequenceNumber' => 1, | |
'GroupPackageCount' => 1, | |
'Weight' => array | |
( | |
'Value' => $input['Weight'], | |
'Units' => 'LB' |
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
/** | |
Plugin Name: BuddyPress add new tab | |
Description: Test case for a bug. When using the Admin subnav, select "Test" and "Test 2" will disappear | |
Version: 0.6 | |
Author: Rakesh Kumar | |
**/ | |
function bptt_init() { | |
class Groups_Test_Tab extends BP_Group_Extension { |
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
import { Injectable, EventEmitter, Output } from '@angular/core'; | |
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; | |
import { Response } from "@angular/http"; | |
import { Observable } from 'rxjs'; | |
import 'rxjs/add/operator/map'; | |
@Injectable() | |
export class AppService{ | |
isLoggedin:boolean; | |
@Output() getLoggedInName = new EventEmitter(); |
OlderNewer