<?php
/**
* Example: Standalone PHP Info Display with Authentication
*
* This example shows how to use the BetterPhpInfo class with
* username and password protection. Users must authenticate
* before seeing the PHP information.
*
* Configure your desired username and password below.
*/
// Include the BetterPhpInfo class
require_once 'BetterPhpInfo.php';
// Configure authentication credentials
$requiredUsername = 'admin';
$requiredPassword = 'secure123';
// Create instance and render with authentication
$betterPhpInfo = new BetterPhpInfo();
$betterPhpInfo->render($requiredUsername, $requiredPassword);
?>
|