|
@@ 3986-4010 (lines=25) @@
|
| 3983 |
|
echo ' Successful!'; |
| 3984 |
|
echo '<br>' . $item; |
| 3985 |
|
} |
| 3986 |
|
if (!empty($upcontext['changes_complete'])) |
| 3987 |
|
{ |
| 3988 |
|
if ($is_debug) |
| 3989 |
|
{ |
| 3990 |
|
$active = time() - $upcontext['started']; |
| 3991 |
|
$hours = floor($active / 3600); |
| 3992 |
|
$minutes = intval(($active / 60) % 60); |
| 3993 |
|
$seconds = intval($active % 60); |
| 3994 |
|
|
| 3995 |
|
$totalTime = ''; |
| 3996 |
|
if ($hours > 0) |
| 3997 |
|
$totalTime .= $hours . ' hour' . ($hours > 1 ? 's' : '') . ' '; |
| 3998 |
|
if ($minutes > 0) |
| 3999 |
|
$totalTime .= $minutes . ' minute' . ($minutes > 1 ? 's' : '') . ' '; |
| 4000 |
|
if ($seconds > 0) |
| 4001 |
|
$totalTime .= $seconds . ' second' . ($seconds > 1 ? 's' : '') . ' '; |
| 4002 |
|
} |
| 4003 |
|
|
| 4004 |
|
if ($is_debug && !empty($totalTime)) |
| 4005 |
|
echo ' Successful! Completed in ', $totalTime, '<br><br>'; |
| 4006 |
|
else |
| 4007 |
|
echo ' Successful!<br><br>'; |
| 4008 |
|
|
| 4009 |
|
echo '<span id="commess" style="font-weight: bold;">1 Database Updates Complete! Click Continue to Proceed.</span><br>'; |
| 4010 |
|
} |
| 4011 |
|
} |
| 4012 |
|
else |
| 4013 |
|
{ |
|
@@ 4023-4051 (lines=29) @@
|
| 4020 |
|
<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> |
| 4021 |
|
<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>'; |
| 4022 |
|
|
| 4023 |
|
if ($is_debug) |
| 4024 |
|
{ |
| 4025 |
|
if ($upcontext['current_debug_item_num'] == $upcontext['debug_items']) |
| 4026 |
|
{ |
| 4027 |
|
$active = time() - $upcontext['started']; |
| 4028 |
|
$hours = floor($active / 3600); |
| 4029 |
|
$minutes = intval(($active / 60) % 60); |
| 4030 |
|
$seconds = intval($active % 60); |
| 4031 |
|
|
| 4032 |
|
$totalTime = ''; |
| 4033 |
|
if ($hours > 0) |
| 4034 |
|
$totalTime .= $hours . ' hour' . ($hours > 1 ? 's' : '') . ' '; |
| 4035 |
|
if ($minutes > 0) |
| 4036 |
|
$totalTime .= $minutes . ' minute' . ($minutes > 1 ? 's' : '') . ' '; |
| 4037 |
|
if ($seconds > 0) |
| 4038 |
|
$totalTime .= $seconds . ' second' . ($seconds > 1 ? 's' : '') . ' '; |
| 4039 |
|
} |
| 4040 |
|
|
| 4041 |
|
echo ' |
| 4042 |
|
<br><span id="upgradeCompleted">'; |
| 4043 |
|
|
| 4044 |
|
if (!empty($totalTime)) |
| 4045 |
|
echo 'Completed in ', $totalTime, '<br>'; |
| 4046 |
|
|
| 4047 |
|
echo '</span> |
| 4048 |
|
<div id="debug_section" style="height: 59px; overflow: auto;"> |
| 4049 |
|
<span id="debuginfo"></span> |
| 4050 |
|
</div>'; |
| 4051 |
|
} |
| 4052 |
|
} |
| 4053 |
|
|
| 4054 |
|
// Place for the XML error message. |