Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 579 → Rev 580

/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.3 2005-10-21 22:22:16 ddelon Exp $
// CVS : $Id: iw_integrateur.fonct.php,v 1.4 2005-10-31 17:12:00 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.3 $ $Date: 2005-10-21 22:22:16 $
*@version $Revision: 1.4 $ $Date: 2005-10-31 17:12:00 $
*
// +------------------------------------------------------------------------------------------------------+
// | ENTETE du PROGRAMME |
102,7 → 102,38
}
function Footer() {
return;
echo "<div class=\"footer\">";
echo $this->HasAccess("write") ? "<a href=\"".$this->href("edit")."\" title=\"Cliquez pour modifier cette page.\">Modifier cette page</a> ::\n" : "";
echo $this->GetPageTime() ? "<a href=\"".$this->href("revisions")."\" title=\"Cliquez pour voir les derni&egrave;res modifications sur cette page.\">".$this->GetPageTime()."</a> ::\n" : "";
// if this page exists
if ($this->page)
{
// if owner is current user
if ($this->UserIsOwner())
{
echo
"Propri&eacute;taire&nbsp;: vous :: \n",
"<a href=\"",$this->href("acls")."\" title=\"Cliquez pour modifer les permissions de cette page.\">&Eacute;diter permissions</a> :: \n",
"<a href=\"",$this->href("deletepage")."\">Supprimer</a> :: \n";
}
else
{
if ($owner = $this->GetPageOwner())
{
echo "Propri&eacute;taire : ",$this->Format($owner);
}
else
{
echo "Pas de propri&eacute;taire ";
echo ($this->GetUser() ? "(<a href=\"".$this->href("claim")."\">Appropriation</a>)" : "");
}
echo " :: \n";
}
}
echo "Vous &ecirc;tes ";
echo $this->Format($this->GetUserName());
echo "</div>";
}
function FormOpen($method = "", $tag = "", $formMethod = "post") {
126,8 → 157,6
if ($method=="edit") {
echo $this->Header();
$result='';
if ($_POST) {
163,6 → 192,8
$this->ClearLinkTable();
// forward
print "hh";
debug_print_backtrace();
$this->Redirect($this->href());
}
}
221,6 → 252,17
}
// Identification
function SetUser($user, $remember=1) {
$_SESSION["user"]["name"] = ucfirst(strtolower($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_prenom))).ucfirst(strtolower($GLOBALS['_GEN_commun']['pear_auth']->getAuthData($GLOBALS['_GEN_commun']['info_auth_bdd']->chp_personne_nom)));;
$_SESSION["user"]["password"] = "wikini";
$this->SetPersistentCookie("name", $user["name"], $remember);
$this->SetPersistentCookie("password", $user["password"], $remember);
$this->SetPersistentCookie("remember", $remember, $remember);
}
}
 
314,6 → 356,15
$wiki = new Wiki_Papyrus($wakkaConfig);
 
 
if ($GLOBALS['_GEN_commun']['pear_auth']->checkAuth()) {
if (!isset($_COOKIE["name"])) {
$wiki->SetUser('');
}
}
else {
$wiki->LogoutUser();
}
// Gestion de la variable de session "linktracking"
if ( ! isset( $_SESSION['linktracking'] ) ) {
$_SESSION['linktracking'] = 1;
355,5 → 406,4
}
 
 
?>