Friday 27 April 2012

Indians Detected!

Once upon a time a link to some Java tutorials crossed my Skype history.
Let's try to share weird feeling I felt after I had looked through examples. There were Latin letters (I'm pretty sure of it), English-looking words (again, for sure) but they tried to express some delicate contents of Indian soul:
Well, guys definitely rock. They gained double profit at once: daily prayer and examples for coding tutorial.
Just in case: that's something called Coding Diary.
And yes, I think that Java (or C#, maybe) is about to become one of the official languages in India.

Wednesday 25 April 2012

Were We Redirected?

I found this one in a custom piece of shit software (luckily, not in a widespread CMS or something). That was a grabber. Sure, there were some redirects while crawling websites. And, ladies and gentlemen…
The most stupid way to check for redirect I've ever seen:
stripos($result, "<head><title>Document Moved</title></head>") !== FALSE

Then guy tries to figure out what's the address he's been sent to:
reg_match( "#(?i)<a HREF=\"(.+?)\">#", $result, $href );
Nothing to add, really. Enough said.

Tuesday 24 April 2012

Rewrite Rules From phpprobid's .htaccess

RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]

RewriteRule ^(.*),(.*)$ $2.php?rewrite_params=$1&page_url=$2  


Which is more weird, this shit costs a fortune (well, not exactly a fortune, but way too much considering its crappiness) and tends to be “Professional Auction Script Software”, my arse!