1. atsisiunte failus meskite i savo amxbanu kataloga
2. atsidare faila cron_remover.php redaguokite suvesdami savo amxbanu duomenu bazes duomenis
Code: Select all
<?php $mysqli = new mysqli("127.0.0.1", "ban", "slaptazodis", "ban"); $mysqli->query("DELETE FROM `amx_amxadmins` WHERE `expired` < '".time()."' AND `days` != 0");$mysqli->query("DELETE FROM `amx_admins_servers` WHERE `admin_id` NOT IN (SELECT a.id FROM `amx_amxadmins` a)");?>
crontab -e
pacioja apacioja po visu textu isaugokite eilute nurode kelia iki cron_remover.php
pavizdys
Code: Select all
*/20 * * * * php /var/www/amxbans/reload_admins.php
Code: Select all
*/20 * * * * wget -O - http://yoursite.com/amxbans/cron_remover.php >/dev/null 2>&1
![Šypsosi :)](./images/smilies/smile.gif)