Check if user is on showthread.php
Hugop Offline
Junior Member
**
Posts: 4
Joined: Dec 2015
Post: #3
RE: Check if user is on showthread.php
This is what I have been using but it won't work.

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function redirectthiss()
{
	
	global $mybb;

	if($_SERVER['SCRIPT_NAME'] == "showthread.php")
	{ 
		
		
			redirect(
				htmlentities("index.php"),
				htmlentities("1"),
				htmlentities("2")
			);

		
	}
	
}


I tryed with "*" and != too but it refuses to redirect.

12-15-2015 01:54 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Check if user is on showthread.php - Hugop - 12-11-2015, 08:31 AM
RE: Check if user is on showthread.php - Hugop - 12-15-2015 01:54 AM

 Standard Tools
Forum Jump: