Jump to content

steelmanronald06

Staff Alumni
  • Posts

    2,006
  • Joined

  • Last visited

Posts posted by steelmanronald06

  1. Perhaps this post wasn't a complete flop?  I get this :(

    [quote]
    Forbidden

    You don't have permission to access /lampgeekz/members/< on this server.
    Apache/2.0.55 (Win32) PHP/5.1.4 Server at localhost Port 80
    [/quote]

    with url:

    [quote]
    http://localhost/lampgeekz/members/%3C?%20echo%20$PHP_SELF;%20?%3E
    [/quote]

    when I try and hit the register button, so maybe this bit of code??

    [code]
        <p>
        <form name="register" method="post" action="<? echo $PHP_SELF; ?>">
        First Name: <input type="text" name="first_name"> <br /><br />
        Last Name: <input type="text" name="last_name"> <br /><br />
        Email Address: <input type="text" name="email_address"> <br /><br />
        Username: <input type="text" name="username"> <br /><br />
        Password: <input type="text" name="password"> <br><br>
        <input type="submit" name="register" value="Register Me!" style="cursor:pointer">
        </form>
        </p>
    [/code]
  2. Just read the faq for that :)  got a new error now:

    [quote]Fatal error: Call to undefined function NewADOConnection() in C:\wamp\www\lampgeekz\includes\db.php on line 4[/quote]

    for

    [code]
    <?php

    // Connects To The Database
    $db = NewADOConnection('mysql');
    $db->Connect('localhost', 'root', 'fake', 'lampgeekz');

    ?>
    [/code]
  3. I have created a small register script, but I keep getting an error. Here is the script:

    [code]
    <?php
    // Require top.php
    require_once('../includes/top.php');

    // Require db.php
    require_once('../includes/db.php');

    // Assign Secure Access Levels
    $secure_username = $_SESSION['username'];
    $secure_query = $db->GetAll("SELECT * FROM `users` where username='$secure_username'");
    foreach($secure_query as $secure_level)
    {
        $access_level = $secure_level['user_level'];
    }

    // Deny Registered Users
    if($access_level == 1 ||
      $access_level == 2 ||
      $access_level == 3 ||
      $access_level == 4) {
       
        echo "Access Denied: You are already registered. If you are not registered, and continue to recieve this
          message, please contact the Administrator at admin@netgeekz.net . Thank You.";
       
    }

    // If They Are Not Registered, Let Them
    if($access_level == 0) {
     
      // If The Form Has Done Been Submitted, Register The User
      if (isset($_POST['register'])) {
       
        // Assign User Submitted Variables
        $first_name = $_POST['first_name'];
        $last_name = $_POST['last_name'];
        $email_address = $_POST['email_address'];
        $username = $_POST['username'];
        $password = $_POST['password'];
       
        // Strip Tags From Variables
        $first_name = strip_tags(trim($first_name));
        $last_name = strip_tags(trim($last_name));
        $email_address = strip_tags(trim($email_address));
        $username = strip_tags(trim($username));
        $password = strip_tags(trim($password));
       
        // Assign The Date To A Variable
        $date = date("D m/d/Y - g:ia");
       
        if(eregi('^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$', $email_address)) {
     
      // All Security Checks Have Been Passed, So Insert Them Into The Database
      $db->Execute("INSERT INTO users (first_name,last_name,email_address,username,password,user_level,signup_date,activated)
                  VALUES ('$first_name',
                          '$last_name',
                          '$email_address',
                          '$username',
                          '$password',
                          1,
                          '$date',
                          0
                          )");
       
      // Time To Mail The User Their Info
    $mail_date = date('l dS \of F Y h:i:s A');
        $email_subject = "LAMPGeekz: Your Membership";
        $email = "Hello $first_name $last_name ! You are recieving this email because you, or someone with your
        email has registered the username, $username , at our site: http://lampgeekz.netgeekz.net
        If this is you, please click the link below to confirm your account:
       
        http://localhost/lampgeekz/members/activate.php

        This is an automated email! DO NOT REPLY!";
        $from = "noreply@netgeekz.net";


        $headers1 = "MIME-Version: 1.0\r\n";
        $headers1 .= "Content-type: text/html; charset=iso-8859-1\r\n";
        $headers1 .= "To: ".$email_address."\r\n";
        $headers1 .= "From: ".$from."\r\n";
        $headers1 .= "Reply-To: ".$from."\r\n";
        mail($email_address, $subject, $email, $headers);
       
    }else{
     
      //Invalid Email Address
      echo "We are sorry, but the email address you typed in is not valid.  Please use standard email address
      format: youremail@yourhost.com.  Please try again!";
     
    }

    // If They Did Not Submit A Form, Lets Show That Now
    echo "<h1>Register New User Account!</h1>";
        ?>
       
        <p>
        <form name="register" method="post" action="<? echo $PHP_SELF ?>">
        First Name: <input type="text" name="first_name"> <br /><br />
        Last Name: <input type="text" name="last_name"> <br /><br />
        Email Address: <input type="text" name="email_address"> <br /><br />
        Username: <input type="text" name="username"> <br /><br />
        Password: <input type="text" name="password"> <br><br>
        <input type="submit" name="register" value="Register Me!" style="cursor:pointer">
        </form>
        </p>
       
        <?php
       
      }else{
     
      // For Those Who Failed All Security Test 
      echo "We are sorry, but there appears to be an internal error. Please try again. If this problem continues,
      contact the administrator at admin@netgeekz.net. Thank you!";
     
      // Now Send An Email To The Admin About The Error
      $mail_date = date('l dS \of F Y h:i:s A');
      $email_url = $_SERVER['PHP_SELF'];
      $email_ip = $_SERVER['REMOTE_ADDR'];
      $to2  = 'webmaster@netgeekz.net' . ', ';
      $to2 .= 'cliff@netgeekz.net';
      $subject2 = "LAMPGeekz Report!";
      $email2 = "The following has happened on $mail_date at $email_url !

      $sercure_username (IP: $email_ip ) has accessed the following page, $email_url , and
      has recieved an internal error. Both security checks were either flawed or failed in some way.

      This is an automated email! DO NOT REPLY!";
      $from2 = "noreply@netgeekz.net";


      $headers1 = "MIME-Version: 1.0\r\n";
      $headers1 .= "Content-type: text/html; charset=iso-8859-1\r\n";
      $headers1 .= "To: ".$to."\r\n";
      $headers1 .= "From: ".$from2."\r\n";
      $headers1 .= "Reply-To: ".$from2."\r\n";

      mail($to2, $subject2, $email2, $headers);
     
    }

    // Require bot.php
    require_once('../bot.php');
    ?>[/code]

    Here is the error that it generates:

    [quote]Parse error: parse error, unexpected $end in C:\wamp\www\lampgeekz\members\register.php on line 154[/quote]

    At first I thought it might be bot.php or top.php but those two work fine in other pages when included.

    Thanks in advance.

    P.S. Pardon the messy code. I try and have good coding techniques, but I'm not exactly the best at it.  I just try and get the job done, while still being able to read it  :-\
  4. I hear word that adobe bought dreamweaver, but if you need a good IDE, choose PHP Designer Pro. 

    As per your question.  Yes this is all done in PHP, and it is extremely basic.  Go over to phpfreaks.com main site, and click on tutorials.  There you will find a fully fleshed Member System and I do believe a tutorial on how to set up a poll/vote.
  5. If you take a look at your account profile you will see that your Email address is visible to all people.  You do believe that there is an option, I could be wrong, in your profile settings that will hide your email. If there isn't, post back here and I will personally find or build a mod that will allow users to hide their emails from viewers.
  6. grab the phpbb source code, and in there is a text file that is like coding standards or something...it is basically an example on how they want the code to look if your gonna write mods.  I use that as a typical coding standard for all my code. PHPBB sucks as a forum, but their code is normally clean and such.  Double spaced in the approiate places, well commented, and indents.
  7. three choices I see:

    1) Develop on the domain...it isn't like we copyright __freaks.com or anything.

    2) Donate the domain to Eric, cause I really don't see him buying it. I don't know, he might surprise us and buy it, but the odds are slim.

    3) Let it expire.
  8. The entire school kinda liked FF. The tabbed browsing thing was a huge hit,and so was the popup blocker.  I hear wind that in Vista, IE will come pre-installed, but it won't be part of the system. You will be able to remove it! YAY!  If memory serves, couldn't you remove IE in older systems too? Or am I just dreaming of what life could have been like without IE?
  9. WoW! Advanced. I love both of those ideas.  It is something that would help the online community and would push my skills to the limit and beyond.  I just have a few questions about the first one.

    So basically what you want is an admin interface where you go in and do something like:

    Project Code: 001
    Project Name: Web Template
    Price Per Unit: $100
    Price: $2500

    And then a place where you define a customer:

    Customer Name:  John Doe (Why is it that everyone uses John Doe as a dummy name? lol. I bet  it pisses the real one off)
    Project Code: 001
    Customer Email: email@domain.com
    Customer Mailing Address:
                555 West Lane
                Chesternut, Utopia 77488
    Units Finished: 0
    Units Unpaid: 0

    And then you would need a place to say, well I have finished 1 unit so you go in and change the 0 to 1 and it automatically creates an invoice and adds in the price based on how many units are complete.  Granted there will be a place where you can say, okay I completed a unit so click that button and it will update the row and change that 0 units finished to 1 (same for units unpaid) and so forth.  And then finally when you complete so many units, that way in case you complete 2 units before billing, you can push a button that says Send Invoice and it will send an invoice with the units unpaid as the price owed.  When they send you the money you can push a button that says Payed Up or something and it will set units unpaid to 0 but your Units Finished will always just go up until you finish.  Or am I WAY off?
  10. Uh, lol, what ???  That lost me. I got invoice and system.  I am not much of a business man. Sounds cool, sounds like it would be fun to develop, but what is all that project creation/pricing management/quotations thingy?

    My bad, should have exxpanded on that. If people kinda wouldn't mind explaining a bit of what their idea is so stupid people like me can catch on to your line of thought and we don't run with the idea and trash it.  I mean I know we should take it where we can, but I would like to understand your thought patterns on the idea...mainly, because I am dumb when it comes to stuff like that  :-D
  11. i guess if eric wanted to start something like pastebox or something where we could paste our code when in chats, or a place to upload images of our websites for design questions in the forums (so we don't take up so much space), he could use uploadfreaks.com...other than that, let it expire or use it yourself.  it isn't like thewebfreaks has a patent on ___freaks.com or anyother freaks site unless it competes with theirs in some way.
  12. Okay I am a bit confused about this. I work in the telecommunications office at my school and I have met a php programmer in person. Best of all, he is kin to me!  Before going any futher I better explain something. I am from Oklahoma.  Us hicks say 'kin'. Kin is the same as saying we are related! Now that that is out of the way :-D

    This dude developed like this kick-ass database thingy. It was kinda like phpmyadmin or something, but it was all ajax. It was f'ing amazing! So he wants to see my skills, so I need to develop something. Only question is, what?  You have hundreds of CMS's, BBS's, Forums, etc.

    So please post suggestions of stuff you would like to see developed using PHP, MySQL.  The idea MUST NOT require any AJAX, but be able to add AJAX if I so choose (I have yet to learn AJAX).  So please list your suggestions.  I don't much want to build a content management system, you have nuke for that. And there are to many forums out there to name.  What is something you would use? I once made a web monitoring system, just for fun.  It was pretty cool, but there are hundreds of them that were better than mine could ever be (hybodus).

    Look forward to hearing your suggestions.

    DISCLAIMER/COPYRIGHT:  All ideas posted means that I or anyone who sees them will be able to develop them.  If you want to keep your idea a secret so that only you will develop it, don't post it!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.