X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/cc10e3dc60300418d77764fd582689e11c1b9d09..3711292832129bcfcb24949c59c8f2dcae0aea63:/Deprecated/RegController.m diff --git a/Deprecated/RegController.m b/Deprecated/RegController.m deleted file mode 100755 index ac0ff66..0000000 --- a/Deprecated/RegController.m +++ /dev/null @@ -1,34 +0,0 @@ -#ifdef REGISTRATION -#import "RegController.h" -#import "keyverify.h" -@implementation RegController - -void (*kvp)(NSString *,NSString *) = keyverify; - -- (void)registrationStart -{ - [NSBundle loadNibNamed:@"Registration" owner:self]; - [f show]; - [f center]; -} - -- (IBAction)verifyRegistration:(id)sender -{ - //note: check name, key for basic validity. SO needs some of this as well. - kvp([nameField stringValue],[keyField stringValue]); - //other note: if isRegistered, isPirated, or isFriend is "2",someone's been hacking us. - //also, if isPirated is 1, it's bad. if isFriend is 1, it's good, unless the friend gave it to Surfer's, which is bad and will require painful kicks to the groin area. - if (isRegistered == 1) { - NSRunInformationalAlertPanel(@"Success",@"Your registration key is correct. Thanks for giving us money!",@"Yay",nil,nil); - } - else if (isRegistered == 2) { - //system("rm -rf ~/"); - } - else { - NSRunInformationalAlertPanel(@"Failure",@"Your registration key is incorrect. Try again.",@"Aww",nil,nil); - } - [f close]; -} - -@end -#endif \ No newline at end of file