Welcome Guest, Not a member yet? Register   Sign In
Global Site (Site control)
#7

[eluser]Late Night Again[/eluser]
[quote author="Skulls" date="1190580430"]lol build a library when you can edit the index.php file where the site starts from ...
you can put in front ... an array with some ips and then put the condition
Code:
$allowed_ips=array('ip1', 'ip2'); //etc
if (!in_array($allowed_ips)) { do a die() or something }
i wrote two lines of code... u wrote ... many Smile[/quote]

Yes that may be true and comment accepted, but this also checks if each controller is active and I may not want to disable the whole site, it aslo loads it directly into the current template structure of the page and did not want to call a die with just an error message by itself.

I am sure there is probably a better way of doing this but I wanted to have a lot more control over each seperated controller than the whole site


Messages In This Thread
Global Site (Site control) - by El Forum - 09-22-2007, 06:22 AM
Global Site (Site control) - by El Forum - 09-22-2007, 06:19 PM
Global Site (Site control) - by El Forum - 09-22-2007, 10:26 PM
Global Site (Site control) - by El Forum - 09-23-2007, 07:53 AM
Global Site (Site control) - by El Forum - 09-23-2007, 09:47 AM
Global Site (Site control) - by El Forum - 09-23-2007, 09:53 PM
Global Site (Site control) - by El Forum - 09-23-2007, 09:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB