diag_gmirror.php 18.8 KB
Newer Older
Ad Schellevis's avatar
Ad Schellevis committed
1 2
<?php
/*
3
	Copyright (C) 2014 Deciso B.V.
Ad Schellevis's avatar
Ad Schellevis committed
4
	Copyright (C) 2014 Jim Pingle
5
	All rights reserved.
Ad Schellevis's avatar
Ad Schellevis committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

	Redistribution and use in source and binary forms, with or without
	modification, are permitted provided that the following conditions are met:

	1. Redistributions of source code must retain the above copyright notice,
	this list of conditions and the following disclaimer.

	2. Redistributions in binary form must reproduce the above copyright
	notice, this list of conditions and the following disclaimer in the
	documentation and/or other materials provided with the distribution.

	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
	INClUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
	POSSIBILITY OF SUCH DAMAGE.
*/

require_once("guiconfig.inc");
require_once("config.inc");
require_once("gmirror.inc");

33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
/* Get only status word for a single mirror. */
function gmirror_get_status_single($mirror) {
	$status = "";
	$mirror_status = gmirror_get_status();
	var_dump($mirror_status);
	return $mirror_status[$mirror]['status'];
}

/* Test if a given consumer is a member of an existing mirror */
function is_consumer_in_mirror($consumer, $mirror) {
	if (!is_valid_consumer($consumer) || !is_valid_mirror($mirror))
		return false;

	$mirrorconsumers = gmirror_get_consumers_in_mirror($mirror);
	return in_array(basename($consumer), $mirrorconsumers);
}

/* Remove all disconnected drives from a mirror */
function gmirror_forget_disconnected($mirror) {
	if (!is_valid_mirror($mirror))
		return false;
	return mwexec("/sbin/gmirror forget " . escapeshellarg($mirror));
}

/* Insert another consumer into a mirror */
function gmirror_insert_consumer($mirror, $consumer) {
	if (!is_valid_mirror($mirror) || !is_valid_consumer($consumer))
		return false;
	return mwexec("/sbin/gmirror insert " . escapeshellarg($mirror) . " " . escapeshellarg($consumer));
}

/* Remove consumer from a mirror and clear its metadata */
function gmirror_remove_consumer($mirror, $consumer) {
	if (!is_valid_mirror($mirror) || !is_valid_consumer($consumer))
		return false;
	return mwexec("/sbin/gmirror remove " . escapeshellarg($mirror) . " " . escapeshellarg($consumer));
}

/* Wipe geom info from drive (if mirror is not running) */
function gmirror_clear_consumer($consumer) {
	if (!is_valid_consumer($consumer))
		return false;
	return mwexec("/sbin/gmirror clear " . escapeshellarg($consumer));
}

/* Force a mirror member to rebuild */
function gmirror_force_rebuild($mirror, $consumer) {
	if (!is_valid_mirror($mirror) || !is_valid_consumer($consumer))
		return false;
	return mwexec("/sbin/gmirror rebuild " . escapeshellarg($mirror) . " " . escapeshellarg($consumer));
}

/* Test if a consumer has metadata, indicating it is a member of a mirror (active or inactive) */
function gmirror_consumer_has_metadata($consumer) {
	return (count(gmirror_get_consumer_metadata($consumer)) > 0);
}

/* Find the mirror to which this consumer belongs */
function gmirror_get_consumer_metadata_mirror($consumer) {
	if (!is_valid_consumer($consumer))
		return array();
	$metadata = gmirror_get_consumer_metadata($consumer);
	foreach ($metadata as $line) {
		if (substr($line, 0, 5) == "name:") {
			list ($key, $value) = explode(":", $line, 2);
			return trim($value);
		}
	}
}


/* Deactivate consumer, removing it from service in the mirror, but leave metadata intact */
function gmirror_deactivate_consumer($mirror, $consumer) {
	if (!is_valid_mirror($mirror) || !is_valid_consumer($consumer))
		return false;
	return mwexec("/sbin/gmirror deactivate " . escapeshellarg($mirror) . " " . escapeshellarg($consumer));
}

/* Reactivate a deactivated consumer */
function gmirror_activate_consumer($mirror, $consumer) {
	if (!is_valid_mirror($mirror) || !is_valid_consumer($consumer))
		return false;
	return mwexec("/sbin/gmirror activate " . escapeshellarg($mirror) . " " . escapeshellarg($consumer));
}

