Login Script

Discussion in 'Software' started by xratedsoldier, Apr 25, 2008.

  1. xratedsoldier

    xratedsoldier Private E-2

    I need a login script for my website. I took some C++ in high school and was pretty good at it, but it has been a long time. I know nothing about Java or HTML. Would someone like to help me out?

    Here is the site that I want it to be on:

    www.therameyfamily.org

    here is the email host:

    sitemail.cableonehosting.net

    I would like for users to be able to login at www.therameyfamily.org and then their email open in a new window from the sitemail.

    Can someone help me out here? Thanks.
     
  2. xratedsoldier

    xratedsoldier Private E-2

    Does anyone at least have some ideas? Or can someone point me in the right direction? Thanks.
     
  3. PC-XT

    PC-XT Master Sergeant

    I use PHP for my site, but you need to have a server which has PHP installed to use it. You could also use CGI or something, which is the same way. I used to use JavaScript, which requires no extra server stuff. You would have to register each new member by hand coding, though, and basically do everything else by hand as well. Although I suppose you could make a program to automate the repetitive stuff on the computer you upload from...

    The JavaScript one would be basically a form requesting a username and password. You would assign each member a username and password. They would have to ask you to change them. The form would use JavaScript like:
    Code:
    <form name=loginform>
    <input type=text name=username>
    <input type=password name=pw>
    <input type=button value="Login" onclick="location.href='login.htm?'+document.loginform.username.value+'='+document.loginform.pw.value">
    </form>
    login.htm would have this code in the head
    Code:
    <script language=JavaScript type=text/javascript><!--
    q=location.search().split("=");
    document.write("<scr"+"ipt src=logins/"+q[0]+".js></scr"+"ipt>");//script tags split so won't confuse browser
    //--></script>
    You would also need a folder on the site called logins to hold the scripts to check the password, set the session cookie (document.cookie) so the user stays logged in, and set site permissions for each user. This wouldn't work if someone can get a directory listing of the login script folder, because the usernames would be shown in the listing, and the scripts could be downloaded to find the passwords. You can sometimes prevent this by including a blank html document named index.htm, default.htm, or (or one of those with a .html extension) file in the folder. A cracker may try to guess the usernames by just trying to download files until one is found that actually exists, which would be the account that gets cracked. Alternatively, you could use cryptic passwords for the login script names and possible email addresses for usernames (but the accounts could still be cracked the same way; people may just be more willing to use cryptic passwords that are harder to crack.) I've used this method before, and was just careful of who I gave the url to. (only those I trusted, or those who didn't bother with things like cracking sites:)) Also, I've used it on sites that I wouldn't mind being cracked like this (that is, just for customization), because the accounts can't be changed except by the person who runs the site. It would just be bad if the account had some information others weren't supposed to see.

    If your server has site building help pages, they may give code (like a CGI script or something) you can paste into a page for the server to implement logins?
     
  4. xratedsoldier

    xratedsoldier Private E-2

    Thank you for your reply. I think I understand...haha. I was trying to find something that I could have them enter their login information on my page, click login and the information be entered into the site mail (without the user actually seeing it entered there) then the email window would pop up instead. So basically it would just look like they were logging into my site when they would actually be logging into their email. If that makes any sense what-so-ever...
     
  5. flynismo

    flynismo Private E-2


    Well, for starters, you're making life a lot harder on yourself using a Flash based site...scripting in Flash can be a blast (not really).

    Considering the sensitive information that you site will contain, I strongly suggest that you use a PHP script.... here's a step by step tutorial on how to make one.
     
  6. daedz_will

    daedz_will Private E-2

    Agreed try not to use flash as its annoying for a start and secondly it's difficult to work with, try using PHP, if you realy cant do that then use JS only use that if you have to though, im not to keen on it myself :) ;)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds