Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11970
Latest: ch4rity10
New This Month: 14
New This Week: 4
New Today: 1
Stats
Total Posts: 38048
Total Topics: 6696
Most Online Today: 71
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 72
Total: 72

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

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

 

Related Topics

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

+- Recent Topics

Nochex by SMFHacks
July 19, 2017, 02:57:10 pm

using Simple Audio Video Embedder and would like to order a custom code by Beowulf1976
July 12, 2017, 11:44:20 pm

Random Image Block code by donk
July 12, 2017, 03:45:34 pm

Enotify Copyright Removal Problem by Niteprowler
July 11, 2017, 09:18:39 am

NEW TAB ON CHECKOUT by orville
July 10, 2017, 11:29:27 am

errors after installation by donk
July 09, 2017, 04:00:34 am

Images Uploading, but Not Displaying by SMFHacks
July 06, 2017, 05:02:31 pm

Question aboud SA Facebook Integration by SMFHacks
July 05, 2017, 09:46:41 pm

Problem Saving Pics by SMFHacks
July 04, 2017, 11:14:07 am

Adding news topic by RC Storick
July 01, 2017, 10:49:07 am

Powered by EzPortal