0 کاربر و 1 مهمان درحال مشاهده موضوع.
function decryptQuery1($keySalt, $qryStr){ //this line of code decrypt the query string $queryString = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, md5($keySalt), urldecode(base64_decode($qryStr)), MCRYPT_MODE_CBC, md5(md5($keySalt))), "\0"); parse_str($queryString); $val = explode('=', $queryString); $count = count($val); if($count == 2) return $val[1]; return null; }
#!/bin/bash# $1 dbname# $2 dbuser# $3 dbpass# $4 rootpassword# Functionsok() { echo -e '\e[32m'$1'\e[m'; } # GreenEXPECTED_ARGS=4E_BADARGS=65MYSQL=`which mysql` Q1="CREATE DATABASE IF NOT EXISTS $1;"Q2="GRANT ALL ON *.* TO '$2'@'localhost' IDENTIFIED BY '$3';"Q3="FLUSH PRIVILEGES;"SQL="${Q1}${Q2}${Q3}" if [ $# -ne $EXPECTED_ARGS ]then echo "Usage: $0 dbname dbuser dbpass" exit $E_BADARGSfi $MYSQL -uroot -p$4 -e "$SQL"ok "Database $1 and user $2 created with a password $3"mysql -u $2 -p $3 $1 < /home/onme/MobileCatalogAdminPanel/data-dump.sqlecho "dump done"[size=14pt][/size]