
Essay database with free papers will provide you with original and creative ideas.
Designing a Department of Homeland Security Threat Level System for your website in PHP (No-Database required).
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
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."; } ?>
