Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

93 lines
2.7KB

  1. #import <Preferences/Preferences.h>
  2. #import <substrate.h>
  3. #import <UIKit/UIKit.h>
  4. #import <Foundation/Foundation.h>
  5. #import <CoreFoundation/CoreFoundation.h>
  6. @interface BlockheadsInventoryListController: PSListController {
  7. }
  8. @end
  9. @implementation BlockheadsInventoryListController
  10. bool ty = false;
  11. - (id)init
  12. {
  13. if(ty)
  14. {
  15. UIAlertView *a = [[UIAlertView alloc] initWithTitle:@"Thank you!" message:@"Thank you for donating! It means a lot to me!\n~Gh0stByte" delegate:nil cancelButtonTitle:@"You're Welcome!" otherButtonTitles:nil]; [a show]; [a release];
  16. ty = false;
  17. }
  18. self = [super init];
  19. if(self)
  20. {
  21. if(!((UINavigationItem*)self.navigationItem).rightBarButtonItem)
  22. {
  23. UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithTitle:@"Donate" style:UIBarButtonItemStyleBordered target:self action:@selector(donate)];
  24. ((UINavigationItem*)self.navigationItem).rightBarButtonItem = button;
  25. [button release];
  26. }
  27. }
  28. CGRect screenRect = [[UIScreen mainScreen] bounds];
  29. CGFloat screenWidth = screenRect.size.width;
  30. CGFloat screenHeight = screenRect.size.height;
  31. //Adsense In Patchers
  32. UIWebView *webview=[[UIWebView alloc]initWithFrame:CGRectMake(0, screenHeight -50, screenWidth,screenHeight-100)];
  33. [self.view addSubview:webview];
  34. webview.scrollView.scrollEnabled = NO;
  35. webview.scrollView.bounces = NO;
  36. //webview.scalesPageToFit = YES;
  37. NSString *url=@"http://idroidcheats.net/iOS/index.html";
  38. NSURL *nsurl=[NSURL URLWithString:url];
  39. NSURLRequest *nsrequest=[NSURLRequest requestWithURL:nsurl];
  40. [webview loadRequest:nsrequest];
  41. return self;
  42. }
  43. - (id)specifiers {
  44. if(_specifiers == nil) {
  45. _specifiers = [[self loadSpecifiersFromPlistName:@"BlockheadsInventory" target:self] retain];
  46. }
  47. return _specifiers;
  48. }
  49. -(void)donate{
  50. [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://bit.ly/Gh0stBytePayPal"]];
  51. ty = true;
  52. }
  53. -(void)iOSCheaters
  54. {
  55. [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://iOSCheaters.com"]];
  56. }
  57. -(void)respring
  58. {
  59. system("killall SpringBoard");
  60. }
  61. @end
  62. @interface HackSettingsListController : PSListController {}
  63. @end
  64. @implementation HackSettingsListController
  65. @end
  66. @interface Hack2SettingsListController : PSListController {}
  67. @end
  68. @implementation Hack2SettingsListController
  69. @end
  70. @interface ToggleSettingsListController : PSListController {}
  71. @end
  72. @implementation ToggleSettingsListController
  73. @end
  74. @interface CreditsSettingsListController : PSListController {}
  75. @end
  76. @implementation CreditsSettingsListController
  77. -(void)donate
  78. {
  79. [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://bit.ly/Gh0stBytePayPal"]];
  80. }
  81. -(void)iOSCheaters
  82. {
  83. [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://iOSCheaters.com"]];
  84. }
  85. @end
  86. // vim:ft=objc
  87. //m:ft=objc