platal.git
15 years agoFixes the display of our favicon. core/1.0.0/maint
Vincent Zanotti [Wed, 17 Jun 2009 20:57:35 +0000 (22:57 +0200)]
Fixes the display of our favicon.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoAdds a "SECURITY" file which will list our security bugfixes.
Vincent Zanotti [Sat, 23 May 2009 21:03:30 +0000 (23:03 +0200)]
Adds a "SECURITY" file which will list our security bugfixes.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoPasses down the list of input-to-output relations to the field callback.
Vincent Zanotti [Mon, 20 Apr 2009 21:20:03 +0000 (23:20 +0200)]
Passes down the list of input-to-output relations to the field callback.
It allows this callback to actually use the input in a proper way (the first
parameter of the cb is the user input, which is improperly keyed).

Also make the getValue method public and static to simplify the computation
of output keys by the callbacks.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoRevert "Updates the CSVImporter so that callbacks for cell generation have
Vincent Zanotti [Mon, 20 Apr 2009 19:58:23 +0000 (21:58 +0200)]
Revert "Updates the CSVImporter so that callbacks for cell generation have
access to values that are already available."
Fix was worse than the original issue, as the getValue method is used in two
completely different ways in makeRequestArgs and makeAssoc.

This reverts commit 82ccb5452cd953d71c49e0075d9ecbbb2f6b5456.

15 years agoUpdates the CSVImporter so that callbacks for cell generation have access to values...
Vincent Zanotti [Thu, 9 Apr 2009 23:59:55 +0000 (01:59 +0200)]
Updates the CSVImporter so that callbacks for cell generation have access to values that are already available.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
15 years agoAdds type information to the subclass-defined method 'fetch' of PlFeed, to ensure...
Vincent Zanotti [Sat, 3 Jan 2009 13:32:22 +0000 (14:32 +0100)]
Adds type information to the subclass-defined method 'fetch' of PlFeed, to ensure subclasses are considering $user as an object and not as an id.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
15 years agoAdds support for disallowed URIs in plat/al's configuration, which are translated...
Vincent Zanotti [Sun, 21 Dec 2008 14:13:17 +0000 (15:13 +0100)]
Adds support for disallowed URIs in plat/al's configuration, which are translated into the robots.txt file.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
15 years agoLog SQL errors.
Florent Bruneau [Sat, 20 Dec 2008 17:05:47 +0000 (18:05 +0100)]
Log SQL errors.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoCritical: Permissions were not correctly checked before fetching wiki pages.
Florent Bruneau [Thu, 18 Dec 2008 22:26:11 +0000 (23:26 +0100)]
Critical: Permissions were not correctly checked before fetching wiki pages.

*All wiki pages where public since last release*

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoFix cache management of the wiki.
Florent Bruneau [Thu, 11 Dec 2008 22:03:58 +0000 (23:03 +0100)]
Fix cache management of the wiki.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoCore 1.0.0. core/1.0.0
Florent Bruneau [Thu, 11 Dec 2008 19:39:38 +0000 (20:39 +0100)]
Core 1.0.0.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoUse symbolic AUTH_SUID to identify SUID auth level.
Florent Bruneau [Sun, 7 Dec 2008 11:19:55 +0000 (12:19 +0100)]
Use symbolic AUTH_SUID to identify SUID auth level.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoNew 'sex' plugin:
Florent Bruneau [Sun, 23 Nov 2008 18:24:57 +0000 (19:24 +0100)]
New 'sex' plugin:
{"Cher"|sex:"Chère"}

