Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

show_upgrade_in_progress()

Description

show_upgrade_in_progress message

Parameters

ColumnTypeDefaultDescription
$dbstructonly bool false - Indicates whether this is a full upgrade with migration scripts or just a check_db_structs()

Return

void

Location

include/render_functions.php lines 5277 to 5306

Definition

 
function show_upgrade_in_progress($dbstructonly=false)
    {
    global 
$lang;
    
$title = (isset($lang["upgrade_in_progress"])?$lang["upgrade_in_progress"]:"Upgrade in progress");
    
$message="This system is currently being upgraded by another process. Delete filestore/tmp/process_locks/* if this process has stalled." PHP_EOL;
    if(!
$dbstructonly)
        {
        
$upgrade_progress_overall=get_sysvar(SYSVAR_UPGRADE_PROGRESS_OVERALL);
        
$upgrade_progress_script=get_sysvar(SYSVAR_UPGRADE_PROGRESS_SCRIPT);
        
$message.=($upgrade_progress_overall===false '' $upgrade_progress_overall PHP_EOL);
        
$message.=($upgrade_progress_script===false '' 'Script status: ' $upgrade_progress_script PHP_EOL);
        }
    if(
PHP_SAPI == 'cli')
        {
        echo 
$message;
        }
    else
        {
        echo 
"<h1>{$title}</h1>";
        echo 
nl2br($message);
        
?>
        <script>
        setTimeout(function()
            {
            window.location.reload(true);
            }, 5000);
        </script>
        
        
}
    }

This article was last updated 4th December 2024 08:35 Europe/London time based on the source file dated 3rd December 2024 11:55 Europe/London time.