JFIF    $         d d  7    * Z qn )ZP 0   !1 A "#a$2Qr   D8 a Ri [f  \m I ykI w0 c u F c Rı?lO7 к _f˓ [C $殷WF< _W ԣ s Kc ëI zyQy /_LK ℂ ;C",p F A : /] =H  ~ , l s / 9  ć: [=/#f ; ) x { ٛE Q )~     = 𘙲r*2~  a _V = '  ku m F  D } KYYC )( { * g& f `툪 r y ` = ^ c J. I ]( * `wq  1dđ #̩ ͑ 0  ; H ] u 搂 @:~ ו K L  N s h } O I R* 8 :2 ! lD JV o (  3 = M ( z Ȱ+i *N A  r6K n S l ) ! J J Ӂ* %  ݉?|D } d5: eP0 R; {$X' x F @ .ÊB {,WJ uQ ɲRI ;9 Q E琯 6 2fT .DU J ;*c  P A\IL Nj! J ۱+ O\ ͔ ] ޒ S߼ J ȧ c%A N ol  ՎprU L Zԛe r E2= X D Xg VQeӓ k y P7 U* o m Q I s ,K `) 6\G3t?pgjr m ۛجw luGt f  h 9uyP 0D;Uڽ"OXl i f $ ) &|ML 0 Z rm1 [ H XP l P R0  'G=i 2N +0 e 2 ]] 9 VT P  O׮ 7 h(F * 癈 ' = Q VZD F,d ߬ ~ T X G[ `le 69C R(!S2! P  < 0 x <     !1AQ "Raq 02Br #S CTb  ? Ζ "]mH5WR 7 k.ۛ ! } Q~ + yԏ z |@ T20 S~ K e k *zF f^2X *( @ 8 r ? C I uI|֓>^Ex LgNU Y+{.R Ѫ τV׸ YT D I 6 2 '8Y2  7'\T P.6 d &˦ @V q i  |8 -O Ε  ] ʔ U=   T L 8= ;6c |  !qfF3 a ů& ~$ l} 'NW U s$U k^S V : U# 6w +  +s &r+n ڐ   { @ 29 gL u " T Ù  M=6  (^ "7 r}=6Yݾ lC u hquymp Ǧ G jhs ǜNl ɻ} o 7 #S6 a w 4 !  OS  r D  5 7 % | ?x> L |  / nD 6?/8 w # [ ) L 7 +6〼T A T g   !  %5  Mm Z /c  -{1_Je "| ^$ 'O  & ޱմ < H vNqϡQ$ < 6 &Nݛ ֨tǻN (9 n ru~'όN sMG& ,uH Kw *Ī 5@  u6  BԒ  i YN * f 0 _ GhKW u  lT <nj- 0{  M L~ | /a v\ E = ?1 \ɟuq Ђ Y O a K ޡP q  $ H8o Q˼EV ~ k 0 h' L  Pp M -M"  m^ !6l nմ 쮝C U T . ! :vMǨb h ډ Vc r @񄞅~p   #   !1QAa q  ? AL0L  x LU 4 d ; x   " 16ad0 7.\ߋ 0  = P l v/ " c A Ay A|2pO8"d MV #1] = \ " ˡ ] k v I9 d ۓ & q ) ǐq E ꞅ v "P )q X  &Q  З non]я u ג./ ; gZ$ M QР 2M ]h ni 0  P $ێ 3CɏGjώy : m c # S_ l@ '_ \m|C 2`K _  1 cIvGc $? PCQ S+D ? K aײ k Fr b 8 ύ NEدg ĝ U 3  6 #Ik+ v  {ƒ v i ( ވ  ? a e)  X xy/*@Q Ǽ Ծ ) $ IWO l c G;  !i  k{ gOŀ L ('x  T rb $ w) R $ & N1E td U3Uȉ1p M"N* (DNy d96.(jQ)  X 5 c QɎMy W ?  Q *!R > 6=7)Xj 5`J ] e  8%t ! + ' ! 1Q 5   !1 AQaq ё #2 "0BRb ? G t^ ## .l lQ T $  v , ,m   㵜5u bV  =sY+ @d { N ! dn O < .- B;  _w J t 6;Q  Jd. Q c%p{ 1 ,sND dF H I0 Гo X ш  e黅X ۢ F :)[ F G X ƹ / w _c MeD   ,ʡc c .  W D  tA $ j@ : ) - # u c1< @ۗ9F ) KJ- hpP] _ x [ q B lb p ʖ w q " LFGd ƶ * s +ډ_Zc " ? % t[I P  6 J ]# =ɺ V v v CGs Gh1 > )6 |e y ? L ӣ m,4 G W Ui ` ] uJVo VDG< SB 6ϏQ @ TiU l y O U 0 kfV ~ ~}S Z @ *WU Ui ## ; s /[ = ! 7}" W N ] ' (L !  ~ y5 g9T̅J kbM' +s :S +B) v @ M  j e C f j E 0  Y\Qn z G 1 д~ W o{T 9?`  Rm yhsy3 !HAD ] m  c1 ~ 2 L  S u7x T ;j$ `} 4-> L#  vzŏ I L S  ֭  T { r  jGK C ; b  pU= - ` Bs K. S F w4  M q] Z dH S 0 ) tLg Tiny File Manager | Config.php
<?php /* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * A class to contain the library configuration for the Google API client. */ class UDP_Google_Config { const GZIP_DISABLED = true; const GZIP_ENABLED = false; const GZIP_UPLOADS_ENABLED = true; const GZIP_UPLOADS_DISABLED = false; const USE_AUTO_IO_SELECTION = "auto"; const TASK_RETRY_NEVER = 0; const TASK_RETRY_ONCE = 1; const TASK_RETRY_ALWAYS = -1; protected $configuration; /** * Create a new UDP_Google_Config. Can accept an ini file location with the * local configuration. For example: * application_name="My App" * * @param [$ini_file_location] - optional - The location of the ini file to load */ public function __construct($ini_file_location = null) { $this->configuration = array( // The application_name is included in the User-Agent HTTP header. 'application_name' => '', // Which Authentication, Storage and HTTP IO classes to use. 'auth_class' => 'Google_Auth_OAuth2', 'io_class' => self::USE_AUTO_IO_SELECTION, 'cache_class' => 'Google_Cache_File', 'logger_class' => 'Google_Logger_Null', // Don't change these unless you're working against a special development // or testing environment. 'base_path' => 'https://www.googleapis.com', // Definition of class specific values, like file paths and so on. 'classes' => array( 'UDP_Google_IO_Abstract' => array( 'request_timeout_seconds' => 100, ), 'Google_Logger_Abstract' => array( 'level' => 'debug', 'log_format' => "[%datetime%] %level%: %message% %context%\n", 'date_format' => 'd/M/Y:H:i:s O', 'allow_newlines' => true ), 'Google_Logger_File' => array( 'file' => 'php://stdout', 'mode' => 0640, 'lock' => false, ), 'UDP_Google_Http_Request' => array( // Disable the use of gzip on calls if set to true. Defaults to false. 'disable_gzip' => self::GZIP_ENABLED, // We default gzip to disabled on uploads even if gzip is otherwise // enabled, due to some issues seen with small packet sizes for uploads. // Please test with this option before enabling gzip for uploads in // a production environment. 'enable_gzip_for_uploads' => self::GZIP_UPLOADS_DISABLED, ), // If you want to pass in OAuth 2.0 settings, they will need to be // structured like this. 'Google_Auth_OAuth2' => array( // Keys for OAuth 2.0 access, see the API console at // https://developers.google.com/console 'client_id' => '', 'client_secret' => '', 'redirect_uri' => '', // Simple API access key, also from the API console. Ensure you get // a Server key, and not a Browser key. 'developer_key' => '', // Other parameters. 'hd' => '', 'prompt' => '', 'openid.realm' => '', 'include_granted_scopes' => '', 'login_hint' => '', 'request_visible_actions' => '', 'access_type' => 'online', 'approval_prompt' => 'auto', 'federated_signon_certs_url' => 'https://www.googleapis.com/oauth2/v1/certs', ), 'Google_Task_Runner' => array( // Delays are specified in seconds 'initial_delay' => 1, 'max_delay' => 60, // Base number for exponential backoff 'factor' => 2, // A random number between -jitter and jitter will be added to the // factor on each iteration to allow for better distribution of // retries. 'jitter' => .5, // Maximum number of retries allowed 'retries' => 0 ), 'UDP_Google_Service_Exception' => array( 'retry_map' => array( '500' => self::TASK_RETRY_ALWAYS, '503' => self::TASK_RETRY_ALWAYS, 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS ) ), 'UDP_Google_IO_Exception' => array( 'retry_map' => !extension_loaded('curl') ? array() : array( CURLE_COULDNT_RESOLVE_HOST => self::TASK_RETRY_ALWAYS, CURLE_COULDNT_CONNECT => self::TASK_RETRY_ALWAYS, CURLE_OPERATION_TIMEOUTED => self::TASK_RETRY_ALWAYS, CURLE_SSL_CONNECT_ERROR => self::TASK_RETRY_ALWAYS, CURLE_GOT_NOTHING => self::TASK_RETRY_ALWAYS ) ), // Set a default directory for the file cache. 'Google_Cache_File' => array( 'directory' => sys_get_temp_dir() . '/UDP_Google_Client' ) ), ); if ($ini_file_location) { $ini = parse_ini_file($ini_file_location, true); if (is_array($ini) && count($ini)) { $merged_configuration = $ini + $this->configuration; if (isset($ini['classes']) && isset($this->configuration['classes'])) { $merged_configuration['classes'] = $ini['classes'] + $this->configuration['classes']; } $this->configuration = $merged_configuration; } } } /** * Set configuration specific to a given class. * $config->setClassConfig('Google_Cache_File', * array('directory' => '/tmp/cache')); * @param $class string The class name for the configuration * @param $config string key or an array of configuration values * @param $value string optional - if $config is a key, the value */ public function setClassConfig($class, $config, $value = null) { if (!is_array($config)) { if (!isset($this->configuration['classes'][$class])) { $this->configuration['classes'][$class] = array(); } $this->configuration['classes'][$class][$config] = $value; } else { $this->configuration['classes'][$class] = $config; } } public function getClassConfig($class, $key = null) { if (!isset($this->configuration['classes'][$class])) { return null; } if ($key === null) { return $this->configuration['classes'][$class]; } else { return $this->configuration['classes'][$class][$key]; } } /** * Return the configured cache class. * @return string */ public function getCacheClass() { return $this->configuration['cache_class']; } /** * Return the configured logger class. * @return string */ public function getLoggerClass() { return $this->configuration['logger_class']; } /** * Return the configured Auth class. * @return string */ public function getAuthClass() { return $this->configuration['auth_class']; } /** * Set the auth class. * * @param $class string the class name to set */ public function setAuthClass($class) { $prev = $this->configuration['auth_class']; if (!isset($this->configuration['classes'][$class]) && isset($this->configuration['classes'][$prev])) { $this->configuration['classes'][$class] = $this->configuration['classes'][$prev]; } $this->configuration['auth_class'] = $class; } /** * Set the IO class. * * @param $class string the class name to set */ public function setIoClass($class) { $prev = $this->configuration['io_class']; if (!isset($this->configuration['classes'][$class]) && isset($this->configuration['classes'][$prev])) { $this->configuration['classes'][$class] = $this->configuration['classes'][$prev]; } $this->configuration['io_class'] = $class; } /** * Set the cache class. * * @param $class string the class name to set */ public function setCacheClass($class) { $prev = $this->configuration['cache_class']; if (!isset($this->configuration['classes'][$class]) && isset($this->configuration['classes'][$prev])) { $this->configuration['classes'][$class] = $this->configuration['classes'][$prev]; } $this->configuration['cache_class'] = $class; } /** * Set the logger class. * * @param $class string the class name to set */ public function setLoggerClass($class) { $prev = $this->configuration['logger_class']; if (!isset($this->configuration['classes'][$class]) && isset($this->configuration['classes'][$prev])) { $this->configuration['classes'][$class] = $this->configuration['classes'][$prev]; } $this->configuration['logger_class'] = $class; } /** * Return the configured IO class. * * @return string */ public function getIoClass() { return $this->configuration['io_class']; } /** * Set the application name, this is included in the User-Agent HTTP header. * @param string $name */ public function setApplicationName($name) { $this->configuration['application_name'] = $name; } /** * @return string the name of the application */ public function getApplicationName() { return $this->configuration['application_name']; } /** * Set the client ID for the auth class. * @param $clientId string - the API console client ID */ public function setClientId($clientId) { $this->setAuthConfig('client_id', $clientId); } /** * Set the client secret for the auth class. * @param $secret string - the API console client secret */ public function setClientSecret($secret) { $this->setAuthConfig('client_secret', $secret); } /** * Set the redirect uri for the auth class. Note that if using the * Javascript based sign in flow, this should be the string 'postmessage'. * * @param $uri string - the URI that users should be redirected to */ public function setRedirectUri($uri) { $this->setAuthConfig('redirect_uri', $uri); } /** * Set the app activities for the auth class. * @param $rva string a space separated list of app activity types */ public function setRequestVisibleActions($rva) { $this->setAuthConfig('request_visible_actions', $rva); } /** * Set the the access type requested (offline or online.) * @param $access string - the access type */ public function setAccessType($access) { $this->setAuthConfig('access_type', $access); } /** * Set when to show the approval prompt (auto or force) * @param $approval string - the approval request */ public function setApprovalPrompt($approval) { $this->setAuthConfig('approval_prompt', $approval); } /** * Set the login hint (email address or sub identifier) * @param $hint string */ public function setLoginHint($hint) { $this->setAuthConfig('login_hint', $hint); } /** * Set the developer key for the auth class. Note that this is separate value * from the client ID - if it looks like a URL, its a client ID! * @param $key string - the API console developer key */ public function setDeveloperKey($key) { $this->setAuthConfig('developer_key', $key); } /** * Set the hd (hosted domain) parameter streamlines the login process for * Google Apps hosted accounts. By including the domain of the user, you * restrict sign-in to accounts at that domain. * * This should not be used to ensure security on your application - check * the hd values within an id token (@see Google_Auth_LoginTicket) after sign * in to ensure that the user is from the domain you were expecting. * * @param $hd string - the domain to use. */ public function setHostedDomain($hd) { $this->setAuthConfig('hd', $hd); } /** * Set the prompt hint. Valid values are none, consent and select_account. * If no value is specified and the user has not previously authorized * access, then the user is shown a consent screen. * @param $prompt string */ public function setPrompt($prompt) { $this->setAuthConfig('prompt', $prompt); } /** * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which * an authentication request is valid. * @param $realm string - the URL-space to use. */ public function setOpenidRealm($realm) { $this->setAuthConfig('openid.realm', $realm); } /** * If this is provided with the value true, and the authorization request is * granted, the authorization will include any previous authorizations * granted to this user/application combination for other scopes. * @param $include boolean - the URL-space to use. */ public function setIncludeGrantedScopes($include) { $this->setAuthConfig( 'include_granted_scopes', $include ? "true" : "false" ); } /** * @return string the base URL to use for API calls */ public function getBasePath() { return $this->configuration['base_path']; } /** * Set the auth configuration for the current auth class. * @param $key - the key to set * @param $value - the parameter value */ private function setAuthConfig($key, $value) { if (!isset($this->configuration['classes'][$this->getAuthClass()])) { $this->configuration['classes'][$this->getAuthClass()] = array(); } $this->configuration['classes'][$this->getAuthClass()][$key] = $value; } }