/* Find the size of the given mirror */
function gmirror_get_mirror_size($mirror) {
	if (!is_valid_mirror($mirror))
		return false;
	$mirrorsize = "";
	exec("/sbin/gmirror list " . escapeshellarg($mirror) . " | /usr/bin/grep 'Mediasize:' | /usr/bin/head -n 1 | /usr/bin/awk '{print $2;}'", $mirrorsize);
	return $mirrorsize[0];
}

/* Get only the size for one specific potential consumer. */
function gmirror_get_unused_consumer_size($consumer) {
	$consumersizes = gmirror_get_all_unused_consumer_sizes_on_disk($consumer);
	foreach ($consumersizes as $csize) {
		if ($csize['name'] == $consumer)
			return $csize['size'];
	}
	return -1;
}


Ad Schellevis's avatar
Ad Schellevis committed
138 139 140 141 142 143
$pgtitle = array(gettext("Diagnostics"), gettext("GEOM Mirrors"));

include("head.inc");

?>

144
<body>
Ad Schellevis's avatar
Ad Schellevis committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199

<?php include("fbegin.inc"); ?>

<?PHP
$action_list = array(
	"forget" => gettext("Forget all formerly connected consumers"),
	"clear" => gettext("Remove metadata from disk"),
	"insert" => gettext("Insert consumer into mirror"),
	"remove" => gettext("Remove consumer from mirror"),
	"activate" => gettext("Reactivate consumer on mirror"),
	"deactivate" => gettext("Deactivate consumer from mirror"),
	"rebuild" => gettext("Force rebuild of mirror consumer"),
);

/* User tried to pass a bogus action */
if (!empty($_REQUEST['action']) && !array_key_exists($_REQUEST['action'], $action_list)) {
	header("Location: diag_gmirror.php");
	return;
}

if ($_POST) {
	if (!isset($_POST['confirm']) || ($_POST['confirm'] != gettext("Confirm"))) {
		header("Location: diag_gmirror.php");
		return;
	}
	$input_errors = "";

	if (($_POST['action'] != "clear") && !is_valid_mirror($_POST['mirror']))
		$input_errors[] = gettext("You must supply a valid mirror name.");

	if (!empty($_POST['consumer']) && !is_valid_consumer($_POST['consumer']))
		$input_errors[] = gettext("You must supply a valid consumer name");

	/* Additional action-specific validation that hasn't already been tested */
	switch ($_POST['action']) {
		case "insert":
			if (!is_consumer_unused($_POST['consumer']))
				$input_errors[] = gettext("Consumer is already in use and cannot be inserted. Remove consumer from existing mirror first.");
			if (gmirror_consumer_has_metadata($_POST['consumer']))
				$input_errors[] = gettext("Consumer has metadata from an existing mirror. Clear metadata before inserting consumer.");
			$mstat = gmirror_get_status_single($_POST['mirror']);
			if (strtoupper($mstat) != "COMPLETE")
				$input_errors[] = gettext("Mirror is not in a COMPLETE state, cannot insert consumer. Forget disconnected disks or wait for rebuild to finish.");
			break;
		case "clear":
			if (!is_consumer_unused($_POST['consumer']))
				$input_errors[] = gettext("Consumer is in use and cannot be cleared. Deactivate disk first.");
			if (!gmirror_consumer_has_metadata($_POST['consumer']))
				$input_errors[] = gettext("Consumer has no metadata to clear.");
			break;
		case "activate":
			if (is_consumer_in_mirror($_POST['consumer'], $_POST['mirror']))
				$input_errors[] = gettext("Consumer is already present on specified mirror.");
			if (!gmirror_consumer_has_metadata($_POST['consumer']))
				$input_errors[] = gettext("Consumer has no metadata and cannot be reactivated.");
200

Ad Schellevis's avatar
Ad Schellevis committed
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
			break;
		case "remove":
		case "deactivate":
		case "rebuild":
			if (!is_consumer_in_mirror($_POST['consumer'], $_POST['mirror']))
				$input_errors[] = gettext("Consumer must be present on the specified mirror.");
			break;
	}

$result = 0;
	if (empty($input_errors)) {
		switch ($_POST['action']) {
			case "forget":
				$result = gmirror_forget_disconnected($_POST['mirror']);
				break;
			case "clear":
				$result = gmirror_clear_consumer($_POST['consumer']);
				break;
			case "insert":
				$result = gmirror_insert_consumer($_POST['mirror'], $_POST['consumer']);
				break;
			case "remove":
				$result = gmirror_remove_consumer($_POST['mirror'], $_POST['consumer']);
				break;
			case "activate":
				$result = gmirror_activate_consumer($_POST['mirror'], $_POST['consumer']);
				break;
			case "deactivate":
				$result = gmirror_deactivate_consumer($_POST['mirror'], $_POST['consumer']);
				break;
			case "rebuild":
				$result = gmirror_force_rebuild($_POST['mirror'], $_POST['consumer']);
				break;
		}
		$redir = "Location: diag_gmirror.php";
		if ($result != 0) {
			$redir .= "?error=" . urlencode($result);
		}
		/* If we reload the page too fast, the gmirror information may be missing or not up-to-date. */
		sleep(3);
		header($redir);
		return;
	}
}

