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 | |
$cnips = '1.0.1.0:256|1.0.2.0:512|1.0.8.0:2048|1.0.32.0:8192|1.1.0.0:256|1.1.2.0:512|1.1.4.0:1024|1.1.8.0:256|1.1.9.0:256|1.1.10.0:512|1.1.12.0:1024|1.1.16.0:4096|1.1.32.0:8192|1.2.0.0:512|1.2.2.0:256|1.2.4.0:256|1.2.5.0:256|1.2.6.0:512|1.2.8.0:256|1.2.9.0:256|1.2.10.0:512|1.2.12.0:1024|1.2.16.0:4096|1.2.32.0:8192|1.2.64.0:16384|1.3.0.0:65536|1.4.1.0:256|1.4.2.0:512|1.4.4.0:256|1.4.5.0:256|1.4.6.0:512|1.4.8.0:2048|1.4.16.0:4096|1.4.32.0:8192|1.4.64.0:16384|1.8.0.0:65536|1.10.0.0:2048|1.10.8.0:512|1.10.11.0:256|1.10.12.0:1024|1.10.16.0:4096|1.10.32.0:8192|1.10.64.0:16384|1.12.0.0:262144|1.24.0.0:524288|1.45.0.0:65536|1.48.0.0:131072|1.50.0.0:65536|1.51.0.0:65536|1.56.0.0:524288|1.68.0.0:262144|1.80.0.0:524288|1.88.0.0:262144|1.92.0.0:131072|1.94.0.0:131072|1.116.0.0:262144|1.180.0.0:262144|1.184.0.0:131072|1.188.0.0:262144|1.192.0.0:524288|1.202.0.0:131072|1.204.0.0:262144|14.0.0.0:2048|14.0.12.0:1024|14.1.0.0:1024|14.1.24.0:1024|14.1.96.0:1024|14.1.108.0:1024|14.16.0.0:1048576|14.102.128.0:1024|14.102.1 |
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 beforeTimeFormat( $timestamp=0 ) | |
{ | |
if( $timestamp == 0 ) | |
return false; | |
$now = time(); | |
if( $now < $timestamp ) | |
return false; |
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 | |
/* | |
* Usage: | |
* gets the value of all key: Input(); | |
* gets the value of a key: Input('a'); | |
* gets the value of the specified key: Input( array('a', 'b') ); | |
* gets the value of a key with a custom default: Input('a', 10); | |
*/ | |
function input( $keys=null, $default=null ) |
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
/* | |
* version 1.0.1 | |
*/ | |
var page = require('webpage').create(); | |
var cropWidth = 1280; | |
var cropHeight = 782; | |
var viewportWidth = 1280; | |
var viewportHeight = 800; | |
page.viewportSize = { width: viewportWidth, height: viewportHeight }; |
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 | |
/** | |
* | |
* Login in a CAS Server and get html page using curl and PHP | |
* | |
*/ | |
$username = ''; | |
$password = ''; | |
$service = ''; |