Or:
{"Cher"|sex:"Chère":$sex}

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoMove code of PlLogger out of the core, keep logging class, but not its
Florent Bruneau [Sun, 16 Nov 2008 20:45:08 +0000 (21:45 +0100)]
Move code of PlLogger out of the core, keep logging class, but not its
implementation that is db dependent.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoWrite last session id in new table logger.last_sessions.
Florent Bruneau [Sat, 15 Nov 2008 19:55:25 +0000 (20:55 +0100)]
Write last session id in new table logger.last_sessions.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoGlobals available in mail templates.
Florent Bruneau [Sat, 15 Nov 2008 09:47:11 +0000 (10:47 +0100)]
Globals available in mail templates.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoAdd a 'deleteonly' flag to pltableeditor
Aymeric Augustin [Sun, 9 Nov 2008 13:52:29 +0000 (14:52 +0100)]
Add a 'deleteonly' flag to pltableeditor

15 years agoAllow wiki_preview in Post.
Florent Bruneau [Fri, 7 Nov 2008 16:21:50 +0000 (17:21 +0100)]
Allow wiki_preview in Post.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoAdd Get/Post/Env/Cookie::t() that returns a trimmed string.
Florent Bruneau [Wed, 5 Nov 2008 21:45:17 +0000 (22:45 +0100)]
Add Get/Post/Env/Cookie::t() that returns a trimmed string.
Add Get/Post/Env/Cookie::blank() that returns true if the value associated
to the given key is empty (or, contains only whitespaces).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoMove some templates in the core.
Florent Bruneau [Sun, 2 Nov 2008 16:43:23 +0000 (17:43 +0100)]
Move some templates in the core.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoMinor fixes:
Florent Bruneau [Sun, 2 Nov 2008 16:19:13 +0000 (17:19 +0100)]
Minor fixes:
 * Support for empty module list (gnii?)
 * Support for smarty path != smarty/libs/Smarty.class.php (this is debian  specific)

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoMove plugin 'icon' in the core.
Florent Bruneau [Sun, 2 Nov 2008 16:15:09 +0000 (17:15 +0100)]
Move plugin 'icon' in the core.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoGrammar
Aymeric Augustin [Sat, 25 Oct 2008 21:25:55 +0000 (23:25 +0200)]
Grammar

15 years agoAdd a function to include arbitrary <link> tags in <head>
Aymeric Augustin [Sat, 25 Oct 2008 10:27:57 +0000 (12:27 +0200)]
Add a function to include arbitrary <link> tags in <head>

Signed-off-by: Aymeric Augustin <aymeric.augustin@m4x.org>
15 years agoFix PL_DO_AUTH.
Florent Bruneau [Wed, 22 Oct 2008 19:52:16 +0000 (21:52 +0200)]
Fix PL_DO_AUTH.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoAdds a 'hruid' mode to the Core module.
Vincent Zanotti [Sun, 12 Oct 2008 14:19:18 +0000 (16:19 +0200)]
Adds a 'hruid' mode to the Core module.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
15 years agoChange the text of the submit button when the password is not valid.
Florent Bruneau [Mon, 6 Oct 2008 15:18:56 +0000 (17:18 +0200)]
Change the text of the submit button when the password is not valid.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
Conflicts:

htdocs/javascript/xorg.js
templates/googleapps/index.tpl
templates/platal/acces_smtp.tpl

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
15 years agoBetter fix for RSS validation.
Florent Bruneau [Mon, 6 Oct 2008 15:08:27 +0000 (17:08 +0200)]
Better fix for RSS validation.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoUses trig utilities whenever it is possible.
Stéphane Jacob [Sun, 28 Sep 2008 17:50:07 +0000 (19:50 +0200)]
Uses trig utilities whenever it is possible.

16 years agoBetter code range to detect pure-ascii text.
Florent Bruneau [Sun, 28 Sep 2008 15:40:14 +0000 (17:40 +0200)]
Better code range to detect pure-ascii text.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoFix quoted-printable encoding of the subject.
Florent Bruneau [Sun, 28 Sep 2008 15:36:27 +0000 (17:36 +0200)]
Fix quoted-printable encoding of the subject.

