TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 02, 2024, 12:27:56 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,176
  • Total Topics: 21,220
  • Online today: 113
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 111
  • Total: 111

Prank news.

Started by nend, May 11, 2006, 06:40:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nend

I posted this up at the YAP site a couple minutes ago.  I converted my image signature mod that I made in the past.  I believe TP had PHP enabled blocks also.  So it should work on TP sites.   :laugh:

Please excuse the rough code, it was when I just started to learn PHP and I don't feel like editing it to make it nicer.  ;)


$useragent = $_SERVER['HTTP_USER_AGENT'];
if (preg_match("/Gecko/i", $useragent)) {$browser="Mozilla";}
if (preg_match("/Firefox/i", $useragent)) {$browser="Firefox";}
if (preg_match("/MSIE/i", $useragent)) {$browser="Internet Explorer";}
if (preg_match("/avantbrowser/i", $useragent)) {$browser="Avant";}
if (preg_match("/Konqueror/i", $useragent)) {$browser="Konqueror";}
if (preg_match("/Minimo/i", $useragent)) {$browser="Minimo";}
if (preg_match("/SeaMonkey/i", $useragent)) {$browser="SeaMonkey";}
if (preg_match("/Netscape/i", $useragent)) {$browser="Netscape";}
if (preg_match("/NetPositive/i", $useragent)) {$browser="NetPositive";}
if (preg_match("/Palm-Arz1/i", $useragent)) {$browser="Novarra";}
if (preg_match("/OmniWeb/i", $useragent)) {$browser="OmniWeb";}
if (preg_match("/Opera/i", $useragent)) {$browser="Opera";}
if (preg_match("/PlayStation/i", $useragent)) {$browser="PlayStation";}
if (preg_match("/Safari/i", $useragent)) {$browser="Safari";}
if (preg_match("/WebExplorer/i", $useragent)) {$browser="WebExplorer";}
if (preg_match("/Camino/i", $useragent)) {$browser="Camino";}
if (preg_match("/ELinks/i", $useragent)) {$browser="ELinks";}
if (preg_match("/Links/i", $useragent)) {$browser="Links";}
if (preg_match("/Lynx/i", $useragent)) {$browser="Lynx";}
if (preg_match("/OffByOne/i", $useragent)) {$browser="Off By One";}
if (preg_match("/w3m/i", $useragent)) {$browser="w3m";}
if (preg_match("/Linux/i", $useragent)) {$os="Linux";}
if (preg_match("/X11; U; Linux i686; en-US; rv:1.7.9/i", $useragent)) {$os="Slackware";}
if (preg_match("/Windows NT 5.1/i", $useragent)) {$os="Windows XP";}
if (preg_match("/w3m/i", $useragent)) {$os="FreeBSD";}
if (preg_match("/OffByOne/i", $useragent)) {$os="Windows XP";}
if (preg_match("/Lynx/i", $useragent)) {$os="Linux";}
if (preg_match("/gentoo/i", $useragent)) {$os="Gentoo Linux";}
if (preg_match("/OS/i", $useragent)) {$os="OS 2";}
if (preg_match("/Mac OS X/i", $useragent)) {$os="Mac OS X";}
if (preg_match("/WebExplorer/i", $useragent)) {$os="OS 2";}
if (preg_match("/PlayStation/i", $useragent)) {$os="PlayStation";}
if (preg_match("/Windows NT 5.0/i", $useragent)) {$os="Windows 2000";}
if (preg_match("/X11; Linux i686; U; cs/i", $useragent)) {$os="Gentoo Linux";}
if (preg_match("/Windows 98/i", $useragent)) {$os="Windows 98";}
if (preg_match("/Windows 2000/i", $useragent)) {$os="Windows 2000";}
if (preg_match("/Mac_PowerPC/i", $useragent)) {$os="Mac OS 9";}
if (preg_match("/PalmOS/i", $useragent)) {$os="PalmOS";}
if (preg_match("/NetPositive/i", $useragent)) {$os="BeOS R5"; }
if (preg_match("/SunOS/i", $useragent)) {$os="SunOS";}
if (preg_match("/SunOS sun4u/i", $useragent)) {$os="Sun Solaris 8"; }
if (preg_match("/Macintosh/i", $useragent)) {$os="Macintosh";}
if (preg_match("/BeOS BePC/i", $useragent)) {$os="BeOS R5";}
if (preg_match("/Mac OS X Mach/i", $useragent)) {$os="Mac OS X 10";}
if (preg_match("/Linux x86_64/i", $useragent)) {$os="Ubuntu Linux";}
if (preg_match("/FreeBSD/i", $useragent)) {$os="FreeBSD";}
if (preg_match("/X11; U; Linux i686; cs-CZ; rv:1.7.12/i", $useragent)) {$os="Gentoo Linux";}
if (preg_match("/Windows CE/i", $useragent)) {$os="Windows Mobile";}
if (preg_match("/Windows NT 6.0/i", $useragent)) {$os="Windows Vista";}
if (preg_match("/Windows NT 5.2/i", $useragent)) {$os="Windows Server 2003";}
if (preg_match("/Windows 95/i", $useragent)) {$os="Windows 95";}
echo '<b>The '.$browser.' browser caught up in spy scandal.</b><hr>';
echo 'News came in today that the '.$browser.' browser can send out information about your browsing habits to its parent server.  Its learned that '.$browser.' sells this information to foriegn companies that directly deal with e-mail SPAMing.  '.$browser.' has claimed they have done nothing wrong.  A court hearing is coming up this week to determine if '.$browser.' has broken any laws.';
echo '<br /><br />';
echo '<b>PC catch fire due to faulty OS</b><hr>';
echo 'Some people running the popular '.$os.' operating system have noticed their PCs burst into flames.  The problem occurs as the OS overloads the cpu and causes it to burst.  If you may have '.$os.' installed on your machine it is advised you downgrade to a stable version or unistall '.$os.' and install a different operating system.';
echo '<br /><br /> Now was that a funny prank';

Crip

looks like some kind of a hack..  :knuppel2: :down:
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



IchBin

lol, that would be pretty funny to see peoples reaction to that. Thanks for posting this nend.

G6Cad

That script didnt work in a php block  ;)

alan s

#4
what is it supposed to do?

EDIT by G6.. [No need to swear in such a short question.. or any other for that matter ;) ]

nend

It works in Tiny Portal.  Just downloaded Tiny Portal and tried it.  http://easyadmin.2-si.net/index.php

Now I have YAP and TP installed on the test site.  :D  What a mess. lol  :2funny:  It seems pretty easy though.  When I want YAP I can switch to a YAP theme and when I want TP I can switch to a TP theme.  ^-^

nend

#6
Lol, switch to YAP XP Silver now I have two news pages(index.php?action=yapnews and index.php).  The forum has also been moved to ?action=forum.

Check out this theme.  http://easyadmin.2-si.net/index.php?action=forum;theme=1  ::)

IchBin

haha, that is pretty funky.

alan s

oh i see now , its very good lol

@ G6 I wouldnt have regarded that as a swear word?

G6Cad

Quote
@ G6 I wouldn't have regarded that as a swear word?

Doesent matter what you think, I didn't think that word is suited in here in any sentense.
A pleasant language contains no such words..