platal.git
9 years agoRelease plat/al core v1.1.13 core/1.1.13/maint core/master core/1.1.13
Nicolas Iooss [Sat, 21 Jun 2014 15:17:49 +0000 (17:17 +0200)]
Release plat/al core v1.1.13

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
9 years agoAllow parenthesis before hasPerm in smarty templates
Nicolas Iooss [Mon, 26 May 2014 21:14:00 +0000 (23:14 +0200)]
Allow parenthesis before hasPerm in smarty templates

In smarty templates, this syntax works fine:

    {if !hasPerm('directory_private') && other_test() }

... but not this one:

    {if (!hasPerm('directory_private') || test1()) && test2()}

... because the regexp which handle hasPerm "function" in smarty does
not support parenthesis.

Fix this bug by explicitly allowing space and open parenthesis before
hasPerm().

10 years agoAdd sort_name to pluser.
Anne Limoges [Wed, 9 Apr 2014 18:50:28 +0000 (20:50 +0200)]
Add sort_name to pluser.

10 years agoRelease plat/al core v1.1.12 core/1.1.12/maint core/1.1.12
Victor Berger [Sat, 8 Mar 2014 18:05:44 +0000 (19:05 +0100)]
Release plat/al core v1.1.12

Signed-off-by: Victor Berger <victor.berger@m4x.org>
10 years agoFix CSS error in backtrace (missing text- before align property)
Nicolas Iooss [Sat, 14 Dec 2013 17:22:47 +0000 (18:22 +0100)]
Fix CSS error in backtrace (missing text- before align property)

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
10 years agoFixes vim mode line.
Thomas Minvielle [Sun, 2 Feb 2014 16:52:23 +0000 (17:52 +0100)]
Fixes vim mode line.

10 years agoRelease plat/al core v1.1.11 core/1.1.11/maint core/1.1.11
Raphaël Barrois [Sun, 8 Dec 2013 17:46:13 +0000 (18:46 +0100)]
Release plat/al core v1.1.11

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
10 years agoUpdate ChangeLog
Raphaël Barrois [Sun, 8 Dec 2013 17:44:29 +0000 (18:44 +0100)]
Update ChangeLog

10 years agoRemove unused reference to $globals in PlPage
Nicolas Iooss [Mon, 14 Oct 2013 19:28:19 +0000 (21:28 +0200)]
Remove unused reference to $globals in PlPage

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
10 years agoUse default configuration if no config file is to be found
Nicolas Iooss [Mon, 14 Oct 2013 19:24:12 +0000 (21:24 +0200)]
Use default configuration if no config file is to be found

This is useful for tests

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
10 years agoDon't show RSS link on site_errors if no user token is found
Nicolas Iooss [Mon, 14 Oct 2013 19:23:45 +0000 (21:23 +0200)]
Don't show RSS link on site_errors if no user token is found

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
10 years agoFix a missing second parameter in a PlMemcacheCache exception
Nicolas Iooss [Mon, 14 Oct 2013 19:23:12 +0000 (21:23 +0200)]
Fix a missing second parameter in a PlMemcacheCache exception

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
10 years agoMake tests work
Nicolas Iooss [Mon, 14 Oct 2013 19:22:24 +0000 (21:22 +0200)]
Make tests work

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
10 years agoDon't force platal core to be in core/ directory
Nicolas Iooss [Mon, 14 Oct 2013 19:20:42 +0000 (21:20 +0200)]
Don't force platal core to be in core/ directory

* Add a $globals->coreroot variable
* pl_autoload searches in core first, then in spoolroot

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
10 years agoFix PlErrorReport::fromCSV by adding a missing static
Nicolas Iooss [Mon, 14 Oct 2013 19:10:14 +0000 (21:10 +0200)]
Fix PlErrorReport::fromCSV by adding a missing static

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
10 years agoBackport fixes.
Raphaël Barrois [Tue, 15 Oct 2013 21:08:33 +0000 (23:08 +0200)]
Backport fixes.

11 years agoRelease plat/al core v1.1.10 core/1.1.10
Raphaël Barrois [Wed, 15 May 2013 23:14:03 +0000 (01:14 +0200)]
Release plat/al core v1.1.10

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
11 years agoAdd an extension hook for error reporting.
Raphaël Barrois [Fri, 5 Apr 2013 21:22:54 +0000 (23:22 +0200)]
Add an extension hook for error reporting.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
11 years agoPuts the erase button at the top of the site_errors page.
Anne Limoges [Fri, 5 Apr 2013 14:14:55 +0000 (16:14 +0200)]
Puts the erase button at the top of the site_errors page.

