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
| # pass the default character set | |
| AddDefaultCharset utf-8 | |
| php_flag short_open_tag on | |
| ErrorDocument 404 /error | |
| # Kirby .htaccess | |
| # exclude panel from trailing slash removal |
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
| # Put this file into puphpet/files/exec-once/install-ioncube so it only executed once | |
| # it loads ioncube, unzips it, move and add it to php.ini | |
| echo "Loading ioncube" | |
| wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz | |
| echo "Unzipping ioncube" | |
| tar xvfz ioncube_loaders_lin_x86-64.tar.gz | |
| echo "Move ioncube to usr/local" | |
| mv ioncube /usr/local | |
| echo "Add ioncube to php.ini" |
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
| if ($_SERVER['REMOTE_ADDR']=='127.0.0.1') { | |
| define('WP_ENV', 'local'); | |
| } elseif ($_SERVER['HTTP_HOST']=='develop.project.com') { | |
| define('WP_ENV', 'develop'); | |
| } elseif ($_SERVER['HTTP_HOST']=='master.project.com') { | |
| define('WP_ENV', 'develop'); | |
| } else { | |
| define('WP_ENV', 'production'); | |
| } |
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 | |
| $img = imagecreatefromjpeg('./delayclose.jpg'); | |
| imagefilter($img, IMG_FILTER_GRAYSCALE); | |
| $width = imagesx($img); | |
| $height = imagesy($img); | |
| $img_arr = array(); | |
| // Parse image (can be combined with dither stage, but combining them is slower.) |