Contact the Staff System(Very Basic, I made this in 5 minutes)

Page 2 of 2 FirstFirst 12
Results 26 to 34 of 34
  1. #26
    Infraction Banned BGxApixen is offline
    Grand MasterRank
    May 2009 Join Date
    936Posts

    Re: Contact the Staff System(Very Basic, I made this in 5 minutes)

    The Register spammer. xD.

    Anyway, Back on Topic:

    Alex = Epic fail, Eh?

  2. #27
    We are Maverick! Dell Honne is offline
    Grand MasterRank
    Feb 2009 Join Date
    ON, CanadaLocation
    3,254Posts

    Re: Contact the Staff System(Very Basic, I made this in 5 minutes)

    Quote Originally Posted by apixen View Post
    The Register spammer. xD.

    Anyway, Back on Topic:

    Alex = Epic fail, Eh?
    one word = yes

  3. #28
    Banned VLxPain is offline
    BannedRank
    May 2010 Join Date
    121Posts

    Re: Contact the Staff System(Very Basic, I made this in 5 minutes)

    a little bit of a spoonfeed but w/evr
    Idk if this is right i just did it in the last 3 min, and havn't tested it
    If anyone cares to post any bugs for me, please do
    Anyways here's one with captcha(NOT TESTED)
    Code:
     <?php
    if(!isset($_POST['submit'])) {
     require_once('recaptchalib.php');
     $publickey = "";//your recaptcha public key
    $privatekey = "";//your recaptcha private key
     echo "<center>";
     echo "<form method='post'>";
     echo "Your E-mail: <input type='text' name='email' maxlength='40'><br>";
      echo "Message Title: <input type='text' name='title' maxlength='40'><br>";
     echo "Message: <textarea cols='30' rows='8' name='message' maxlength='200' wrap=virtual></textarea><br>";
     echo "<input type='submit' value='Contact' name='submit'><br>";
    echo "<font color='red'>Script by Apixen of Ragezone/************</color>";
    }
    else{
     if(!$_POST['email'] || !$_POST['title'] || !$_POST['message'] || $_POST['recaptcha_response_field']) {
     die("You must fill in all the fields.");
     } else {
     $resp = recaptcha_check_answer ($privatekey,
                                            $_SERVER["REMOTE_ADDR"],
                                            $_POST["recaptcha_challenge_field"],
                                            $_POST["recaptcha_response_field"]);
    if (!$resp->is_valid) {
    	die("Recaptcha entered wrong");
    }
    else{
     $email = $_POST['email'];
     $title = $_POST['title'];
     $message = $_POST['message'];
      
    $v_ip = $_SERVER['REMOTE_ADDR']; 
    $v_date = date("l d F H:i:s"); 
     
    $fp = fopen("Log/Contactlog.txt", "a"); 
    fputs($fp, "Someone has contacted the staff. Please report to this message A.S.A.P! \n\n IP: $v_ip \n\n DATE: $v_date \n\n Email - $email \n\n Message Title - $title \n\n Message: $message\n\n\n\n"); 
    fclose($fp); 
    echo "<br><font color='green'>That's sad, you leeched my script from me ;[ -Apixen</color>";
    }
    }
    }
    ?>
    You basically acquire the api from recaptcha and your priv/pub key.

  4. #29
    Not working on UnitedFlyf Mootie is offline
    Grand MasterRank
    Apr 2009 Join Date
    1,589Posts

    Re: Contact the Staff System(Very Basic, I made this in 5 minutes)

    So many indications of a failed script. PHP IS EASY. Learn it right and stop just taking a crap on the language. Using a text file for writing messages to a gm is just retarded. Why not an email system...? -_- The entire code is nothing but crap after crap. The idea is crap and the execution is crap. Seriously if you took ONE DAY to learn php, you could do much better.

    The work of webcoding is already done by the webserver. PHP is just very basic and does not require much time or knowledge. That being said, I cannot believe people are messing this up.

    I don't see the point of this script other than to show that you have no knowledge of the language. Even if it took 5 minutes, it still shows that the code practices are bad and inefficient.

    If you want to code something boring and useless, do it right at least or don't show it here.

  5. #30
    Banned VLxPain is offline
    BannedRank
    May 2010 Join Date
    121Posts

    Re: Contact the Staff System(Very Basic, I made this in 5 minutes)

    um, it's better this way because others can read the text file :)

  6. #31
    Infraction Banned BGxApixen is offline
    Grand MasterRank
    May 2009 Join Date
    936Posts

    Re: Contact the Staff System(Very Basic, I made this in 5 minutes)

    Quote Originally Posted by VLxPain View Post
    um, it's better this way because others can read the text file :)
    tbh, The official panel has a script to let only people with authority more the F to view it <3

  7. #32
    Game Developer MisterKid is offline
    Grand MasterRank
    Jun 2009 Join Date
    1,585Posts

    Re: Contact the Staff System(Very Basic, I made this in 5 minutes)

    xP or just add an own table :P and get account/passwoords from there

  8. #33
    Banned VLxPain is offline
    BannedRank
    May 2010 Join Date
    121Posts

    Re: Contact the Staff System(Very Basic, I made this in 5 minutes)

    beh apixen, ino, I'm talking about this one. Doing it in SQL sounds easier than the opening of a file and writing text into it :)

  9. #34
    Infraction Banned BGxApixen is offline
    Grand MasterRank
    May 2009 Join Date
    936Posts

    Re: Contact the Staff System(Very Basic, I made this in 5 minutes)

    I know right.



Page 2 of 2 FirstFirst 12

Advertisement