Author Topic: [MOD] [1.7.1] (Antispam) Sicherheitscode bei Kommentar / secure code at comment  (Read 156218 times)

0 Members and 1 Guest are viewing this topic.

Offline fgallery

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • ::: F-Gallery :: Photobank :::
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #30 on: February 10, 2006, 12:44:53 AM »
Where can I set number of characters (numbers)?
http://f-gallery.com.ua
Artistic Photography, Fashion Photography, Cities and Streets of The World, Personal Photos of Livejournal Users.

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #31 on: February 10, 2006, 08:28:04 PM »
Quote from: theresa_rose on February 03, 2006, 10:56:01 PM
Quote
Installed the script but it keeps saying that the security code was inputted wrong.  I have GD installed...is there anything I missed?

I´ve installed my homepage on a new server and now I got the same problem like theresa, plz help again  :cry:

Project offline

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #32 on: February 12, 2006, 04:47:30 PM »
Wie kann ich dieses Script für Kontaktmöglichkeit über jedes User Profil anwenden?
Ich habe es so eingestellt das man die E-Mail adresse von den Usern nicht sehen kann und dann ein Kontaktfeld aufgeht wenn man einem User schreiben möchte, auch da ist es möglich durch mehrmals hintereinander klicken, die message mehrmals zu senden.
Da würde ich diesen Sicherheitscode auch gerne eingeben.

---

I need this script for the contact form in every member profile when somebody contact one of the members.I testet it, when i am logged it..and klick in a profile of a user "send an email", i get a contact form..when i click the send button often..the message will be send very often. I need the securty Mod here too.

How i can i do this?

Thank you very much!

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #33 on: February 17, 2006, 05:52:09 PM »
Does anybody know the system requirements of this MOD? e.g. php-version - perhaps my new server doesn´t support this:!::?:

Project offline

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #34 on: February 17, 2006, 06:36:14 PM »
what do you mean?
do you get any error messages?
i don't think that this mod needs any special requirements.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #35 on: February 17, 2006, 06:48:29 PM »
I´ve changed my server and now it won´t work :(

Quote
Installed the script but it keeps saying that the security code was inputted wrong...

Project offline

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #36 on: February 17, 2006, 07:02:04 PM »
I have just noticed something here ...

Quote

/* ## Safety script ## */
mt_srand((double)microtime()*1000000);
$comment_sicherheit = mt_rand(000001,999999);
$comment_sicherheit = str_replace('=', '´|´', base64_encode(base64_encode($comment_sicherheit)));
/* ## Safety script ## */


what if you replace it with :

Code: [Select]

/* ## Safety script ## */
$comment_sicherheit = mt_srand((double)microtime()*1000000);
$comment_sicherheit .= (isset($comment_sicherheit)) ? mt_rand(000001,999999) : "";
$comment_sicherheit .= (isset($comment_sicherheit)) ? str_replace('=', '´|´', base64_encode(base64_encode($comment_sicherheit))) : "";
/* ## Safety script ## */


Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #37 on: February 17, 2006, 07:10:38 PM »
Quote
what if you replace it with :
Code: [Select]
/* ## Safety script ## */
$comment_sicherheit = mt_srand((double)microtime()*1000000);
$comment_sicherheit .= (isset($comment_sicherheit)) ? mt_rand(000001,999999) : "";
$comment_sicherheit .= (isset($comment_sicherheit)) ? str_replace('=', '´|´', base64_encode(base64_encode($comment_sicherheit))) : "";
/* ## Safety script ## */

No, now it shows me an empty field without numbers :(

Project offline

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #38 on: February 17, 2006, 10:23:49 PM »
There's something really weird regarding these inclusions. Probably missing statements.

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #39 on: February 18, 2006, 12:49:29 PM »
It works on localhost and also on my old server...

Perhaps some special modules for php are necessary?  :roll: I really don´t know where I have to search for...

Project offline

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #40 on: February 18, 2006, 03:06:46 PM »
Quote

Perhaps some special modules for php are necessary?


Correct. Even I had difficulties to make implementation of this MOD within mines. However, yesterday night, I made some modifications to the routines (which the author will also be notified). The problem is that the PHP file is being called directly from the HTML template file without the Site Session modulation (which is not advisable to do). Then, when I replaced the file (+ query) with a new tag name and placed that filename into the PHP file itself (including the Site Session modulation) everything went fine. ;)

Note: $script_url is also invalid, in this case, since the random codes image won't load either. $site_sess must be used in order to accomplish this. ;)

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #41 on: February 18, 2006, 05:29:42 PM »
Now it works! Thanks Timo J. for the solution :wink:

open details.php (& also in guestbook.php) find:
Code: [Select]
$comment_sicherheit = str_replace('=', '´|´', base64_encode(base64_encode($comment_sicherheit)));
add after:
Code: [Select]
$sicherheit_code = $_POST['sicherheit_code'];
$sicherheit_dec = $_POST['sicherheit_dec'];

He said the error causes on some config of php... *much thanks*

Project offline

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #42 on: February 18, 2006, 06:03:35 PM »
i didn't have installed this mod,
but what you described seems,
that the mod is coded for register_globals_off,
which is in some certain ways not good,
cause all newer versions of php has by default now register_globals_on.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #43 on: February 18, 2006, 06:53:11 PM »
By agreeing with Icecream on this, you might also want to

change :

Quote

$sicherheit_code = $_POST['sicherheit_code'];
$sicherheit_dec = $_POST['sicherheit_dec'];


to read :

Code: [Select]

$sicherheit_code = (isset($HTTP_POST_VARS['sicherheit_code'])) ? $HTTP_POST_VARS['sicherheit_code'] : "";
$sicherheit_dec =  (isset($HTTP_POST_VARS['sicherheit_dec'])) ? intval($HTTP_POST_VARS['sicherheit_dec']) : "";


In the mean time, still followed from what Icecream stated above, it is why I had to make some corrections from my end in order to show the random image codes without problems (which disregards the modifications I just made above). ;)

Offline fgallery

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • ::: F-Gallery :: Photobank :::
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #44 on: March 02, 2006, 12:34:19 PM »
Where can I set number of characters (numbers)?

No ideas? =[
http://f-gallery.com.ua
Artistic Photography, Fashion Photography, Cities and Streets of The World, Personal Photos of Livejournal Users.