Advertisement
Guest User

Untitled

a guest
Oct 7th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.6.0
  8. * @ Author : DeZender
  9. * @ Release on : 02.06.2013
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function attachment_updateviews($logfile) {
  15. $viewlog = $viewarray = array( );
  16. $newlog = DISCUZ_ROOT . $logfile . random( 6 );
  17.  
  18. if (@rename( DISCUZ_ROOT . $logfile, $newlog )) {
  19. $viewlog = file( $newlog );
  20. unlink( $newlog );
  21.  
  22. if (is_array( $viewlog )) {
  23. if (!( empty( $viewlog ))) {
  24. $viewlog = array_count_values( $viewlog );
  25. foreach ($viewlog as $id => $views) {
  26. if (0 < $id) {
  27. $viewarray[$views][] = intval( $id );
  28. continue;
  29. }
  30. }
  31.  
  32. foreach ($viewarray as $ids) {
  33. $views = C::t( 'forum_attachment' )->update_download( $ids, $views );
  34. }
  35. }
  36. }
  37. }
  38.  
  39. }
  40.  
  41. function getgooglefile($attach, $readmod, $range) {
  42. if (DX_G::refreshtoken_by_accountid( $attach['saccid'] )) {
  43. $db = &DB::object( );
  44.  
  45. $db->close( );
  46. try {
  47. $file = DX_G::i( 'drive' )->files->get( $attach['googleid'] );
  48. $downloadurl = $file->getDownloadUrl( );
  49.  
  50. if ($downloadurl) {
  51. $request = new Google_HttpRequest( $downloadurl, 'GET', null, null );
  52. Google_Client;
  53. $httpRequest = $io->authenticatedRequest( $request );
  54.  
  55. if ($httpRequest->getResponseHttpCode( ) == 200) {
  56. echo $httpRequest->getResponseBody( );
  57. flush( );
  58. return null;
  59. }
  60. }
  61.  
  62. throw new Exception( );
  63. } catch (Exception $e) {
  64. exit( );
  65. }
  66.  
  67. }
  68. }
  69.  
  70.  
  71. if (!defined( 'IN_DISCUZ' )) {
  72. exit( 'ACCESS DENIED' );
  73. }
  74.  
  75.  
  76. if (isset( $_GET['do'] )) {
  77. (true ? $_GET['do'] : $_GET['do']);
  78. }
  79.  
  80. $_GET['do'] = '';
  81. require_once( DISCUZ_ROOT . './source/plugin/google/google.func.php' );
  82. require_once( libfile( 'class/discuz_google', 'plugin/google' ) );
  83. DX_G::init( );
  84. ..........................................................................
  85. .....................................
  86. .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement