segue-1.x /versions.inc.php

Language PHP Lines 535
MD5 Hash 29735cd1f0224596b3c06b8d0b4fa701 Estimated Cost $9,620 (why?)
Repository https://github.com/adamfranco/segue-1.x.git View Raw File View Project SPDX
  1
  2
  3
  4
  5
  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
 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
138
139
140
141
142
143
144
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
200
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
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
380
381
382
383
384
385
386
387
388
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
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
<? /* $Id$ */

if ($_REQUEST['action'] == 'viewsite') 
	$action = 'viewsite';
else
	$action = 'site';

$siteObj =& new site($_REQUEST[site]);
$sectionObj =& new section($_REQUEST[site],$_REQUEST[section], $siteObj);
$pageObj =& new page($_REQUEST[site],$_REQUEST[section],$_REQUEST[page], $sectionObj);
$storyObj =& new story($_REQUEST[site],$_REQUEST[section],$_REQUEST[page],$_REQUEST[story], $pageObj);
$getinfo = "site=".$siteObj->name."&amp;section=".$sectionObj->id."&amp;page=".$pageObj->id."&amp;story=".$storyObj->id."&amp;detail=".$storyObj->id;
$getinfo2 = "site=".$siteObj->name."&amp;section=".$sectionObj->id."&amp;page=".$pageObj->id;
$editsettingsurl = "&amp;site=".$siteObj->name."&amp;section=".$sectionObj->id."&amp;page=".$pageObj->id."&amp;action=edit_story&amp;edit_story=".$storyObj->id."&amp;detail=".$storyObj->id."&amp;step=4&amp;goback=discuss&amp;link=1";

$storyObj->fetchFromDB();
$storyObj->owningSiteObj->fetchFromDB();
//$site_owner=slot::getOwner($story->owningSiteObj->name);
$site_owner=$storyObj->owningSiteObj->owner;
//print_r($story->owningSiteObj);
//print $site_owner;

// get the correct shorttext
if ($storyObj->getField("type") == 'story') {
	$smalltext = convertTagsToInteralLinks($siteObj->name, $storyObj->getField("shorttext"));
	$fulltext = convertTagsToInteralLinks($siteObj->name, $storyObj->getField("longertext"));
	$smalltext = stripslashes($smalltext);
	$fulltext = stripslashes($fulltext);
	if ($storyObj->getField("texttype") == 'text') $fulltext = htmlbr($fulltext);	
	if ($storyObj->getField("texttype") == 'text') $smalltext = htmlbr($smalltext);
}

if ($storyObj->getField("type") == 'image') {
	$filename = urldecode(db_get_value("media","media_tag","media_id='".addslashes($storyObj->getField("longertext"))."'"));
	$dir = db_get_value("media INNER JOIN slot ON media.FK_site = slot.FK_site","slot_name","media_id='".addslashes($storyObj->getField("longertext"))."'");
	$imagepath = "$uploadurl/$dir/$filename";
	$fulltext = "\n<div style='text-align: center'><br /><img src='$imagepath' border='0' /></div>";
/* 	if ($story->getField("title")) $fulltext .= "<tr><td align='center'><b>".spchars($story->getField("title"))."</b></td></tr>"; */
	if ($storyObj->getField("shorttext")) {
		$captiontext = $st = convertTagsToInteralLinks($site, $storyObj->getField("shorttext"));
		$captiontext = "<br />".stripslashes($captiontext);
	}
	$fulltext .= "";
}
if ($storyObj->getField("type") == 'file') {
	$fulltext = "<br />";
	$fulltext .= makedownloadbar($storyObj);
}

/******************************************************************************
 * print out shory and discussion (if any)
 ******************************************************************************/

printc("\n<table width='100%' id='maintable' cellspacing='1'>");

printc($pagePagination);

/******************************************************************************
 * print out title and options
 ******************************************************************************/
 
printc("<tr><td align='left' class='title'>");
printc("<a href='index.php?action=".$action."&amp;".$getinfo2."'>".spchars($pageObj->getField('title'))."</a>");

if ($storyObj->getField('title')) {
	printc(" > ".spchars($storyObj->getField('title')));
}

