Welcome Guest, Not a member yet? Register   Sign In
How can I lock down my entire site?
#4

[eluser]Aquillyne[/eluser]
This works:

post-controller-constructor

Code:
class Lock
{
    
    var $locked = TRUE;
    var $CI;
    
    function check()
    {
        $this->CI =& get_instance();
        
        if ($this->locked)
        {
            $data["PageTitle"] = "LOCKED!!";
            $data["Content"] = "LOCKED!!";

            $this->CI->load->view("locked", $data);
            $this->CI->output->_display();
            die();
        }
    }
    
}

Can anyone say if I'm doing anything a little clumsily here? Or is this fine?

The problem remains: how to alter whether the site is locked via the button in the admin area...


Messages In This Thread
How can I lock down my entire site? - by El Forum - 07-20-2008, 09:37 PM
How can I lock down my entire site? - by El Forum - 07-20-2008, 10:33 PM
How can I lock down my entire site? - by El Forum - 07-20-2008, 10:35 PM
How can I lock down my entire site? - by El Forum - 07-20-2008, 10:57 PM
How can I lock down my entire site? - by El Forum - 07-20-2008, 11:55 PM
How can I lock down my entire site? - by El Forum - 07-21-2008, 10:20 AM
How can I lock down my entire site? - by El Forum - 07-21-2008, 10:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB