[Development] Gunz User Panel [Emisand-Panel Based]

Page 1 of 2 12 LastLast
Results 1 to 25 of 41
  1. #1
    Account Upgraded | Title Enabled! SHEEN[GB] is offline
    MemberRank
    Aug 2009 Join Date
    London, UKLocation
    263Posts

    [Development] Gunz User Panel [Emisand-Panel Based]

    Hello,

    I was thinking of making a user panel for GunZ, however because I am not that well experienced with PHP I am basing it off of Emisands Admin Panel. So far I have only one function in it, and that would be to change a characters name:

    Preview:
    Index:


    Manage Characters:


    For now it is not a lot I know, but I am wondering if I can team up with someone on this, seeing as I am not really that good in PHP, I understand the code but just not know the knowledge of it yet.

    Credits (so far):
    Emisand - Panel
    Lambda - Design
    Me - Editing the panel


  2. #2
    Valued Member Alkyron is offline
    MemberRank
    Jun 2007 Join Date
    100Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    It's fast ..
    Last edited by Alkyron; 03-11-09 at 03:52 AM.

  3. #3
     `Styx is offline
    MemberRank
    Dec 2007 Join Date
    Philadelphia PALocation
    727Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Koreans made one before a few months ago. It was also based on Emisands V3 administration panel. Wasn't using the panel GUI, though.

  4. #4
    Account Upgraded | Title Enabled! SHEEN[GB] is offline
    MemberRank
    Aug 2009 Join Date
    London, UKLocation
    263Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by `Styx View Post
    Koreans made one before a few months ago. It was also based on Emisands V3 administration panel. Wasn't using the panel GUI, though.
    Oh right, yea I think I might be the first or second one trying to use the GUI, not sure if I am.

    Because I am also not well at PHP, I was wondering how do you make the character name only change for that persons account?

  5. #5

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by SHEEN[GB] View Post
    Oh right, yea I think I might be the first or second one trying to use the GUI, not sure if I am.

    Because I am also not well at PHP, I was wondering how do you make the character name only change for that persons account?
    Code:
    if ($charname != $ownerofcharname)
    die();

  6. #6
    Account Upgraded | Title Enabled! SHEEN[GB] is offline
    MemberRank
    Aug 2009 Join Date
    London, UKLocation
    263Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by Linear88 View Post
    Code:
    if ($charname != $ownerofcharname)
    die();
    Sweet, thanks Linear!

    Edit - Where in the code do I put this?
    Last edited by SHEEN[GB]; 02-11-09 at 11:57 AM.

  7. #7
    Account Upgraded | Title Enabled! randy1234 is offline
    MemberRank
    Mar 2009 Join Date
    SingaporeLocation
    1,196Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    also can you add a change password for the account and the clan delete and etc..

  8. #8
    Account Upgraded | Title Enabled! alfredao is offline
    MemberRank
    Jan 2008 Join Date
    Coronel FabriciLocation
    705Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by Linear88 View Post
    Code:
    if ($charname != $ownerofcharname)
    die();
    Do a drop down to select only your characters

    PHP Code:
    <select size="1" name="cid">
        <?

        $codigo1 
    mssql_query("SELECT Name, CID FROM Character(nolock) WHERE AID = {$_SESSION['AID']} AND CharNum != '-1'");

        while( 
    $char mssql_fetch_array($codigo1) )
        {
        
    ?>
            <option value="<?=$char['CID']?>"><?=$char['Name']?></option>
        <?
        
    }
        
    ?>
    </select>

  9. #9
    Account Upgraded | Title Enabled! SHEEN[GB] is offline
    MemberRank
    Aug 2009 Join Date
    London, UKLocation
    263Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Can you guys correct me if I am wrong here, the drop down box is blank, so I am kinda confused why it's not showing my characters:

    Code:
    <?php
        if( !ereg("index.php", $_SERVER['PHP_SELF']) )
        {
            header("Location: index.php");
            die();
        }
    
        showmessage();
     
        if( isset($_POST['changename']) )
        {
            $type = clean_sql($_POST['type']);
            $id = clean_sql($_POST['id']);
            $nname = clean_sql($_POST['nname']);
    
            if( $type == "" || $id == "" || $nname == "" )
            {
                setmessage("Name Change", $_STR[Msg1]);
                redirect("index.php?do=characters");
                die();
            }
    
            $query01 = odbc_exec($connection, "SELECT CID FROM {$_CONFIG[CharTable]} WHERE Name = '$nname'");
            if( num_rows($query01) != 0 )
            {
                setmessage("Name Change", sprintf($_STR[Char23], $nname));
                redirect("index.php?do=characters");
                die();
            }
    
            if( $type == 0 )
            {
                $query02 = odbc_exec($connection, "SELECT CID FROM {$_CONFIG[CharTable]} WHERE Name = '$id'");
                $part = "Name";
            }
            elseif( $type == 1 )
            {
                $query02 = odbc_exec($connection, "SELECT CID FROM {$_CONFIG[CharTable]} WHERE CID = '$id'");
                $part = "CID";
            }
            else
            {
                redirect("index.php?do=characters");
                die();
            }
    
            if( num_rows($query02) != 1 )
            {
                setmessage("Name Change", $_STR[Char24]);
                redirect("index.php?do=characters");
                die();
            }
            else
            {
                odbc_exec($connection, "UPDATE {$_CONFIG[CharTable]} SET Name = '$nname' WHERE $part = '$id'");
                writetolog( sprintf($_STR[Log5], $id, $nname) );
                setmessage("Name Change", $_STR[Char25]);
                redirect("index.php?do=characters");
                die();
            }
    
            if ($charname != $ownerofcharname)
             {
                setmessage("Name Change", $_STR[Msg1]);
                redirect("index.php?do=characters");
                die();
            }
    
        }
    
    
    ?>
    
    <br />
    <table border="1" style="border-collapse: collapse" id="changename">
    <tr><td colspan="2"><b><?php echo $_STR[Char0]; ?></b></td></tr>
    <tr><td colspan="2">&nbsp;</td></tr>
    <form method="post" action="index.php?do=characters">
    <tr>
        <td>
        <select size="1" name="cid">
        <?
    
        $codigo1 = mssql_query("SELECT Name, CID FROM Character(nolock) WHERE AID = {$_SESSION['AID']} AND CharNum != '-1'");
    
        while( $char = mssql_fetch_array($codigo1) )
        {
        ?>
            <option value="<?=$char['CID']?>"><?=$char['Name']?></option>
        <?
        }
        ?>
    </select>&nbsp;&nbsp;<?php echo $_STR[Char2]; ?>:&nbsp;&nbsp;<input type="text" name="nname" />
        &nbsp;&nbsp;<input type="submit" name="changename" value="<?php echo $_STR[Char3]; ?>" />
        </td>
    </tr>
    <tr><td colspan="2">&nbsp;</td></tr>
    </form>
    </table>
    <br /><br />

  10. #10

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by SHEEN[GB] View Post
    Can you guys correct me if I am wrong here, the drop down box is blank, so I am kinda confused why it's not showing my characters:

    Code:
    <?php
        if( !ereg("index.php", $_SERVER['PHP_SELF']) )
        {
            header("Location: index.php");
            die();
        }
    
        showmessage();
     
        if( isset($_POST['changename']) )
        {
            $type = clean_sql($_POST['type']);
            $id = clean_sql($_POST['id']);
            $nname = clean_sql($_POST['nname']);
    
            if( $type == "" || $id == "" || $nname == "" )
            {
                setmessage("Name Change", $_STR[Msg1]);
                redirect("index.php?do=characters");
                die();
            }
    
            $query01 = odbc_exec($connection, "SELECT CID FROM {$_CONFIG[CharTable]} WHERE Name = '$nname'");
            if( num_rows($query01) != 0 )
            {
                setmessage("Name Change", sprintf($_STR[Char23], $nname));
                redirect("index.php?do=characters");
                die();
            }
    
            if( $type == 0 )
            {
                $query02 = odbc_exec($connection, "SELECT CID FROM {$_CONFIG[CharTable]} WHERE Name = '$id'");
                $part = "Name";
            }
            elseif( $type == 1 )
            {
                $query02 = odbc_exec($connection, "SELECT CID FROM {$_CONFIG[CharTable]} WHERE CID = '$id'");
                $part = "CID";
            }
            else
            {
                redirect("index.php?do=characters");
                die();
            }
    
            if( num_rows($query02) != 1 )
            {
                setmessage("Name Change", $_STR[Char24]);
                redirect("index.php?do=characters");
                die();
            }
            else
            {
                odbc_exec($connection, "UPDATE {$_CONFIG[CharTable]} SET Name = '$nname' WHERE $part = '$id'");
                writetolog( sprintf($_STR[Log5], $id, $nname) );
                setmessage("Name Change", $_STR[Char25]);
                redirect("index.php?do=characters");
                die();
            }
    
            if ($charname != $ownerofcharname)
             {
                setmessage("Name Change", $_STR[Msg1]);
                redirect("index.php?do=characters");
                die();
            }
    
        }
    
    
    ?>
    
    <br />
    <table border="1" style="border-collapse: collapse" id="changename">
    <tr><td colspan="2"><b><?php echo $_STR[Char0]; ?></b></td></tr>
    <tr><td colspan="2">&nbsp;</td></tr>
    <form method="post" action="index.php?do=characters">
    <tr>
        <td>
        <select size="1" name="cid">
        <?
    
        $codigo1 = mssql_query("SELECT Name, CID FROM Character(nolock) WHERE AID = {$_SESSION['AID']} AND CharNum != '-1'");
    
        while( $char = mssql_fetch_array($codigo1) )
        {
        ?>
            <option value="<?=$char['CID']?>"><?=$char['Name']?></option>
        <?
        }
        ?>
    </select>&nbsp;&nbsp;<?php echo $_STR[Char2]; ?>:&nbsp;&nbsp;<input type="text" name="nname" />
        &nbsp;&nbsp;<input type="submit" name="changename" value="<?php echo $_STR[Char3]; ?>" />
        </td>
    </tr>
    <tr><td colspan="2">&nbsp;</td></tr>
    </form>
    </table>
    <br /><br />
    Code:
            if ($charname != $ownerofcharname)
             {
                setmessage("Name Change", $_STR[Msg1]);
                redirect("index.php?do=characters");
                die();
            }
    $charname and $ownerofcharname was not defined.

    For the drop down box, did you enable short tags?

  11. #11
    Account Upgraded | Title Enabled! SHEEN[GB] is offline
    MemberRank
    Aug 2009 Join Date
    London, UKLocation
    263Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Yes, short tags are enabled.

  12. #12
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,302Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    good luck with that

  13. #13
    Gunz Developer / Support _System32_ is offline
    MemberRank
    Feb 2008 Join Date
    VenezuelaLocation
    583Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Is no use having a panel of users off the web or separated from the environment ..

    It looks very ugly.

  14. #14
    Account Upgraded | Title Enabled! Kingston is offline
    MemberRank
    Jun 2007 Join Date
    601Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    i like it, add a banner :D

  15. #15
    RageZone GunZ | Ex-Owner Ricky Blaze is offline
    MemberRank
    Nov 2009 Join Date
    New YorkLocation
    608Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Oh nice? lol Daniel xD

  16. #16
    Infraction Banned EvilStyle is offline
    MemberRank
    Nov 2009 Join Date
    45Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by _System32_ View Post
    Is no use having a panel of users off the web or separated from the environment ..

    It looks very ugly.
    Agree

  17. #17
    Enthusiast sebas1864 is offline
    MemberRank
    May 2008 Join Date
    30Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    ??????lol

  18. #18
    Adrian - Gunz Addict Adriann is offline
    MemberRank
    Oct 2008 Join Date
    Miami, FLLocation
    658Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    emisands panel has everything, theres nothing you can do to make it better, just make a new GUI or its useless i think everyone will use emisands. :S

  19. #19
    Enthusiast shadow_slifer is offline
    MemberRank
    Dec 2007 Join Date
    RomeLocation
    36Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by Adriann View Post
    emisands panel has everything, theres nothing you can do to make it better, just make a new GUI or its useless i think everyone will use emisands. :S
    lol wrong ^^
    that's a screenshot of my admincp

    emisands forgot some functions
    Last edited by shadow_slifer; 22-11-09 at 11:52 PM.

  20. #20
    Adrian - Gunz Addict Adriann is offline
    MemberRank
    Oct 2008 Join Date
    Miami, FLLocation
    658Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by shadow_slifer View Post
    lol wrong ^^
    that's a screenshot of my admincp

    emisands forgot some functions
    your right, but its basically perfect lol, i like the email search on yours :P

  21. #21
     `Styx is offline
    MemberRank
    Dec 2007 Join Date
    Philadelphia PALocation
    727Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by Adriann View Post
    your right, but its basically perfect lol, i like the email search on yours :P
    Koreans added some new fuctions on Emisands too, PHP is not that hard from what he says.

    That panel silfer posted looks ugly as sin.

  22. #22
    Enthusiast shadow_slifer is offline
    MemberRank
    Dec 2007 Join Date
    RomeLocation
    36Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    lol why ugly? <.<
    if your talking about the gfx... i don't care that, i care the functions i added in it ^^!
    anyway...
    don't put "change character name" in this user cp, hackers will change their name every time they hack :S
    put only change face, sex.
    Last edited by shadow_slifer; 24-11-09 at 09:21 PM.

  23. #23
    RageZone GunZ | Ex-Owner Ricky Blaze is offline
    MemberRank
    Nov 2009 Join Date
    New YorkLocation
    608Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    Quote Originally Posted by Adriann View Post
    emisands panel has everything, theres nothing you can do to make it better, just make a new GUI or its useless i think everyone will use emisands. :S
    Mm true lol, yet its still nice.

  24. #24
    Account Upgraded | Title Enabled! russhimi is offline
    MemberRank
    Sep 2008 Join Date
    somewhereLocation
    587Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    sweat....

  25. #25
    Enthusiast UNHellFire is offline
    MemberRank
    Aug 2008 Join Date
    IndiaLocation
    35Posts

    Re: [Development] Gunz User Panel [Emisand-Panel Based]

    emisands panel is the best but nothing in this world is perfect :P



Page 1 of 2 12 LastLast

Advertisement