53 lines
1.3 KiB
PHP
53 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Test for Luartex V11.0 - Quantum Singularity Engine
|
|
*/
|
|
|
|
$test_code = '
|
|
print("Luartex V11.0 Quantum Singularity Activation")
|
|
local target = "QUANTUM_STATE_VERIFIED"
|
|
local val = 100
|
|
local multiplier = 5
|
|
local result = val * multiplier
|
|
print("Computed Result: " .. tostring(result))
|
|
|
|
local storage = {}
|
|
storage["key"] = "SECURE_DATA"
|
|
print("Storage Retrieve: " .. storage["key"])
|
|
|
|
if result == 500 then
|
|
print("Quantum Logic: STABLE")
|
|
else
|
|
print("Quantum Logic: COLLAPSED")
|
|
end
|
|
';
|
|
|
|
$url = 'http://localhost/process.php';
|
|
$options = [
|
|
'http' => [
|
|
'header' => "Content-type: application/json\r\n",
|
|
'method' => 'POST',
|
|
'content' => json_encode(['code' => $test_code]),
|
|
],
|
|
];
|
|
|
|
$context = stream_context_create($options);
|
|
$result = file_get_contents($url, false, $context);
|
|
|
|
if ($result === FALSE) {
|
|
die("Error reaching process.php");
|
|
}
|
|
|
|
$response = json_decode($result, true);
|
|
|
|
if ($response && $response['success']) {
|
|
$protected_file = 'protected_v11_0.lua';
|
|
file_put_contents($protected_file, $response['protected_code']);
|
|
echo "Successfully generated $protected_file\n";
|
|
echo "Stats: " . json_encode($response['stats']) . "\n";
|
|
} else {
|
|
echo "Error: " . ($response['error'] ?? 'Unknown error') . "\n";
|
|
echo "Full response: " . $result . "\n";
|
|
}
|
|
|