×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Gábor Papp
Added: Jan 22, 2022 6:57 PM
Views: 393
Tags: no tags
  1. if ($p2 and (!$one and !$kategoria)) { $hibaoldal=404; }
  2. if ($hibaoldal==404) {
  3.     http_response_code(404);
  4.     // print('<pre>');print_r($_SERVER["SERVER_PROTOCOL"]);print('</pre>');
  5.     header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
  6.     $content=$smarty->fetch($tpldir.'/html/404.tpl');
  7. }