Results 1 to 4 of 4

Thread: Need help Hard :(

  1. #1
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Need help Hard :(

    I need help doing the following :

    1. Making an admin script for me in scar that changes php database users.

    2. Having people connect to the database.

    Thats all i can think of for now
    I do visit every 2-6 months

  2. #2
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Erm, you mean you want to make a script that like lets you modify users and stuff that are in a php database on the web? Kind of like RC but from the SCAR window itself? And why would the people be needed to connect to database. Post more details please.

  3. #3
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Yes like adding deleting and changing the users statis to "suspended".

    Then the user can connect if there not suspended or something.
    I do visit every 2-6 months

  4. #4
    Join Date
    Jun 2007
    Posts
    152
    Mentioned
    4 Post(s)
    Quoted
    0 Post(s)

    Default

    Would you be using mysql for the database?

    If so, I would think you need to have your script send in variables for the username and password or whatever. Then, check the user & pass, and after check for suspension, and return a true / false for loggedin/notloggedin.

    Now this requires alot of changing of course, but this should give you an idea...
    If you need some help doing this, let me know.

    SCAR Code:
    Const
      Username := 'user';
      Password := 'pass';

    TheClient := InitializeHTTPClient(False, False);
    AddPostVariable(TheClient, 'user', Username);
    AddPostVariable(TheClient, 'pass', Password);
    GetPage := PostHTTPPageEx(TheClient, 'http://www.mysite.com/usercheck.php');
    If GetPage = 'False' Then
      WriteLN('Invalid Info or Account Suspended')
    Else
      WriteLN('Successfully Logged');

    PHP Code:
    <?php
    // page : usercheck.php
    // Database connection stuff
    $user $_POST['user'];
    $pass $_POST['pass'];
    // Check the username + password in database
    $suspended $row['suspended']; // checks the mysql database
    If $user == True && $pass == True Then
    {
        If 
    $suspended != False Then
            
    echo('True');
        else
            echo(
    'False');
    }
    else
        echo(
    'False');
    ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need Hard Request
    By skilld u in forum RS3 Outdated / Broken Scripts
    Replies: 12
    Last Post: 06-30-2008, 05:18 PM
  2. Bug, Very hard to figure!
    By faster789 in forum OSR Help
    Replies: 6
    Last Post: 04-07-2008, 09:37 AM
  3. Really Hard Puzzle
    By Leomage in forum News and General
    Replies: 22
    Last Post: 03-11-2006, 11:58 PM

Posting Permissions

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