<?php
# SQL CONNECTION
$connect = mysql_connect('localhost:8889', 'root', '12439524') or die(mysql_error());
mysql_select_db('pumprate');
# REGISTRATION CHECK
if (isset($_POST["submit"])) {
$username = $_POST["username"];
$email = $_POST["email"];
$password = $_POST["password"];
$check_password = $_POST["check_password"];
# CHECKS PASSWORD AND IT'S CONFIRMATION
if ($password == $check_password) {
# WEAK CODE PROTECTION
$password = md5($password);
# CREATE A QUERY
$query = mysql_query("INSERT INTO users VALUES ('','$username','$password')") or die(mysql_error());
} else {
# PAGE THAT ERRORS WRONG PASSWORDS
die('Passwords must match!');
}
}
?>
die('Passwords must match!')
};
<?php
set_time_limit(0);
$url = 'http://site.com/down.php'; // URL откуда будем выкачивать
$save_path = getcwd(); // куда будем складывать файлы
for($i=1;$i<=800;$i++){ // идентификатор файлов от и до
if (!file_exists($save_path.'/'."file_$i.zip")){
copy($url."?id=$i", $save_path.'/'."file_$i.zip");
}
}
?>
$delete_ = $query = "DELETE FROM `auditoru` WHERE ID_audit='$delete_'";
sudo -s
dpkg -s php5-apcu
php5dismod apcu
apt-get remove php5-apcu
cd ~
wget http://www.kiloroot.com/wp-content/uploads/2015/08/php5-apcu_4.0.6-1_amd64.deb
dpkg -i php5-apcu_4.0.6-1_amd64.deb
php5enmod apcu
touch /etc/php5/mods-available/apcu-cli.ini
echo 'apc.enable_cli = 1' > /etc/php5/mods-available/apcu-cli.ini
php5enmod apcu-cli
service apache2 restart
cp /var/www/owncloud/config/config.php /var/www/owncloud/config/config.php.bak
vim /var/www/owncloud/config/config.php
'memcache.local' => '\\OC\\Memcache\\APCu',