(Pear suxx).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoMore tools around PlIterator:
Florent Bruneau [Sun, 31 Aug 2008 19:34:46 +0000 (21:34 +0200)]
More tools around PlIterator:
 -> iterator sorter: PlIteratorUtils::sort($it, $callback)
 -> iterator merger: PlIteratorUtils::merger(array($it1, $it2), $callback)

Move usage of PlArrayIterator to PlIteratorUtils::fromArray($array).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoNew RFC Compliant VCard 3.0 implementation.
Florent Bruneau [Sun, 24 Aug 2008 11:24:36 +0000 (13:24 +0200)]
New RFC Compliant VCard 3.0 implementation.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoFixes S::user() for non-hruid branches.
Vincent Zanotti [Mon, 25 Aug 2008 13:58:34 +0000 (15:58 +0200)]
Fixes S::user() for non-hruid branches.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoFixes improper code in __get (code was inadvertantly calling __isset).
Vincent Zanotti [Sun, 24 Aug 2008 15:30:59 +0000 (17:30 +0200)]
Fixes improper code in __get (code was inadvertantly calling __isset).
Adds a public method for extending the user secondary properties.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoSwitches the core to S::user() paradigm, while retaining older S::v('forlife') model,
Vincent Zanotti [Sun, 24 Aug 2008 00:30:39 +0000 (02:30 +0200)]
Switches the core to S::user() paradigm, while retaining older S::v('forlife') model,
for compatibility reasons.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoReplaces 'forlife' with 'hruid' in PlUpload (pure refactoring).
Vincent Zanotti [Sat, 23 Aug 2008 16:04:01 +0000 (18:04 +0200)]
Replaces 'forlife' with 'hruid' in PlUpload (pure refactoring).

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoTrash on_subscribe.
Florent Bruneau [Sat, 23 Aug 2008 15:46:21 +0000 (17:46 +0200)]
Trash on_subscribe.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoUpdates class PlMailer to use the new User object.
Vincent Zanotti [Sat, 23 Aug 2008 15:42:19 +0000 (17:42 +0200)]
Updates class PlMailer to use the new User object.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoAdds fields 'gender' and 'email_format' to the PlUser class.
Vincent Zanotti [Sat, 23 Aug 2008 15:41:27 +0000 (17:41 +0200)]
Adds fields 'gender' and 'email_format' to the PlUser class.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoAdd a Makefile that generates version.inc.php (used to fill the globals structure).
Florent Bruneau [Sat, 23 Aug 2008 13:33:57 +0000 (15:33 +0200)]
Add a Makefile that generates version.inc.php (used to fill the globals structure).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd Platal::load(module, include_file = null) to load a module or an include of this...
Florent Bruneau [Sat, 23 Aug 2008 12:39:28 +0000 (14:39 +0200)]
Add Platal::load(module, include_file = null) to load a module or an include of this module.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd PlModule::load() that load a module-specific include.
Florent Bruneau [Tue, 19 Aug 2008 21:19:19 +0000 (23:19 +0200)]
Add PlModule::load() that load a module-specific include.

Before: require_once dirname(__FILE__) . '/modulename/file.inc.php';
After:  $this->load('file.inc.php');

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd a generic PlArrayIterator.
Florent Bruneau [Tue, 19 Aug 2008 20:42:39 +0000 (22:42 +0200)]
Add a generic PlArrayIterator.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd Platal::error404() and Platal::error403() to run corresponding handlers.
Florent Bruneau [Sun, 17 Aug 2008 21:25:04 +0000 (23:25 +0200)]
Add Platal::error404() and Platal::error403() to run corresponding handlers.

This functions are for internal use only (mostly for the wiki engine).
when developping an handler, you MUST return PL_FORBIDDEN or PL_NOT_FOUND to
generate the corresponding error.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd a tool to build RSS feeds.
Florent Bruneau [Sun, 17 Aug 2008 21:06:35 +0000 (23:06 +0200)]
Add a tool to build RSS feeds.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoMove more templates to the core.
Florent Bruneau [Sun, 17 Aug 2008 19:56:44 +0000 (21:56 +0200)]
Move more templates to the core.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoMove the templates required by the core module in the core.
Florent Bruneau [Sun, 17 Aug 2008 19:23:53 +0000 (21:23 +0200)]
Move the templates required by the core module in the core.

