This file contains hidden or 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
var Class = (function Class() { | |
var singleton_private_variable = 'Singleton Private variable'; | |
function singleton_private_function () { | |
return 'Private Function'; | |
} | |
var Obj = { | |
singleton_public_variable: 'Singleton Public variable', |
This file contains hidden or 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 | |
define("GOOGLE_MAGIC", 0xE6359A60); | |
function zeroFill($a, $b) | |
{ | |
$z = hexdec(80000000); | |
if ($z & $a) { | |
$a = ($a >> 1); | |
$a &= (~$z); |
This file contains hidden or 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 | |
function LoginAndGetCookie($server='82.99.229.141', $user, $pass) | |
{ | |
$status = 'Error'; | |
$data = 'مشکلی در انجام عملیات بوجود آمد. شاید به دلیل شلوغی سایت، این مشکل بوجود آمده. لطفاً بعداً دوباره امتحان کنید'; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, 'http://' . $server . '/'); | |
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0'); |
This file contains hidden or 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 | |
@error_reporting(E_ALL); | |
@set_time_limit(0); | |
class ConvertFinglishToFarsi | |
{ | |
/** | |
* Default Options | |
*/ | |
public $useFarsiNumbers = false; //Replace English numbers with Persian numbers |
NewerOlder