Welcome Guest, Not a member yet? Register   Sign In
Running Cron Safely
#3

[eluser]Matthieu Fauveau[/eluser]
Seems much simpler to do that :

Code:
class Cron extends Controller {

    function Cron()
    {
        parent::Controller();    

        if($this->session->userdata('ip_address') != $this->input->server('SERVER_ADDR')) { die(); }
    }

Isn't it ? Wink


Messages In This Thread
Running Cron Safely - by El Forum - 08-01-2008, 06:12 AM
Running Cron Safely - by El Forum - 08-01-2008, 06:28 AM
Running Cron Safely - by El Forum - 08-02-2008, 12:45 AM
Running Cron Safely - by El Forum - 08-02-2008, 03:54 AM
Running Cron Safely - by El Forum - 08-02-2008, 01:09 PM
Running Cron Safely - by El Forum - 08-02-2008, 05:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB