mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-02 04:39:28 +00:00
0bc0a09bf4
- application/extensions file system permission now is 775 - application/logs file system permission now is 775 - Added extensions directory in application/: config, controllers, helpers, hooks, libraries, models, views and widgets - Added view views/extensions/manage.php - Added controller controllers/system/extensions/Manager.php - Added library ExtensionsLib to manage extensions - Added model models/system/Extensions_model.php - Moved code related to print out info from MigrationLib to EPrintfLib
26 lines
492 B
PHP
26 lines
492 B
PHP
<?php
|
|
|
|
// !!!! Make sure the Sabre directory is in the include_path !!!
|
|
// example:
|
|
// set_include_path('lib/' . PATH_SEPARATOR . get_include_path());
|
|
|
|
// settings
|
|
date_default_timezone_set('Canada/Eastern');
|
|
|
|
// Files we need
|
|
require_once 'vendor/autoload.php';
|
|
|
|
$u = 'admin';
|
|
$p = '1234';
|
|
|
|
$auth = new \Sabre\HTTP\DigestAuth();
|
|
$auth->init();
|
|
|
|
if ($auth->getUsername() != $u || !$auth->validatePassword($p)) {
|
|
|
|
$auth->requireLogin();
|
|
echo "Authentication required\n";
|
|
die();
|
|
|
|
}
|