scriptz-team

DEiONCUBE

Dec 26th, 2011
1,045
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.35 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. *    
  5. *      _____ _____ _ _____ _____         _____ _____ _____ _____
  6. *  ___|     | __  |_|  _  |_   _|___ ___|_   _|   __|  _  |     |
  7. * |_ -|   --|    -| |   __| | | |- _|___| | | |   __|     | | | |
  8. * |___|_____|__|__|_|__|    |_| |___|     |_| |_____|__|__|_|_|_|
  9. * |s C R i P T z - T E A M . i N F O|
  10. *
  11. * This file was created by sCRiPTz-TEAM.iNFO [DEiONCUBE TEAM]
  12. * @ IonCube & Zend & NuSphere DeCoder
  13. *
  14. * @    Version             :    1.0.0.3
  15. * @    Author              :    sCRiPTz-TEAM.iNFO
  16. * @    Released            :    26-December-2011
  17. * @    Official site       :    http://sCRiPTz-TEAM.iNFO
  18. *
  19. */
  20.  
  21. class help
  22. {
  23.  
  24.     public $config = array( );
  25.     public $skin = NULL;
  26.     public $words = array( );
  27.     public $html = null;
  28.     public $page_title = "";
  29.     public $privacyPolicyUrl = "http://firewallscript.com/privacy.txt";
  30.     public $tosUrl = "http://firewallscript.com/tos.txt";
  31.  
  32.     public function __construct( &$config, &$output )
  33.     {
  34.         $this->config =& $config;
  35.         $this->output =& $output;
  36.         $this->words = stringClass::loadwords( "help" );
  37.         $this->words = array_merge( $this->words, $output->words );
  38.         $this->skin = $output->loadTemplate( "help", $this->words );
  39.         $this->page_title = $this->words['help_page_title'];
  40.     }
  41.  
  42.     public function takeOff( )
  43.     {
  44.         $this->html = $this->skin->helpHome( );
  45.         $req = isset( $_REQUEST['req'] ) && $_REQUEST['req'] ? $_REQUEST['req'] : "overview";
  46.         switch ( $req )
  47.         {
  48.         case "privacy" :
  49.             $this->privacyPolicy( );
  50.             break;
  51.         case "tos" :
  52.             $this->termsOfService( );
  53.         }
  54.         return true;
  55.     }
  56.  
  57.     public function privacyPolicy( )
  58.     {
  59.         $contents = fileManagement::fetchurl( $this->privacyPolicyUrl );
  60.         $lang = sprintf( $this->words['privacy_link'], $this->privacyPolicyUrl );
  61.         $this->html .= $this->skin->ppAndTos( $this->words['goto_privacy'], $lang, nl2br( $contents ) );
  62.         return true;
  63.     }
  64.  
  65.     public function termsOfService( )
  66.     {
  67.         $contents = fileManagement::fetchurl( $this->tosUrl );
  68.         $lang = sprintf( $this->words['tos_link'], $this->tosUrl );
  69.         $this->html .= $this->skin->ppAndTos( $this->words['goto_tos'], $lang, nl2br( $contents ) );
  70.         return true;
  71.     }
  72.  
  73. }
  74.  
  75. ?>
Advertisement
Add Comment
Please, Sign In to add comment