UserPage and AdminPage for 0.99.62 with md5

Results 1 to 18 of 18
  1. #1
    Member Asafchik is offline
    MemberRank
    Apr 2005 Join Date
    MoscowLocation
    55Posts

    UserPage and AdminPage for 0.99.62 with md5

    Maybe someone need it?
    This is user page with admin menu.
    Install:
    [1]
    Open query analizer and execute:
    1)
    use muonline;
    CREATE FUNCTION [dbo].[fn_md5] (@data VARCHAR(10), @data2 VARCHAR(10))
    RETURNS BINARY(16) AS
    BEGIN
    DECLARE @hash BINARY(16)
    EXEC master.dbo.XP_MD5_EncodeKeyVal @data, @data2, @hash OUT
    RETURN @hash
    END
    2)CREATE PROCEDURE Encript
    @btInStr VARCHAR(10),
    @btInStrIndex VARCHAR(10)
    AS
    BEGIN
    DECLARE @btOutVal BINARY(16)
    EXEC master..XP_MD5_EncodeKeyVal @btInStr, @btInStrIndex, @btOutVal OUT
    UPDATE MEMB_INFO SET memb__pwd = @btOutVal WHERE memb___id = @btInStrIndex
    END
    GO
    [2]Open Enterprise Manager and open DataBase MuOnline.
    Click "Design Table" at MEMB_INFO like at image:

    Add "is_admin" field:
    char,1,yes
    like at image:

    [3]Create folder "user" in your web-site
    [4]Download my script and UnRar it in user folder
    [5]Open index.php and select language which you want. (rus or eng);
    [6]Don't forget to change path to config.php =)
    In menu.php and admin_menu.php present links.
    You can edit menu for admin and users.
    If you want to use this with your own modules, use $_SESSION['username'] for login variable.
    Don't forget use if(isset($_SESSION['username']) in your scripts.
    Test it script =)
    With great respect, Asafchik
    user.rar
    Last edited by Asafchik; 19-08-06 at 01:07 PM.


  2. #2
    Member Asafchik is offline
    MemberRank
    Apr 2005 Join Date
    MoscowLocation
    55Posts
    Nobody need it? =(
    ok =(

  3. #3
    Member Asafchik is offline
    MemberRank
    Apr 2005 Join Date
    MoscowLocation
    55Posts
    This release is only tool, that can you use for your site.
    Soon i will add GM menu and some things for user =)

  4. #4
    Apprentice GameX is offline
    MemberRank
    Jul 2006 Join Date
    20Posts
    Tell you ICQ

  5. #5
    Member Asafchik is offline
    MemberRank
    Apr 2005 Join Date
    MoscowLocation
    55Posts
    2 GameX
    683993
    Last edited by Asafchik; 19-08-06 at 01:08 PM.

  6. #6
    Account Upgraded | Title Enabled! checkmate is offline
    MemberRank
    Jun 2004 Join Date
    247Posts
    this is for 99.6XT?

  7. #7
    Proficient Member taboo is offline
    MemberRank
    Jun 2006 Join Date
    IsraelLocation
    191Posts
    Show screen of adnim panel of site

  8. #8
    Account Upgraded | Title Enabled! Sv@ike is offline
    MemberRank
    Jun 2006 Join Date
    LithuaniaLocation
    351Posts
    Asafchik, nobody needs it?... I need it! :) It seems to be very nice since everyone started to release new and new wothless sites... I really needed it:) (to learn how to makwe login system, also Admin panel :D) Thx again man

    p.s. waiting for GM panel :)

    p.s.2 can you make guide or something working under login system (php side)?
    Last edited by Sv@ike; 24-08-06 at 09:24 PM.

  9. #9
    Account Upgraded | Title Enabled! Sv@ike is offline
    MemberRank
    Jun 2006 Join Date
    LithuaniaLocation
    351Posts
    Quote Originally Posted by taboo View Post
    Show screen of adnim panel of site
    learn to make your own functions, the main thing is login ;)

  10. #10
    Member Asafchik is offline
    MemberRank
    Apr 2005 Join Date
    MoscowLocation
    55Posts
    ok...
    This is an example of login system.
    In other scripts use: $_SESSION['username'] for your functions and other things.
    don't forget session_start(); in the start of script.
    Code:
    <?
    require_once('../config.php');
    session_start();
    $action = $_GET['action'];
    $username = $_POST['username'];
    $password = $_POST['password'];
    $username = stripslashes($username);
    $username = str_replace("'","",$username);
    $username = str_replace("\"","",$username);
    $username = str_replace(";","",$username);
    $username = str_replace("$","",$username);
    $username = str_replace("#","",$username);
    $username = str_replace("&","",$username);
    $username = str_replace("%","",$username);
    $password = stripslashes($password);
    $password = str_replace("'","",$password);
    $password = str_replace("\"","",$password);
    $password = str_replace(";","",$password);
    $password = str_replace("$","",$password);
    $password = str_replace("#","",$password);
    $password = str_replace("&","",$password);
    $password = str_replace("%","",$password);
    //if defined - execure code
    if  ((isset($username)) && (isset($password)))
    {
    //start
    $validate = "SELECT * FROM   dbo.MEMB_INFO WHERE  memb___id = '$username' AND   memb__pwd = [dbo].[fn_md5]('$password','$username')";
    $result = mssql_query($validate);
    $login = mssql_num_rows($result);
    if ($login>0)
    {
    $_SESSION['username'] = $username;
    }
    echo $_SESSION['username'];
    }
    //if not session not defined - show form
    if (!isset($_SESSION['username']))
    {
    echo "<form action=index.php method=post>";
    echo "<input name=username type=text><br>";
    echo "<input name=password type=text><br>";
    echo "<input name=submit type=submit><br>";
    echo "</form>";
    }
    //if we want to exit - gonna exit =)
    if ($action=="exit")
    {
    session_unset();
    unset($_SESSION['username']);
    echo "<script language='javascript'>";
    echo "location.href='index.php'";
    echo "</script>";
    }
    ?>
    Last edited by Asafchik; 25-08-06 at 01:02 AM.

  11. #11
    Apprentice Scardini is offline
    MemberRank
    Jun 2004 Join Date
    Rio de janeiroLocation
    12Posts
    can i use it on 99.6xt ?...this web site have md5 encryption?

    tnx! u web site is very beautifull!!

  12. #12
    Member Asafchik is offline
    MemberRank
    Apr 2005 Join Date
    MoscowLocation
    55Posts
    It isn't site.
    It's just login system EXAMPLE for 0.99.62 with md5.

  13. #13
    Account Upgraded | Title Enabled! HELL_IN_HEAVEN is offline
    MemberRank
    Apr 2006 Join Date
    BORACAY, PHILIPPINESLocation
    530Posts
    can u post a reset.php with md5?

  14. #14
    Valued Member mig1st4ck is offline
    MemberRank
    Jan 2006 Join Date
    PortugalLocation
    118Posts
    good. But if you use
    fn_md5 Function
    you don't need to use encript.

  15. #15
    Account Upgraded | Title Enabled! Sv@ike is offline
    MemberRank
    Jun 2006 Join Date
    LithuaniaLocation
    351Posts
    Quote Originally Posted by mig1st4ck View Post
    good. But if you use
    fn_md5 Function
    you don't need to use encript.
    i tested on 99.60 server and login working perfectly:0 do not bother him :P

  16. #16
    Account Upgraded | Title Enabled! livewirecebu is offline
    MemberRank
    Jul 2004 Join Date
    PhilippinesLocation
    851Posts
    Thanks Im downloading now!

  17. #17
    Enthusiast kojokoiii is offline
    MemberRank
    Feb 2006 Join Date
    BulgariaLocation
    32Posts
    Pls give me skript to add stats points

  18. #18
    Account Upgraded | Title Enabled! magicswe is offline
    MemberRank
    May 2005 Join Date
    Sweden, GothenburgLocation
    1,247Posts

    Re: [Release] UserPage and AdminPage for 0.99.62 with md5

    Warning: include(user) [function.include]: failed to open stream: Permission denied in C:\AppServ\www\php\index.php on line 30
    ;S



Advertisement