- version 3.6
Check those constraints:
$this->anything()
| <? | |
| function aes128_cbc_encrypt($key, $data, $iv) { | |
| if(16 !== strlen($key)) $key = hash('MD5', $key, true); | |
| if(16 !== strlen($iv)) $iv = hash('MD5', $iv, true); | |
| $padding = 16 - (strlen($data) % 16); | |
| $data .= str_repeat(chr($padding), $padding); | |
| return mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC, $iv); | |
| } |
| #!/bin/sh | |
| # Just copy and paste the lines below (all at once, it won't work line by line!) | |
| # MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
| function abort { | |
| echo "$1" | |
| exit 1 | |
| } | |
| set -e |
| ######################################## | |
| # Adjust Memory/Post/Execution/ Upload Size | |
| ######################################## | |
| php_value max_execution_time 3600 | |
| php_value upload_max_filesize 100M | |
| php_value post_max_size 220M | |
| php_value memory_limit 256M | |
| ######################################## | |
| # Display Errors: (Comment out for no Errors) |
| .ui-autocomplete { | |
| position: absolute; | |
| top: 100%; | |
| left: 0; | |
| z-index: 1000; | |
| float: left; | |
| display: none; | |
| min-width: 160px; | |
| _width: 160px; | |
| padding: 4px 0; |
| // Doing AES-256-CBC (salted) decryption with node.js. | |
| // This code is based on http://php.net/manual/de/function.openssl-decrypt.php and works with PHP sqAES. | |
| // | |
| // Create your encrypted data with | |
| // echo -n 'Hello world' | openssl aes-256-cbc -a -e | |
| var crypto = require('crypto'); | |
| var password = 'password'; | |
| var edata = 'U2FsdGVkX18M7K+pELP06c4d5gz7kLM1CcqJBbubW/Q='; |
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
| <form action="" method="post" accept-charset="utf-8" enctype="multipart/form-data"> | |
| <input type="file" name="file"> | |
| <input type="submit" name="btn_submit" value="Upload File" /> | |
| <?php | |
| $fh = fopen($_FILES['file']['tmp_name'], 'r+'); | |
| $lines = array(); | |
| while( ($row = fgetcsv($fh, 8192)) !== FALSE ) { | |
| $lines[] = $row; |
| # Compile PCRE - Perl Compatible Regular Expressions | |
| cd /usr/local/src | |
| curl -O ftp://ftp.csx.cam.ac.uk//pub/software/programming/pcre/pcre-8.31.tar.gz | |
| tar -xvzf pcre-8.31.tar.gz | |
| cd pcre-8.31 | |
| ./configure | |
| make | |
| sudo make install | |
| # Compile Autoconf |
| <?php | |
| /* | |
| OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
| Author: _ck_ (with contributions by GK, stasilok) | |
| Version: 0.1.7 | |
| Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
| * revision history | |
| 0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
| 0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |