/inc/auth_simple.php 2. Update inc/localconfig.php to use simple auth module: $conf['auth_lib'] = 'simple'; $conf['auth_simple_users'] = array( 'username1'=>'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' 'username2'=>'nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn' ); where nnn is the md5 of the password for each user. Tip: to generate the md5, use the login page with username 'md5' and your desired password. The login will fail but it will show the md5 of the entered password. Released under AGPLv3 or older. Developed by Topten Software (Brad Robinson) http://www.toptensoftware.com */ function auth_check() { global $conf; global $page; session_start(); // Already signed in? if (isset($_SESSION['loginname'])) return; // Form submit? if (isset($_REQUEST['login_action'])) { $username=$_REQUEST['username']; $password=md5($_REQUEST['password']); if (isset($conf['auth_simple_users'][$username]) && $conf['auth_simple_users'][$username]==$password) { $_SESSION['loginname']=$username; return; } if ($username=="md5") $loginmessage="MD5: ".$password; else $loginmessage="Login Failed"; } $page['title']="Login - ViewGit"; // Not signed in, display login page require('templates/header.php'); ?>

Login Required

User Name:
Password: