<commit_before><?php
session_start();

ob_start();

include "../common.php";
include "../conf_serv.php";
include "../lib/func.php";

$error = '';
$last_action = '';

$db = new Database(DB_NAME);

moderator_access();

$search = @$_GET['search'];
$letter = @$_GET['letter'];

if (@$_GET['action'] == 'cut_off' && check_access(array(3))){
    cut_off_user(@$_GET['id']);
    header("Location: users.php?search=".$_GET['search']);
    exit();
}

if (@$_GET['video_out']){
    $video_out = @$_GET['video_out'];
    $id = intval(@$_GET['id']);
    
    if ($video_out == 'svideo'){
        $new_video_out = 'svideo';
    }else{
        $new_video_out = 'rca';
    }
    $sql = "update users set video_out='$new_video_out' where id=$id";
    $rs=$db->executeQuery($sql);
    
    header("Location: users.php?search=".$_GET['search']."&page=".$_GET['page']);
    exit();
}

if (@$_GET['del'] && check_access(array(3))){
    $id = intval(@$_GET['id']);
    
    $sql = "delete from users where id=$id";
    $db->executeQuery($sql);
    
    header("Location: users.php?search=".$_GET['search']."&page=".$_GET['page']);
    exit();
}

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">

body {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}
td {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: #000000;
}
.list{
    border-width: 1px;
    border-style: solid;
    border-color: #E5E5E5;
}
a{
	color:#0000FF;
	font-weight: bold;
	text-decoration:none;
}
a:link,a:visited {
	color:#5588FF;
	font-weight: bold;
}
a:hover{
	color:#0000FF;
	font-weight: bold;
	text-decoration:underline;
}
</style>
<title>Пользователи</title>
</head>
<body>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="620">
<tr>
    <td align="center" valign="middle" width="100%" bgcolor="#88BBFF">
    <font size="5px" color="White"><b>&nbsp;Пользователи&nbsp;</b></font>
    </td>
</tr>
<tr>
    <td width="100%" align="left" valign="bottom">
        <a href="index.php"><< Назад</a> | <a href="stbgroups.php">Группы приставок</a> | <a href="all_userlog.php">Все логи</a> | <a href="today_user_status_report.php" target="_blank">Отчет</a> | <a href="subscribe_import.php">Импорт подписок</a>
    </td>
</tr>
<tr>
    <td align="center">
    <font color="Red">
    <strong>
    <? echo $error?>
    </strong>
    </font>
    <br>
    <br>
    </td><commit_msg>"Add testers.php link"<commit_after><?php
session_start();

ob_start();

include "../common.php";
include "../conf_serv.php";
include "../lib/func.php";

$error = '';
$last_action = '';

$db = new Database(DB_NAME);

moderator_access();

$search = @$_GET['search'];
$letter = @$_GET['letter'];

if (@$_GET['action'] == 'cut_off' && check_access(array(3))){
    cut_off_user(@$_GET['id']);
    header("Location: users.php?search=".$_GET['search']);
    exit();
}

if (@$_GET['video_out']){
    $video_out = @$_GET['video_out'];
    $id = intval(@$_GET['id']);
    
    if ($video_out == 'svideo'){
        $new_video_out = 'svideo';
    }else{
        $new_video_out = 'rca';
    }
    $sql = "update users set video_out='$new_video_out' where id=$id";
    $rs=$db->executeQuery($sql);
    
    header("Location: users.php?search=".$_GET['search']."&page=".$_GET['page']);
    exit();
}

if (@$_GET['del'] && check_access(array(3))){
    $id = intval(@$_GET['id']);
    
    $sql = "delete from users where id=$id";
    $db->executeQuery($sql);
    
    header("Location: users.php?search=".$_GET['search']."&page=".$_GET['page']);
    exit();
}

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">

body {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}
td {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: #000000;
}
.list{
    border-width: 1px;
    border-style: solid;
    border-color: #E5E5E5;
}
a{
	color:#0000FF;
	font-weight: bold;
	text-decoration:none;
}
a:link,a:visited {
	color:#5588FF;
	font-weight: bold;
}
a:hover{
	color:#0000FF;
	font-weight: bold;
	text-decoration:underline;
}
</style>
<title>Пользователи</title>
</head>
<body>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="620">
<tr>
    <td align="center" valign="middle" width="100%" bgcolor="#88BBFF">
    <font size="5px" color="White"><b>&nbsp;Пользователи&nbsp;</b></font>
    </td>
</tr>
<tr>
    <td width="100%" align="left" valign="bottom">
        <a href="index.php"><< Назад</a> | <a href="testers.php">Тестировщики</a> | <a href="stbgroups.php">Группы приставок</a> | <a href="all_userlog.php">Все логи</a> | <a href="today_user_status_report.php" target="_blank">Отчет</a> | <a href="subscribe_import.php">Импорт подписок</a>
    </td>
</tr>
<tr>
    <td align="center">
    <font color="Red">
    <strong>
    <? echo $error?>
    </strong>
    </font>
    <br>
    <br>
    </td>
{'fraction_non_alphanumeric': 0.22857712235950578, 'fraction_numerical': 0.016739736946990835, 'mean_word_length': 4.003988035892323, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4529365', 'n_tokens_mistral': 2030, 'n_tokens_neox': 1959, 'n_words': 343}