Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11881
Latest: SSEN29
New This Month: 18
New This Week: 8
New Today: 2
Stats
Total Posts: 37655
Total Topics: 6626
Most Online Today: 101
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 2
Guests: 76
Total: 78

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

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

 

Related Topics

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

+- Recent Topics

Stacking ads down the right side by coyote
Today at 04:17:06 pm

Copyright Removal Key Gallery Pro by Cuda Cody
Today at 11:39:19 am

[Mod] Tagging System by Web Presence Consulting
Today at 09:06:32 am

PayPal Payouts by Web Presence Consulting
Today at 07:28:55 am

Random Downloads Block by Web Presence Consulting
Today at 05:48:16 am

Getting video from Gallery Pro to the forum by SMFHacks
Today at 12:07:15 am

Is there an option to remake all images that weren't made in medium? by shuban
February 21, 2017, 03:13:26 pm

What is JPEG Compression Percent? by shuban
February 21, 2017, 01:03:32 pm

Questions about Watermarking by shuban
February 21, 2017, 01:38:38 am

Strange SMF Behaviour when dealing with PHP classes by SMFHacks
February 21, 2017, 12:37:13 am

Powered by EzPortal