New methods:
 * PlPage::coreTpl(): same as changeTpl() bug take a tpl from the core
 * PlPage::getCoreTpl(): return the path to a tpl from the core
 * template tag {include core=mycoretpl.tpl ...}

The "bug" handler require cleanup to be really site independent.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoPlatal::force_login() becomes an abstract method.
Florent Bruneau [Sun, 17 Aug 2008 19:06:01 +0000 (21:06 +0200)]
Platal::force_login() becomes an abstract method.
Each site is free (and forced) to have its own authentication form.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoS::logged() depends of a PlSession parameter.
Florent Bruneau [Sun, 17 Aug 2008 10:38:53 +0000 (12:38 +0200)]
S::logged() depends of a PlSession parameter.
Change values of AUTH_ to allow intermediate values.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years ago'xorg.js' is not in plat/al-core.
Florent Bruneau [Thu, 14 Aug 2008 19:36:12 +0000 (21:36 +0200)]
'xorg.js' is not in plat/al-core.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoUpdates PlUser to add a new (code-factored) bulk retrieval method.
Vincent Zanotti [Sun, 10 Aug 2008 22:40:15 +0000 (00:40 +0200)]
Updates PlUser to add a new (code-factored) bulk retrieval method.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoFix purge_cache.
Florent Bruneau [Sun, 10 Aug 2008 19:58:09 +0000 (21:58 +0200)]
Fix purge_cache.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoRemove that X.org specific code from the core.
Florent Bruneau [Sun, 10 Aug 2008 19:46:44 +0000 (21:46 +0200)]
Remove that X.org specific code from the core.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoSQL errors generates 500 status.
Florent Bruneau [Sat, 2 Aug 2008 16:54:59 +0000 (18:54 +0200)]
SQL errors generates 500 status.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd pl_core_include to build the path to a core include file.
Florent Bruneau [Sun, 27 Jul 2008 22:00:20 +0000 (00:00 +0200)]
Add pl_core_include to build the path to a core include file.

e.g.:
include pl_core_include('wiki.engine.inc.php')
vs
include dirname(__FILE__) . '/../core/include/wiki.engine.inc.php';

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd permission checking in the PlUser class.
Florent Bruneau [Sun, 27 Jul 2008 21:43:28 +0000 (23:43 +0200)]
Add permission checking in the PlUser class.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAutomatically add sitename in page title.
Florent Bruneau [Sun, 27 Jul 2008 20:27:29 +0000 (22:27 +0200)]
Automatically add sitename in page title.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoFixes and improvements to the Wiki engine.
Florent Bruneau [Sun, 27 Jul 2008 19:55:35 +0000 (21:55 +0200)]
Fixes and improvements to the Wiki engine.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoMove the wiki engine in the core.
Florent Bruneau [Sun, 27 Jul 2008 18:16:51 +0000 (20:16 +0200)]
Move the wiki engine in the core.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoMigrate wiki.inc.php as a core class PlWikiPage.
Florent Bruneau [Sun, 27 Jul 2008 18:13:52 +0000 (20:13 +0200)]
Migrate wiki.inc.php as a core class PlWikiPage.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd tokenAuth capability in PlSession.
Florent Bruneau [Sun, 27 Jul 2008 15:47:07 +0000 (17:47 +0200)]
Add tokenAuth capability in PlSession.

This is a new abstract method to implement. It manages 'RSS' auth based on a
user specific token. It returns a User object (as for checkAuth).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoMove RSS date formater in core plugins.
Florent Bruneau [Sun, 27 Jul 2008 15:08:01 +0000 (17:08 +0200)]
Move RSS date formater in core plugins.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoFix a notice when https is disabled.
Florent Bruneau [Sat, 26 Jul 2008 13:05:25 +0000 (15:05 +0200)]
Fix a notice when https is disabled.

