Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11845
Latest: SamoanOnion
New This Month: 6
New This Week: 0
New Today: 0
Stats
Total Posts: 42473
Total Topics: 7406
Most Online Today: 51
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 58
Total: 58

Author Topic: In a source file, how do I prompt guests that they are not allowed to enter  (Read 1798 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 662
    • View Profile
    • Homework Clinic - Your Academic Lifeline
Let's say I made an action=XXX

and the source file XXX.php

In the source file, I want to do a check to see if they are logged in before continuing the code. How would I do that?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16109
    • View Profile
Use function disables execution past that point prompts for login
is_not_guest();

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline shuban

  • Hero Member
  • *****
  • Posts: 662
    • View Profile
    • Homework Clinic - Your Academic Lifeline
Thanks

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4874 Views
Last post July 04, 2012, 02:33:37 pm
by SMFHacks
5 Replies
3771 Views
Last post October 01, 2012, 07:06:51 pm
by SMFHacks
3 Replies
3127 Views
Last post September 06, 2014, 03:16:26 pm
by SMFHacks
Source text in page

Started by guest3817 Support

2 Replies
2449 Views
Last post September 14, 2014, 11:17:58 am
by guest3817
2 Replies
3065 Views
Last post September 21, 2014, 02:27:29 pm
by shuban

+- Recent Topics

"Custom title" badge by Hatshepsut
September 27, 2022, 10:11:27 pm

Category Selection by Anmer
September 18, 2022, 02:40:06 am

Setting a single free download. by Zaphod
September 12, 2022, 10:18:45 pm

Error message "Data too long for column 'ipaddress' at row 1" by SMFHacks
September 12, 2022, 08:49:02 am

SMF to SMF bridge via WP by SMFHacks
September 11, 2022, 09:44:30 am

Video player included by SMFHacks
September 06, 2022, 10:26:27 pm

Upload hangs / doesn't complete by SMFHacks
August 28, 2022, 08:36:21 am

[Feature Request] Admin Sales Alert by Shades
August 25, 2022, 06:41:00 pm

Portal Block by SMFHacks
August 23, 2022, 12:42:22 pm

Question about undoing a rating by SMFHacks
August 22, 2022, 04:31:50 pm

Powered by EzPortal