Devcon 1
mysql> update phpbb_forums set auth_post=1 where auth_post=0;
für die Urlaubszeit, keine Lust SPAM oder anderen M.... zu löschen
update phpbb_forums set auth_reply=1 where auth_reply=0;
+----------+--------+---------------------------+------------------------------------------------------------------------------------------------------------------------------+--------------+-------------+-------------+--------------+--------------------+------------+--------------+-----------+-----------+-----------+------------+-----------+-------------+-------------+---------------+-----------+-----------------+------------------+ | forum_id | cat_id | forum_name | forum_desc | forum_status | forum_order | forum_posts | forum_topics | forum_last_post_id | prune_next | prune_enable | auth_view | auth_read | auth_post | auth_reply | auth_edit | auth_delete | auth_sticky | auth_announce | auth_vote | auth_pollcreate | auth_attachments | +----------+--------+---------------------------+----------------------------
Alle Foren gegen Spam schützen!
update phpbb_forums set auth_post=1 where auth_post =0;
viele Wege führen nach Rom
# dann ist die id futsch nicht gut Am schönsten wieder mal python drauf los lassen
select post_id,post_subject from phpbb_posts_text where post_subject like '%porno%' ;
delete from phpbb_posts where post_id>582 and post_id<629;
#delete from phpbb_posts_text where post_subject like '%porno%';
Das fertige und vollständige script legt unter vdserver /root/phpbb2/del_bad_postings Auruf durch python2.4 /root/phpbb2/del_bad_postings Das Wort könnte natürlich auch als sys.arv[1] übergeben werden aber so ist wohl ein manuelle Eingabe noch mit einer Hemmschwelle verbunden, man sieht sich einfach noch mal ann was man vorhat
stmt="select a.post_id from phpbb_posts_text a, phpbb_posts b where a.post_id=b.post_id and post_subject like '%porn%' ;"
cursor.execute(stmt)
resultSet = cursor.fetchall()
for i in resultSet:
delete
Tags: forum | phpbb2 | patch | linux | wiki | blogging
Kategorie/mysql || Kategorie/phpbb2 || Kategorie/Wartung
Forum/WartungSpam (last edited 2009-10-20 09:21:31 by DetlevLengsfeld)