Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-27-2004, 11:18 AM
xingyhhhh
Unregistered

Posts: n/a

Admin Panel on ANYTHING

I know your all a bit "Cant be assed" (if u know what i mean ) but i was wondering, IF anyone of you could help me and give me a full on guide on how to do an admin panel for any website?
Reply With Quote
  #2  
Old 10-27-2004, 11:19 AM
Dane
Unregistered

Posts: n/a

it really depends on what admining you need to do.... lol, give some examples and ill help you with some .
Reply With Quote
  #3  
Old 10-27-2004, 11:23 AM
Guest
Unregistered

Posts: n/a

well say a site, which has a news page, file download page, clan section (such as with roster, results...)
Reply With Quote
  #4  
Old 10-28-2004, 05:09 PM
XinG
Unregistered

Posts: n/a

Well.. anyone gonna help? =/ PLZ? (A)
Reply With Quote
  #5  
Old 11-20-2004, 02:55 PM
careless_guest
Unregistered

Posts: n/a

i should really log in lmao... anyways...

yeah.. its easy to make an admin panel:

config.php
<?
$Auser = "admin";
$Apass = "password";
?>

admin.php
<html><body>
<form method=post action=admin.php>
<div align=center>
<br>Username :
<input type=text name=username>
Password :
<input type=password name=password>
<input type=submit name=submit value=ADMIN ME>
</div>
</form>
<?
session_start(); //Start a PHP session
header("Cache-control: private"); //IE 6 Fix
include("config.php");
if isset($_POST[submit]){
if($adminuser == $_POST['username'] && $adminpass == $_POST['password'] || $_SESSION['logged'] == "yes") {
//If vars match load up admin panel below is protected
$_SESSION['logged'] = "yes";
echo("<a href=panel.php>panel</a><br>");
} else {
echo("ERROR");
}
}
?>

panel.php

<?
session_start(); //Start a PHP session
header("Cache-control: private"); //IE 6 Fix
if($_SESSION['logged'] == "yes") {

THIS IS PROTECTED AREA!!! TO ADD SECTIONS USE TIS PAGE AS A TEMPLATE!


<br><a href=logout.php>Leave the panel</a><br>
");

} else {
print("ERROR");
}
?>


logout.php

<?
session_start(); //Start a PHP session
header("Cache-control: private"); //IE 6 Fix
session_destroy();

print(" logged out-");
?>


Hope this helped?? if you need any help or what ever jsut ask
msn: carelessrabbit@hotmail.com
aim: carelessrabbit
However this was lifed from my admin panel so you may need to custom it to you.
Reply With Quote
  #6  
Old 11-20-2004, 02:58 PM
careless
Unregistered

Posts: n/a

At least i think it will work.
Reply With Quote
  #7  
Old 11-21-2004, 12:30 AM
PHP-Largo
Unregistered

Posts: n/a

Re: i should really log in lmao... anyways...

[quote:42f196b12e="careless_guest"]

<?
session_start(); //Start a PHP session
header("Cache-control: private"); //IE 6 Fix
if($_SESSION['logged'] == "yes") {

THIS IS PROTECTED AREA!!! TO ADD SECTIONS USE TIS PAGE AS A TEMPLATE!


<br><a href=logout.php>Leave the panel</a><br>
");

} else {
print("ERROR");
}
?>

[/quote:42f196b12e]
forgot the print(" or the echo "
Reply With Quote
  #8  
Old 11-21-2004, 07:40 AM
careless
Unregistered

Posts: n/a

Re: Oh yeah.

[quote:71d5902f8e="PHP-Largo"]
forgot the print(" or the echo "[/quote:71d5902f8e]

So i see because i took out all the crap that qwas there before.
btw, did anyone use/test this to see if it works, i just extracted it. hope i involved all correct code
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't see the Admin Panel Guest phphq.Net Forums 0 05-02-2005 10:06 AM
admin panel mike phphq.Net Forums 1 12-19-2004 04:53 AM


All times are GMT -5. The time now is 02:55 PM.




Powered by vBulletin®