, $results) = GalleryCoreApi::updateMapEntry('GalleryCacheMap', array('userId' => $userIdForSql, 'timestamp' => new GallerySqlFragment('< ?', (int)$cutoff), 'isEmpty' => 0), array('value' => null, 'isEmpty' => 1)); if ($ret) { return $ret; } return null; } } ?> bledUsername($userName); } /** * Get a list of entity members which are allowed to be shown / set by external systems (e.g. * via remote protocols like WebDAV, XML-RPC, etc). * This does not include any permission checking. * @param string $entityName name of the entity * @return array object GalleryStatus a status code * array(string memberName => * array('read' => boolean true if it's ok to show, * 'write' => boolean true if it's ok to set)) */ function getExternalAccessMemberList($entityName) { GalleryCoreApi::requireOnce( 'modules/core/classes/helpers/GalleryEntityHelper_medium.class'); return GalleryEntityHelper_medium::getExternalAccessMemberList($entityName); } } ?> $string); } if (isset($postSprintf)) { $result = $this->translate($string); } if (!isset($result) || $result == $string) { $result = $this->translate($params); } if (isset($string)) { GalleryDataCache::put('_translate ' . $string, $result); } return $result; } } ?> return glob($pattern, $flags); } else { return glob($pattern); } } /** * Clear any cached saved state in this platform. */ function resetPlatform() { unset($this->_umask); unset($this->_filePerms); unset($this->_dirPerms); } } ?> ?> g1' => $navItem['returnName'])); } else { $name = $core->translate('Back'); } $url = GalleryUrlGenerator::appendParamsToUrl($url, $params); $links[] = array('url' => $url, 'name' => $name); } return array(null, $links); } /** * Decide whether to include session id in the URL. * * Force the session id in the URL for embedded DownloadItem URLs if the cookie.path plugin * parameter is not set. See GallerySession::init for details * * @param array $params (string param) * @return boolean forceSessionId * @access protected */ function embedForceSessionId($params) { if (isset($params['view']) && $params['view'] == 'core.DownloadItem' && GalleryUtilities::isEmbedded() && empty($this->_isCookiePathConfigured)) { /* * It is assumed that the Gallery session is initiated before generateUrl() is called * for the first time */ return true; } else { return false; } } } ?> ceDirect=false) { return $this->getCurrentUrlDir($forceDirect); } /** * Return the base URL parameters for all generated short URLs, e.g. '?module=gallery'. * @param boolean $forceDirect (optional) if true, return Gallery base URL * (different when embedded) * @return string the base URL parameters * @access private */ function _getBaseParamString($forceDirect=false) { return ''; } } ?> > rn string uncompressed data */ function gzinflate($data, $length=null) { if (isset($length)) { return gzinflate($data, $length); } else { return gzinflate($data); } } /** * Checks if the class has been defined * @param string $class_name * @return bool true if $class_name is a defined class, false otherwise. */ function class_exists($class_name) { return class_exists($class_name); } } ?> } } ?> /** * @todo Consider removing this method when refactoring the renderer code. */ function getRenderer() { /* See bug 1662652 */ return null; } } ?> etConfig('mode.maintenance')) { return null; } else { return GalleryCoreApi::error(ERROR_REQUEST_FORGED); } } } } ?> f('', $continueUrl); } } ?> to byte length depending on the MySQL * version. * @see GalleryStorage::_truncateString */ function _truncateString($value, $size, $lengthInBytes=false) { static $lengthInBytes; if (!isset($lengthInBytes)) { $lengthInBytes = $this->_serverInfo && version_compare($this->_serverInfo, '4.1.0', '<'); } return parent::_truncateString($value, $size, $lengthInBytes); } } ?> ode = MYSQL_ASSOC; break; case ADODB_FETCH_DEFAULT: case ADODB_FETCH_BOTH: default: $this->fetchMode = MYSQL_BOTH; break; } $this->adodbFetchMode = $mode; $this->ADORecordSet($queryID); } function MoveNext() { return @adodb_movenext($this); } } } ?> imestamp = $originationTimestamp; } } ?> t) { return array($ret, null); } $hasPermission = ($searchResults->resultCount() > 0); return array(null, $hasPermission); } } ?> eApi::fetchPermissionsForItems( array($itemId), $userId, $sessionPermissions); if ($ret) { return array($ret, null); } if (isset($permissionsTable[$itemId])) { $permissions = $permissionsTable[$itemId]; } else { $permissions = array(); /* fetchPermissionsForItems already caches all hits, cache misses here too. */ GalleryDataCache::put($cacheKey, array()); } } return array(null, $permissions); } } ?> (); } } ?> } } return array(null, $links); } } ?> Gallery