[2] ErrorException in Index.php line 25

unlink(./index.html): Operation not permitted

  1. db('browse')->insert($browse);
  2. if(config('sys.site_guide') == 1 && request()->url() == "/") {
  3. return $this->fetch($this->tpl_file.'index_default.html');
  4. }
  5. if (!session('sys_areainfo') && config('sys.indexhtml')) {
  6. $indexstr = "./index.html";
  7. if (file_exists($indexstr)) {
  8. if ((date('d',filemtime($indexstr)) != date('d', time())) && (config('sys.indexhtml_time') < date('H:i:s',time()))) {
  9. unlink($indexstr);
  10. }else{
  11. return $this->fetch($indexstr);
  12. exit();
  13. }
  14. }
  15. if (config('sys.indexhtml')) {
  16. $tpl_file = './template/'.config('sys.theme_style').'/index/';
  17. $info = $this->buildHtml("index", "./", $tpl_file.'index_index.html');
  18. }

Exception Datas

Error Context
browse
{ "ip": "154.81.71.155", "time": 1627733153, "type": 1 }
indexstr
./index.html