11 years agoTypo
Anne Limoges [Sat, 2 Mar 2013 09:13:38 +0000 (10:13 +0100)]
Typo

11 years agoRelease plat/al core v1.1.9 core/1.1.9/maint core/1.1.9
Raphaël Barrois [Mon, 18 Feb 2013 21:26:01 +0000 (22:26 +0100)]
Release plat/al core v1.1.9

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
11 years agoAdds the possibility to have a link in a tableeditor.
Anne Limoges [Wed, 13 Feb 2013 15:16:36 +0000 (16:16 +0100)]
Adds the possibility to have a link in a tableeditor.

11 years agoRelease plat/al core v1.1.8 core/1.1.8/maint core/1.1.8
Raphaël Barrois [Wed, 14 Nov 2012 23:30:06 +0000 (00:30 +0100)]
Release plat/al core v1.1.8

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
11 years agoFix typo in PlCache's memcached backend.
Florent Bruneau [Sat, 18 Aug 2012 14:17:38 +0000 (16:17 +0200)]
Fix typo in PlCache's memcached backend.

Signed-off-by: Nicolas Iooss <nicolas.iooss@polytechnique.org>
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
11 years agoImplements pl_var_dump.
Stéphane Jacob [Sat, 16 Jun 2012 18:18:17 +0000 (20:18 +0200)]
Implements pl_var_dump.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
11 years agoGet ready for next version
Stéphane Jacob [Thu, 31 May 2012 20:08:02 +0000 (22:08 +0200)]
Get ready for next version

Signed-off-by: Stéphane Jacob <sj@m4x.org>
11 years agoRelease plat/al core v1.1.7 core/1.1.7
Stéphane Jacob [Thu, 31 May 2012 19:59:46 +0000 (21:59 +0200)]
Release plat/al core v1.1.7

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoFixes ML's replace_email_in_all function (Closes #1592).
Stéphane Jacob [Sun, 8 Apr 2012 19:57:45 +0000 (21:57 +0200)]
Fixes ML's replace_email_in_all function (Closes #1592).

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoLog javascript errors.
Florent Bruneau [Sat, 7 Apr 2012 14:00:59 +0000 (16:00 +0200)]
Log javascript errors.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
12 years agoFixes lists in miniwiki.
Cyprien Mangin [Wed, 4 Apr 2012 23:51:18 +0000 (01:51 +0200)]
Fixes lists in miniwiki.

It actually forbids nested lists, but the miniwiki syntax was ambiguous
for these.

