2 error_reporting(E_ALL
); ini_set("display_errors", 1);
5 if(isset($_POST['sban'])) {
6 $id = trim($_POST['ban']);
8 $user = trim($ban->FindUser($id, $id_mail_path));
9 $fdir = substr($user, 0, 1);
10 $sdir = substr($user, 1, 1);
11 $path = DB_PATH
.$fdir."/".$sdir."/".$user;
14 $data = implode($info);
15 if(file_put_contents($path, $data))
16 $n = "User ".$id." has been blocked";
18 include 'include/header.php';
22 <div
class="container margintopandbottom">
23 <?php
include 'menu.php';?
>
24 <div
class="panel panel-default ban">
25 <h2
>Ban user from BE Messaging
</h2
><br
><br
>
27 <input type
="text" name
="ban" placeholder
="User ID"><br
><br
>
28 <input type
="submit" name
="sban" class="btn btn-default" value
="Submit">