Censorship & Replacement System? [message #2674] |
Thu, 16 May 2002 11:54 |
DocObvious
Messages: 39 Registered: March 2002
Karma: 0
|
Member |
|
|
Could you give some more details as to how this works? It's a bit confusing in its present form and needs a little documentation. Also, will it retroactively replace or censor words in posts already made or does it have to be set up first?
|
|
|
Re: Censorship & Replacement System? [message #2675 is a reply to message #2674] |
Thu, 16 May 2002 11:56 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The system works by allowing you to specify a simple or a regular expression statment that would be matched and replaced wkith the text you want.
This will only affect posts, signatures etc... that have been made AFTER such a filter has been setup.
FUDforum Core Developer
|
|
|
|
Re: Censorship & Replacement System? [message #2678 is a reply to message #2676] |
Thu, 16 May 2002 12:19 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
DocObvious wrote on Thu, 16 May 2002 8:01 AM | Given that I have a sketchy understanding of regular expressions at best, do I have to format the text to replace as a regular expression or does the system take care of that portion of things? And what exactly are the differences between the three types of replacement used in the system?
|
essentially you get to choose between 3 php functions that can do replacments inside text.
str_replace, which will simply replace STRING_A with STRING B ereg_replace, simple php regular expression preg_replace, perl regular expression.
By using regular expression you can use match masks such as "\stext.*\s", which would match any word that begins with text.
FUDforum Core Developer
|
|
|
|
|
|
Working Example [message #2699 is a reply to message #2698] |
Fri, 17 May 2002 15:52 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I think the code you are looking for is something like this:
From: (\s|^)([^\s]*?)spoon([^\s]*?)(\s|$) To: \1sp**n\4
Slight bug in the regex, works fine now.
FUDforum Core Developer
[Updated on: Fri, 17 May 2002 18:32] Report message to a moderator
|
|
|
|
|
|
Re: Working Example [message #2707 is a reply to message #2706] |
Sat, 18 May 2002 01:11 |
DocObvious
Messages: 39 Registered: March 2002
Karma: 0
|
Member |
|
|
I just d/l'ed the .zip of 1.2.8 but according to WinZip, the last modified date on that file was 2/21/2002. Could you please attach a copy of the file to this thread? Thanks for all of your help with this.
BTW, I'm actually running 1.2.7 with the code for spoiler tags added manually.
[Updated on: Sat, 18 May 2002 01:13] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Working Example [message #2727 is a reply to message #2711] |
Sat, 18 May 2002 15:57 |
|
esm2002
Messages: 339 Registered: May 2002 Location: Atlanta Georgia
Karma: 0
|
Senior Member |
|
|
Well, I know a whole lot less about CVS and WinCVS than you do!
Here is what I do...On the main WinCVS menu click the Admin, Command Line option. In the popup dialog box you will enter info from the following post
http://fud.prohost.org/forum/tree.php?th=267&start=0&rid=177&S= ff5bc6a4233250f6b09b807570de2884
The first thing you want to do is select the folder - I think you have to create before hand in Windows Explorer.
Then run the following once and only once...
cvs -z9 -d : pserver:anonymous(at)asuka(dot)prohost(dot)org:/forum2 checkout .
( but I changed -z9 to -z3 and don't forget the period AND there is no space between the first : and pserver )
This puts a full copy on your local hard drive. At this point the copy your local hard drive should agree with the real version on your webserver. If not, upload the copy on your local hard drive to your webserver. ( Boy, I hate saying that - it's scary to upload files over a working version - I have backed up the webserver version just in case )
Once the FUD team starts making changes you can run
cvs -z9 -d : pserver:anonymous(at)asuka(dot)prohost(dot)org:/forum2 update .
(once again -z9 to -z3 AND there is no space between the first : and pserver )
You will see the updated files in the output window of WinCVS
I just copy those into a text file which I print out. I then use the printout and upload the files on it as appropriate.
The version of CVS on my webserver is not current so I cannot do it there and thus I must resort to WinCVS.
And I have no knowledge of how to, or if I even can, use the
./create_file_list install >> install.php
Maybe the FUD team will have corrections/additions to the above. I sure hope so!
I have just looked at the webCVS. Mabye this will allow us to download the files for a praticular update. I din't understand all the options but give me time...Looks like you can download at least one file at a time.
Ya' just hate to make a mistake and write over a good file with the wrong file...
See, toldja' I didn't know much...but willing to learn
Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
|
|
|
|
|
|
|
|
|
|
Re: Censorship & Replacement System? [message #5381 is a reply to message #5380] |
Fri, 30 August 2002 11:56 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Thank you for letting us know of this issue, although I am quite puzzled as to why would PHP trigger this kind of action by the anti-virus.
FUDforum Core Developer
|
|
|
|
Re: Censorship & Replacement System? [message #5433 is a reply to message #5410] |
Tue, 03 September 2002 13:00 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hrm, most unusual, the admglobals.php does not execute any commands using shell() or equivalent. In fact it only performs an fopen() for reading and another fopen() for writing if any of the forum configuration directives have been altered.
FUDforum Core Developer
|
|
|