Merci pour ton aide, mais ç ane marche pas. Si je fais la modif indiquée, j'ai la même erreur mais à la ligne 58.
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery 1.3.1 //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002,2004 Gregory DEMAR <gdemar@wanadoo.fr> //
//
http://www.chezgreg.net/coppermine/ //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// ------------------------------------------------------------------------- //
//***************************************************************************//
//* Touched by PYAP on November 2004 . . . *//
//* this Mod/Hack on SEARCH.PHP, it's a fine Google pump ! *//
//* EXEMPLE :
http://expo.pays-dignois.com.search.php for exemple *//
//***************************************************************************//
//* Si vous rencontrez un problème avec Coppermine, *//
//* n'hésitez pas à visiter le Forum COPPERMINE EN FRANCAIS ci-dessous *//
//*
http://forum.coppermine-gallery.net/index.php?board=38.0 *//
//* MERCI *//
//***************************************************************************//
define('IN_COPPERMINE', true);
define('SEARCH_PHP', true);
require('include/init.inc.php');
pageheader($lang_search_php[0]);
// Déclaration de la FORM search
starttable("500", "<center>$lang_search_php[0]</center>");
echo <<< EOT
<tr><td> </td></tr>
<tr>
<form method="get" action="thumbnails.php">
<input type="hidden" name="album" value="search">
<input type="hidden" name="type" value="full">
<td class="tableb" align="center" height="60">
<input type="input" style="width: 90%" name="search" maxlength="255" value="" class="textinput">
</td>
</tr>
<tr>
<td colspan="8" align="center" class="tablef">
<input type="submit" value="{$lang_search_php[0]}" class="button">
</td>
</form>
</tr>
EOT;endtable();
echo "<br>";
// Selection de tous les keywords
// et Déclaration de la Table affichant la liste de mots clefs
starttable("500", "<center>Notre liste de mots en base de données Coppermine</center><br>", 1,"");
$result = mysql_query("select keywords from {$CONFIG['TABLE_PICTURES']}");
if (!mysql_num_rows($result)) cpg_die(ERROR, $lang_errors['non_exist_ap']);
// Find unique keywords
$keywords_array = array();
while (list($keywords) = mysql_fetch_row($result)) {
$array = explode(" ",$keywords);
foreach($array as $word)
{
if (!in_array($word,$keywords_array)) $keywords_array[] = $word;
}
}
sort($keywords_array);
$count = count($keywords_array);
// echo "<br>";
// echo "$count Mots-Clef dans notre base de données"; // Supprimez les commentaires pour afficher le nombre de mots-clefs
// Résultats vers la table, et affichage de la liste de mots clefs
echo "<tr><td class=\"keylink\">; //<p align=justify>" ;
for ($i = 0; $i < $count; $i++) {
echo "<a href=\"thumbnails.php?album=search&search=$keywords_array[$i] \" >$keywords_array[$i]</a> " ;
}
echo "</p></td></tr>" ;
endtable();
pagefooter();
ob_end_flush();
?>