require_once 'session.ppp' ; require_once 'local.ppp' ; require_once 'conf.ppp' ; require_once 'baselib.ppp' ; require_once 'wwwsec.ppp' ; require_once 'librepo.ppp' ; # $DEBUG = 2 ; if ( $_GET [ 'login' ] ) { $uri = $_SERVER [ "REQUEST_URI" ] ; $uri = preg_replace ( '/mailme/', 'index', $uri ) ; header ( 'Location: ' . $uri ) ; exit ; } get_config () ; $conn = db_connect_or_die () ; $TIT = REPO_TIT ( 'mail to guest' ) ; html_start ( $TIT ) ; $ID = GETVAR ( 'ID' ) ; $user = get_repo_guest ( $ID ) ; $msg = $user -> send_mail ( 1 ) ; putlog ( $msg ) ; echo UL ( LI ( $msg ) ) ; echo "
Please login, and change your password\n
\n" ; echo repos_url () ; html_end () ; # phpinfo() ; ?>