37 Commits

Author SHA1 Message Date
Tim Hunt
55656b0c7d MDL-51375 excel output: more work to avoid invalid sheet names 2015-10-06 05:44:50 +01:00
Tony Butler
1e31f11852 MDL-28484 core_lib: Add function for https detection
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
2014-10-03 13:02:29 +01:00
Adrian Greeve
4051685ba0 MDL-45395 lib: Removal of excel 5 spreadsheet creation files.
The excel 5 writer files were using OLE licensing which is GPL incompatible.
These classes are not used in core.
2014-06-12 10:41:42 +08:00
Petr Škoda
383d414478 MDL-42381 remove unused pear OLE library and other pear excel writer leftovers 2013-10-18 14:52:11 +02:00
Dan Poltawski
378b3eac83 MDL-36316 useragent: Reduce user agent sniffing
* core_useragent: Introduce is_vendor methods to improve readability
  when we are just detecting if a browser is from a vendor, rather than
  the exact version

* Remove uncessary browser version checks when we are just detecting
  vendors - this makes the intention of our sniffing clearer.

* Remove sniffing for browsers which we do not support, grades/ajax/tinymce
  all support modern browsers so there is no need to sniff for them.
2013-09-13 14:25:37 +08:00
Sam Hemelryk
c3d2fbf9cd MDL-40931 useragent: separated user agent functionality into a lib
This commit moves user agent related functionality out of several
core libraries and combines it into a more manageable class.
All core uses are converted and functions deprecated in favor
of the new class.
2013-08-26 13:59:19 +12:00
Damyon Wiese
9ead041cdb Revert "MDL-40931 useragent: separated user agent functionality into a lib"
This reverts commit af62237d0e6e27df868d50848f7098f57c103f86.
This reverts commit 87a4194fdcd322d4aee5a6207b55a8da0864da94.
This reverts commit b2c66eb60c01805f26cc791966f05be52af7b406.

Conflicts:

	version.php
2013-08-22 13:31:25 +08:00
Sam Hemelryk
af62237d0e MDL-40931 useragent: separated user agent functionality into a lib
This commit moves user agent related functionality out of several
core libraries and combines it into a more manageable class.
All core uses are converted and functions deprecated in favor
of the new class.
2013-08-16 09:02:01 +12:00
Petr Škoda
2f1e464a88 MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
Petr Škoda
8e7591654a MDL-35356 improve worksheet exports
This patch removes deprecated PEAR excel export lib in favour of newer PHPExcel,
the ODS exporter implementation is finished and a test script is included.

The default Excel format is now 2007, file extension is changed automatically
to match excel format.
2013-01-06 18:15:20 +01:00
Tim Hunt
bf4045599c MDL-36845 excel export: don't output invalid sheet names.
We should clean any proposed worksheet name, to remove the characters
that Excel does not allow.
2012-11-30 15:58:36 +00:00
Petr Skoda
f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Tom Lanyon
af9b14446d MDL-28701 Change uses of make_upload_directory(temp) to make_temp_directory(). 2011-09-10 10:43:49 +02:00
Tom Lanyon
7aa06e6ded MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir 2011-09-10 10:35:39 +02:00
Tim Hunt
0484f1ef01 MDL-21446 truncate >31 char worksheet names that otherwise break Excel export. 2011-03-09 14:43:44 +00:00
Dongsheng Cai
869bbb302b MDL-14934 fixed excel time in master branch, credits to Jonathon Fowler 2010-12-15 16:26:26 +08:00
Petr Skoda
71904f4d2b MDL-23984 make_upload_directory() cleanup - we now throw exceptions by default which should prevent a lot of strange problems 2010-08-29 14:59:14 +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
Petr Skoda
e4361ed601 MDL-19698 deprecated assign new by ref in our libs 2010-07-19 08:31:00 +00:00
Francois Marier
07ca3a4acf MDL-20781 lib/excellib: add write_date() function 2009-11-12 01:58:33 +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
samhemelryk
c030b5eea2 lib MDL-19236 Corrected copyright's 2009-05-26 09:29:18 +00:00
stronk7
6d5b31e119 Cleanup of phpdoc + some clarifications when specifying colors. MDL-14354 ; merged from 19_STABLE 2008-04-14 23:03:05 +00:00
dongsheng
dd41247ecc MDL-14249, add more needed functions to excellib.php 2008-04-11 07:41:49 +00:00
skodak
7fc1a27d05 MDL-90 fixed quickforms pear include regression; merged from MOODLE_19_STABLE 2008-02-27 11:09:27 +00:00
stronk7
21c3694069 Add support to specify text sizes via formats. MDL-13505 ; merged from 19_STABLE 2008-02-18 10:54:14 +00:00
nicolasconnault
b7064779f5 Updated copyright notice in header 2007-10-10 05:25:14 +00:00
stronk7
21fed7a3ed Minor change from 0 to null in formats. More correct and compatible
with previous (0) implementation. MDL-9911
2007-07-28 16:04:52 +00:00
stronk7
767e6e456a Moodle 1.9 doesn't know about $CFG->excelisofiles, only about
$CFG->latinexcelexport, the recommended way since 1.6. MDL-7993
2007-02-19 23:31:58 +00:00
stronk7
6362058124 Changing iso-8859-1 encoding of excel files to windows-1252. It adds support for
some more (a few) characters. MDL-7993

Merged from MOODLE_18_STABLE
2007-02-19 23:29:40 +00:00
stronk7
2f078622af Now excel can be generated under iso-8859-1 (safer) based on the
$CFG->excelisofiles (true/false) value. It allows iso-8859-1
compatible sites to use better Excel generation. MDL-7993.
2006-12-25 19:51:17 +00:00
skodak
810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
skodak
ffbf004fa1 MDL-7176 fixed comment; merged from MOODLE_17_STABLE 2006-11-05 18:28:03 +00:00
skodak
ce5ce1369f Excel export returns a zero bytes file when system temp not writable MDL-7176; merged from MOODLE_17_STABLE 2006-10-23 19:26:20 +00:00
stronk7
e6af2cad22 Added two new functions: set_column() and set_row()
(http://moodle.org/mod/forum/discuss.php?d=44634)
2006-05-02 15:28:02 +00:00
stronk7
766ad62808 Solve some notices that were breaking Excel generation under
some PHP versions. As bug is well documented but PEAR code hasn't
been changed in origin, we'll patch it here. Changes will
merge smoothly in the future, I think.
(Moode Bug: http://moodle.org/bugs/bug.php?op=show&bugid=4763)
(PEAR Bug: http://pear.php.net/bugs/bug.php?id=6509)
2006-04-11 22:49:09 +00:00
moodler
6aaa17c7cc Merging language-pack-related updates from Eloy's MOODLE_16_UTF8 branch.
Do not use that branch any more!!
2006-01-04 08:23:42 +00:00