Projet

Général

Profil

« Précédent | Suivant » 

Révision 6f3d2063

Ajouté par Renato Botelho il y a presque 10 ans

Replace Header() calls by lowercase

Voir les différences:

etc/inc/auth.inc
1444 1444
			return false;
1445 1445

  
1446 1446
		/* redirect to page the user is on, it'll prompt them to login again */
1447
		Header("Location: {$scriptName}");
1447
		header("Location: {$scriptName}");
1448 1448

  
1449 1449
		return false;
1450 1450
	}
etc/inc/functions.inc
66 66
	                $complete_url = "{$protocol}://{$_SERVER['SERVER_NAME']}{$port}/{$text}";
67 67
	                echo "\ndocument.location.href = '{$complete_url}';\n";
68 68
	        } else {
69
	                Header("Location: $text");
69
	                header("Location: $text");
70 70
	        }
71 71
	}
72 72
}
......
148 148
require_once("system.inc");
149 149
require_once("vslb.inc");
150 150

  
151
?>
151
?>
usr/local/www/crash_reporter.php
123 123
		array_map('unlink', glob("/var/crash/*"));
124 124
		// Erase the contents of the PHP error log
125 125
		fclose(fopen("/tmp/PHP_errors.log", 'w'));
126
		Header("Location: /");
126
		header("Location: /");
127 127
		exit;
128 128
	} else {
129 129
		$crash_files = glob("/var/crash/*");
usr/local/www/firewall_rules.php
118 118
	}
119 119
	foreach($undo as $dt)
120 120
		$undotxt .= "&dragtable[]={$dt}";
121
	Header("Location: firewall_rules.php?if=" . $_REQUEST['if'] . "&undodrag=true" . $undotxt);
121
	header("Location: firewall_rules.php?if=" . $_REQUEST['if'] . "&undodrag=true" . $undotxt);
122 122
	exit;
123 123
}
124 124

  
usr/local/www/getserviceproviders.php
74 74
}
75 75

  
76 76
function provider_plan_data($country,$provider,$connection) {
77
	Header("Content-type: application/xml;");
77
	header("Content-type: application/xml;");
78 78
	echo "<?xml version=\"1.0\" ?>\n";
79 79
	echo "<connection>\n";
80 80
	$serviceproviders = get_country_providers($country);
usr/local/www/guiconfig.inc
52 52
	header("Pragma: no-cache");
53 53
}
54 54

  
55
Header("X-Frame-Options: SAMEORIGIN");
55
header("X-Frame-Options: SAMEORIGIN");
56 56
require_once("authgui.inc");
57 57

  
58 58
/* parse the configuration and include all configuration functions */
usr/local/www/installer/index.php
1 1
<?php
2 2

  
3
Header("Location: installer.php");
3
header("Location: installer.php");
4 4

  
5
?>
5
?>
usr/local/www/installer/installer.php
35 35
define('PC_SYSINSTALL', '/usr/sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.sh');
36 36

  
37 37
if($g['platform'] == "pfSense" or $g['platform'] == "nanobsd") {
38
	Header("Location: /");
38
	header("Location: /");
39 39
	exit;
40 40
}
41 41

  
......
94 94
	$bootmanager = "bsd";
95 95
	file_put_contents("/tmp/webInstaller_disk_layout.txt", serialize($disk_setup));
96 96
	file_put_contents("/tmp/webInstaller_disk_bootmanager.txt", serialize($bootmanager));
97
	Header("Location: installer.php?state=verify_before_install");
97
	header("Location: installer.php?state=verify_before_install");
98 98
	exit;
99 99
}
100 100

  
usr/local/www/interfaces.php
62 62
	$if = $_REQUEST['if'];
63 63

  
64 64
if (empty($ifdescrs[$if])) {
65
	Header("Location: interfaces.php");
65
	header("Location: interfaces.php");
66 66
	exit;
67 67
}
68 68

  
usr/local/www/pkg.php
64 64
}
65 65

  
66 66
if($pkg['donotsave'] <> "") {
67
	Header("Location: pkg_edit.php?xml=" . $xml);
67
	header("Location: pkg_edit.php?xml=" . $xml);
68 68
	exit;
69 69
}
70 70

  
usr/local/www/pkg_edit.php
98 98
	$id = "0";
