29 Commits

Author SHA1 Message Date
Sara Arjona
0cc61bbfc6 MDL-58939 lib_google: Remove google_picasa class
Picasa is discontinued since 2016 so google_picasa class has been
removed from core Moodle (it makes no sense to deprecate it because
it's not working properly)..
2021-09-17 10:46:10 +02:00
Damyon Wiese
d3882ea4a3 MDL-60733 core: B/C for google_oauth
The google_oauth class extends oauth2client which was modified to send "Accept" headers.

The "Accept" headers break picasa and could break any other plugin that was using google_oauth.
2017-11-08 15:41:53 +08:00
Damyon Wiese
663640f5b3 MDL-40759 icons: convert uses of pix_url to pix_icon
Also change filepicker to use scaled svgs instead of sets of custom pngs. The svgs are taken from font-awesome.
2017-03-17 15:52:17 +08:00
Petr Skoda
d6e7a63d9a MDL-49684 timezones: rewrite timezone support
This patch replaces all homegrown timezone
stuff with standard PHP date/time code.

The main change is the introduction of core_date
class that returns normalised user and server
timezones. From now on nobody should be using
$CFG->timezone or $user->timezone directly!

Other new features and fixes:
* admins are prompted for timezone during install
* editing of other users is finally fixed
* timezones are displayed in user profile
* new $this->setTimezone() in phpunit
* time locale is now automatically reset in phpunit
* timezone is now automatically reset in phpunit
* phpunit has Australia/Perth as default timezone
2015-04-06 13:53:51 +12:00
Frederic Massart
f03671950f MDL-26660 libraries: Improved XML validation before parsing 2012-11-16 12:12:57 +08:00
Frederic Massart
5735454d8f MDL-26660 libraries: Do not try to parse non-valid XML 2012-10-30 09:22:48 +08:00
Frederic Massart
ec7e998f4b MDL-35034 Repository: Google Docs does not fail when download is restricted 2012-09-03 14:12:43 +08:00
Marina Glancy
7bb7bd2e79 MDL-34290 Added timeout to googledocs request to download a file 2012-08-29 11:56:18 +08:00
Dan Poltawski
d9d59e3911 MDL-33551 googleapi: allow multiple uploads in one session
We need to clear state between multiple uploads
2012-06-07 16:38:10 +08:00
Dan Poltawski
4560fd1b66 MDL-29857 - google apis: Convert to OAuth 2.0
Updated the various plugins to use OAuth 2.0 for authentication
against google apis. Google are phasing out AuthSub and pushing OAuth as
the replacement.

This changes repository_googledocs, repository_picasa,
portfolio_googledocs and portfolio_picasa

The token for requests is now stored in session rather than a user
prefence and it persists less but doesn't bother the user more than
necessary.

The google docs portfolio plugin is converted to use resumable upload
API as this appears to be what Google have replaced this with.

Unfortunately unlike authsub OAuth will require some setup by admins,
this is linked as a docs page.
2012-05-31 00:00:25 +08:00
Dan Poltawski
f40f6c14b1 MDL-32221 - googledocs: Add support for all file types.
Now google supports 'file' as well as converted formats.
2012-05-29 10:13:21 +08:00
Marina Glancy
169709383a MDL-32416: Picasa repository now returns path, also fixed album title retrieval 2012-05-03 11:30:08 +08:00
Marina Glancy
a45e65206a MDL-32171: add 'Manage' link to Picasa repository 2012-03-30 08:33:28 +08:00
Dan Poltawski
e0daa8499a MDL-29661 - lib/googleapi.php - Switch to SSL urls
I am not sure why I did not use these in the first instance, I don't
think Google supported SSL in the first versions of their API.

They do now, and it seems that this week they stopped supporting non-ssl
requests.
2011-10-10 16:27:53 +13:00
Petr Skoda
7c109ea3f0 MDL-24276 "static abstract" combination is deprecated since PHP 5.2, replacing with our coding_style exception 2010-09-19 18:43:52 +00:00
Dan Poltawski
b1ebc904ff lib/googleapi MDL-24111 - Google Docs Repository Broken
This seems to be related to problems at googles end with perhaps
the api not being correctly implemented to start with. Particularly the
docID was incorrect.

I think google worked around the problem with a redirect which the curl
download_file downloaded rather than followed the redirect.
2010-09-07 20:40:09 +00:00
Petr Skoda
78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
Dan Poltawski
cf8af57ce9 googledocs MDL-21881 - restore icons to repo plugin 2010-03-21 13:32:43 +00:00
Petr Skoda
b5d0cafc6f MDL-20787 final switch to new $OUTPUT->pix_url() - yay! 2009-12-16 21:50:45 +00:00
Dan Poltawski
d6da109e03 lib/googleapi: MDL-20898 Use Google Docs 3.0 API
With the 3.0 version of the API, PDF upload/download is supported by
the repository/portfolio plugins.
2009-11-19 00:07:03 +00:00
Petr Skoda
117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
dongsheng
5b5c385cd8 "MDL-19272, fixed undefined ->pixpath in google docs plugin" 2009-05-26 01:48:31 +00:00
samhemelryk
ba21c9d440 lib MDL-19236 added phpdocs and copyrights 2009-05-25 08:27:25 +00:00
poltawski
6667f9e439 repository/googledocs New repository plugin MDL-16383
Google have now allowed documents to be downloaded via their API
(http://googledataapis.blogspot.com/2009/02/start-downloads.html) so
the google docs repo plugin could be finished.

At the moment i've set the export format hardcoded, hopefully we can allow the
repo api let the user choose later...
2009-03-08 15:53:11 +00:00
moodler
034cd164be repository/picasa MDL-17473 Added a preview link 2009-01-19 06:42:09 +00:00
moodler
d44cee76fa repository/picasa MDL-17473 Use picasa description as the filename if it exists 2009-01-19 06:19:26 +00:00
moodler
5d2ee15194 repository/picasa MDL-17473 Hardcode image heights and widths for nicer display 2009-01-19 05:59:47 +00:00
poltawski
83b510875d repository: New Picasa Web Albums Plugin MDL-17473 2008-11-30 17:37:06 +00:00
poltawski
ee91cf9591 portfolio: MDL-16417 - Adding googledocs/picasa plugins
* Added simple library for googleapi things
* Respository plugins to follow
2008-11-29 20:24:25 +00:00