Signed-off-by: Cyprien Mangin <cyprien.mangin@m4x.org>
12 years agoGet ready for next version
Stéphane Jacob [Mon, 14 Nov 2011 21:03:57 +0000 (22:03 +0100)]
Get ready for next version

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoRelease plat/al core v1.1.6 core/1.1.6/maint core/1.1.6
Stéphane Jacob [Mon, 14 Nov 2011 20:50:30 +0000 (21:50 +0100)]
Release plat/al core v1.1.6

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoOoops.
Stéphane Jacob [Sun, 23 Oct 2011 12:22:06 +0000 (14:22 +0200)]
Ooops.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoOnly returns one instance of each user.
Stéphane Jacob [Sat, 22 Oct 2011 17:20:28 +0000 (19:20 +0200)]
Only returns one instance of each user.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoAllows to set file name in headers.
Stéphane Jacob [Mon, 3 Oct 2011 20:01:17 +0000 (22:01 +0200)]
Allows to set file name in headers.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoRetrieves total count for pl_set, before applying restrictions.
Stéphane Jacob [Tue, 27 Sep 2011 22:22:54 +0000 (00:22 +0200)]
Retrieves total count for pl_set, before applying restrictions.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoAdds tables in MiniWiki (Closes #773).
Stéphane Jacob [Thu, 22 Sep 2011 14:55:28 +0000 (16:55 +0200)]
Adds tables in MiniWiki (Closes #773).

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoOops wrong spaces.
Stéphane Jacob [Tue, 13 Sep 2011 09:30:48 +0000 (11:30 +0200)]
Oops wrong spaces.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoKeep backwards compatibility with AUTH_MDP.
Stéphane Jacob [Tue, 13 Sep 2011 09:14:15 +0000 (11:14 +0200)]
Keep backwards compatibility with AUTH_MDP.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoRenames AUTH_MDP to AUTH_PASSWD.
Stéphane Jacob [Tue, 13 Sep 2011 08:20:17 +0000 (10:20 +0200)]
Renames AUTH_MDP to AUTH_PASSWD.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoGet ready for next version
Stéphane Jacob [Tue, 28 Jun 2011 16:58:23 +0000 (18:58 +0200)]
Get ready for next version

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoRelease plat/al core v1.1.5 core/1.1.5/maint core/1.1.5
Stéphane Jacob [Tue, 28 Jun 2011 11:24:05 +0000 (13:24 +0200)]
Release plat/al core v1.1.5

Signed-off-by: Stéphane Jacob <sj@m4x.org>
12 years agoUpdate ChangeLog.
Raphaël Barrois [Mon, 27 Jun 2011 10:32:01 +0000 (12:32 +0200)]
Update ChangeLog.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
12 years agoFix handling of 'display' field for PlTableEditor.
Raphaël Barrois [Sun, 26 Jun 2011 22:22:54 +0000 (00:22 +0200)]
Fix handling of 'display' field for PlTableEditor.

Now split into two subfields:
* display_list controls the display in list mode
* display_item controls the display in 'item' mode

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
12 years agoHandle negative numbers in Env::i & co.
Raphaël Barrois [Tue, 21 Jun 2011 22:06:02 +0000 (00:06 +0200)]
Handle negative numbers in Env::i & co.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoAllows addition of outsite JS scripts.
Stéphane Jacob [Tue, 17 May 2011 15:04:19 +0000 (17:04 +0200)]
Allows addition of outsite JS scripts.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoFix PlTableEditor: don't require values for field which were not displayed.
Raphaël Barrois [Sun, 15 May 2011 15:27:26 +0000 (17:27 +0200)]
Fix PlTableEditor: don't require values for field which were not displayed.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoRelease of plat/al core v1.1.4 core/1.1.4
Raphaël Barrois [Mon, 9 May 2011 20:21:37 +0000 (22:21 +0200)]
Release of plat/al core v1.1.4

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoAdd forced values to PlTableEditor.
Raphaël Barrois [Thu, 5 May 2011 19:48:13 +0000 (21:48 +0200)]
Add forced values to PlTableEditor.

These forced values allow to restrict the editable rows of the table to a subset containing only rows with the expected field/value combinations.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoUpdate ChangeLog
Stéphane Jacob [Mon, 2 May 2011 19:21:34 +0000 (21:21 +0200)]
Update ChangeLog

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoFix reference to is_IE that does not exist anymore (Closes #1484)
Florent Bruneau [Mon, 2 May 2011 18:55:37 +0000 (20:55 +0200)]
Fix reference to is_IE that does not exist anymore (Closes #1484)

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoEnable grouping on all MultiPageView.
Raphaël Barrois [Thu, 14 Apr 2011 21:02:01 +0000 (23:02 +0200)]
Enable grouping on all MultiPageView.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoAdd smarty prefilter to allow access to const field of classes (Closes #1204).
Stéphane Jacob [Tue, 12 Apr 2011 07:20:06 +0000 (09:20 +0200)]
Add smarty prefilter to allow access to const field of classes (Closes #1204).

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoMerge branch 'core/1.1.3/maint' into core/master
Florent Bruneau [Thu, 7 Apr 2011 20:17:51 +0000 (22:17 +0200)]
Merge branch 'core/1.1.3/maint' into core/master

13 years agoAvoid double load of PlBacktrace. core/1.1.3/maint core/maint
Florent Bruneau [Thu, 7 Apr 2011 18:51:56 +0000 (20:51 +0200)]
Avoid double load of PlBacktrace.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUpdates ChangeLog.
Stéphane Jacob [Tue, 29 Mar 2011 19:48:19 +0000 (21:48 +0200)]
Updates ChangeLog.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoFix dynPost (Closes #1451)
Florent Bruneau [Tue, 29 Mar 2011 18:35:12 +0000 (20:35 +0200)]
Fix dynPost (Closes #1451)

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUpdate the Changelog core/1.1.3
Raphaël Barrois [Sat, 26 Mar 2011 09:42:54 +0000 (10:42 +0100)]
Update the Changelog

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoStrips + when formatting an hrid.
Stéphane Jacob [Thu, 24 Mar 2011 12:50:02 +0000 (13:50 +0100)]
Strips + when formatting an hrid.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoPrevents warning in similar page search.
Stéphane Jacob [Wed, 23 Mar 2011 10:31:45 +0000 (11:31 +0100)]
Prevents warning in similar page search.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoFixes variable use.
Stéphane Jacob [Tue, 22 Mar 2011 14:28:54 +0000 (15:28 +0100)]
Fixes variable use.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoFixes php notice.
Stéphane Jacob [Wed, 9 Mar 2011 08:42:49 +0000 (09:42 +0100)]
Fixes php notice.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoRemoves forlifeEmailAlternate from core.
Stéphane Jacob [Tue, 8 Mar 2011 08:41:35 +0000 (09:41 +0100)]
Removes forlifeEmailAlternate from core.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoDefines forlifeEmailAlternate function.
Stéphane Jacob [Sun, 6 Mar 2011 14:25:03 +0000 (15:25 +0100)]
Defines forlifeEmailAlternate function.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoDo not add empty job address in vcard.
Stéphane Jacob [Tue, 1 Mar 2011 09:24:01 +0000 (10:24 +0100)]
Do not add empty job address in vcard.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoOops, missing file.
Florent Bruneau [Sun, 27 Feb 2011 19:31:57 +0000 (20:31 +0100)]
Oops, missing file.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd a RSS handler for site_errors.
Florent Bruneau [Sun, 27 Feb 2011 19:29:07 +0000 (20:29 +0100)]
Add a RSS handler for site_errors.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoEnabler PHP natives assertion in debug and use Platal::assert() as a
Florent Bruneau [Sun, 27 Feb 2011 18:38:13 +0000 (19:38 +0100)]
Enabler PHP natives assertion in debug and use Platal::assert() as a
backend when assertions fail.

Thus, you can write the following code:
 assert ('$toto != blah')

If you run in debug mode, this will be evaluated and will raise an
exception in case of error. If you run in production mode, this will juste
be skipped.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAppend xsrf_token if defined to API calls.
Florent Bruneau [Sun, 27 Feb 2011 08:45:45 +0000 (09:45 +0100)]
Append xsrf_token if defined to API calls.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoProperly plug the error callback.
Florent Bruneau [Sat, 26 Feb 2011 11:04:23 +0000 (12:04 +0100)]
Properly plug the error callback.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd jQuery.xapi(call, payload, successcb, errorcb) to call the API from
Florent Bruneau [Fri, 25 Feb 2011 19:38:47 +0000 (20:38 +0100)]
Add jQuery.xapi(call, payload, successcb, errorcb) to call the API from
javascript.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUse Env::set().
Florent Bruneau [Fri, 25 Feb 2011 16:26:10 +0000 (17:26 +0100)]
Use Env::set().

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoPost::set, Cookie::set and Get::set also update Env::
Florent Bruneau [Fri, 25 Feb 2011 16:24:11 +0000 (17:24 +0100)]
Post::set, Cookie::set and Get::set also update Env::

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAllow 'make doc' in the core.
Florent Bruneau [Wed, 23 Feb 2011 19:29:49 +0000 (20:29 +0100)]
Allow 'make doc' in the core.

Signed-off-by: Florent Bruneau <florent.bruneau@intersec.com>
13 years agoMerge remote branch 'origin/core/1.1.2/maint' into core/master
Florent Bruneau [Wed, 16 Feb 2011 21:17:19 +0000 (22:17 +0100)]
Merge remote branch 'origin/core/1.1.2/maint' into core/master

13 years agoFixes deprecated features in PHP 5.3.x. core/1.1.2/maint
Stéphane Jacob [Wed, 16 Feb 2011 14:17:16 +0000 (15:17 +0100)]
Fixes deprecated features in PHP 5.3.x.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoTypo Fix
Riton [Mon, 7 Feb 2011 18:25:41 +0000 (19:25 +0100)]
Typo Fix

Signed-off-by: Riton <riton@melix.net>
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAllow overriding of PlSession::fillSession()
Riton [Mon, 31 Jan 2011 15:02:19 +0000 (16:02 +0100)]
Allow overriding of PlSession::fillSession()

Signed-off-by: Riton <riton@melix.net>
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoMerge branch 'core/1.1.2/maint' into core/master
Raphaël Barrois [Sun, 30 Jan 2011 22:46:40 +0000 (23:46 +0100)]
Merge branch 'core/1.1.2/maint' into core/master

13 years agoAdd 'set' and 'bootstrap' methods to Env/Get/Post core/1.1.2
Raphaël Barrois [Tue, 25 Jan 2011 15:50:22 +0000 (16:50 +0100)]
Add 'set' and 'bootstrap' methods to Env/Get/Post

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoAdd 'set' and 'bootstrap' methods to Env/Get/Post
Raphaël Barrois [Tue, 25 Jan 2011 15:50:22 +0000 (16:50 +0100)]
Add 'set' and 'bootstrap' methods to Env/Get/Post

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoCleanup JS (based on JSLint advices).
Florent Bruneau [Sun, 23 Jan 2011 19:58:24 +0000 (20:58 +0100)]
Cleanup JS (based on JSLint advices).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoNo more js global variable platal_baseurl, use $.plURL() instead.
Florent Bruneau [Sun, 23 Jan 2011 14:02:20 +0000 (15:02 +0100)]
No more js global variable platal_baseurl, use $.plURL() instead.

Also add usefull string functions (startsWith, endsWith, htmlEntities).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoSpeed up platal engine.
Florent Bruneau [Sat, 22 Jan 2011 14:49:22 +0000 (15:49 +0100)]
Speed up platal engine.

Avoid useless recursions and function calls.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoCheck html validity asynchronously.
Florent Bruneau [Fri, 21 Jan 2011 20:30:49 +0000 (21:30 +0100)]
Check html validity asynchronously.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoCoding rules.
Florent Bruneau [Thu, 20 Jan 2011 20:49:47 +0000 (21:49 +0100)]
Coding rules.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoBugFix in PFC_OneChild (forgot a $this->)
Riton [Wed, 19 Jan 2011 23:48:08 +0000 (00:48 +0100)]
BugFix in PFC_OneChild (forgot a $this->)

Signed-off-by: Riton <riton@melix.net>
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd assertion API to jQuery.
Florent Bruneau [Tue, 18 Jan 2011 20:38:19 +0000 (21:38 +0100)]
Add assertion API to jQuery.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoHTML validation.
Stéphane Jacob [Mon, 10 Jan 2011 15:33:53 +0000 (16:33 +0100)]
HTML validation.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoFixes PlImage.
Stéphane Jacob [Mon, 10 Jan 2011 13:21:17 +0000 (14:21 +0100)]
Fixes PlImage.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoCreate core.js with some utility functions from xorg.js.
Florent Bruneau [Sat, 8 Jan 2011 19:57:44 +0000 (20:57 +0100)]
Create core.js with some utility functions from xorg.js.

This contains:
 * some ajax wrappers
 * dynPost
 * miniwiki preview
 * pmwiki obfuscation decoding
(Some functions were already called from the code of the core).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoRemove useless lines from gitignore.
Florent Bruneau [Sat, 8 Jan 2011 19:12:30 +0000 (20:12 +0100)]
Remove useless lines from gitignore.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix end of lines.
Florent Bruneau [Fri, 7 Jan 2011 20:13:01 +0000 (21:13 +0100)]
Fix end of lines.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoSimplify javascript.
Florent Bruneau [Fri, 7 Jan 2011 20:12:13 +0000 (21:12 +0100)]
Simplify javascript.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoRemoves calls to obsolete functions.
Stéphane Jacob [Fri, 7 Jan 2011 14:43:57 +0000 (15:43 +0100)]
Removes calls to obsolete functions.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoHappy New Year!
Florent Bruneau [Tue, 4 Jan 2011 20:52:37 +0000 (21:52 +0100)]
Happy New Year!

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdds a new PlApiHook for API handlers. The main two differences with
Vincent Zanotti [Mon, 3 Jan 2011 18:57:53 +0000 (19:57 +0100)]
Adds a new PlApiHook for API handlers. The main two differences with
PlTokenHook is that (a) it provides stronger authentication, and (b) it
parses the JSON request payload before passing it to the handler.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
13 years agoCreates a new plat/al error code for invalid request. This is intended
Vincent Zanotti [Mon, 3 Jan 2011 16:51:31 +0000 (17:51 +0100)]
Creates a new plat/al error code for invalid request. This is intended
to be used for requests where the URL format, or the input is invalid
(for instance non JSON-encoded input for the API).

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
13 years agoAdds a new PlHook subclass for token-authenticated requests.
Vincent Zanotti [Sat, 1 Jan 2011 23:06:07 +0000 (00:06 +0100)]
Adds a new PlHook subclass for token-authenticated requests.

The new hook checks for either a valid token (in which case the
authentication level is assumed to always match), or a valid session (in
which case the auth level is checked against the session). Note that
this finally allows token-based handlers to be permission checked.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
13 years agoMerge branch 'core/maint' into core/master
Stéphane Jacob [Tue, 28 Dec 2010 19:33:20 +0000 (20:33 +0100)]
Merge branch 'core/maint' into core/master