initial commit

This commit is contained in:
i2p
2026-08-27 10:50:54 -06:00
commit 97a5f0aa12
3172 changed files with 570428 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
session_start();
if(isset($_SESSION["wh_anu7"])) {
// header("Location: ./homepage.php");
echo "" ;
}else{
session_destroy();
header("Location: ./");
}
$statusCode=false;
if (!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /index.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /index.php");
}else{
$statusCode=true;
}
}
//передаем данные для выпонения команд!!!-----
if((isset($_POST["ADDUSER"]))&&($statusCode)){
include '../../config.php';
$login = $_POST['login'];
$pass=$_POST['password'];
$password = md5("$login $pass $login");
$right = $_POST['RIGHT'];
$tag = $_POST['tag'];
$connect = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connect->exec('SET NAMES utf8');
$add_data = $connect->exec("insert into t_users (login,password,right_,status,tag)
value ('$login','$password','$right','Disabled','$tag')");
header("Location: /".namefolder."/index.php?cont=settings&page=users");
}
?>