PDA

Voir la version complète : Dans la série "page blanche", cleaner.php ne répond pas


TeTeC
09/05/2006, 18h21
Bonjour,

L'angoisse de la page blanche réinventée pour l'administrateur...

J'aimerais finaliser la conversion de mon forum en nettoyant les messages à l'aide de cleaner.php. Seulement après l'avoir dûment activé et configuré, il ne répond absolument pas lorsqu'il est chargé (testé avec FF et IE).
Je vous copie les lignes à configurer :

<?php
if (function_exists('set_time_limit') AND get_cfg_var('safe_mode')==0)
{
@set_time_limit(0);
}

ignore_user_abort(true);
error_reporting(E_ALL & ~E_NOTICE);
/*
* @package ImpEx.tools
* @version $Revision: 1.19 $
* @author Jerry Hutchings <jerry.hutchings@vbulletin.com>
* @checkedout $Name: $
* @date $Date: 2006/03/31 02:48:11 $
* @copyright http://www.vbulletin.com/license.html
*
*/
// BACK UP YOUR DATABASE
// Cleaner
// Swaps X for Y in the database handy for smilies that have been wrongly parsed
// THIS IS A GARRUNTEED WAY TO TRASH YOU DB !!! .
// COMPLETLY INVALIDATES SUPPORT
// OK NOT REALLY, THOUGH ITS A BRUTAL SCRIPT BE VERY AWARE THAT YOU SHOULD BACK UP !!
// USE AT YOUR OWN RISK.
// BACK UP YOUR DATABASE
//
// I / we / the company takes no responsiability for you running this script
// Jerry - jerry.hutchings@vbulletin.com
########################################
#
# Set to true / false
# $do_posts = ALL POSTS
# $do_sigs = ALL SIGNATURES
# $do_thread_titles = ALL THREAD TITLES
# $do_pm_text = ALL PM TEXTS;
# $do_pm_text_title = ALL PM TITLES;
########################################
// BACK UP YOUR DATABASE
// Set to true to run, and false when done, or remove this script (and all of impex when finished).
$active = true;

// Set true or false as to the data you want to clean
$do_posts = true;
$do_sigs = false;
$do_thread_titles = false;
$do_pm_text = false;
$do_pm_text_title = false;
########################################

# Replace 'Find me' and "Replace with me" with the strings you want replaced i.e
# "<b>" => "[b]"
# "<blockquote>" => "[quote]"
# add as many elements to the array as needed

// BACK UP YOUR DATABASE
$replacer = array(
"style_emoticons/<#EMO_DIR#>/Pancarte_jesors.gif" => ":jesors:",
"" => "",
"" => "",
"" => "",
"" => ""
);

Je ne peux pas expliquer l'inactivité du code...

Bienvenue, toute aide... ;)

TeTeC
10/05/2006, 18h27
Pas très inspirés à ce que je vois. ;)

Le problème a été débusqué. Il y a une erreur dans le code du fichier. Je doute que tous les clients VB téléchargeant maintenant Impex puissent utiliser cleaner.php...