");
$user = get_logged_in_user();
page_head("Weak account key");
$weak_auth = md5($user->authenticator.$user->passwd_hash);
//this is somewhat a rewrite of escape_url_readable from str_util.C - maybe it
//should be moved into its own function instead of inline here
//cut off the http://
$idx = strpos($url, '://');
if ($idx !== FALSE) {
$url = substr($url, $idx+strlen('://'));
}
//convert invalid characters into underscores
for ($i=0; $i
", tra("Your weak account key for this project is:"), "
", "$weak_auth", "
" , tra("To use your weak account key on a given host, find or create the 'account file' for this project. This file has a name of the form account_PROJECT_URL.xml. The account file for %1 is %2.", PROJECT, $account_file), "
", "", tra("Create this file if needed. Set its contents to:"), "
", "", htmlspecialchars( "", ""), " PROJECT_URL WEAK_ACCOUNT_KEY
", tra("Your weak account key is a function of your password. If you change your password, your weak account key changes, and your previous weak account key becomes invalid."), "
" ; page_tail(); ?>