Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 10. február 2025

Súbor: [Platon] / Metafox / lib / phpWebFileManager / plugins / auth.php (stiahnutie)

Revízia 1.2, Sat Oct 1 23:59:46 2005 UTC (19 years, 4 months ago) by nepto


Zmeny od 1.1: +0 -0 [lines]

phpWebFileManager 0.7 added into the Metafox CMS

<?php

/**************************************************************************
 *
 * auth.php
 *
 * This is a plugin for phpWebFileManager that allows you to restrict
 * access to phpWebFileManager script using HTTP authentication. Edit
 * username and password constants below.
 *
 **************************************************************************/

/* $Platon: phpWebFileManager/plugins/auth.php,v 1.3 2003/12/15 13:48:25 nepto Exp $ */

if (! isset($PHP_AUTH_USER) || ! isset($PHP_AUTH_PW)
        || $PHP_AUTH_USER != 'username' || $PHP_AUTH_PW != 'password') {

    header('WWW-Authenticate: Basic realm="phpWebFileManager authentication"');
    header('HTTP/1.0 401 Unauthorized');
    echo '<center><h1>Authentication required</h1></center>';
    exit;

} else {

    // sucessfully authenticated

}

?>

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok