www_archline_hu/cadline/backend/maintenance2/mycommerce.php
LÁZÁR Imre AI Agent 3d4158c3ac feat(cadline): add common_cadline_libraries + maintenance backend
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
2026-07-16 11:34:30 +02:00

21 lines
555 B
PHP

<?php
if (!class_exists('crm_hardlock')) require_once("../common_cadline_libraries/crm_hardlock.class.php");
$realm = 'Restricted area';
$username = 'cadline';
$password = '1CtH&nDG299r';
if ((isset($_SERVER['PHP_AUTH_USER']) && ($_SERVER['PHP_AUTH_USER'] == $username)) and
(isset($_SERVER['PHP_AUTH_PW']) && ($_SERVER['PHP_AUTH_PW'] == $password))
) {
crm_hardlock::AddToDebugTable('test', "ShareIT");
} else {
header("WWW-Authenticate: Basic realm=\"CADLine's Protected Area\"");
header("HTTP/1.0 401 Unauthorized");
die();
}