$mirror_status = gmirror_get_status();
$mirror_list = gmirror_get_mirrors();
$unused_disks = gmirror_get_disks();
$unused_consumers = array();
foreach ($unused_disks as $disk) {
	if (is_consumer_unused($disk))
		$unused_consumers = array_merge($unused_consumers, gmirror_get_all_unused_consumer_sizes_on_disk($disk));
}

?>


Ad Schellevis's avatar
Ad Schellevis committed
258 259 260
	<section class="page-content-main">

		<div class="container-fluid">
261 262

			<div class="row">
Ad Schellevis's avatar
Ad Schellevis committed
263
				<?
264

265
				if (isset($input_errors) && count($input_errors) > 0)
Ad Schellevis's avatar
Ad Schellevis committed
266 267 268
					print_input_errors($input_errors);
				if ($_GET["error"] && ($_GET["error"] != 0))
					print_info_box(gettext("There was an error performing the chosen mirror operation. Check the System Log for details."));
269

Ad Schellevis's avatar
Ad Schellevis committed
270
				?>
Ad Schellevis's avatar
Ad Schellevis committed
271

Ad Schellevis's avatar
Ad Schellevis committed
272
			    <section class="col-xs-12">
273 274 275 276 277 278 279

				<div class="content-box">

                        <form action="diag_gmirror.php" method="post" name="iform" id="iform">

				<div class="col-xs-12">
					<p class="vexpl">
Ad Schellevis's avatar
Ad Schellevis committed
280 281 282 283
									<br/><span class="text-danger">
										<strong><?=gettext("NOTE:")?>&nbsp;</strong>
									</span>
									<?=gettext("The options on this page are intended for use by advanced users only. This page is for managing existing mirrors, not creating new mirrors.")?>
Ad Schellevis's avatar
Ad Schellevis committed
284
									<br />
Ad Schellevis's avatar
Ad Schellevis committed
285
								</p>
286 287 288 289
				</div>

				<div class="table-responsive">
					<table class="table table-striped table-sort">
Ad Schellevis's avatar
Ad Schellevis committed
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308
								<?PHP if ($_GET["action"]): ?>
									<tr>
										<td colspan="2" valign="top" class="listtopic"><?PHP echo gettext("Confirm Action"); ?></td>
									</tr>
									<tr>
										<td width="22%" valign="top" class="vncell">&nbsp;</td>
										<td width="78%" class="vtable">
											<strong><?PHP echo gettext("Please confirm the selected action"); ?></strong>:
											<br />
											<br /><strong><?PHP echo gettext("Action"); ?>:</strong> <?PHP echo $action_list[$_GET["action"]]; ?>
											<input type="hidden" name="action" value="<?PHP echo htmlspecialchars($_GET["action"]); ?>" />
										<?PHP if (!empty($_GET["mirror"])): ?>
											<br /><strong><?PHP echo gettext("Mirror"); ?>:</strong> <?PHP echo htmlspecialchars($_GET["mirror"]); ?>
											<input type="hidden" name="mirror" value="<?PHP echo htmlspecialchars($_GET["mirror"]); ?>" />
										<?PHP endif; ?>
										<?PHP if (!empty($_GET["consumer"])): ?>
											<br /><strong><?PHP echo gettext("Consumer"); ?>:</strong> <?PHP echo htmlspecialchars($_GET["consumer"]); ?>
											<input type="hidden" name="consumer" value="<?PHP echo htmlspecialchars($_GET["consumer"]); ?>" />
										<?PHP endif; ?>
Ad Schellevis's avatar
Ad Schellevis committed
309
											<br />
Ad Schellevis's avatar
Ad Schellevis committed
310
											<br /><input type="submit" name="confirm" value="<?PHP echo gettext("Confirm"); ?>" />
Ad Schellevis's avatar
Ad Schellevis committed
311
										</td>
Ad Schellevis's avatar
Ad Schellevis committed
312 313 314 315 316
									</tr>
				<?PHP else: ?>
									<tr>
										<td colspan="2" valign="top" class="listtopic"><?PHP echo gettext("GEOM Mirror information"); ?></td>
									</tr>