/******************************************************************************
 * if request is to revert, then create new version based on revert version number
 ******************************************************************************/
if ($_REQUEST['revert']) {

	$version = get_versions($storyObj->id, $_REQUEST['revert']);
	$version_num = $version[0]['version_order'];

	$version_short = stripslashes(urldecode($version[0]['version_text_short']));
	$version_long = stripslashes(urldecode($version[0]['version_text_long']));
	$story_id = $_REQUEST['story'];
	$version_comments = "reverted to revision ".$_REQUEST['revert'];
// 	printpre($version_short);
// 	exit;
	save_version ($version_short, $version_long, $story_id, $version_comments);
}


if ($_REQUEST['oldversion'] && $_REQUEST['newversion']) {
	if (!isset($_SESSION['oldversion']) || !is_array($_SESSION['oldversion']))
		$_SESSION['oldversion'] = array();
	if (!isset($_SESSION['newversion']) || !is_array($_SESSION['newversion']))
		$_SESSION['newversion'] = array();
		
	$_SESSION['oldversion'][$_REQUEST['story']] = $_REQUEST['oldversion'];
	$_SESSION['newversion'][$_REQUEST['story']] = $_REQUEST['newversion'];
		
	printc(" > <a href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;versioning=".$_REQUEST['story']."'>All Versions</a>");
	printc(" > Selected Versions");
	
} else if ($_REQUEST['versioning']) {
	printc(" > All Versions");
	

/******************************************************************************
 * if particular version then get version details
 ******************************************************************************/
	
} else if ($_REQUEST['version']) {
	$version = get_versions($storyObj->id, $_REQUEST['version']);
	$version_id = $version[0]['version_id'];
	$version_num = $version[0]['version_order'];
	$version_date = $version[0]['version_created_tstamp'];
	$version_author = $version[0]['FK_createdby'];
	
	//convert internal links
	$smalltext = convertTagsToInteralLinks($siteObj->name, stripslashes(urldecode($version[0]['version_text_short'])));
	$fulltext = convertTagsToInteralLinks($siteObj->name, stripslashes(urldecode($version[0]['version_text_long'])));
	$smalltext = urldecode($smalltext);
	$fulltext = urldecode($fulltext);
		
	printc(" > <a href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;versioning=".$_REQUEST['story']."'>All Versions</a>");
	printc(" > Selected Versions");
	
	printc("<tr><td>");
	printc("<br /><table width='100%' cellspacing='0'><tr><td class='list'>");
	printc("<strong>Revision ".$version_num."</strong> (".$version_date." - ".$version_author.")");
	printc("</td><td align='right'>");
	
	// revert to this version link (top)
	if ($storyObj->hasPermission("edit")) {
		printc("<a class='btnlink2' href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;revert=".$version_num."&amp;versioning=".$_REQUEST['story']."&amp;comingFrom=viewsite'>Revert to this Version</a>\n");		
	}
	
	printc("</td></td></table><br />");
	printc("</td></tr>\n");
	printc("<tr><td width='100%' valign='top' style='border: 1px dotted #CCCCCC;'>$smalltext</td></tr>\n");
	printc("<tr><td width='100%' valign='top' style='border: 1px dotted #CCCCCC;'>$fulltext</td></tr>\n");

	
} else {
	printc(" > in depth");
}
printc("</td></tr>\n");

// printpre($_REQUEST);
/******************************************************************************
 * if selected versions request, then print out selected versions to compare
 ******************************************************************************/
	
