Changeset 34493 for lang/objective-cplusplus/i3/trunk/www
- Timestamp:
- 07/20/09 00:16:48 (4 years ago)
- Files:
-
- 1 modified
-
lang/objective-cplusplus/i3/trunk/www/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/www/index.php
r34492 r34493 1 1 <?php 2 2 3 function is_clickonce_supported() { 4 if (!preg_match( 5 '/\.NET CLR ([0-9.]+)/', 6 $_SERVER["HTTP_USER_AGENT"], 7 $matches)) { 8 return false; 9 } 10 11 $client = explode('.', $matches[1]); 3 function is_newer_version($version) { 4 $client = explode('.', $version); 12 5 $required = explode('.', '2.0.0'); 13 6 … … 26 19 } 27 20 } 21 } 22 23 function is_clickonce_supported() { 24 if (!preg_match_all( 25 '/\.NET CLR ([0-9.]+)/', 26 $_SERVER["HTTP_USER_AGENT"], 27 $matches)) { 28 return false; 29 } 30 31 foreach ($matches[1] as $version) { 32 if (is_newer_version($version)) { 33 return true; 34 } 35 } 36 return false; 28 37 } 29 38
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)