Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- function attachment_updateviews($logfile) {
- $viewlog = $viewarray = array( );
- $newlog = DISCUZ_ROOT . $logfile . random( 6 );
- if (@rename( DISCUZ_ROOT . $logfile, $newlog )) {
- $viewlog = file( $newlog );
- unlink( $newlog );
- if (is_array( $viewlog )) {
- if (!( empty( $viewlog ))) {
- $viewlog = array_count_values( $viewlog );
- foreach ($viewlog as $id => $views) {
- if (0 < $id) {
- $viewarray[$views][] = intval( $id );
- continue;
- }
- }
- foreach ($viewarray as $ids) {
- $views = C::t( 'forum_attachment' )->update_download( $ids, $views );
- }
- }
- }
- }
- }
- function getgooglefile($attach, $readmod, $range) {
- if (DX_G::refreshtoken_by_accountid( $attach['saccid'] )) {
- $db = &DB::object( );
- $db->close( );
- try {
- $file = DX_G::i( 'drive' )->files->get( $attach['googleid'] );
- $downloadurl = $file->getDownloadUrl( );
- if ($downloadurl) {
- $request = new Google_HttpRequest( $downloadurl, 'GET', null, null );
- Google_Client;
- $httpRequest = $io->authenticatedRequest( $request );
- if ($httpRequest->getResponseHttpCode( ) == 200) {
- echo $httpRequest->getResponseBody( );
- flush( );
- return null;
- }
- }
- throw new Exception( );
- } catch (Exception $e) {
- exit( );
- }
- }
- }
- if (!defined( 'IN_DISCUZ' )) {
- exit( 'ACCESS DENIED' );
- }
- if (isset( $_GET['do'] )) {
- (true ? $_GET['do'] : $_GET['do']);
- }
- $_GET['do'] = '';
- require_once( DISCUZ_ROOT . './source/plugin/google/google.func.php' );
- require_once( libfile( 'class/discuz_google', 'plugin/google' ) );
- DX_G::init( );
- ..........................................................................
- .....................................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement