403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/qcardm/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/qcardm/js/jquery.jsoncookie.js
/*!
 * jQuery JSON Cookie
 * 
 * Copyright 2011 appendTo LLC. (http://appendto.com/team)
 * Dual licensed under the MIT or GPL licenses.
 * http://appendto.com/open-source-licenses
 * 
 * http://github.com/appendto/jquery-jsoncookie
 */
(function( $ ) {

var encode = encodeURIComponent,
	decode = decodeURIComponent;

function now() {
	return (new Date()).getTime();
}

$.cookie = function( key, value, options ) {
	options = $.extend( {}, options );
	var expires = options.expires,
		result = value;

	// get all cookies
	if ( !key ) {
		result = {};
		$.each( document.cookie.split( "; " ), function( i, cookie ) {
			if ( !cookie ) {
				return;
			}
			var parts = cookie.split( "=" );
			result[ decode( parts[ 0 ] ) ] = JSON.parse( decode( parts[ 1 ] ) );
		});
		return result;
	}

	// get/set a specific cookie
	key = encode( key );
	if ( value === undefined ) {
		result = new RegExp( "(?:^|; )" + key + "=([^;]*)" ).exec( document.cookie );
		return result && JSON.parse( decode( result[ 1 ] ) );
	} else {
		if ( value === null ) {
			expires = -1;
		}
		if ( typeof expires === "number" ) {
			expires = new Date( now() + expires );
		}

		document.cookie = [
			key, "=", encode( JSON.stringify( value ) ),
			expires ? "; expires=" + expires.toUTCString() : "",
			options.path ? "; path=" + options.path : "",
			options.domain ? "; domain=" + options.domain : "",
			options.secure ? "; secure" : ""
		].join( "" );
	}

	return result;
};

// support test
if ( $.support ) {
	(function() {
		var test = "jsoncookie" + now();
		$.cookie( test, test );
		$.support.cookie = $.cookie( test ) === test;
		$.cookie( test, null );
	}() );
}

}( jQuery ) );

Youez - 2016 - github.com/yon3zu
LinuXploit