|
@@ 3935-3959 (lines=25) @@
|
| 3932 |
|
echo ' Successful!'; |
| 3933 |
|
echo '<br>' . $item; |
| 3934 |
|
} |
| 3935 |
|
if (!empty($upcontext['changes_complete'])) |
| 3936 |
|
{ |
| 3937 |
|
if ($is_debug) |
| 3938 |
|
{ |
| 3939 |
|
$active = time() - $upcontext['started']; |
| 3940 |
|
$hours = floor($active / 3600); |
| 3941 |
|
$minutes = intval(($active / 60) % 60); |
| 3942 |
|
$seconds = intval($active % 60); |
| 3943 |
|
|
| 3944 |
|
$totalTime = ''; |
| 3945 |
|
if ($hours > 0) |
| 3946 |
|
$totalTime .= $hours . ' hour' . ($hours > 1 ? 's' : '') . ' '; |
| 3947 |
|
if ($minutes > 0) |
| 3948 |
|
$totalTime .= $minutes . ' minute' . ($minutes > 1 ? 's' : '') . ' '; |
| 3949 |
|
if ($seconds > 0) |
| 3950 |
|
$totalTime .= $seconds . ' second' . ($seconds > 1 ? 's' : '') . ' '; |
| 3951 |
|
} |
| 3952 |
|
|
| 3953 |
|
if ($is_debug && !empty($totalTime)) |
| 3954 |
|
echo ' Successful! Completed in ', $totalTime, '<br><br>'; |
| 3955 |
|
else |
| 3956 |
|
echo ' Successful!<br><br>'; |
| 3957 |
|
|
| 3958 |
|
echo '<span id="commess" style="font-weight: bold;">1 Database Updates Complete! Click Continue to Proceed.</span><br>'; |
| 3959 |
|
} |
| 3960 |
|
} |
| 3961 |
|
else |
| 3962 |
|
{ |
|
@@ 3972-4000 (lines=29) @@
|
| 3969 |
|
<h3 id="info2"><strong>Executing:</strong> "<span id="cur_item_name">', $upcontext['current_item_name'], '</span>" (<span id="item_num">', $upcontext['current_item_num'], '</span> of <span id="total_items"><span id="item_count">', $upcontext['total_items'], '</span>', $upcontext['file_count'] > 1 ? ' - of this script' : '', ')</span></h3> |
| 3970 |
|
<br><span id="commess" style="font-weight: bold; display: ', !empty($upcontext['changes_complete']) || $upcontext['current_debug_item_num'] == $upcontext['debug_items'] ? 'inline' : 'none', ';">Database Updates Complete! Click Continue to Proceed.</span>'; |
| 3971 |
|
|
| 3972 |
|
if ($is_debug) |
| 3973 |
|
{ |
| 3974 |
|
if ($upcontext['current_debug_item_num'] == $upcontext['debug_items']) |
| 3975 |
|
{ |
| 3976 |
|
$active = time() - $upcontext['started']; |
| 3977 |
|
$hours = floor($active / 3600); |
| 3978 |
|
$minutes = intval(($active / 60) % 60); |
| 3979 |
|
$seconds = intval($active % 60); |
| 3980 |
|
|
| 3981 |
|
$totalTime = ''; |
| 3982 |
|
if ($hours > 0) |
| 3983 |
|
$totalTime .= $hours . ' hour' . ($hours > 1 ? 's' : '') . ' '; |
| 3984 |
|
if ($minutes > 0) |
| 3985 |
|
$totalTime .= $minutes . ' minute' . ($minutes > 1 ? 's' : '') . ' '; |
| 3986 |
|
if ($seconds > 0) |
| 3987 |
|
$totalTime .= $seconds . ' second' . ($seconds > 1 ? 's' : '') . ' '; |
| 3988 |
|
} |
| 3989 |
|
|
| 3990 |
|
echo ' |
| 3991 |
|
<br><span id="upgradeCompleted">'; |
| 3992 |
|
|
| 3993 |
|
if (!empty($totalTime)) |
| 3994 |
|
echo 'Completed in ', $totalTime, '<br>'; |
| 3995 |
|
|
| 3996 |
|
echo '</span> |
| 3997 |
|
<div id="debug_section" style="height: 117px; overflow: auto;"> |
| 3998 |
|
<span id="debuginfo"></span> |
| 3999 |
|
</div>'; |
| 4000 |
|
} |
| 4001 |
|
} |
| 4002 |
|
|
| 4003 |
|
// Place for the XML error message. |