. require_once("../inc/util.inc"); require_once("../inc/user.inc"); check_get_args(array()); $url = parse_config(get_config(), ""); $user = get_logged_in_user(); page_head(tra("Weak account key")); $weak_auth = weak_auth($user); // figure out the name of this project's account file. // strip http:// $idx = strpos($url, '://'); if ($idx) { $url = substr($url, $idx+strlen('://')); } //convert invalid characters into underscores for ($i=0; $i", tra("Your 'weak account key' lets you link a computer to your account without giving it the ability to log in to your account or to change it in any way."), " ", tra("This mechanism works only with projects that have upgraded their server software 7 Dec 2007 or later."), "

", 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(); ?>