Projet

Général

Profil

« Précédent | Suivant » 

Révision 1b244d38

Ajouté par Colin Fleming il y a presque 10 ans

Update SCRIPT tags.

Add CDATA sections to SCRIPT tags in various files

Voir les différences:

etc/inc/captiveportal.inc
274 274
<b>Redirecting to <a href="<?=\$my_redirurl;?>"><?=\$my_redirurl;?></a>...</b>
275 275
</span>
276 276
<script type="text/javascript">
277
<!--
277
//<![CDATA[
278 278
LogoutWin = window.open('', 'Logout', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=256,height=64');
279 279
if (LogoutWin) {
280 280
	LogoutWin.document.write('<html>');
......
293 293
}
294 294

  
295 295
document.location.href="<?=\$my_redirurl;?>";
296
-->
296
//]]>
297 297
</script>
298 298
</body>
299 299
</html>
usr/local/www/diag_dump_states_sources.php
72 72
<form action="diag_dump_states_sources.php" method="get" name="iform">
73 73

  
74 74
<script type="text/javascript">
75
//<![CDATA[
75 76
	function removeSource(srcip, dstip) {
76 77
		var busy = function(index,icon) {
77 78
			jQuery(icon).bind("onclick","");
......
99 100
			function(index,row) { jQuery(row).fadeOut(1000); }
100 101
		);
101 102
	}
103
//]]>
102 104
</script>
103 105

  
104 106
<table width="100%" border="0" cellpadding="0" cellspacing="0">
......
130 132
						<?=gettext("Filter expression:");?>
131 133
						<input type="text" name="filter" class="formfld search" value="<?=htmlspecialchars($_GET['filter']);?>" size="30" />
132 134
						<input type="submit" class="formbtn" value="<?=gettext("Filter");?>" />
133
					<td>
135
					</td>
134 136
				</tr>
135 137
			</table>
136 138
			</form>
usr/local/www/firewall_rules_edit.php
887 887
						echo "<input name='interface' id='interface' type='hidden' value='{$pconfig['interface']}' />";
888 888
				?>
889 889
				<script type="text/javascript">
890
				//<![CDATA[
890 891
				editenabled = 0;
892
				//]]>
891 893
				</script>
892 894
			</td>
893 895
		</tr>
usr/local/www/index.php
668 668
				}
669 669
				else { ?>
670 670
					<script type="text/javascript">
671
					//<![CDATA[
671 672
					var colpos = "<?=$colpos[$widgetcounter]?>";
672
					createColumn(colpos);					
673
					createColumn(colpos);
674
					//]]>
673 675
					</script>
674 676
				<?php }
675 677
			}		
usr/local/www/interfaces_ppps_edit.php
393 393
	<link href="/javascript/numericupdown/css/numericupdown.css" rel="stylesheet" type="text/css" />
394 394
	<script type="text/javascript" src="/javascript/datepicker/js/datepicker.js"></script>
395 395
	<link href="/javascript/datepicker/css/datepicker.css" rel="stylesheet" type="text/css"/>
396
	<script type="text/javascript" >
396
	<script type="text/javascript">
397
	//<![CDATA[
397 398
		jQuery(document).ready(function() { updateType(<?php echo "'{$pconfig['type']}'";?>); });
399
	//]]>
398 400
	</script>
399 401
</head>
400 402
<body link="#0000CC" vlink="#0000CC" alink="#0000CC" >
usr/local/www/system_advanced_notifications.php
349 349
		</tr>
350 350
	</table>
351 351
<script type="text/javascript">
352
//<![CDATA[
352 353
	jQuery(document).ready(function() {
353 354
		if (jQuery('#smtpssl').is(':checked')) {
354 355
			jQuery('#smtptls').prop('disabled', true);
......
362 363
	jQuery('#smtptls').change( function() {
363 364
		jQuery('#smtpssl').prop('disabled', this.checked);
364 365
	});
366
//]]>
365 367
</script>
366 368
<?php include("fend.inc"); ?>
367 369
</body>
usr/local/www/vpn_openvpn_csc.php
254 254
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>">
255 255
<?php include("fbegin.inc"); ?>
256 256
<script type="text/javascript">
257
<!--
257
//<![CDATA[
258 258

  
259 259
function dns_domain_change() {
260 260

  
......
299 299
	}
300 300
}
301 301

  
302
//-->
302
//]]>
303 303
</script>
304 304
<?php
305 305
	if ($input_errors)
usr/local/www/widgets/widgets/thermal_sensors.widget.php
272 272

  
273 273
<!-- needed to display the widget settings menu -->
274 274
<script type="text/javascript">
275

  
275
//<![CDATA[
276 276
	textlink = jQuery("#thermal_sensors-configure");
277 277
	textlink.css({display: "inline"});
278

  
278
//]]>
279 279
</script>
usr/local/www/wizard.php
892 892
if($pkg['step'][$stepid]['javascriptafterformdisplay'] <> "") {
893 893
	// handle after form display event.
894 894
	echo "\n<script type=\"text/javascript\">\n";
895
	echo "//<![CDATA[\n";
895 896
	echo $pkg['step'][$stepid]['javascriptafterformdisplay'] . "\n";
897
	echo "//]]>\n";
896 898
	echo "</script>\n\n";
897 899
}
898 900

  

Formats disponibles : Unified diff