2021-10-30 19:02:07 +02:00
|
|
|
<?php
|
|
|
|
class Cron extends CI_Controller
|
|
|
|
{
|
2021-11-14 11:02:22 +01:00
|
|
|
//no session stuff needed for this class, so it extends from CI_Controller.
|
2021-10-30 19:02:07 +02:00
|
|
|
|
2021-11-14 11:02:22 +01:00
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
}
|
2021-10-30 19:02:07 +02:00
|
|
|
|
2021-11-14 11:02:22 +01:00
|
|
|
public function aiattack()
|
|
|
|
{
|
|
|
|
//check for useragent and stuff like that
|
2021-10-30 19:02:07 +02:00
|
|
|
|
2021-11-14 11:02:22 +01:00
|
|
|
$this->load->model('ai_model');
|
2021-10-30 19:02:07 +02:00
|
|
|
|
2021-11-14 11:02:22 +01:00
|
|
|
$a = $this->ai_model->attack();
|
2021-10-30 19:02:07 +02:00
|
|
|
|
2021-11-14 11:02:22 +01:00
|
|
|
echo $a;
|
|
|
|
}
|
2021-10-30 19:02:07 +02:00
|
|
|
}
|
2021-11-14 11:02:22 +01:00
|
|
|
//nowhitesp
|