From 1fc3ca62eeb334f55fc1ac6503df00f7e06edbb1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 23 Nov 2016 00:12:05 -0500 Subject: Make the instance name and domain configurable. --- web/html/home.php | 28 +++++++++++++++++----------- web/html/login.php | 4 ++-- web/html/passreset.php | 2 +- web/html/pkgdel.php | 4 ++-- web/html/rss.php | 8 ++++---- 5 files changed, 26 insertions(+), 20 deletions(-) (limited to 'web/html') diff --git a/web/html/home.php b/web/html/home.php index 3252876..6a2de59 100644 --- a/web/html/home.php +++ b/web/html/home.php @@ -15,14 +15,17 @@ html_header( __("Home") );
-

AUR

+

', + config_get('options', 'branding_shortname'), '', '', + config_get('options', 'branding_shortname'), '' ); ?> @@ -58,7 +61,7 @@ html_header( __("Home") );

  • :
  • -
  • :
  • +
  • :
  • :

@@ -76,7 +79,8 @@ html_header( __("Home") );

', '' ); @@ -84,7 +88,7 @@ html_header( __("Home") );

- +

    $fingerprint): ?> @@ -98,11 +102,12 @@ html_header( __("Home") );

    ', - '', - '', - '' + 'General discussion regarding the %s (%s) and Trusted User structure takes place on %s. For discussion relating to the development of the %s web interface (aurweb), use the %s mailing list.', + config_get('options', 'branding_longname'), + config_get('options', 'branding_shortname'), + 'aur-general', + config_get('options', 'branding_shortname'), + 'aur-dev' ); ?>

    @@ -112,7 +117,8 @@ html_header( __("Home") );

    ', '', '', diff --git a/web/html/login.php b/web/html/login.php index ab7bac9..f0dbb7c 100644 --- a/web/html/login.php +++ b/web/html/login.php @@ -11,10 +11,10 @@ if (!$disable_http_login || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])) { $login_error = $login['error']; } -html_header('AUR ' . __("Login")); +html_header(config_get('options', 'branding_shortname') . ' ' . __("Login")); ?>

    -

    AUR

    +

    ' . username_from_sid($_COOKIE["AURSID"]) . ''); ?> diff --git a/web/html/passreset.php b/web/html/passreset.php index 951266a..e77e5b6 100644 --- a/web/html/passreset.php +++ b/web/html/passreset.php @@ -46,7 +46,7 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir if (empty($email)) { $error = __('Missing a required field.'); } else { - $subject = 'AUR Password Reset'; + $subject = __('%s Password Reset', config_get('options', 'branding_shortname')); $body = __('A password reset request was submitted for the ' . 'account %s associated with your e-mail address. ' . 'If you wish to reset your password follow the ' . diff --git a/web/html/pkgdel.php b/web/html/pkgdel.php index eb20967..f631af2 100644 --- a/web/html/pkgdel.php +++ b/web/html/pkgdel.php @@ -14,8 +14,8 @@ if (has_credential(CRED_PKGBASE_DELETE)): ?>

    - ', htmlspecialchars($pkgbase_name), ''); ?> + ', htmlspecialchars($pkgbase_name), '', config_get('options', 'branding_shortname')); ?>

      diff --git a/web/html/rss.php b/web/html/rss.php index 2470d99..a88a6ef 100644 --- a/web/html/rss.php +++ b/web/html/rss.php @@ -26,15 +26,15 @@ $rss->xslStyleSheet = false; $rss->encoding = "UTF-8"; #All the general RSS setup -$rss->title = "AUR Newest Packages"; -$rss->description = "The latest and greatest packages in the AUR"; +$rss->title = config_get('options', 'branding_shortname') . " Newest Packages"; +$rss->description = "The latest and greatest packages in the " . config_get('options', 'branding_shortname'); $rss->link = "${protocol}://{$host}"; $rss->syndicationURL = "{$protocol}://{$host}" . get_uri('/rss/'); $image = new FeedImage(); -$image->title = "AUR"; +$image->title = config_get('options', 'branding_shortname'); $image->url = "{$protocol}://{$host}/images/AUR-logo-80.png"; $image->link = $rss->link; -$image->description = "AUR Newest Packages Feed"; +$image->description = config_get('options', 'branding_shortname') . " Newest Packages Feed"; $rss->image = $image; #Get the latest packages and add items for them -- cgit v1.2.3-54-g00ecf