Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11809
Latest: Rheingauner
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 41673
Total Topics: 7283
Most Online Today: 40
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 60
Total: 60

Author Topic: In a source file, how do I prompt guests that they are not allowed to enter  (Read 1658 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: 15779
    • 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
4770 Views
Last post July 04, 2012, 02:33:37 pm
by SMFHacks
5 Replies
3566 Views
Last post October 01, 2012, 07:06:51 pm
by SMFHacks
3 Replies
2844 Views
Last post September 06, 2014, 03:16:26 pm
by SMFHacks
Source text in page

Started by guest3817 Support

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

+- Recent Topics

Bulk Upload Many Pictures by SMFHacks
Today at 01:52:32 pm

8: Trying to access array offset on value of type null by SMFHacks
January 27, 2022, 10:27:28 pm

The download button has disappeared by SMFHacks
January 23, 2022, 07:32:43 am

Logo and Category? by tank_fv101
January 10, 2022, 08:03:11 am

Questions about SMF Gallery Pro Folders and Gallery URL by scso1502
January 05, 2022, 03:48:27 pm

$subcats_linktree by mickjav
January 05, 2022, 03:08:29 pm

New Photos Won't Upload - Gallery Pro 8.0 or 9.0b - Old Photos Still Visible by scso1502
January 05, 2022, 02:23:16 pm

Additional Recommendations for SMF Store by SMFHacks
January 03, 2022, 02:37:10 pm

Seasons Greetings by SMFHacks
December 24, 2021, 10:02:42 pm

Problems with the contact mod by SMFHacks
December 22, 2021, 09:16:24 am

Powered by EzPortal