General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old February 23rd, 2003, 02:04 PM
pro547 pro547 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 pro547 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Admin script for Portal System

I can't figure out how to make an admin script for a Portal System. I have been looking everywhere. What I really need is to know when the admin is logined with the admin username and to give the user admin access to to special files where I can admin from.

Reply With Quote
  #2  
Old February 24th, 2003, 09:11 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Depends on what you want to do.. is this for a forum like site or ?

either way, you can make a database of users, go read Bens articles about creating a member area, they are the ones that helped me build mine.. very good articles

also, download php nuke <www.phpnuke.org> or phpbb <www.phpbb.com> and look at how they do theirs...

or of course you could use siteworks pro!

Reply With Quote
  #3  
Old February 24th, 2003, 09:29 AM
pro547 pro547 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 pro547 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yea I looked thought PHPNuke but their code is confusing. I think I will go and read the articles now.

Thx
Silas

Reply With Quote
  #4  
Old February 24th, 2003, 09:30 AM
pro547 pro547 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 pro547 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Oh btw this is for my site

Reply With Quote
  #5  
Old February 24th, 2003, 05:29 PM
pro547 pro547 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 pro547 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok i got some code down for the admin script but I have problems with it. Everytime I longin with my other user accout it keeps letting me get to the admin page and I can't figure out why. Any help would be great.
PHP Code:
if ($user admin){
header('Location: admin/admin.php');
} else {
header('Location: granted.php');




thx
Silas

Reply With Quote
  #6  
Old February 24th, 2003, 08:22 PM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 364 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 26 sec
Reputation Power: 6
well,...question,...is admin defined somewhere?

PHP Code:
if ($user admin


maybe it should be,
PHP Code:
if ($user == "admin"
__________________
-- Jason

Last edited by Taelo : February 25th, 2003 at 09:59 AM.

Reply With Quote
  #7  
Old February 25th, 2003, 05:25 AM
pro547 pro547 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 6 pro547 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thx for you reply.

No admin is not defined anywhere and I think I found the problem with the code.


PHP Code:
if ($user == admin){
header('Location: admin/admin.php');
} else {
header('Location: granted.php');



These seems to work at the moment.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Admin script for Portal System


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway