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 slowAES_aes | |
{ | |
static $keySize = array( | |
'SIZE_128' => 16, | |
'SIZE_192' => 24, | |
'SIZE_256' => 32 | |
); |
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
#!/usr/bin/php | |
<?php | |
error_reporting(E_ALL); | |
function scr_ls(){ | |
ob_start(); | |
passthru('screen -ls'); | |
$ss = explode("\n", ob_get_clean()); | |
$scrs = array(); |
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
0) | |
offset: 65545 0x10009 | |
end: 65546 0x1000a | |
size: 2 | |
1) | |
offset: 65549 0x1000d | |
end: 65549 0x1000d | |
size: 1 | |
2) | |
offset: 65552 0x10010 |
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
#!/usr/bin/php | |
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
ini_set('memory_limit','1G'); | |
set_time_limit(0); | |
$opt = getopt('', array( | |
'host:', | |
'dir:', |
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 -f ../pack.php |
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
#!/bin/sh | |
WWW="www" | |
AWK_EXPR='{if($0~/\.(php|js|css|tpl|sql|xml|htaccess|ini)/&&$0!~/\/(tpl_c|upload|managed_cache|stack_cache|cache\/(cs|j)s\/s[0-9]+|app\/bitrix\/cache|bitrix\/modules\/[^\/]+\/install\/)\//)print $0}' | |
DOMAIN=`basename \`pwd\`` | |
LIST="Include" | |
ARCHIVE=$WWW"/"$DOMAIN"-"`date '+%F'`".tgz" | |
if [ -n "$1" ] | |
then |
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
#!/bin/sh | |
DOMAIN=`basename \`pwd\`` | |
MYSQL_CNF="../mysql_"$DOMAIN".cnf" | |
MYSQL_DB_FILE="../mysql_"$DOMAIN".db" | |
MYSQL_DB="" | |
if [ -f $MYSQL_DB_FILE ] | |
then | |
MYSQL_DB=`cat $MYSQL_DB_FILE` |
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
#!/bin/sh | |
WWW="public_html" | |
AWK_EXPR='{if($0~/\.(php|js|css|tpl|sql|xml|htaccess)/&&$0!~/\/(var\/(cache|backups|files))\//)print $0}' | |
DOMAIN=`basename \`pwd\`` | |
LIST="Include" | |
ARCHIVE=$WWW"/"$DOMAIN"-"`date '+%F'`".tgz" | |
if [ -n "$1" ] | |
then |
NewerOlder