1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

"Homeland Advisory alert" code,Is there one?

Discussion in 'Software Development' started by sharky, Feb 8, 2003.

Thread Status:
Not open for further replies.
Advertisement
  1. sharky

    sharky Thread Starter

    Joined:
    Jul 8, 2001
    Messages:
    1,343
    Is there a code available for one's website of the" Homeland Advisory Alert"?

    thanks
     
  2. Snorii

    Snorii

    Joined:
    Aug 16, 2002
    Messages:
    90
    Try http://nukecops.com/downloads-cat-3.html

    Homeland Security Threat Advisory Script

    It is in php, and I haven't installed it yet, but will attempt to do so today or tomorrow. It may be just for PHP-Nuke, but I'm not sure. Even if it is, you should be able to take it apart and see what the coding is.

    - Snorii
     
  3. Snorii

    Snorii

    Joined:
    Aug 16, 2002
    Messages:
    90
    I found a better link for you. http://www.phpexpo.com/files/hsas.html

    I tried the php-nuke block and it worked fine. I then found a link off of it to the previous url.

    At the bottom of the page you can download either version. cgi or php block for php-nuke.

    They also explain how to install it via SSI or an image tag. The tar file comes with two cgi scripts and some images.

    - Snorii :D
     
  4. Snorii

    Snorii

    Joined:
    Aug 16, 2002
    Messages:
    90
    Or you could do something like this. :D

    PHP:
    #!/usr/local/bin/perl

    use LWP::Simple;

    print 
    "Content-Type: text/html\n\n";
    print 
    "<html><title></title><body>\n";      # some browsers might get confused w/o this line

    $url 'http://www.dhs.gov/dhspublic/';
    $content get $url;

    $content =~ /(<img\sname=\"dhsadvisory\"\ssrc=\")\/(dhs\/images\/.*?\">)/; 
    $firstchunk=$1;
    $secondchunk=$2;

    $url2='http://www.dhs.gov/';
    $wholechunk = $firstchunk.$url2.$secondchunk;

    print "
    <p><p>\n";
    print 
    $wholechunk;
    print "
    \n</body></html>\n";
    exit;
    I'm not sure how much can be seen, but it you do a quote, you can see the code.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/117730

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice