WP File Manager
Current Path:
/
home
/
argothem
/
www
/
base
/
img
/
Name
Action
..
Cles.php
Edit
ci.gif
Edit
ck.gif
Edit
de.gif
Edit
def.png
Edit
dem.gif
Edit
gazdz.html
Edit
gazdz.webp
Edit
img
inc
quote.png
Edit
recherche.png
Edit
v21.php
Edit
v30.php
Edit
v31.php
Edit
v32.php
Edit
v40.php
Edit
Editing: v31.php
<?php /***************************************************************************\ * SPIP, Système de publication pour l'internet * * * * Copyright © avec tendresse depuis 2001 * * Arnaud Martin, Antoine Pitrou, Philippe Rivière, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribué sous licence GNU/GPL. * * Pour plus de détails voir le fichier COPYING.txt ou l'aide en ligne. * \***************************************************************************/ /** * Gestion des mises à jour de bdd de SPIP * * Mises à jour en 3.1 * * @package SPIP\Core\SQL\Upgrade **/ if (!defined('_ECRIRE_INC_VERSION')) { return; } $GLOBALS['maj'][21676] = [ ['ranger_cache_gd2'], ]; /** * Ranger les images de local/cache-gd2 dans des sous-rep * * https://core.spip.net/issues/3277 */ function ranger_cache_gd2() { spip_log('ranger_cache_gd2'); $base = _DIR_VAR . 'cache-gd2/'; if (is_dir($base) and is_readable($base)) { if ($dir = opendir($base)) { while (($f = readdir($dir)) !== false) { if ( !is_dir($base . $f) and strncmp($f, '.', 1) !== 0 and preg_match(',[0-9a-f]{32}\.\w+,', $f) ) { $sub = substr($f, 0, 2); $sub = sous_repertoire($base, $sub); @rename($base . $f, $sub . substr($f, 2)); @unlink($base . $f); // au cas ou le rename a foire (collision) } if (time() >= _TIME_OUT) { return; } } } } } $GLOBALS['maj'][21742] = [ ['sql_alter', "TABLE spip_articles CHANGE url_site url_site text DEFAULT '' NOT NULL"], ['sql_alter', "TABLE spip_articles CHANGE virtuel virtuel text DEFAULT '' NOT NULL"], ];