YOURLS: Your Own URL Shortener
YOURLS

Your are logged in as: . Logout

Upgrade YOURLS

Upgrade not required. Go back to play!

'; } else { /* step 1: create new tables and populate them, update old tables structure, step 2: convert each row of outdated tables if needed step 3: if applicable finish updating outdated tables (indexes etc) step 4: update version & db_version in options, this is all done! */ // From what are we upgrading? if ( isset( $_GET['oldver'] ) && isset( $_GET['oldsql'] ) ) { $oldver = intval( $_GET['oldver'] ); $oldsql = intval( $_GET['oldsql'] ); } else { list( $oldver, $oldsql ) = yourls_get_current_version_from_sql(); } // To what are we upgrading ? $newver = YOURLS_VERSION; $newsql = YOURLS_DB_VERSION; // Let's go $step = ( isset( $_GET['step'] ) ? intval( $_GET['step'] ) : 0 ); switch( $step ) { default: case 0: echo "

Your current installation needs to be upgraded.

Please, pretty please, it is recommended that you backup your database
(you should do this regularly anyway)

Nothing awful should happen, but this doesn't mean it won't happen, right? ;)

Once you are ready, press Upgrade!

"; break; case 1: case 2: case 3: yourls_upgrade( $step, $oldver, $newver, $oldsql, $newsql ); break; case 4: yourls_upgrade( 4, $oldver, $newver, $oldsql, $newsql ); $admin = YOURLS_SITE.'/admin/index.php'; echo "

Your installation is now up to date :)

Go back to the admin interface

"; } } ?>