Results 1 to 5 of 5

Thread: ???????????????

  1. #1

    ???????????????

    hi,
    i need to know what this script does especially the $username part






    $doflocks = 1;
    $username = $ENV{'REMOTE_USER'};

    $firsttime=0;

    if (dbmopen(logins,$loginlog,0666))
    {
    flock(logins,2) if ($doflocks);
    $logincount = $logins{$username};
    $firsttime=1 if ($logincount == 0);
    $logins{$username}++;
    dbmclose(logins);
    flock(logins,8) if ($doflocks);
    }

    $memberspage=$welcomepage if ($firsttime);
    print "Location: $memberspage\n\n";
    print "URI: $memberspage\n\n\n";

    exit(0);






    sorry for having to ask but i have not learnt any cgi yet

  2. #2
    Banned
    Join Date
    Oct 2001
    Posts
    1,459
    It looks like its a login script....
    $welcomepage is shown the first time $username logs in, the second time it shows $memberpage...
    Looks like it logs all logins to $loginlog... Where is this from?

  3. #3
    would it be possible to make it submit the same username whatever is entered in the form or whatever?

  4. #4
    bring on the flames....

    this is from a globill affiliate program script
    i social engineered a password for a MASSIVE affiliate program that does all its tracking through globill and i want to redirect everyones hits to my account - but secretly and unnoticeable accept for them noticing a drop in sales

  5. #5
    Banned
    Join Date
    Oct 2001
    Posts
    1,459
    Wow, This post is getting interesting..... PM me and send the details, explain what you need and Ill see what I can do

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •