Website

07/18/2011 08:36 Thorlon#1
Hello everyone,

Just a question, does anyone have a admin control panel that you can run on your website.
e.g. If i am a staff member, i can log in to this "control panel" that will allow me to do things like ban/mute etc.. using my acc that is in the database.

If someone has a thead or can make one for me please reply. :D

Thanks :cool:
---------------------------------------------------------------
These are the thing i need for the rest of my cp. Which will be an add on to a website. If someone would like to be a part of this PM me.

Login to CP script using acc in database: need help with that lol :cool:
Change password script: (Recived) = Thanks sword.
Ban/mute script: (Havent Recived)
Change Vip Script: (Havent Recived)
Bot jail script: (Havent Recived)
Run a query in selected datbase Script: (Havent Recived)
Ban list Script: (Havent Recived)
Any more ideas post below.
Thanks
07/18/2011 15:59 ~Sword~Stalker~.#2
E.M.E made one before with a CP . dont remember if its still alive
07/18/2011 23:20 Thorlon#3
Quote:
Originally Posted by ~Sword~Stalker~. View Post
E.M.E made one before with a CP . dont remember if its still alive
I hope so, if its not then i would like to help someone make one, because i dont have the skill to do it on my own but I would love to help someone.
I will have a look tru the websites and c if i can find one with a CP.
Thanks
-------------------------------------------------------------------------------
Found nothing, would someone like to PM if they are intrested in making a CP with html for a website
Thanks :cool:
07/19/2011 00:24 no_1#4
Quote:
Originally Posted by ~Sword~Stalker~. View Post
E.M.E made one before with a CP . dont remember if its still alive
i belive the download link was dead
[Only registered and activated users can see links. Click Here To Register...]
07/19/2011 00:34 ~Sword~Stalker~.#5
Code:
<script type="text/javascript" src="inc/md5.js"></script>
<?php
include('config.php');
  ?>
<form method="post">
<TABLE align="center">
<tr><td>
<br />
Enter the correct info and your password will be changed. For the email, it will be the one you used to sign up with.<tr><td>
<tr><td align="center">Login Name:</tr></td>
<tr><td align="center"><input type="text" size="20" name="userc"/></tr></td>
<tr><td align="center">Current Password:</tr></td>
<tr><td align="center"><input type="hidden" name="hash1">
<input type="password" size="20" name="curpass" onBlur="hash1.value=login(curpass.value)"/></tr></td>
<tr><td align="center">New Password:</td></tr>
<tr><td align="center"><input type="password" size="20" name="newpas"/></td></tr>
<tr><td align="center">Retype New Password:</td></tr>
<tr><td align="center"><input type="password" size=\"20\" name="renew"/></td></tr>
<tr><td align="center">
<input type="hidden" name="hash"><input class=Butt type=submit onClick="hash.value = login(newpas.value)" value="Change Password" name=B1>
</td></tr>
</TABLE>
</form>

<?php
            if($_POST['B1'])
            {
            mysql_select_db($mydbacc);
                    $userid = trim($_POST['userc']);
                    $password=trim($_POST['curpass']);
                    $passretype=trim($_POST['repass']);
                    $hash=$_POST['hash'];
                    $hash1=$_POST['hash1'];
                    $newpass = trim($_POST['newpas']);
                    $renewpass = trim($_POST['renew']);
                    $sql = "SELECT * FROM account WHERE name='$userid'";
                    $query = mysql_query($sql) or die(mysql_error());
                    $row = mysql_fetch_object($query);
                    $curpass = htmlspecialchars($row->password);

$res = mysql_query("select * from account where name = '".$userid."' order by id desc");
                                if(mysql_num_rows($res) == 0)
                                {
                                Echo "Sorry that username doesnt exist";
                                }else{
                if($hash1 != $curpass)
                    {
                        echo "Your current password was typed wrong";
                    }
                    else{
                    if($newpass != $renewpass)
                    {
                        echo "Your New paswords dont match";
                    }
                    else{
                    $sql = "UPDATE account SET password='$hash' WHERE name='$userid'";
                    $query = mysql_query($sql) or die(mysql_error());

                                    echo "Password Changed correctly ";


                    }


                    }

}
}

            ?></div>
thanks to .Ash

Regards
07/19/2011 00:59 Thorlon#6
Quote:
Originally Posted by ~Sword~Stalker~. View Post
Code:
<script type="text/javascript" src="inc/md5.js"></script>
<?php
include('config.php');
  ?>
<form method="post">
<TABLE align="center">
<tr><td>
<br />
Enter the correct info and your password will be changed. For the email, it will be the one you used to sign up with.<tr><td>
<tr><td align="center">Login Name:</tr></td>
<tr><td align="center"><input type="text" size="20" name="userc"/></tr></td>
<tr><td align="center">Current Password:</tr></td>
<tr><td align="center"><input type="hidden" name="hash1">
<input type="password" size="20" name="curpass" onBlur="hash1.value=login(curpass.value)"/></tr></td>
<tr><td align="center">New Password:</td></tr>
<tr><td align="center"><input type="password" size="20" name="newpas"/></td></tr>
<tr><td align="center">Retype New Password:</td></tr>
<tr><td align="center"><input type="password" size=\"20\" name="renew"/></td></tr>
<tr><td align="center">
<input type="hidden" name="hash"><input class=Butt type=submit onClick="hash.value = login(newpas.value)" value="Change Password" name=B1>
</td></tr>
</TABLE>
</form>

<?php
            if($_POST['B1'])
            {
            mysql_select_db($mydbacc);
                    $userid = trim($_POST['userc']);
                    $password=trim($_POST['curpass']);
                    $passretype=trim($_POST['repass']);
                    $hash=$_POST['hash'];
                    $hash1=$_POST['hash1'];
                    $newpass = trim($_POST['newpas']);
                    $renewpass = trim($_POST['renew']);
                    $sql = "SELECT * FROM account WHERE name='$userid'";
                    $query = mysql_query($sql) or die(mysql_error());
                    $row = mysql_fetch_object($query);
                    $curpass = htmlspecialchars($row->password);

$res = mysql_query("select * from account where name = '".$userid."' order by id desc");
                                if(mysql_num_rows($res) == 0)
                                {
                                Echo "Sorry that username doesnt exist";
                                }else{
                if($hash1 != $curpass)
                    {
                        echo "Your current password was typed wrong";
                    }
                    else{
                    if($newpass != $renewpass)
                    {
                        echo "Your New paswords dont match";
                    }
                    else{
                    $sql = "UPDATE account SET password='$hash' WHERE name='$userid'";
                    $query = mysql_query($sql) or die(mysql_error());

                                    echo "Password Changed correctly ";


                    }


                    }

}
}

            ?></div>
thanks to .Ash

Regards
That is a change password script,which i have already but thanks anyway :)
lol and .Ash :cool:
Quote:
Originally Posted by no_1 View Post
i belive the download link was dead
[Only registered and activated users can see links. Click Here To Register...]
Yea i see thanks for the link.









Request close#