317

Ad Schellevis's avatar
Ad Schellevis committed
318 319 320
									<tr>
										<td width="22%" valign="top" class="vncell"><?PHP echo gettext("Mirror Status"); ?></td>
										<td width="78%" class="vtable">
321

Ad Schellevis's avatar
Ad Schellevis committed
322 323 324 325 326 327 328 329
										<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="gmirror status">
											<tbody id="gmirror_status_table">
									<?PHP	if (count($mirror_status) > 0): ?>
											<tr>
											<td width="30%" class="vncellt"><?PHP echo gettext("Name"); ?></td>
											<td width="30%" class="vncellt"><?PHP echo gettext("Status"); ?></td>
											<td width="40%" class="vncellt"><?PHP echo gettext("Component"); ?></td>
											</tr>
330
										<?PHP	foreach ($mirror_status as $mirror => $name):
Ad Schellevis's avatar
Ad Schellevis committed
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
												$components = count($name["components"]); ?>
												<tr>
												<td width="30%" rowspan="<?PHP echo $components; ?>" class="listr">
													<?PHP echo htmlspecialchars($name['name']); ?>
													<br />Size: <?PHP echo gmirror_get_mirror_size($name['name']); ?>
												</td>
												<td width="30%" rowspan="<?PHP echo $components; ?>" class="listr">
													<?PHP echo htmlspecialchars($name['status']); ?>
												<?PHP	if (strtoupper($name['status']) == "DEGRADED"): ?>
													<br /><a href="diag_gmirror.php?action=forget&amp;mirror=<?PHP echo htmlspecialchars($name['name']); ?>">[<?PHP echo gettext("Forget Disconnected Disks"); ?>]</a>
												<?PHP	endif; ?>
												</td>
												<td width="40%" class="listr">
													<?PHP echo $name['components'][0]; ?>
													<?PHP list($cname, $cstatus) = explode(" ", $name['components'][0], 2); ?>
													<br />
												<?PHP	if ((strtoupper($name['status']) == "COMPLETE") && (count($name["components"]) > 1)): ?>
													<a href="diag_gmirror.php?action=rebuild&amp;consumer=<?PHP echo htmlspecialchars($cname); ?>&amp;mirror=<?PHP echo htmlspecialchars($name['name']); ?>">[<?PHP echo gettext("Rebuild"); ?>]</a>
													<a href="diag_gmirror.php?action=deactivate&amp;consumer=<?PHP echo htmlspecialchars($cname); ?>&amp;mirror=<?PHP echo htmlspecialchars($name['name']); ?>">[<?PHP echo gettext("Deactivate"); ?>]</a>
													<a href="diag_gmirror.php?action=remove&amp;consumer=<?PHP echo htmlspecialchars($cname); ?>&amp;mirror=<?PHP echo htmlspecialchars($name['name']); ?>">[<?PHP echo gettext("Remove"); ?>]</a>
												<?PHP	endif; ?>
												</td>
												</tr>
											<?PHP	if (count($name["components"]) > 1):
													$morecomponents = array_slice($name["components"], 1); ?>
												<?PHP	foreach ($morecomponents as $component): ?>
														<tr>
														<td width="40%" class="listr">
															<?PHP echo $component; ?>
															<?PHP list($cname, $cstatus) = explode(" ", $component, 2); ?>
															<br />
														<?PHP	if ((strtoupper($name['status']) == "COMPLETE") && (count($name["components"]) > 1)): ?>
															<a href="diag_gmirror.php?action=rebuild&amp;consumer=<?PHP echo htmlspecialchars($cname); ?>&amp;mirror=<?PHP echo htmlspecialchars($name['name']); ?>">[<?PHP echo gettext("Rebuild"); ?>]</a>
															<a href="diag_gmirror.php?action=deactivate&amp;consumer=<?PHP echo htmlspecialchars($cname); ?>&amp;mirror=<?PHP echo htmlspecialchars($name['name']); ?>">[<?PHP echo gettext("Deactivate"); ?>]</a>
															<a href="diag_gmirror.php?action=remove&amp;consumer=<?PHP echo htmlspecialchars($cname); ?>&amp;mirror=<?PHP echo htmlspecialchars($name['name']); ?>">[<?PHP echo gettext("Remove"); ?>]</a>
														<?PHP	endif; ?>
														</td>
														</tr>
												<?PHP	endforeach; ?>
											<?PHP	endif; ?>
										<?PHP	endforeach; ?>
									<?PHP	else: ?>
											<tr><td colspan="3" class="listr"><?PHP echo gettext("No Mirrors Found"); ?></td></tr>
									<?PHP	endif; ?>
											</tbody>
										</table>
										<br /><?PHP echo gettext("Some disk operations may only be performed when there are multiple consumers present in a mirror."); ?>
										</td>
									</tr>