(Fix applis.js)

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd PlGlobals::init().
Florent Bruneau [Thu, 24 Jul 2008 20:13:37 +0000 (22:13 +0200)]
Add PlGlobals::init().

The constructor of PlGlobals was not the place to initialise dynamic data
since $globals does not exist then whereas XDB requires $globals.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoFixes the session's logger instantiation when suid is in use (should use parameter...
Vincent Zanotti [Sun, 20 Jul 2008 21:04:35 +0000 (23:04 +0200)]
Fixes the session's logger instantiation when suid is in use (should use parameter-provided $uid when no other uid is available).

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoOops, sorry vinZ2
Florent Bruneau [Sun, 20 Jul 2008 18:56:43 +0000 (20:56 +0200)]
Oops, sorry vinZ2

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoLet say, initial version of the core will be platal-core 1.0
Florent Bruneau [Sun, 20 Jul 2008 18:52:42 +0000 (20:52 +0200)]
Let say, initial version of the core will be platal-core 1.0

Import an up-to-date authors list and an initial changelog for the new project.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdds a common abstraction object for plat/al's users.
Vincent Zanotti [Sat, 19 Jul 2008 13:56:33 +0000 (15:56 +0200)]
Adds a common abstraction object for plat/al's users.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoUses PlPage instead of PlatalPage.
Stéphane Jacob [Sat, 19 Jul 2008 17:20:53 +0000 (19:20 +0200)]
Uses PlPage instead of PlatalPage.

16 years agoMerge platal-0.9.17
Florent Bruneau [Sat, 19 Jul 2008 14:02:54 +0000 (16:02 +0200)]
Merge platal-0.9.17

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdds the User object to the platal-core session.
Vincent Zanotti [Mon, 14 Jul 2008 00:49:44 +0000 (02:49 +0200)]
Adds the User object to the platal-core session.
Currently the corresponding code (PlUser & User) does not exists in core nor in master branches, but user() is not called yet in any of those branches.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoOops
Florent Bruneau [Thu, 10 Jul 2008 20:49:27 +0000 (22:49 +0200)]
Oops

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoWrap the xsrf token field in a div for html validation.
Florent Bruneau [Sun, 6 Jul 2008 11:52:54 +0000 (13:52 +0200)]
Wrap the xsrf token field in a div for html validation.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoMerge branch 0.9.17
Florent Bruneau [Thu, 10 Jul 2008 20:36:12 +0000 (22:36 +0200)]
Merge branch 0.9.17

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoBackports commit 8827fc52 to platal-core.
Vincent Zanotti [Mon, 30 Jun 2008 00:37:13 +0000 (02:37 +0200)]
Backports commit 8827fc52 to platal-core.

Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
16 years agoFix page()->kill() behaviour for php-cli.
Florent Bruneau [Tue, 24 Jun 2008 20:50:41 +0000 (22:50 +0200)]
Fix page()->kill() behaviour for php-cli.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoSQL error MUST NOT happen... so stop the execution of if an SQL error is
Florent Bruneau [Tue, 24 Jun 2008 20:39:18 +0000 (22:39 +0200)]
SQL error MUST NOT happen... so stop the execution of if an SQL error is
found.

