Ceci est une ancienne révision du document !
dw_updates update / upgrade dokuwiki, sessions, versions
note de http://www.dokuwiki.org/update_check
When upgrading your installation, it might happen that DokuWiki continues to show the update message, even though the number in conf/msg was increased by the upgrade. This is because DokuWiki caches already fetched messages for a day and will only refetch if the last modified timestamp of conf/msg is higher than the one of the cache file. To stop the outdated update message from showing you can simply wait a day, touch1) the conf/msg or delete the data/cache/messages.txt cache file.
Solution plugin
La solution la plus simple, utiliser le plugin upgrade
Anciennes versions
Astuce pour faire des patches avec diff / patch (très utile pour toute sorte d'upgrades de programmes open source)
Flux RSS dokuwiki
informations de sessions
si vous voulez récupérer le user actuel:
$utilisateur= $_SESSION[DOKU_COOKIE]['auth']['user'];
$utilisateur= $_SESSION[DOKU_COOKIE]['auth']['user'];
echo "Utilisateur: " .$utilisateur;
ATTENTION A AVOIR UN CACHE = 0 sinon apparait le précédent!!!
informations sur la version
?do=check
http://www.dokuwiki.org/update_check
When upgrading your installation, it might happen that DokuWiki continues to show the update message, even though the number in doku.php was increased by the upgrade. This is because DokuWiki caches already fetched messages for a day and will only refetch if the last modified timestamp of doku.php is higher than the one of the cache file. To stop the outdated update message from showing you can simply wait a day, touch1) the doku.php or delete the data/cache/messages.txt cache file.
rm data/cache/messages.txt
If you encounter some inconsistencies in DokuWiki's behaviour after upgrading, you should delete the cache files in data/cache/
sauvegardes avec *nix
#!/bin/bash #pour sauvegarder votre dokuwiki sur un serveur distant # a mettre dans un crontab eg me le lance tous les jours à 16h31 #31 16 * * * /home/radeff/bin/dokuwiki.backup.sh #### a changer chemin="/home/radeff/dokuwiki/data" #definir le repertoire serveur="radeff@yourwebserver:~/backups/dokuwiki" #definir le serveur et le repertoire distant pour le backup ### ne plus rien changer ### cd $chemin rsync -az * $serveur echo "Synchronisation effectuée"