-
[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:
http://i36.tinypic.com/2vabe45.jpg
Manage Characters:
http://i34.tinypic.com/302xwt5.jpg
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. :P:
Credits (so far):
Emisand - Panel
Lambda - Design
Me - Editing the panel
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
-
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.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
`Styx
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?
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
SHEEN[GB]
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();
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
Linear88
Code:
if ($charname != $ownerofcharname)
die();
Sweet, thanks Linear!
Edit - Where in the code do I put this?
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
also can you add a change password for the account and the clan delete and etc..
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
Linear88
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>
-
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"> </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> <?php echo $_STR[Char2]; ?>: <input type="text" name="nname" />
<input type="submit" name="changename" value="<?php echo $_STR[Char3]; ?>" />
</td>
</tr>
<tr><td colspan="2"> </td></tr>
</form>
</table>
<br /><br />
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
SHEEN[GB]
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"> </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> <?php echo $_STR[Char2]; ?>: <input type="text" name="nname" />
<input type="submit" name="changename" value="<?php echo $_STR[Char3]; ?>" />
</td>
</tr>
<tr><td colspan="2"> </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?
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Yes, short tags are enabled.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
-
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.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
i like it, add a banner :D
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
_System32_
Is no use having a panel of users off the web or separated from the environment ..
It looks very ugly.
Agree :):
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
-
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
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
Adriann
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
http://i46.tinypic.com/25r0cua.jpg
emisands forgot some functions :wink:
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
shadow_slifer
your right, but its basically perfect lol, i like the email search on yours :P
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
Adriann
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.
-
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.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
Adriann
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.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
emisands panel is the best but nothing in this world is perfect :P
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Expoitable^^
First make a list for what Features you want in it.
Maybe I can help you;) I'm masterd in PHP.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Well i need a working userpanel so im pretty interested....
if someone got a link of a working one, because none of the new CMs for gunz work like Final aniversery and all the others like no life X and X weavers one none work so strange if some can help me pm me or add me on msn:
jessejohnson737@msn.com
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
eele
Expoitable^^
First make a list for what Features you want in it.
Maybe I can help you;) I'm masterd in PHP.
Are you?
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
shadow_slifer
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.
thats why theres a little thing called a log.
Quote:
Originally Posted by
UNHellFire
emisands panel is the best but nothing in this world is perfect :P
no
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
Wizkidje
Are you?
wow haven't seen you on in a bit..
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Edit it more still doesnt look sexy, change colors haha.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
Military
wow haven't seen you on in a bit..
I kinda quit RageZONE, just had to reply to the admin console topic, then accidental got into this topic.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
Wizkidje
I kinda quit RageZONE, just had to reply to the admin console topic, then accidental got into this topic.
ok man.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
@Wizkidje
For what this guy wants I am masterd in PHP:P Also I didn't worked with all classes like you ofcourse;p
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
eele
@Wizkidje
For what this guy wants I am masterd in PHP:P Also I didn't worked with all classes like you ofcourse;p
You're a PHP master if you have that certificate in the buttom of your linen cupboard. Otherwise, you're not. Sounds like our first lesson mathematics. "You know boys and girls, if 1 + 1 is not 2, something went wrong."
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
Wizkidje
I kinda quit RageZONE, just had to reply to the admin console topic, then accidental got into this topic.
Yay my topic :P.
Just kidding. I kinda stopped this cause as I said before, I am not really a PHP pro/coder.
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
Quote:
Originally Posted by
SHEEN[GB]
Yay my topic :P.
Just kidding. I kinda stopped this cause as I said before, I am not really a PHP pro/coder.
It's good to start projects if you are not already masterd in something, work hard, search hard. The result will be better every time you work on something news;)
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]
-
Re: [Development] Gunz User Panel [Emisand-Panel Based]