This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id_formulaire: '1' | |
identifiant: inscr | |
titre: test | |
descriptif: '' | |
message_retour: 'Merci pour votre inscription !' | |
saisies: | |
- { options: { label: Nom, type: text, size: '40', autocomplete: defaut, obligatoire: on, nom: input_1 }, identifiant: '@53286d4a3b9c1', saisie: input } | |
- { options: { label: Jours, explication: 'Choisissez le ou les jours où vous allez vous joindre à nous !', datas: "lundi|Lundi\r\nmardi|Mardi\r\nmercredi|Mercredi", cacher_option_intro: on, obligatoire: on, nom: selection_multiple_1 }, identifiant: '@53286d8d57266', saisie: selection_multiple } | |
- { saisie: case, options: { nom: case_1, label: 'Case unique', label_case: 'Case unique', sql: 'varchar(3) DEFAULT '''' NOT NULL' }, identifiant: '@5333f7d982b11' } | |
- { saisie: checkbox, options: { nom: checkbox_1, label: 'Cases à cocher', datas: { choix1: Un, choix2: Deux, choix3: Trois }, sql: 'text DEFAULT '''' NOT NULL' }, identifiant: '@5333f7dcdd6a2' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! isset($_GET['secret']) | |
|| $_GET['secret'] !== "sesame") { | |
exit; | |
} | |
// require() whatever you need here | |
ob_start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Une boîte à outils de fonctions pour construire des requêtes SQL | |
* | |
* @plugin Base Magique | |
* @copyright 2014 | |
* @author Michel @ Vertige ASBL | |
* @licence GNU/GPL | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[(#REM) même jour début et fin ] | |
[(#DATE_DEBUT|affdate{'d-m-Y'}|!={[(#DATE_FIN|affdate{'d-m-Y'})]}|oui) | |
[<span class="jour">(#DATE_DEBUT|affdate_jourcourt)</span>] | |
[(#HORAIRE|=={oui}|oui ) | |
<span class="horaire"> | |
[(#DATE_DEBUT|heures)h] | |
[(#DATE_DEBUT|minutes)] | |
</span> | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Reçoit un tableau serialisé #ENV et retourne le type de page. À utiliser | |
* dans les squelettes ainsi : [(#ENV|trouver_type_page)] | |
* | |
* @param string $env : le contexte d'execution d'un squelette, tel que donné | |
* par la balise #ENV | |
* | |
* @return string $type : le type de page, p.ex. 'article', 'rubrique' etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################### | |
# Pour créer un nouveau projet sur le serveur # | |
############################################### | |
# se connecter au serveur | |
ssh git-vertige.projets-vertige@projects.vertige.org | |
# aller dans le dossier git | |
cd git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CACHE{0} | |
<?php | |
include_spip('inc/spiplistes_api'); | |
include_spip('inc/spiplistes_api_globales'); | |
include_spip('inc/autoriser'); | |
/***********************************************************************/ | |
/* *---------------------* */ | |
/* |eliminer_doublons.php| : élimine les doublons dans une base de */ | |
/* *---------------------* donnée spip-listes. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[(#REM) ce squelette retourne un tableau serializé contenant les | |
sous-rubriques de la rubrique définie par l'id_rubrique passé en | |
#ENV. | |
exemple d'appel : | |
[(#SET{rubriques_agenda, #INCLURE{fond=calculer/sous_rubriques, | |
id_rubrique=37} | |
|unserialize} | |
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This is a SPIP language file -- Ceci est un fichier langue de SPIP | |
if (!defined('_ECRIRE_INC_VERSION')) return; | |
$GLOBALS[$GLOBALS['idx_lang']] = array( | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Placé dans un dossier, ce htaccess redirige toutes les requêtes vers ailleurs | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)$ http://planf.be/$1 [R=301,L] | |
</IfModule> |
OlderNewer