Projet

Général

Profil

« Précédent | Suivant » 

Révision 2690afba

Ajouté par Colin Fleming il y a presque 10 ans

Update "pkg_edit.,php"

"custom_php_after_head_command", if the PHP code also contains
JavaScript ("squid_auth.xml" for example) then this will cause HTML
errors, as you are not supposed to have anything between the closing
HEAD tag and the opening BODY tag.

Add the CLOSEHEAD PHP variable, move the include HEAD.INC into the PHP
IF statement and manually close the HEAD tab, else just include HEAD.INC

Voir les différences:

usr/local/www/pkg_edit.php
258 258
	$title = gettext("Package Editor");
259 259

  
260 260
$pgtitle = $title;
261
include("head.inc");
262 261

  
263
if ($pkg['custom_php_after_head_command'])
262
if ($pkg['custom_php_after_head_command']) {
263
	$closehead = false;
264
	include("head.inc");
264 265
	eval($pkg['custom_php_after_head_command']);
266
	echo "</head>\n";
267
}
268
else
269
	include("head.inc");
265 270

  
266 271
?>
267 272

  

Formats disponibles : Unified diff