Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
paf-lookup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sucssite
paf-lookup
Commits
3143154c
Commit
3143154c
authored
9 years ago
by
Imran Hussain
Browse files
Options
Downloads
Patches
Plain Diff
Better handling of missing url params
parent
132f86c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
index.php
+10
-0
10 additions, 0 deletions
index.php
with
10 additions
and
0 deletions
index.php
+
10
−
0
View file @
3143154c
...
...
@@ -8,6 +8,11 @@
* system.
*/
// If there isn't api key then die
if
(
isset
(
$_GET
[
'apikey'
])
==
FALSE
){
die
(
"Please provide an api key"
);
}
// Get the api key the user is trying to use
$apikey
=
$_GET
[
'apikey'
];
...
...
@@ -21,6 +26,11 @@ if ( in_array($apikey,$apikeys) == FALSE) {
// If they get here then they are allowed to be here
// If there isn't a postcode provided then die
if
(
isset
(
$_GET
[
'postcode'
])
==
FALSE
){
die
(
"Please provide a postcode"
);
}
// Get the postcode they are trying to search for
$postcode
=
$_GET
[
'postcode'
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment