Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4239
Latest: 3dickulus
New This Month: 4
New This Week: 1
New Today: 0
Stats
Total Posts: 43126
Total Topics: 7500
Most Online Today: 83
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 38
Total: 39

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
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: 16378
    • 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: 665
    • View Profile
    • Biology Forums
Thanks

 

Related Topics

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

Started by guest3817 Support

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

+- Recent Topics

“Insert from Gallery” by apothocary
November 21, 2023, 07:25:28 am

SMFHacks Black Friday Sale 2023! by SMFHacks
November 19, 2023, 12:05:51 pm

File Count by SMFHacks
November 11, 2023, 11:46:46 am

Theme Changer by SMFHacks
November 09, 2023, 04:30:05 pm

Pretty Urls extras by SMFHacks
November 08, 2023, 05:23:14 pm

Member group access to emojis by SMFHacks
October 22, 2023, 07:24:12 am

Miscellaneous errors - don't know why by SMFHacks
October 13, 2023, 09:28:50 am

Follow / Follower Mod? by Nicole
October 06, 2023, 07:37:20 am

Mods supporting custom themes? by SMFHacks
October 02, 2023, 04:20:18 pm

Version 6.1.6 issues by SMFHacks
September 30, 2023, 07:54:52 am

Powered by EzPortal