if ($_REQUEST['oldversion'] && $_REQUEST['newversion']) {
	define('USE_ASSERTS', false);
	require_once('DiffEngine.php');
	$formatter =& new SegueTableDiffFormatter;

	$version01 = get_versions($_REQUEST['story'], $_REQUEST['oldversion']);
	$version01_num = $version01[0]['version_order'];
	$version02 = get_versions($_REQUEST['story'], $_REQUEST['newversion']);
	$version02_num = $version02[0]['version_order'];
	$smalltext01 = convertTagsToInteralLinks($siteObj->name, stripslashes(urldecode($version01[0]['version_text_short'])));
	$smalltext02 = convertTagsToInteralLinks($siteObj->name, stripslashes(urldecode($version02[0]['version_text_short'])));	
	$fulltext01 = convertTagsToInteralLinks($siteObj->name, stripslashes(urldecode($version01[0]['version_text_long'])));
	$fulltext02 = convertTagsToInteralLinks($siteObj->name, stripslashes(urldecode($version02[0]['version_text_long'])));
	
//	printpre($version01);
	//printpre($version02);	
	printc("<tr><td style='padding-bottom: 15px; font-size: 12px'>");
	
	
	ob_start();
	print "\n<tr>";
	print "\n\t<th>";
	print "<a href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;version=".$version01_num."'>Revision ".$version01_num."</a> ";
	print "<span class='timestamp'>";
	print "(".$version01[0]['version_created_tstamp']." - ".$version01[0]['FK_createdby'].")\n";
	print "</span>";
	print "</th>";
	print "\n\t<th>";
	print "<a href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;version=".$version02_num."'>Revision ".$version02_num."</a> ";
	print "<span class='timestamp'>";
	print "(".$version02[0]['version_created_tstamp']." - ".$version02[0]['FK_createdby'].")\n";
	print "</span>";
	print "</th>";
	print "\n</tr>\n";
	$revisionHeadings = ob_get_clean();
	
	
	/*********************************************************
	 * Shorttext
	 *********************************************************/
	if (trim($fulltext01) || trim($fulltext02)) {
// 		printc("\n\n<hr/ style='margin-top: 20px;'>");
		printc("\n<h2>Short Content</h2>");
	}
	printc("\n\n<table cellpadding='3' class='version_table'>");
	printc("\n<thead>");
	printc($revisionHeadings);
	printc("\n</thead>");
	
	
	printc("\n<tbody>");
	printc("<tr>\n");
	printc("<td>".$smalltext01."</td>\n");
	printc("<td>".$smalltext02."</td>\n");
	printc("</tr>\n");
	printc("\n</tbody>");
	printc("\n</table>");
	
	// Diffs
	printc("\n<table cellspacing='0' class='diff_table'>");
	printc("\n<thead>");
	printc("\n\t<tr><th colspan='4'>Changes</th></tr>\n");
	printc("\n</thead>");
	
	printc("\n<tbody>");
	
	$diff = & new Diff (explode("\n", $smalltext01), explode("\n", $smalltext02));	
	printc($formatter->format($diff));
	
	printc("\n</tbody>");
	printc("\n</table>");
	
	
	/*********************************************************
	 * Fulltext
	 *********************************************************/
	 
	if (trim($fulltext01) || trim($fulltext02)) {
		printc("\n\n<hr/ style='margin-top: 20px;'>");
		printc("\n<h2>Extended Content</h2>");
		printc("\n\n<table cellpadding='3' class='version_table'>");
		printc("\n<thead>");
		printc($revisionHeadings);
		printc("\n</thead>");
		
		printc("\n<tbody>");
		printc("\n<tr>");
		printc("\n\t<td class='version'>".$fulltext01."</td>");
		printc("\n<td class='version'>".$fulltext02."</td>");
		printc("\n</tr>");
		printc("\n</tbody>");
		printc("\n</table>");
		
		printc("\n<table cellspacing='0' class='diff_table'>");
		printc("\n<thead>");
		printc("<tr><th colspan='4' style='border-bottom: 1px dotted #CCC;'>Changes</th></tr>\n");
		printc("\n</thead>");
		
		printc("\n<tbody>");
		
		$diff = & new Diff (explode("\n", $fulltext01), explode("\n", $fulltext02));
		printc($formatter->format($diff));
		
		printc("\n</tbody>");
		printc("\n</table>");
	}
	
	printc("</td>");
	printc("</tr>\n");


/******************************************************************************
 * if versioning then then show list of versions with date, version author
 ******************************************************************************/

} else if ($_REQUEST['versioning']) {
	printc("\n<tr>\n\t<td>\n\t\t");
	$u = "$PHP_SELF?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;versioning=1";
	printc("<form action='$u' method='post'>\n");
	
	ob_start();
	
	print<<<END
	
	<script type='text/javascript'>
	// <![CDATA[
	
	if (!Array.prototype.push) {

		/**
		 * IE 5.01 does not implement the push method, so it needs to be
		 * added
		 * 
		 * @param mixed element
		 * @return int
		 * @access public
		 * @since 1/31/07
		 */
		Array.prototype.push = function ( element ) {
			var key = this.length;
			this[key] = element;
			return key;
		}
		
	}
	
	/**
	 * Update the radio buttons checked if needed to preven un-allowed situations:
	 * 		- comparing a version to itself
	 *		- mixing up new and old versions
	 * 
	 * @param object RadioButton button
	 * @return void
	 * @access public
	 * @since 2/2/07
	 */
	function updateVersionSelection (button) {
		var oldButtons = new Array();
		oldButtons.push(null);
		var newButtons = new Array();
		
		for (var i = 0; i < button.form.elements.length; i++) {
			// Sort the elements into old and new arrays and record
			// what row in each is selected
			var element = button.form.elements[i];
			if (element.name == 'oldversion') {
				oldButtons.push(element);
				if (element.checked)
					var oldRow = oldButtons.length - 1;
			} else if (element.name == 'newversion') {
				newButtons.push(element);
				if (element.checked)
					var newRow = newButtons.length - 1;
			}
		}
						
		// If a new version was selected make sure that the old version is older
		if (button.name == 'newversion') {
			if (oldRow <= newRow) {
				oldButtons[oldRow].checked = '';
				oldButtons[newRow + 1].checked = 'checked';
			}
			
			for (var i = 1; i < oldButtons.length; i++) {
				if (i <= newRow)
					oldButtons[i].style.visibility = 'hidden';
				else
					oldButtons[i].style.visibility = 'visible';
			}
		} 
		// If an old version was selected make sure that the new version is newer
		else {
			if (newRow >= oldRow) {
				newButtons[newRow].checked = '';
				newButtons[oldRow - 1].checked = 'checked';
			}
			
			for (var i = 1; i < newButtons.length; i++) {
				if (i >= oldRow)
					newButtons[i].style.visibility = 'hidden';
				else
					newButtons[i].style.visibility = 'visible';
			}
		}
	}
	
	// ]]>
	</script>
	
	
END;
	printc(ob_get_clean());
	
	// compare selected versions button (top)
	printc("<table cellspacing='3' width='100%'>\n\t<tr>");
	if ($action == "viewsite") {
		printc("\n\t<td align='left'><a class='btnlink2' href='index.php?$sid&amp;action=edit_story&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;edit_story=".$_REQUEST['story']."&amp;comingFrom=viewsite'>Edit current version</a></td>\n");
	}
	printc("\n\t<td align='right'><button type='submit' class='button' value='compare' onclick=\"window.location='$u'\">Compare selected revisions &gt;&gt;</button></td>");
	printc("\n\t</tr>\n</table>");

	printc("\n<table cellspacing='3' width='100%'>\n");
	$versions = get_versions($storyObj->id);
	//printpre($versions);	
	
	printc("<thead><tr><th colspan='2'>Select</th><th>Revision</th><th>Revision Date</th><th>Revision Author</th><th>Revision Comment</th></tr></thead>\n");
	
	printc("\n<tbody style='vertical-align: top;'>\n");
		
	$shadeStyle = ' versionborders ';
	$shade = 0;
	$i = 0;
	$hideOld = true;
	$hideNew = false;
	$currentversion = true;
	foreach ($versions as $version) {
		$version_id = $version['version_id'];
		$version_num = $version['version_order'];
		
		printc("<tr>\n");
		printc("<td align='right' class='");
		printc($shadeStyle);
		printc("'>");
		
		if ($i > 0) {
			printc("<input type='radio' name='oldversion' value='".$version_num."' ");
			
			if (isset($_SESSION['oldversion'][$_REQUEST['story']])) {
				if ($_SESSION['oldversion'][$_REQUEST['story']] == $version_num) {
					printc(" checked='checked'");
					$hideNew = true;
				}
			} else {
				if ($i == 1) {
					printc(" checked='checked'");
					$hideNew = true;
				}
			}
			
			if ($hideOld)
				printc(" style='visibility: hidden;'");
			
			printc(" onclick=\"updateVersionSelection(this);\"");
			
			printc(" />");
		}
		
		printc("</td>\n<td align='left' class='");
		printc($shadeStyle);
		printc("'>");
		
		if ($i < count($versions) - 1) {
			printc("<input type='radio' name='newversion' value='".$version_num."' ");
			
			if (isset($_SESSION['newversion'][$_REQUEST['story']])) {
				if ($_SESSION['newversion'][$_REQUEST['story']] == $version_num) {
					printc(" checked='checked'");
					$hideOld = false;
				}
			} else {
				if (!$i) {
					printc(" checked='checked'");
					$hideOld = false;
				}
			}
			
			if ($hideNew)
				printc(" style='visibility: hidden;'");
			
			printc(" onclick=\"updateVersionSelection(this);\"");
			printc(" />");
		}

		printc("</td>");
		if ($currentversion) {
			printc("<td  class='");
		printc($shadeStyle);
		printc("'>");
		printc("<a href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;detail=".$_REQUEST['story']."'>Revision ".$version_num."</a> (current)</td>");
		} else {
			printc("<td class='");
		printc($shadeStyle);
		printc("'>");
		printc("<a href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;version=".$version_num."'>Revision ".$version_num."</a></td>");
		}
		
		printc("<td class='");
		printc($shadeStyle);
		printc("'  style='white-space: nowrap;'>");
		printc($version['version_created_tstamp']."</td>");
		
		printc("<td class='");
		printc($shadeStyle);
		printc("' style='white-space: nowrap;'>");
		printc($version['FK_createdby']."</td>\n");
		
		printc("<td class='");
		printc($shadeStyle);
		printc("' style='font-size: smaller;'>");
		printc($version['version_comments']."</td>\n");
		
		printc("</tr>\n");
		
		$shade = 1-$shade;
		$currentversion = false;
		$i++;
	}
	
	printc("\n</tbody>\n");

	printc("</table>\n");
	// compare selected versions button (bottom)
	printc("\n<table cellspacing='3' width='100%'>\n\t<tr>");
	printc("\n\t<td align='right'><button type='submit' class='button' value='compare' onclick=\"window.location='$u'\">Compare selected revisions &gt;&gt;</button></td>");

//	printc("<td align='right'><button type='submit' class='button' value='compare' onclick=\"window.location='$u'\">Edit this version</button></td>");
	printc("\n\t</tr>\n</table>");

// 	printc("<br /><button type='submit' class='button' value='compare'>Compare selected revisions</button><br /><br /> ");
	printc("\n\t\t</form>");
	printc("\n\t</td>\n</tr>");

}
		
