Diesen Artikel jetzt weiterempfehlen
//--------------------------------------------- // Send a friend für Redaxo 3.x // MODUL-AUSGABE // Version beta 2.1 Community Edition // Thomas Skerbis // www.klxm.de //---------------------------------------------- // Basierend auf: Tell A Friend von: // Christian-web-masters.com // // // // Änderungen gegenüber Original: // - Eingabe-Maske für Redaxo // - Intergrierter kcapthcha-Spamschutz // - "bitte eigenen, besseren einbauen" // - Wichtige Ein- und Ausgaben können administriert werden. // - Optimiertes Formular - w3c-konform // - Deutsche Übersetzung // - UTF-8 Unterstützung // - es kann nur ein Empfäger angegeben werden // - n Sprachen möglich // // Formularplatzhalter allgemein : # Sprache 0 if ($REX['CUR_CLANG']=="0") { $fAbsenderdaten="Absenderdaten:"; $fAbsenderName="Name"; $fAbsenderEmail="E-Mail"; $fEmpfdaten="Empfängerdaten:"; $fEmpfName="Name"; $fEmpfEnmail="E-Mail"; $fNachricht="Nachricht"; $fSecinfo="Bitte tragen Sie den folgenden Code ein."; $fSecName="Code"; } # Sprache 1 if ($REX['CUR_CLANG']=="1") { $fAbsenderdaten=""; $fAbsenderName=""; $fAbsenderEmail=""; $fEmpfdaten=""; $fEmpfName=""; $fEmpfEnmail=""; $fNachricht=""; $fSecinfo=""; $fSecName=""; } # Sprache 2 if ($REX['CUR_CLANG']=="2") { $fAbsenderdaten=""; $fAbsenderName=""; $fAbsenderEmail=""; $fEmpfdaten=""; $fEmpfName=""; $fEmpfEnmail=""; $fNachricht=""; $fSecinfo=""; $fSecName=""; } //PHP Script: Tell A Friend : Copyright Christian-web-masters.com //This version uses a PHP class called PHPMailer rather than PHP default mail function. //You can get the default mail function version at: // http://www.christian-web-masters.com/articles/web_free-php-tell-scripts.html // That version requires no extra files to download. //To use this version (which provides some extra option, you will first need to download //the PHPmailer class from: http://phpmailer.sourceforge.net/ //Then install it on your server in the same directory that you desire to put this script in. //You can get free and friendly help with this script at the //Christian Web Masters forums: www.christian-web-masters.com/forums //Copy and paste this code into your PHP page, where you want //the Tell a Friend Form to appear. //Note if you do not know PHP, just make a regular HTML page //and save it as a .php file. //You can also save this as a .php file such as "tell.php" //and include it in the php file(s) of your choice //using: include("tell.php"); //Then just link to this page from wherever you want. //You will need to configure the script. //It's easy, just use a text editor. //Follow the instructions in the "Begin Configure" section below. //Note: This script contains a link to our site. //We'd like it if you left it, but you have permission to remove it. :) //This script uses the new $_POST and $_SERVER['HTTP_REFERRER'] //If you have an issue with an older version of PHP, you can get help at: if ($_SESSION["kcode"]=="") { ############# Passwortgenerator ################## #### Laenge des Passwortes vorgeben $laenge = "5"; #### Nicht zu verwendende Zeichen vorgeben $nicht2 = "cql"; #### Passwort in Grossbuchstaben erzeugen? (1=Ja, 0=Nein) $schreibung = "0"; $passwort = ""; $passtemp = ""; if ($nicht2 != "") { $nicht2 = strtolower($nicht2); for($x=0;$x","
","
","
","
"),"",$defaultMessageClose); #$defaultMessageClose = stripslashes($defaultMessageClose); if (isset($_POST['friend_name1'])) { $friendval = $_POST['friend_name1'] ; } else { $friendval=""; } if (isset($_POST['friend_email1'])) { $friendMailval = $_POST['friend_email1'] ; } else { $friendMailval=""; } if (isset($_POST['your_email'])) { $yourMailval = $_POST['your_email'] ; } else { $yourMailval=""; } if (isset($_POST['your_name'])) { $yourNameval = $_POST['your_name'] ; } else { $yourNameval=""; } if (isset($_POST['message'])) { $defaultMessageIntro = $_POST['message'] ; } else { $defaultMessageIntro = $defaultMessageIntro; } // ************End Configure**************** // Set the link that will be in intro/invite and used to send the referer back if (isset($_POST['link'])) { $link = $_POST['link']; } else { if (empty($_SERVER['HTTP_REFERER'])) { $link = 'http://' . $websiteAddress; } else { $link = $_SERVER['HTTP_REFERER']; } } // Add the link to the intro $defaultMessageIntro = $defaultMessageIntro . $link . "\n"; //Adds a space infront of the subject line (to add a name latter $subject = ' ' . $subject; ?>