I come Informatica - I como Informática - I for Information Technology | ||||||||
---|---|---|---|---|---|---|---|---|
PORTALE PORTAL PORTAL |
FORUM FORO FORUM |
Informatica Informática Information Technology |
Stefano Pederzani Consulente informatico |
ARTE |
Homepages |
Curricula Curricula Resumes |
Pubblicità Publicidad Advertisement |
INFORMATICA - INFORMÁTICA - INFORMATION TECHNOLOGY |
---|
April 9, 2013 - PHPBB BUGS AND PATCHES by Stefano Pederzani
That strange sensation of something going wrong. The untouchable feel of bug
shimmering in the air around you... ############################ MAIN ######################################### echo "Insert password for root:" read ROOTPWD while true ; do echo "1 - Select an IP range from users" echo "2 - Unban an IP from banlist" read CHOICE case ${CHOICE} in 1) echo "Enter an IP range to select:" read IPRANGE #mysql -u root -p phpbb3 <<EOS mysql -u root --password=${ROOTPWD} phpbb3 <<EOS select username, user_ip from phpbb_users where user_ip like '${IPRANGE}%' order by user_ip ; select count(*) from phpbb_users where user_ip like '${IPRANGE}%' ; EOS ;; 2) echo "Enter an IP to UNban:" read IPRANGE #mysql -u root -p phpbb3 <<EOS mysql -u root --password=${ROOTPWD} phpbb3 <<EOS delete from phpbb_banlist where ban_ip='${IPRANGE}'; EOS ;; *) echo "------------------------------------>Enter 1 or 2" ;; esac echo "Ctrl-C to exit" done When you select "1 - Select an IP range from users", you will enter an IP range or an IP and you will obtain a list of username. You must delete them from the ACP because the related tables must be managed by PhpBB. Copy and paste the names from your terminal windows to the user management. Check everytime that the IP corresponds, and check the other characteristics (sometimes they own messages). When finished, repeat the query in the script by retyping 1 (one) and verify no users remain. When you select "2 - Unban an IP from banlist" the IP or IP range with asterisks will be deleted directly - no messaged will be displayed. If you failed the choice, just re-ban it using the ACP, and go on. I will take track of eventual bugs coming out more. And make a patch. But now... Enjoy! |
I come Informatica - I como Informática - I for Information Technology | ||||||||
---|---|---|---|---|---|---|---|---|
Vai al PORTALE - Ir a el PORTAL - Go to PORTAL |
Stefano Pederzani Consulenze informatiche Bologna |
Automatic barriers and access control Barriere stradali e controllo accessi |
MMS IMPIANTI Cablaggio strutturato - telefonia Elettricità - climatizzazione |
DISCLAIMER
Tutte le immagini del sito sono di proprietà di Stefano Pederzani
o dei rispettivi proprietari quando specificato.
Ogni persona si assume la responsabilità di ciò che
afferma.
Per qualsiasi problema contattare:
[email protected]
Ogni articolo o immagine che rechi offesa a qualcuno verrà rimosso.
Todas las imagenes del sitio pertenecen a Stefano Pederzani u a los
respectivos propietarios cuando especificado.
Toda persona asume la responsabilidad de lo que afirma.
Por cualquier problema ponerse en contacto con:
[email protected]
Cada articulo u imagen que ofenda alguien será quitado.
Every images on this site are property of Stefano Pederzani
or property of specified owners.
Each person takes responsibility of what he or she claims.
For any problems please contact:
[email protected]
Every article or image offending somebody will be removed.