// Revert to this version link (bottom location)
if ($_REQUEST['version']  && $storyObj->hasPermission("edit")) {
	printc("\n\t<tr><td align='center'><br />");
	printc("<a class='btnlink2' href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;revert=".$version_num."&amp;versioning=".$_REQUEST['story']."&amp;comingFrom=viewsite'>Revert to this Version</a>\n");		
	printc("</td></tr>\n");
}


/******************************************************************************
 * print out title and options
 ******************************************************************************/
 
printc("<tr><td align='left'>");
printc("<a href='index.php?action=".$action."&amp;".$getinfo2."'>".spchars($pageObj->getField('title'))."</a>");

if ($storyObj->getField('title')) {
	printc(" > ".spchars($storyObj->getField('title')));
}

if ($_REQUEST['oldversion'] && $_REQUEST['newversion']) {
	printc(" > <a href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;versioning=".$_REQUEST['story']."'>All Versions</a>");
	printc(" > Selected Versions");
	
} else if ($_REQUEST['versioning']) {
	printc(" > All Versions");

/******************************************************************************
 * if particular version then get version details
 ******************************************************************************/
 
} else if ($_REQUEST['version']) {
	printc(" > <a href='index.php?$sid&amp;action=".$action."&amp;site=".$_REQUEST['site']."&amp;section=".$_REQUEST['section']."&amp;page=".$_REQUEST['page']."&amp;story=".$_REQUEST['story']."&amp;versioning=".$_REQUEST['story']."'>All Versions</a>");
	printc(" > Revision ".$version_num);
	
} else {
	printc(" > in depth");
}
printc("</td></tr>\n");

printc("</table>\n");


?>
Back to Top