[CSS] +fix page header and title color
[lhc/web/www.git] / www / plugins / crayons / action / crayons.php
1 <?php
2 /**
3 * Crayons
4 * plugin for spip
5 * (c) Fil, toggg 2006-2013
6 * licence GPL
7 */
8
9 if (!defined('_ECRIRE_INC_VERSION')) {
10 return;
11 }
12
13 // On a ete appele par un formulaire normal (ajax est traite par crayons_store)
14 function action_crayons_dist() {
15 include_spip('action/crayons_store');
16 $r = crayons_store();
17
18 // soit exit, soit un redirect gere par SPIP
19 if (trim($r['$erreur'])) {
20 include_spip('inc/minipres');
21 echo minipres($r['$erreur']);
22 exit;
23 }
24
25 // S'il n'y a pas de redirect, on est mal : eviter toutefois la page blanche
26 if (!_request('redirect')) {
27 die('OK');
28 }
29
30 // Invalider le cache parce que bon... a priori on est dans une
31 // interface qui va avoir besoin de refresh
32 include_spip('inc/invalideur');
33 suivre_invalideur('1');
34 }