Heray-Was-Here
Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u81562609 ( 7464296)
PHP Version : 7.2.34
Disable Function : NONE
Directory :  /homepages/oneclick/Yourls/1.7/6/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /homepages/oneclick/Yourls/1.7/6/scripts/upgrade.php
<?php

renameSQL($db_main_prefix . 'yourls_', $db_main_prefix);

$core_check = "O:8:\"stdClass\":4:{s:15:\"failed_attempts\";i:0;s:12:\"last_attempt\";i:1404806352;s:11:\"last_result\";O:8:\"stdClass\":2:{s:6:\"latest\";s:3:\"1.7\";s:6:\"zipurl\";s:54:\"https://api.github.com/repos/YOURLS/YOURLS/zipball/1.7\";}s:15:\"version_checked\";s:3:\"1.7\";}";

querySQL("UPDATE `$db_main_prefix" . "options` SET `option_value`='1.7' WHERE `option_id`='1';");
querySQL("INSERT INTO `$db_main_prefix" . "options` (`option_name`, `option_value`) VALUES ('core_version_checks', '$core_check');");

unlink(ROOT_DIR . '/robots.txt');
copy(ROOT_DIR . '/sample-robots.txt', ROOT_DIR . '/robots.txt');

$config = file_get_contents(dirname(__FILE__) . '/config.php', FILE_TEXT);
if (false === $config) {
    echo "[ERROR]: Configuration file $config can't be read.";
    exit(1);
}

$config = replace('#DB_MAIN_LOGIN#', $db_main_login, $config);
$config = replace('#DB_MAIN_PASSWORD#', $db_main_password, $config);
$config = replace('#DB_MAIN_NAME#', $db_main_name, $config);
$config = replace('#DB_MAIN_HOST#', CONFIG_HOST, $config);
$config = replace('#DB_MAIN_PREFIX#', $db_main_prefix, $config);
$config = replace('#BASE_URL_HOST#', $base_url_host, $config);
$config = replace('#BASE_URL_PATH#', substr($base_url_path, 0, -1), $config);
$config = replace('#LOCALE#', '', $config);
$config = replace('#SALT#', md5(time()), $config);
$config = replace('#ADMIN_USERNAME#', $settings_admin_name, $config);
$config = replace('#ADMIN_PASSWORD#', $settings_admin_password, $config);

$config = file_put_contents(ROOT_DIR . '/user/config.php', $config, LOCK_EX);
if (false === $config) {
    echo "[ERROR]: Can't write configuration file.\n";
    exit(1);
}

$htaccess = file_get_contents(dirname(__FILE__) . '/.htaccess', FILE_TEXT);
if (false === $htaccess) {
    echo "[ERROR]: .htaccess file can't be read.";
    exit(1);
}
$htaccess = replace('#BASE_URL_PATH#', $base_url_path, $htaccess);
$htaccess = file_put_contents(ROOT_DIR . '/.htaccess', $htaccess, LOCK_EX);
if (false === $htaccess) {
    echo "[ERROR]: Can't write .htaccess file.\n";
    exit(1);
}

Hry