Created
February 27, 2014 11:52
-
-
Save xfoxfu/9248723 to your computer and use it in GitHub Desktop.
Anti XP PHP Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Anti-XP Script | |
| * | |
| * @author 小傅Fox[<[email protected]>] | |
| */ | |
| $anti_xp__browser = get_browser(); | |
| if( $anti_xp__browser[ 'platform' ] == 'WinXP' ){ | |
| if( $_SERVER[ 'HTTP_ACCEPT_LANGUAGE' ] == 'zh-CN' ){ | |
| die( '你仍然在使用落后的Windows XP操作系统,在你升级操作系统前将不能打开此页面。' ); | |
| } elseif( $_SERVER[ 'HTTP_ACCEPT_LANGUAGE' ] == 'en' ){ | |
| die( 'You are STILL using Windows XP!We no longer offer services to you unless you upgrade your OS!' ); | |
| } elseif( $_SERVER[ 'HTTP_ACCEPT_LANGUAGE' ] == 'en-US' ){ | |
| die( 'You are STILL using Windows XP!We no longer offer services to you unless you upgrade your OS!' ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment