Archive for April, 2010

The US Economy and You

Before you read this, please be warned that there is an excessive amount of profanity, vulgar remarks towards other countries, and government officials.

Humanity makes me fucking gag. Seriously, the hypocrites, band wagoners and just plain fucking idiots that roam this planet make me sick to my stomach. All the times people have said that our economy’s in the shits. Well, I fucking wonder why. Let’s see here………

We have a war, oops, I mean a “conflict” that was started for what? Revenge? Oil? Does any one even know anymore, if they ever did. Billions upon billions of dollars from the US Government going over to support troops, not only from our own country, but from others?! We’re paying to train the Iraqi military. We’re forking the bill to keep the NATO forces there.

We’re supporting other countries in times of “need”. You had a hurricane? Alright, here’s our military, a few million dollars, food, some doctors, and whatever else we can scrounge up for you. They only need you, because their own government can’t control it’s own fucking country.

Universal Healthcare? Seriously? Have any of you ever been to a hospital in Canada? Get the fuck outta here with this shit. And they want it mandatory? Fuck you. You can throw my ass in jail, but I’m not buying healthcare because you fucking said so. The USA isn’t ran under dictatorship, bitch. Get the fuck out of office, Obama. You’re a fucking disgrace to our flag. The USA doesn’t band-wagon with other countries. We were built on the belief that we shouldn’t be forced to think how others think, or do what others do, just because some one in power says that’s the right way.

Send us to Mars? Really, Obama? For fucking what? It already costs billions to send a rover there, could you imagine the bill to send a shuttle with actual people? lmfao… You sir, are the fucking fail.

Those commercials on TV. “For just 35 cents a day, you can feed this starving kid in Africa.”. Oh really? Well for 35 cents a day, you can feed a few homeless kids in AMERICA! Instead of sending money to other countries “starving people”, why not send it to your local soup kitchen, and make a difference in YOUR country.

If you want to successfully build our country back up, deal with the issues WITHIN OUR COUNTRY. What about other countries in need? What the fuck about them? I don’t see any other NATO countries rushing in to help them, do you..? Why the fuck is it always the US? Throw another couple billion on to our debt there, asshole. No one will ever notice…

PHP Menu: Get Current Page

This is a quick and easy way to determine which page you’re currently on, and then setting your menu button’s overlay based on that page.

First we need to create a function to determine the page we’re on.
function getCurrPage() {
return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
}

Next we need to check our this against the menu.
$thisPage = getCurrPage();
if($thisPage == 'index.php') { $navHome = '[Current Class]'; } else { $navHome = '[Noncurrent Class]'; }
if($thisPage == 'search.php') { $navSearch = '[Current Class]'; } else { $navSearch = '[Noncurrent Class]'; }
if($thisPage == 'about.php') { $navAbout = '[Current Class]'; } else { $navAbout = '[Noncurrent Class]'; }
if($thisPage == 'faq.php') { $navFAQ = '[Current Class]'; } else { $navFAQ = '[Noncurrent Class]'; }
if($thisPage == 'contact.php') { $navContact = '[Current Class]'; } else { $navContact = '[Noncurrent Class]'; }

After everything’s been checked, you can simply set your menu as-needed.
echo $navHome . $navSearch . $navAbout . $navFAQ. $navContact;

If you’re dealing with a dozen or more menu links, it would be more efficient to create an array to scan and verify the current page, but this will work fine for smaller menus. Enjoy.

I recently received an email from the address security@onlineupdate.com. They’re trying to phish for PayPal accounts. The contents of the email read as follows.

Dear shiping angel,
We recently reviewed your account, and we are suspecting that your PayPal account may have been accessed from an unauthorized computer.
This may be due to changes in your IP address or location. Protecting the security of your account and of the PayPal network is our primary concern.
We are asking you to immediately login and report any unauthorized withdrawals, and check your account profile to make sure no changes have been made.
To protect your account please follow the instructions below:
* DO NOT SHARE YOUR PASSWORD WITH OTHER USERS
* LOG OFF AFTER USING YOUR ONLINE ACCOUNT
Please click on the following link, to verify your account activity:

http://www.paypal.com/cgi-bin/webscr?cmd=_login-run

We apologize for any inconvenience this may cause, and appreciate your support in helping us maintaining the integrity of the entire PayPal system.
Please login as soon as possible.
Thank you,
PayPal Security Center.

Email Content

The link within the email directs you to “cheersandgears.com/waw/”, which has been flagged as a forged website.

The headers are as follows:

Content-Type: text/html; charset=”iso-8859-1″
Date: 02 Apr 2010 22:53:05 +0800 [04/02/2010 08:53:05 AM MDT]
Delivery-date: Mon, 05 Apr 2010 12:34:02 -0600
Envelope-to: [My Email]
From: PayPal
MIME-Version: 1.0
Message-ID: <20100402225305.0A9EC7129E153A42@onlineupdate.com>
Received: * from [72.253.60.56] (helo=server1.tnwre.com) by [My Email Server] with esmtp (Exim 4.69) (envelope-from ) id 1Nyr7Z-0005Dm-K9 for [My Email]; Mon, 05 Apr 2010 12:34:01 -0600
* from onlineupdate.com (h186-210-66-252.seed.net.tw [210.66.252.186]) by server1.tnwre.com with ESMTP; Fri, 02 Apr 2010 05:04:25 -1000
Return-path:
Subject: shiping angel, your PayPal account will be closed on 03/04/2010

Email Headers

Obviously, they have no idea how to read a calendar. If the senders email address doesn’t send a red flag up for you, the subject line should. Since it’s a month behind.

*Tips to keep you safe.
Always scroll over links in your emails. If they don’t lead to the website that the email is referring to, it’s most likely a phishing attempt.
Right-Click the link, and copy/paste it in to Google. This will more than likely bring up reviews and scam reports on the website in question.
If it doesn’t feel right, it probably isn’t. It’s always better to manually type out a URL you know than to click a hyperlink you don’t.

With phishing at its all-time high, you should always be careful of the emails you open, and the links that are contained inside of them.