Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11932
Latest: maxanthony1976
New This Month: 16
New This Week: 0
New Today: 0
Stats
Total Posts: 37952
Total Topics: 6680
Most Online Today: 71
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 70
Total: 70

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • SMF Store Customer
  • Hero Member
  • *****
  • Posts: 588
    • 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: 14055
    • 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: 588
    • View Profile
    • Biology Forums - For All Your Science Needs
Thanks

 

Related Topics

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

+- Recent Topics

Are you killing your forum? by shuban
May 25, 2017, 01:26:02 pm

[Mod]Unofficial SMF 1.1.23 for PHP7 by shuban
May 25, 2017, 01:15:53 pm

Bulk Upload Option? by SMFHacks
May 25, 2017, 01:07:41 pm

nCode Image Resizer ssl sertifika ? by sempatiko
May 23, 2017, 02:50:28 pm

seo4smf_lite-3.2.0-2.1.x by sempatiko
May 23, 2017, 02:34:10 pm

SMF Staff mod button image by SMFHacks
May 22, 2017, 06:50:40 pm

License Key by SMFHacks
May 21, 2017, 08:57:45 am

BadgeAwards2 Does not work with PHP7 / SMF 2.0.14 by balon
May 18, 2017, 02:58:25 pm

SMF 2.0.14 Released with PHP 7 Support and Unofficial SMF 1.1.23 by SMFHacks
May 14, 2017, 11:49:58 pm

Error when trying to open gallery after upgrading from Gallery Lite to Pro by SMFHacks
May 04, 2017, 03:30:12 pm

Powered by EzPortal