From 04c23a9c8782132ad0c0817848b695db4735824d Mon Sep 17 00:00:00 2001 From: ozhozh Date: Tue, 29 Dec 2009 15:53:11 +0000 Subject: [PATCH] Improved: all admin URLs handled by function yourls_admin_url(), which allows SSL enforcement (new const YOURLS_ADMIN_SSL). Fixes issue 190. git-svn-id: http://yourls.googlecode.com/svn/trunk@257 12232710-3e20-11de-b438-597f59cd7555 --- admin/index.php | 4 ++-- admin/index_ajax.php | 1 + admin/install.php | 4 ++-- admin/tools.php | 6 ++--- admin/upgrade.php | 6 ++--- includes/functions-html.php | 6 ++--- includes/functions.php | 47 ++++++++++++++++++++++++++++++------- includes/load-yourls.php | 13 ++++++++++ yourls-infos.php | 2 +- 9 files changed, 67 insertions(+), 22 deletions(-) diff --git a/admin/index.php b/admin/index.php index 009a114..64681eb 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,5 +1,5 @@  

'; } else { if( count($error) == 0 ) - echo '

 

» YOURS Administration Page

'; + echo '

 

» YOURS Administration Page

'; } ?> diff --git a/admin/tools.php b/admin/tools.php index 1f9d610..5370fab 100644 --- a/admin/tools.php +++ b/admin/tools.php @@ -1,5 +1,5 @@
  • Simple bookmarklet

    - Click and drag the link to your toolbar: Shorten + Click and drag the link to your toolbar: Shorten
  • Advanced bookmarklet (custom keyword)

    - Click and drag the link to your toolbar: Custom shorten + Click and drag the link to your toolbar: Custom shorten
  • diff --git a/admin/upgrade.php b/admin/upgrade.php index 4fc28d1..984c3a5 100644 --- a/admin/upgrade.php +++ b/admin/upgrade.php @@ -1,5 +1,5 @@ Upgrade not required. Go back to play!

    '; + echo '

    Upgrade not required. Go back to play!

    '; } else { @@ -73,7 +73,7 @@ case 3: $upgrade = yourls_upgrade( 3, $oldver, $newver, $oldsql, $newsql ); - $admin = YOURLS_SITE.'/admin/index.php'; + $admin = yourls_admin_url('index.php'); echo "

    Your installation is now up to date !

    Go back to the admin interface

    diff --git a/includes/functions-html.php b/includes/functions-html.php index 63b89a9..37beaae 100644 --- a/includes/functions-html.php +++ b/includes/functions-html.php @@ -4,7 +4,7 @@ function yourls_html_logo() { ?>

    - YOURLS: Your Own URL Shortener
    +
    YOURLS: Your Own URL Shortener
    YOURLS

  • Hello (Logout)
  • -
  • Go to the Admin Interface
  • -
  • Check the Tools
  • +
  • Go to the Admin Interface
  • +
  • Check the Tools
  • Read the Help
  • - YOURLS: Your Own URL Shortener
    +
    YOURLS: Your Own URL Shortener
    YOURLS

    -- 2.45.0