common_cadline_libraries (CRM hardlock/db/users classes; upstream cadline_web/cadcommonlib), maintenance/ (ARCHLine.XP license backend; upstream cadline_web/maintenance), maintenance2/. Vetted live files (byte-truth); upstream repos in PROVENANCE.md. NOTE: could be git submodules — kept as live files for byte-fidelity. Signed-off-by: LÁZÁR Imre <imre@illusion.hu> Assisted-by: claude-code@claude-opus-4-8
23 lines
469 B
PHP
23 lines
469 B
PHP
<?php
|
|
header('Access-Control-Allow-Origin: https://crm.cadline.hu');
|
|
header('Access-Control-Allow-Headers: X-Requested-With, Content-Type, Accept');
|
|
|
|
$file = $_SERVER['DOCUMENT_ROOT'] . "/activateServer.txt";
|
|
$myfile = fopen($file, "r");
|
|
|
|
$text = 'Inactive';
|
|
$i = 0;
|
|
|
|
while (!$myfile && $i < 10) {
|
|
$myfile = fopen($file, "r");
|
|
$i++;
|
|
}
|
|
|
|
if ($myfile) {
|
|
$text = fread($myfile, filesize($file));
|
|
fclose($myfile);
|
|
}
|
|
|
|
echo $text;
|
|
die();
|