99 99

  
100 100
if(!is_numeric($id)) {
101
	Header("Location: /");
101
	header("Location: /");
102 102
	exit;
103 103
}
104 104

  
usr/local/www/services_dhcp.php
44 44
require_once("filter.inc");
45 45

  
46 46
if(!$g['services_dhcp_server_enable']) {
47
	Header("Location: /");
47
	header("Location: /");
48 48
	exit;
49 49
}
50 50

  
usr/local/www/services_dhcp_edit.php
53 53
require_once('globals.inc');
54 54

  
55 55
if(!$g['services_dhcp_server_enable']) {
56
	Header("Location: /");
56
	header("Location: /");
57 57
	exit;
58 58
}
59 59

  
usr/local/www/services_dhcpv6.php
48 48
require_once("filter.inc");
49 49

  
50 50
if(!$g['services_dhcp_server_enable']) {
51
	Header("Location: /");
51
	header("Location: /");
52 52
	exit;
53 53
}
54 54

  
usr/local/www/services_dhcpv6_edit.php
54 54
require_once('globals.inc');
55 55

  
56 56
if(!$g['services_dhcp_server_enable']) {
57
	Header("Location: /");
57
	header("Location: /");
58 58
	exit;
59 59
}
60 60

  
usr/local/www/services_router_advertisements.php
47 47
require("guiconfig.inc");
48 48

  
49 49
if(!$g['services_dhcp_server_enable']) {
50
	Header("Location: /");
50
	header("Location: /");
51 51
	exit;
52 52
}
53 53

  
usr/local/www/status_captiveportal.php
51 51

  
52 52
if ($_GET['act'] == "del" && !empty($cpzone)) {
53 53
	captiveportal_disconnect_client($_GET['id']);
54
	Header("Location: status_captiveportal.php?zone={$cpzone}");
54
	header("Location: status_captiveportal.php?zone={$cpzone}");
55 55
	exit;
56 56
}
57 57

  
usr/local/www/status_graph.php
79 79
		}
80 80
	}
81 81
	if ($found === false) {
82
		Header("Location: status_graph.php");
82
		header("Location: status_graph.php");
83 83
		exit;
84 84
	}
85 85
} else {
usr/local/www/widgets/widgets/log.widget.php
66 66
    echo "<meta http-equiv=\"refresh\" content=\"0;url=" . $filename . "\" />\n";
67 67
    echo "</noscript>\n";
68 68
  }
69
	Header("Location: /");
69
	header("Location: /");
70 70
}
71 71

  
72 72
$nentries = isset($config['widgets']['filterlogentries']) ? $config['widgets']['filterlogentries'] : 5;
usr/local/www/widgets/widgets/picture.widget.php
61 61
			$config['widgets']['picturewidget'] = base64_encode($data);
62 62
			$config['widgets']['picturewidget_filename'] = $_FILES['pictfile']['name'];
63 63
			write_config("Picture widget saved via Dashboard.");
64
			Header("Location: /index.php");
64
			header("Location: /index.php");
65 65
			exit;
66 66
		}
67 67
	}
usr/local/www/widgets/widgets/rss.widget.php
38 38
	$config['widgets']['rsswidgetheight'] = $_POST['rsswidgetheight'];
39 39
	$config['widgets']['rsswidgettextlength'] = $_POST['rsswidgettextlength'];
40 40
	write_config("Saved RSS Widget feed via Dashboard");
41
	Header("Location: /");
41
	header("Location: /");
42 42
}
43 43

  
44 44
// Use saved feed and max items
usr/local/www/wizards/setup_wizard.xml
483 483
				$config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype'];
484 484
				write_config();
485 485
				if(!$config['interfaces']['lan']) 
486
					Header("Location: /wizard.php?xml=setup_wizard.xml&stepid=5&next=Next");
486
					header("Location: /wizard.php?xml=setup_wizard.xml&stepid=5&next=Next");
487 487
			}
488 488
		]]>
489 489
	</stepsubmitbeforesave>
......
631 631
	<stepbeforeformdisplay>
632 632
	<![CDATA[
633 633
		if($g['product_name'] <> 'pfSense') {
634
			Header("Location: " . fixup_string("\$myurl"));
634
			header("Location: " . fixup_string("\$myurl"));
635 635
			exit;
636 636
		}	
637 637
	]]>

Formats disponibles : Unified diff