Why ?
I've found too many invisible SQL errors during the last few weeks
(invisible == not shown in a backtrace because of a page redirection). SQL
errors are evil (hum), they should NEVER happen: a query that is allowed to
fail can always been rewritten in a way errors are ignored (e.g. INSERT
IGNORE).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd PlPage::setTitle()
Florent Bruneau [Sun, 22 Jun 2008 21:26:20 +0000 (23:26 +0200)]
Add PlPage::setTitle()

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoBase layout of the core.
Florent Bruneau [Sun, 22 Jun 2008 14:13:01 +0000 (16:13 +0200)]
Base layout of the core.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoCleanup core branch
Florent Bruneau [Sun, 22 Jun 2008 14:11:24 +0000 (16:11 +0200)]
Cleanup core branch

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoMove xorg/xnet classes in /classes.
Florent Bruneau [Sun, 22 Jun 2008 13:31:50 +0000 (15:31 +0200)]
Move xorg/xnet classes in /classes.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd security.inc.php with user check functions.
Florent Bruneau [Sun, 22 Jun 2008 13:21:54 +0000 (15:21 +0200)]
Add security.inc.php with user check functions.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAdd core in includes.
Florent Bruneau [Sun, 22 Jun 2008 13:18:21 +0000 (15:18 +0200)]
Add core in includes.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoBye xorg.misc.inc.php
Florent Bruneau [Sun, 22 Jun 2008 13:13:33 +0000 (15:13 +0200)]
Bye xorg.misc.inc.php

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoRename xorg_ constants to pl_
Florent Bruneau [Sun, 22 Jun 2008 13:01:04 +0000 (15:01 +0200)]
Rename xorg_ constants to pl_

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoAlso move plugins.
Florent Bruneau [Sun, 22 Jun 2008 12:44:16 +0000 (14:44 +0200)]
Also move plugins.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoFirst bench of moves.
Florent Bruneau [Sun, 22 Jun 2008 12:36:46 +0000 (14:36 +0200)]
First bench of moves.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoOops.
Florent Bruneau [Sun, 22 Jun 2008 11:44:28 +0000 (13:44 +0200)]
Oops.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years ago$page is not anymore a global variable.
Florent Bruneau [Sun, 22 Jun 2008 11:43:30 +0000 (13:43 +0200)]
$page is not anymore a global variable.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoPort X.net session to the new schema.
Florent Bruneau [Sun, 22 Jun 2008 10:40:45 +0000 (12:40 +0200)]
Port X.net session to the new schema.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoFix SUID
Florent Bruneau [Sun, 22 Jun 2008 09:11:45 +0000 (11:11 +0200)]
Fix SUID

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoFixes
Florent Bruneau [Sun, 22 Jun 2008 08:08:36 +0000 (10:08 +0200)]
Fixes

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoPort X.org session management to the new session format.
Florent Bruneau [Sat, 21 Jun 2008 23:21:09 +0000 (01:21 +0200)]
Port X.org session management to the new session format.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoBase for the PlSession object.
Florent Bruneau [Sat, 21 Jun 2008 20:00:48 +0000 (22:00 +0200)]
Base for the PlSession object.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years ago{site}.inc.php is the base for all jobs.
Florent Bruneau [Sat, 21 Jun 2008 17:19:45 +0000 (19:19 +0200)]
{site}.inc.php is the base for all jobs.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoX.net built on new Core schema.
Florent Bruneau [Sat, 21 Jun 2008 16:46:18 +0000 (18:46 +0200)]
X.net built on new Core schema.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoGlobals, Session and Page object are now built by the Platal:: object.
Florent Bruneau [Sat, 21 Jun 2008 16:23:23 +0000 (18:23 +0200)]
Globals, Session and Page object are now built by the Platal:: object.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoRewrite FlagSet in order to run flag operation in constant time.
Florent Bruneau [Sat, 21 Jun 2008 15:41:09 +0000 (17:41 +0200)]
Rewrite FlagSet in order to run flag operation in constant time.
Rename the class PlFlagSet to conforms to core coding rules.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
16 years agoSplit Globals into PlGlobals and PlatalGlobals:
Florent Bruneau [Sat, 21 Jun 2008 14:16:52 +0000 (16:16 +0200)]
Split Globals into PlGlobals and PlatalGlobals:
* PlGlobals is the base class for managing configuration
* PlatalGlobals is specific to X.org usage.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>