View gulpfile.js
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
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); | |
var argv = require('yargs').argv; | |
var port = process.env.SERVER_PORT || 3000; | |
var browser = require('browser-sync'); | |
// Check for --production flag | |
var isProduction = !!(argv.production); | |
var sassPaths = [ |
View .htaccess
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> |
View sql_utils.php
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 | |
*/ |
View probe.php
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(); |
View formulaire_test_formidable.yaml
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' } |
View fcssmb_fr.php
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( | |
); |
View mes_options.php
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 | |
// Titrer les documents joints à partir du nom du fichier | |
define('_TITRER_DOCUMENTS', true); | |
/* Taille du cache */ | |
$GLOBALS['quota_cache'] = 100; | |
/*********************************/ | |
/*** Options de développement ***/ |
View calculer_sous_rubriques.html
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} | |
)] |
View spip-zone.sh
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
########################################################### | |
## Création d'un nouveau plugin sur la zone ############### | |
########################################################### | |
# On commence par récupérer les plugins de la zone, mais sans prendre le contenu des dossiers | |
svn checkout --depth=immediates svn://zone.spip.org/spip-zone/_plugins_ | |
# On crée ensuite son plugin et un trunk | |
cd _plugins_ | |
mkdir mon_plug |
View eliminer_doublons.html
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. */ |
NewerOlder