• » webSPELL.org - Free Content Management System
  • Language switch: English German
  • login



    » lost password?   » register now
  • About webSPELL

    webSPELL is a free Content Management System which was especially developed for the needs of esport related communities. Since a short while we are also offering an optimized and enhanced webSPELL version for the special requirements of non-profit organisations. The purpose of both systems is to offer a professional and free opportunity to create and administrate your own website in an easy and optimized way.

    » Learn more about webSPELL     » Download webSPELL now!
  • Advertisement

    Follow us

  • Sort:     printview
    Author
    Message
    webSPELL newbie
    70 Posts
    10.04.2012, 19:47 email offline quote 

    Hello Everybody,

    Can someone help me with my problem?
    If someone send me a join request..its send it to a squad member...how can i fix it that the joinus request will send it to a email adress?

    Code:
    1.
    2.
    3.
    4.
    5.
    6.
    7.
    8.
    9.
    10.
    11.
    12.
    13.
    14.
    15.
    16.
    17.
    18.
    19.
    20.
    21.
    22.
    23.
    24.
    25.
    26.
    27.
    28.
    29.
    30.
    31.
    32.
    33.
    34.
    35.
    36.
    37.
    38.
    39.
    40.
    41.
    42.
    43.
    44.
    45.
    46.
    47.
    48.
    49.
    50.
    51.
    52.
    53.
    54.
    55.
    56.
    57.
    58.
    59.
    60.
    61.
    62.
    63.
    64.
    65.
    66.
    67.
    68.
    69.
    70.
    71.
    72.
    73.
    74.
    75.
    76.
    77.
    78.
    79.
    80.
    81.
    82.
    83.
    84.
    85.
    86.
    87.
    88.
    89.
    90.
    91.
    92.
    93.
    94.
    95.
    96.
    97.
    98.
    99.
    100.
    101.
    102.
    103.
    104.
    105.
    106.
    107.
    108.
    109.
    110.
    111.
    112.
    113.
    114.
    115.
    116.
    117.
    118.
    119.
    120.
    121.
    122.
    123.
    124.
    125.
    126.
    127.
    128.
    129.
    130.
    131.
    132.
    133.
    134.
    135.
    136.
    137.
    138.
    139.
    140.
    141.
    142.
    143.
    144.
    145.
    146.
    147.
    148.
    149.
    150.
    151.
    152.
    153.
    154.
    155.
    156.
    157.
    158.
    159.
    160.
    161.
    162.
    163.
    164.
    165.
    166.
    167.
    168.
    169.
    170.
    171.
    172.
    173.
    174.
    175.
    176.
    177.
    178.
    179.
    180.
    181.
    182.
    183.
    184.
    185.
    186.
    187.
    188.
    189.
    190.
    191.
    192.
    193.
    194.
    195.
    196.
    <?php
    /*
    ##########################################################################
    #                                                                        #
    #           Version 4       /                        /   /               #
    #          -----------__---/__---__------__----__---/---/-               #
    #           | /| /  /___) /   ) (_ `   /   ) /___) /   /                 #
    #          _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___               #
    #                       Free Content / Management System                 #
    #                                   /                                    #
    #                                                                        #
    #                                                                        #
    #   Copyright 2005-2011 by webspell.org                                  #
    #                                                                        #
    #   visit webSPELL.org, webspell.info to get webSPELL for free           #
    #   - Script runs under the GNU GENERAL PUBLIC LICENSE                   #
    #   - It's NOT allowed to remove this copyright-tag                      #
    #   -- http://www.fsf.org/licensing/licenses/gpl.html                    #
    #                                                                        #
    #   Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),   #
    #   Far Development by Development Team - webspell.org                   #
    #                                                                        #
    #   visit webspell.org                                                   #
    #                                                                        #
    ##########################################################################
    */

    //options

    $showonlygamingsquads = true;  //only show gaming squads (=true) or show all squads (=false)?

    //php below this line ;)

    if(isset($site)) $_language->read_module('joinus');

    eval ("\$title_joinus = \"".gettemplate("title_joinus")."\";");
    echo $title_joinus;

    if(isset($_GET['action'])) $action = $_GET['action'];
    else $action = "";
    $show = true;
    if($action=="save" && isset($_POST['post'])) {

         if(isset($_POST['squad'])) $squad = $_POST['squad'];
         else $squad = 0;
         $nickname = $_POST['nickname'];
         $firstname = $_POST['firstname'];
         $lastname = $_POST['lasttname'];
         $sex = $_POST['sex'];
         $b_day = $_POST['b_day'];
         $b_month = $_POST['b_month'];
         $b_year = $_POST['b_year'];
         $age = $_POST['age'];
         $flag = preg_replace("/[^a-zA-Z0-9\s]/", "", $_POST['flag']);
         $city = $_POST['city'];
         $email = $_POST['email'];
         $steam = $_POST['steam'];
         $xfire = $_POST['xfire'];
         $skills = $_POST['skills'];
         $lanable = $_POST['lanable'];
         $joinbefore = $_POST['joinbefore'];
         $reasonleaveros = $_POST['reasonleaveros'];
         $reasonjoinagain = $_POST['reasonjoinagain'];
         $clanbefore = $_POST['clanbefore'];
         $whyleaveoldclan = $_POST['whyleaveoldclan'];
         $oldclansite = $_POST['oldclansite'];
         $reference = $_POST['reference'];
         $howyoufoundus = $_POST['howyoufoundus'];
         $whyyouwannajoin = $_POST['whyyouwannajoin'];
         $knowmembers = $_POST['knowmembers'];
         $run=0;
      

      
      if($userID) {
              $run=1;
         }
         else {
              $CAPCLASS = new Captcha;
              if(!$CAPCLASS->check_captcha($_POST['captcha'], $_POST['captcha_hash'])) $error[]=$_language->module['wrong_security_code'];
              else $run=1;
         }

         if(!count($error) and $run) {
              $ergebnis=safe_query("SELECT userID FROM ".PREFIX."squads_members WHERE joinmember='1' AND squadID='".$squad."'");
              while($ds=mysql_fetch_array($ergebnis)) {
                   $touser[]=$ds['userID'];
              }

              if($touser[0] != "") {
                   $tmp_lang = new Language();
                   foreach($touser as $id) {
                        $tmp_lang->set_language(getuserlanguage($id));
                        $tmp_lang->read_module('joinus');
                        $message = '[b]'.$tmp_lang->module['someone_want_to_join_your_squad'].' '.mysql_real_escape_string(getsquadname($squad)).'![/b]
                         '.$tmp_lang->module['nickname'].' '.$nick.'
                         '.$tmp_lang->module['firstname'].': '.$firstname.'
                         '.$tmp_lang->module['lastname'].': '.$lastname.'
                         '.$tmp_lang->module['sex'].': '.$sex.'
                         '.$tmp_lang->module['birthday'].': '.$birthday.'
                         '.$tmp_lang->module['age'].': '.$age.'
                         '.$tmp_lang->module['country'].': '.$flag.'
                         '.$tmp_lang->module['city'].': '.$city.'
                         '.$tmp_lang->module['email'].': [email]'.$email.'[/email]
                         '.$tmp_lang->module['steam'].': '.$steam.'
                         '.$tmp_lang->module['xfire'].': '.$xfire.'
                         '.$tmp_lang->module['skills'].': '.$skills.'
                         '.$tmp_lang->module['lanable'].': '.$lanable.'
                         '.$tmp_lang->module['joinbefore'].': '.$joinbefore.'
                         '.$tmp_lang->module['reasonleaveros'].':
                         '.$reasonleaveros.'
                         '.$tmp_lang->module['reasonjoinagain'].':
                         '.$reasonjoinagain.'
                         '.$tmp_lang->module['clanbefore'].': '.$clanbefore.'
                         '.$tmp_lang->module['whyleaveoldclan'].':
                         '.$whyleaveoldclan.'
                         '.$tmp_lang->module['oldclansite'].': '.$oldclansite.'
                         '.$tmp_lang->module['reference'].': '.$reference.'
                         '.$tmp_lang->module['howyoufoundus'].':
                         '.$howyoufoundus.'
                         '.$tmp_lang->module['whyyouwannajoin'].':
                         '.$whyyouwannajoin.'          
                         '.$tmp_lang->module['knowmembers'].':
                         '.$knowmembers.'
                         ';
                        sendmessage($id,$tmp_lang->module['message_title'],$message);
                   }
              }
              echo $_language->module['thanks_you_will_get_mail'];
              unset($_POST['nick'], $_POST['name'], $_POST['email'],$_POST['steam'],$_POST['xfire'],$_POST['birthday'],$_POST['age'],$_POST['whyyouwannajoin']);
              $show = false;
         }
         else {
              $fehler=implode('<br />&#8226; ',$error);
              $show = true;
        $showerror = '<div class="errorbox">
          <b>'.$_language->module['problems'].':</b><br /><br />
          &#8226; '.$fehler.'
        </div>';
         }
    }
    if($show == true){
         if($showonlygamingsquads) $squads=getgamesquads();
         else $squads=getsquads();
         
           $bg1 = BG_1;

         if($loggedin) {
              if(!isset($showerror)) $showerror='';
              $res = safe_query("SELECT *, DATE_FORMAT(FROM_DAYS(TO_DAYS(NOW()) - TO_DAYS(birthday)), '%y') 'age' FROM ".PREFIX."user WHERE userID = '$userID'");
             $ds = mysql_fetch_assoc($res);
              $nickname = getinput($ds['nickname']);
              $firstname = getinput($ds['firstname']);
              $lastname = getinput($ds['lastname']);
              $sex = getinput($ds['sex']);
              $b_day = mb_substr($ds['birthday'],8,2);
              $b_month = mb_substr($ds['birthday'],5,2);
              $b_year = mb_substr($ds['birthday'],0,4);
              $age = ($ds['age']);
              $flag = ''.$ds['country'].'';
              $country = flags($flag);
              $country = str_replace("<img","<img id='county'",$country);
              $countries = str_replace(" selected=\"selected\"", "", $countries);
              $countries = str_replace('value="'.$ds['country'].'"', 'value="'.$ds['country'].'" selected="selected"', $countries);
              $city = getinput($ds['town']);
              $email = getinput($ds['email']);
              $steam = getinput($ds['steam']);
              $xfire = getinput($ds['xfire']);
              $skills = getinput($ds['skills']);
              $lanable = getinput($ds['lanable']);
              $joinbefore = getinput($ds['joinbefore']);
              if(isset($_POST['reasonleaveros'])) $reasonleaveros=getforminput($_POST['reasonleave']);
             else $reasonleave='';
             if(isset($_POST['reasonjoinagain'])) $reasonjoinagain=getforminput($_POST['reasonjoinagain']);
             else $reasonjoinagain='';
              $clanbefore = $ds['clanbefore'];
              if(isset($_POST['whyleaveoldclan'])) $whyleaveoldclan=getforminput($_POST['whyleaveoldclan']);
             else $whyleaveoldclan='';
              $oldclansite = getinput($ds['oldclansite']);
              $reference = getinput($ds['reference']);     
             if(isset($_POST['howyoufoundus'])) $howyoufoundus=getforminput($_POST['howyoufoundus']);
             else $howyoufoundus='';
             if(isset($_POST['whyyouwannajoin'])) $whyyouwannajoin=getforminput($_POST['whyyouwannajoin']);
             else $whyyouwannajoin='';
              if(isset($_POST['knowmembers'])) $knowmembers=getforminput($_POST['knowmembers']);
             else $knowmembers='';

              eval ("\$joinus_loggedin = \"".gettemplate("joinus_loggedin")."\";");
              echo $joinus_loggedin;
         }
         else {     
              eval ("\$joinus_notloggedin = \"".gettemplate("joinus_notloggedin")."\";");
              echo $joinus_notloggedin;
         }
    }
    ?>


    Sorry for my bad english.

    Greetz
    DeBeeR

    website: www.dontlikespam.nl
    version: 4.2.3 SE
    webSPELL newbie
    70 Posts
    25.04.2012, 13:49 email offline quote 

    PUSH..

    How can i send this form to a email?

    Greetz
    DeBeeR
    Sort:     printview


    To start or to reply to a topic you have to be registered and logged in!

    register now
    login
  • » Support

    » Topics
    18.06.2013 - 23:10 - 1 Replies
    » [S] Aufträge Web- und Pri...
    [S] Aufträge Web- und Printdesign
    Last post: neiD-
    Board: DE - Suche
    18.06.2013 - 23:10
    18.06.2013 - 12:30 - 9 Replies
    » Querry Failed Error no 10...
    Querry Failed Error no 1054
    Last post: LoRd
    Board: EN - Technical support
    18.06.2013 - 12:30
    18.06.2013 - 09:43 - 13 Replies
    » webSPELL Bootstrap (respo...
    webSPELL Bootstrap (responsible)
    Last post: sKy-e.belst
    Board: EN - General
    18.06.2013 - 09:43
    18.06.2013 - 01:11 - 1 Replies
    » how can i transform back ...
    how can i transform back to old my website ?
    Last post: Schalla
    Board: EN - Technical support
    18.06.2013 - 01:11
    17.06.2013 - 20:50 - 3 Replies
    » Suche Coder !
    Suche Coder !
    Last post: naki
    Board: DE - Suche
    17.06.2013 - 20:50
    17.06.2013 - 12:48 - 0 Replies
    » [4SALE] Custom team websi...
    [4SALE] Custom team website
    Last post: element-
    Board: EN - Offers
    17.06.2013 - 12:48
    16.06.2013 - 21:21 - 3 Replies
    » update webspell problem
    update webspell problem
    Last post: RUSSHEL
    Board: EN - General support
    16.06.2013 - 21:21
    16.06.2013 - 20:42 - 0 Replies
    » "Make sure you have cooki...
    "Make sure you have cookies enabled" During Login
    Last post: Sasquatch
    Board: EN - General support
    16.06.2013 - 20:42
    16.06.2013 - 16:22 - 8 Replies
    » Farbe von "Dein Profil wu...
    Farbe von "Dein Profil wurde aktualisiert. Du wirst weitergeleitet" ändern!
    Last post: Cali-go
    Board: DE - Allgemeiner Support
    16.06.2013 - 16:22
    16.06.2013 - 16:19 - 2 Replies
    » Sehr erfahrener Programmi...
    Sehr erfahrener Programmierer gesucht (Community,Clanpage)
    Last post: StufF
    Board: DE - Suche
    16.06.2013 - 16:19
    15.06.2013 - 22:39 - 0 Replies
    » portfolio/agency for sale
    portfolio/agency for sale
    Last post: Thoomii
    Board: DE - Biete
    15.06.2013 - 22:39
    15.06.2013 - 16:39 - 2 Replies
    » [4SALE] eSport Design/Tem...
    [4SALE] eSport Design/Template
    Last post: LeG3nDz
    Board: EN - Offers
    15.06.2013 - 16:39
    15.06.2013 - 10:35 - 12 Replies
    » externe Festplatte spinnt
    externe Festplatte spinnt
    Last post: plenergy
    Board: DE - Internet
    15.06.2013 - 10:35
    14.06.2013 - 20:53 - 11 Replies
    » Webspell ver 1070 EN
    Webspell ver 1070 EN
    Last post: TyRRRax
    Board: EN - General support
    14.06.2013 - 20:53
    14.06.2013 - 19:03 - 4 Replies
    » Kostenlose Clanmappen!
    Kostenlose Clanmappen!
    Last post: unikat
    Board: DE - Biete
    14.06.2013 - 19:03
    14.06.2013 - 15:22 - 6 Replies
    » Userpic & Avatar
    Userpic & Avatar
    Last post: Tuxx
    Board: DE - Technischer Support
    14.06.2013 - 15:22
    14.06.2013 - 14:31 - 5 Replies
    » [B] Meine Dienste als Des...
    [B] Meine Dienste als Designer
    Last post: Kenny2601
    Board: DE - Biete
    14.06.2013 - 14:31
    14.06.2013 - 00:52 - 3 Replies
    » News Fail can´t publish
    News Fail can´t publish
    Last post: bazic
    Board: DE - Allgemeiner Support
    14.06.2013 - 00:52
    13.06.2013 - 13:59 - 2 Replies
    » [V] Design + Anpassung
    [V] Design + Anpassung
    Last post: e9li
    Board: DE - Biete
    13.06.2013 - 13:59
    13.06.2013 - 13:13 - 9 Replies
    » [SELL] Gaming Website - E...
    [SELL] Gaming Website - EXCLUSIVE WEBSITE
    Last post: hornyst
    Board: EN - Offers
    13.06.2013 - 13:13
    » Partners
    Bilderkiste.org Image Hosting
    k3rmit.org
    PascalMh.de


    » Blog
    28.03.2013 - derchris
    » Those damn spammers