Updated to reflect live site

Signed-off-by: Sophia Atkinson <sophialul@protonmail.com>
This commit is contained in:
2023-01-21 05:10:16 -08:00
parent 3cf824cc5c
commit af6f76fbcb
163 changed files with 1471 additions and 12177 deletions

View File

@ -2,8 +2,6 @@
define( 'YOURLS_ADMIN', true );
define( 'YOURLS_UPGRADING', true );
require_once( dirname( __DIR__ ).'/includes/load-yourls.php' );
require_once( YOURLS_INC.'/functions-upgrade.php' );
require_once( YOURLS_INC.'/functions-install.php' );
yourls_maybe_require_auth();
yourls_html_head( 'upgrade', yourls__( 'Upgrade YOURLS' ) );
@ -29,7 +27,7 @@ if ( !yourls_upgrade_is_needed() ) {
// From what are we upgrading?
if ( isset( $_GET['oldver'] ) && isset( $_GET['oldsql'] ) ) {
$oldver = yourls_sanitize_version($_GET['oldver']);
$oldsql = (intval)($_GET['oldsql']);
$oldsql = intval($_GET['oldsql']);
} else {
list( $oldver, $oldsql ) = yourls_get_current_version_from_sql();
}