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 | |
date_default_timezone_set('UTC'); | |
error_reporting(0); | |
if (isset($_GET['path'])) | |
{ | |
$path = $_GET['path']; | |
} |
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 | |
$retina = true; | |
$key = 'kokenwtf'; //ENTER YOUR OWN KEY | |
if ($_GET['key'] != $key) die; | |
$ds = DIRECTORY_SEPARATOR; | |
$root = dirname(__FILE__); | |
$content = $root . $ds . 'storage'; |
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 | |
$website = 'http://yourwebsite.com'; //no trailing slash | |
$key = 'kokenwtf'; | |
/* | |
* | |
* RUNNING ON A MACHINE THAT HAS UNLIMITED EXECUTION TIME IS HIGHLY ENCOURAGED |
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 Settings extends Koken_Controller { | |
function __construct() | |
{ | |
parent::__construct(); | |
} | |
function index() |
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 | |
require_once(dirname(__FILE__) . '/icc.php'); | |
class Darkroom { | |
public static $presets = array( | |
'tiny' => array( | |
'width' => 60, | |
'height' => 60 |
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 | |
$string = 'put | |
the | |
ldd /path/to/convert | |
results | |
in | |
here'; | |
$array = explode("\n", $string); |
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
[website1] | |
prefix = /home/dir | |
listen = var/fcgi/php.sock | |
listen.backlog = -1 | |
listen.allowed_clients = 127.0.0.1 | |
listen.mode = 0666 | |
user = tony |
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
server { | |
listen 80; | |
server_name example.tld; | |
root /home/dir/web; | |
access_log /home/dir/var/log/nginx_access.log; | |
error_log /home/dir/var/log/nginx_error.log error; | |
location ~ \.php$ { | |
try_files $uri =404; |
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 | |
$_SERVER['DOCUMENT_ROOT'] = ini_get('doc_root'); | |
$_SERVER['SCRIPT_FILENAME'] = str_replace($_SERVER['HOME'], '', $_SERVER['SCRIPT_FILENAME']); |
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
public interface MovableObject { | |
void move(); | |
} | |
public abstract class Animal implements MovableObject { | |
abstract public void walk(); | |
} | |
public class Human extends Animal { | |
@Override |
OlderNewer