コード例 #1
0
             header('location: index.php?view=index');
         }
     } else {
         header('location: index.php?view=index');
     }
     break;
 case 'delete':
     if ($isset_id and $loged) {
         $temas->Delete();
     } else {
         header('location: index.php?view=index');
     }
     break;
 case 'close':
     if ($isset_id and $loged and isset($_GET['estado']) and in_array($_GET['estado'], [0, 1])) {
         $temas->Close($_GET['estado']);
     } else {
         header('location: index.php?view=index');
     }
     break;
 case 'responder':
     if ($isset_id and $loged) {
         $tema = $temas->Check();
         if (false != $tema) {
             if ($tema['estado'] == 0) {
                 header('location: index.php?view=index');
                 exit;
             }
             if ($_POST) {
                 $temas->Responder();
             } else {