380

Ad Schellevis's avatar
Ad Schellevis committed
381 382 383
									<tr>
										<td colspan="2" valign="top" class="listtopic"><?PHP echo gettext("Consumer information"); ?></td>
									</tr>
384

Ad Schellevis's avatar
Ad Schellevis committed
385 386 387
									<tr>
										<td width="22%" valign="top" class="vncell"><?PHP echo gettext("Available Consumers"); ?></td>
										<td width="78%" class="vtable">
388

Ad Schellevis's avatar
Ad Schellevis committed
389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438
										<table width="100%" border="0" cellspacing="0" cellpadding="0" summary="consumer list">
											<tbody id="consumer_list">
									<?PHP	if (count($unused_consumers) > 0): ?>
											<tr>
											<td width="30%" class="vncellt"><?PHP echo gettext("Name"); ?></td>
											<td width="30%" class="vncellt"><?PHP echo gettext("Size"); ?></td>
											<td width="40%" class="vncellt"><?PHP echo gettext("Add to Mirror"); ?></td>
											</tr>
										<?PHP	foreach ($unused_consumers as $consumer): ?>
												<tr>
												<td width="30%" class="listr">
													<?PHP echo htmlspecialchars($consumer['name']); ?>
												</td>
												<td width="30%" class="listr"><?PHP echo htmlspecialchars($consumer['size']); ?> <?PHP echo htmlspecialchars($consumer['humansize']); ?></td>
												<td width="40%" class="listr">
											<?PHP	$oldmirror = gmirror_get_consumer_metadata_mirror($consumer['name']);
												if ($oldmirror): ?>
													<a href="diag_gmirror.php?action=activate&amp;consumer=<?PHP echo htmlspecialchars($consumer['name']); ?>&amp;mirror=<?PHP echo htmlspecialchars($oldmirror); ?>">[<?PHP echo gettext("Reactivate on:"); ?> <?PHP echo htmlspecialchars($oldmirror); ?>]</a>
													<br /><a href="diag_gmirror.php?action=clear&amp;consumer=<?PHP echo htmlspecialchars($consumer['name']); ?>">[<?PHP echo gettext("Remove metadata from disk"); ?>]</a>
											<?PHP	else: ?>
											<?PHP	foreach ($mirror_list as $mirror):
													$mirror_size = gmirror_get_mirror_size($mirror);
													$consumer_size = gmirror_get_unused_consumer_size($consumer['name']);
												?>
												<?PHP	if ($consumer_size > $mirror_size): ?>
													<a href="diag_gmirror.php?action=insert&amp;consumer=<?PHP echo htmlspecialchars($consumer['name']); ?>&amp;mirror=<?PHP echo htmlspecialchars($mirror); ?>"><?PHP echo htmlspecialchars($mirror); ?></a>
												<?PHP	endif; ?>
											<?PHP	endforeach; ?>
											<?PHP	endif; ?>
												</td>
												</tr>
										<?PHP	endforeach; ?>
									<?PHP	else: ?>
											<tr><td colspan="3" class="listr"><?PHP echo gettext("No unused consumers found"); ?></td></tr>
									<?PHP	endif; ?>
											</tbody>
										</table>
										<br /><?PHP echo gettext("Consumers may only be added to a mirror if they are larger than the size of the mirror."); ?>
										</td>
									</tr>
									<tr>
										<td colspan="2" valign="top" class="">&nbsp;</td>
									</tr>
									<tr>
										<td colspan="2" valign="top" class=""><?PHP echo gettext("To repair a failed mirror, first perform a 'Forget' command on the mirror, followed by an 'insert' action on the new consumer."); ?></td>
									</tr>
				<?PHP endif;?>
								</table>
							</div>
                        </form>
439
				</div>
Ad Schellevis's avatar
Ad Schellevis committed
440
			    </section>
Ad Schellevis's avatar
Ad Schellevis committed
441
			</div>
Ad Schellevis's avatar
Ad Schellevis committed
442 443
		</div>
	</section>
Ad Schellevis's avatar
Ad Schellevis committed
444 445 446 447 448 449 450 451
<?php

// Clear the loading indicator
echo "<script type=\"text/javascript\">";
echo "jQuery('#loading').html('');";
echo "</script>";

?>
Ad Schellevis's avatar
Ad Schellevis committed
452
<?php require("foot.inc"); ?>