Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12002
Latest: Parb1963
New This Month: 14
New This Week: 2
New Today: 0
Stats
Total Posts: 38203
Total Topics: 6732
Most Online Today: 109
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 67
Total: 67

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • SMF Store Customer
  • Hero Member
  • *****
  • Posts: 602
    • View Profile
    • Biology Forums - For All Your Science Needs
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: 14159
    • 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! Also contests/promotions for verified sites.

Offline shuban

  • SMF Store Customer
  • Hero Member
  • *****
  • Posts: 602
    • View Profile
    • Biology Forums - For All Your Science Needs
Thanks

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3894 Views
Last post July 04, 2012, 02:33:37 pm
by SMFHacks
5 Replies
2571 Views
Last post October 01, 2012, 07:06:51 pm
by SMFHacks
3 Replies
1877 Views
Last post September 06, 2014, 03:16:26 pm
by SMFHacks
2 Replies
1457 Views
Last post September 14, 2014, 11:17:58 am
by Doughboy99
2 Replies
1841 Views
Last post September 21, 2014, 02:27:29 pm
by shuban

+- Recent Topics

403 error by SMFHacks
September 23, 2017, 12:21:30 am

Purchase Notification Email to Store Admins by scso1502
September 19, 2017, 06:00:12 pm

Can't save ad code and errors in log. by SMFHacks
September 15, 2017, 12:40:15 pm

After migrating from http to https I started getting these errors by ApplianceJunk
September 14, 2017, 10:58:38 pm

SMF Gallery and https green padlock? by ApplianceJunk
September 14, 2017, 10:02:46 pm

AudioVideoEmbedder: attached files by SMFHacks
September 14, 2017, 10:58:51 am

Contact Page Version 4.0 by Binkie
September 10, 2017, 11:26:19 am

Can Generated Threads Display The Thumbnail Instead Of The Full Size Image? by Sockratease
September 09, 2017, 06:40:12 pm

Double purchase membergroup fix by SMFHacks
September 09, 2017, 12:30:06 pm

How do I prevent "moved" topic notifications on bulk movement of topics? by shuban
September 09, 2017, 11:25:25 am

Powered by EzPortal