Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11899
Latest: hippieboy123
New This Month: 17
New This Week: 1
New Today: 1
Stats
Total Posts: 37824
Total Topics: 6658
Most Online Today: 66
Most Online Ever: 2482
(April 09, 2011, 06: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 381 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • SMF Store Customer
  • Hero Member
  • *****
  • Posts: 577
    • 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: 14004
    • View Profile
Use function disables execution past that point prompts for login
is_not_guest();

Get your Forum Ranked! at http://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: 577
    • View Profile
    • Biology Forums - For All Your Science Needs
Thanks

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3684 Views
Last post July 04, 2012, 01:33:37 pm
by SMFHacks
5 Replies
2454 Views
Last post October 01, 2012, 06:06:51 pm
by SMFHacks
3 Replies
1722 Views
Last post September 06, 2014, 02:16:26 pm
by SMFHacks
2 Replies
1306 Views
Last post September 14, 2014, 10:17:58 am
by Doughboy99
2 Replies
1662 Views
Last post September 21, 2014, 01:27:29 pm
by shuban

+- Recent Topics

Logical "Bug" by SMFHacks
March 26, 2017, 08:01:46 pm

[UnApprove] [Edit] [Delete] by Darkshadow
March 26, 2017, 11:30:17 am

Aprove link by Darkshadow
March 26, 2017, 03:49:56 am

Bug in saving settings by Darkshadow
March 25, 2017, 09:15:59 am

Extreme coding help by SMFHacks
March 23, 2017, 07:37:58 pm

Permissions system by Darkshadow
March 23, 2017, 09:26:41 am

Downloads folderm by davejo
March 21, 2017, 11:33:14 am

use on a sandbox pre-production? by drewactual
March 19, 2017, 10:22:13 pm

Delete ratings from profile? by yameth
March 17, 2017, 03:32:17 am

tiny url error by SMFHacks
March 16, 2017, 03:49:25 pm

Powered by EzPortal