Designing a Department of Homeland Security Threat Level System for your website in PHP (No-Database required).
Title: Designing a Department of Homeland Security Threat Level System for your website in PHP (No-Database required).
Category: /Business & Economy
Details: Words: 577 | Pages: 2 (approximately 235 words/page)
Designing a Department of Homeland Security Threat Level System for your website in PHP (No-Database required).
Category: /Business & Economy
Details: Words: 577 | Pages: 2 (approximately 235 words/page)
Author : Syed R Fayyaz
Comments: This is a very simple script to display a security threat level on
your website. This script fetches data from Department of
homeland security Website and stores it into an array.
After parsing it gets the level of security.
Installation : You need to make 5 different images and place their links in the
appropriate conditions below.
EXAMPLE : There are total five threat levels: Severe, High, Elevated
Guarded and Low. You will
showed first 75 words of 577 total
You are viewing only a small portion of the paper.
Please login or register to access the full copy.
Please login or register to access the full copy.
showed last 75 words of 577 total
if the threat level is Low
elseif (preg_match("/LOW/", $threat))
//the link of the image i gave is img/low.jpg you should change it
//where ever you stored your images
{
echo "<img align=middle src = pic/low.jpg width=119 height=77>";
}
//if there is some problem getting the threat level
else
{
echo "Sorry, an error has occured. This usually happens when communication with the DHS server is lost.";
}
?>