Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1833 → Rev 1834

/trunk/client/integrateur_wikini/bibliotheque/iw_integrateur.fonct.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: iw_integrateur.fonct.php,v 1.22 2008-04-25 07:59:55 jp_milcent Exp $
// CVS : $Id: iw_integrateur.fonct.php,v 1.23 2008-04-28 17:17:28 ddelon Exp $
/**
* Fonctions de l'integrateur de page Wikini
*
33,7 → 33,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.22 $ $Date: 2008-04-25 07:59:55 $
*@version $Revision: 1.23 $ $Date: 2008-04-28 17:17:28 $
*
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
208,9 → 208,8
if ($_POST["submit"] == "Sauver") {
require_once(ADWI_CHEMIN_BIBLIOTHEQUE.'/hashcash/secret/wp-hashcash.lib');
if($_POST["hashcash_value"] != hashcash_field_value()) {
$this->SetMessage("Cette page n\'a pas été enregistrée car ce wiki pense que vous etes un robot !");
$this->Redirect($this->href());
if($_POST["hashcash_value"] == hashcash_field_value()) {
$error="Cette page n'a pas été enregistrée car ce wiki pense que vous etes un robot. Copiez-collez vos modifications et activez Javascript !";
}
// check for overwriting
302,7 → 301,13
$siteurl = ($a['scheme'].'://'.$a['host'].dirname($a['path']));
// display form
if (isset($error)) {
if (!isset($output)) $output = '';
$output .= "<div class=\"error\">$error</div>\n";
}
$ChampsHashcash =
'<link rel="powered" title="Elliott Back\'s Antispam" href="http://elliottback.com" />'.
'<script type="text/javascript" src="' . $siteurl . '/client/integrateur_wikini/bibliotheque/hashcash/wp-hashcash-js.php?siteurl='.$siteurl.'"></script>';