Browse files

Updated MGMSystemInfo to include Mountain Lion. Updated to version 0.…

…2.1. Apparently fixed some issues in the PHP script.
  • Loading branch information...
1 parent 4848028 commit ba4a3e40f9cb83ba8818ba0c7cf6de5b6ed6ebb1 @GRMrGecko committed Dec 1, 2012
View
2 Classes/Framework/MGMSystemInfo.h
@@ -44,6 +44,8 @@
- (BOOL)isAfterTiger;
- (BOOL)isAfterLeopard;
- (BOOL)isAfterSnowLeopard;
+- (BOOL)isAfterLion;
+- (BOOL)isAfterMountainLion;
- (NSString *)language;
- (NSString *)applicationIdentifier;
- (NSString *)applicationName;
View
22 Classes/Framework/MGMSystemInfo.m
@@ -213,10 +213,12 @@ - (NSString *)OSVersionName {
if (minorVersion==7)
return @"Lion";
if (minorVersion==8)
- return @"Lynx";
+ return @"Mountain Lion";
if (minorVersion==9)
- return @"Garfield";
+ return @"Lynx";
if (minorVersion==10)
+ return @"Garfield";
+ if (minorVersion==11)
return @"Liger";
}
return @"Unknown";
@@ -278,6 +280,22 @@ - (BOOL)isAfterSnowLeopard {
return NO;
}
+- (BOOL)isAfterLion {
+ if ([self OSMajorVersion]==10) {
+ int minorVersion = [self OSMinorVersion];
+ return (minorVersion>=7);
+ }
+ return NO;
+}
+
+- (BOOL)isAfterMountainLion {
+ if ([self OSMajorVersion]==10) {
+ int minorVersion = [self OSMinorVersion];
+ return (minorVersion>=8);
+ }
+ return NO;
+}
+
- (NSString *)language {
NSArray *languages = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"];
if (languages!=nil && [languages count]>=1)
View
4 GeckoReporter.xcodeproj/project.pbxproj
@@ -641,7 +641,7 @@
"MACOSX_DEPLOYMENT_TARGET[arch=x86_64]" = 10.5;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
- SDKROOT = macosx10.6;
+ SDKROOT = macosx10.5;
VALID_ARCHS = "ppc i386 x86_64";
};
name = Debug;
@@ -661,7 +661,7 @@
MACOSX_DEPLOYMENT_TARGET = 10.4;
"MACOSX_DEPLOYMENT_TARGET[arch=x86_64]" = 10.5;
PREBINDING = NO;
- SDKROOT = macosx10.6;
+ SDKROOT = macosx10.5;
VALID_ARCHS = "ppc i386 x86_64";
};
name = Release;
View
2 Resources/Framework/Info.plist
@@ -8,7 +8,7 @@
CFBundlePackageType = FMWK;
"CFBundleShortVersionString" = "0.2";
CFBundleSignature = "????";
- CFBundleVersion = "0.2";
+ CFBundleVersion = "0.2.1";
"NSHumanReadableCopyright" = "Copyright (c) 2011 Mr. Gecko's Media (James Coleman). All rights reserved. http://mrgeckosmedia.com/";
NSPrincipalClass = "";
}
View
6 sendreport.php
@@ -23,7 +23,7 @@ function buildBody($FILES, $BOUNDARY) {
$FILESIZE = $_FILES[$KEY]['size'];
$BODY .= "--$BOUNDARY\r\n";
$BODY .= "Content-Disposition: attachment; filename=\"{$FILENAME}\"\r\n";
- $BODY .= "Content-Type: {$FILETYPE} name=\"{$FILENAME}\"\r\n";
+ $BODY .= "Content-Type: {$FILETYPE}; name=\"{$FILENAME}\"\r\n";
$BODY .= "Content-Transfer-Encoding: binary\r\n\r\n";
$FILEPIPE = fopen($FILE, "r");
$BODY .= fread($FILEPIPE, $FILESIZE);
@@ -34,7 +34,7 @@ function buildBody($FILES, $BOUNDARY) {
return $BODY;
}
-//Word of warning, IP is for debugging, do not include the IP of your user without the knowledge that your user may not user your application afterword.
+//Word of warning, IP is for debugging, do not include the IP of your user without the knowledge that your user may not use your application.
//$_POST['IP'] = $_SERVER['HTTP_PC_REMOTE_ADDR']!="" ? $_SERVER['HTTP_PC_REMOTE_ADDR'] : $_SERVER['REMOTE_ADDR'];
$_POST['User_Agent'] = urldecode($_SERVER['HTTP_USER_AGENT']);
@@ -81,7 +81,7 @@ function buildBody($FILES, $BOUNDARY) {
$headers .= "{$NAME}: {$_POST[$KEY]}\n";
}
if ($userReport!="")
- $headers .= "\nThe user was\n$userReport";
+ $headers .= "\nThe user was\n$userReport\n";
$headers .= buildBody($_FILES, $boundary);

0 comments on commit ba4a3e4

Please sign in to comment.