Skip to main content Help Control Panel

FRANCOIS Alexandre
Monitor
Recent pages
 

People «  

FRANCOIS Alexandre - alf83

LDAP user authentication?

Started by TheAlchemist on Jul. 28 2006

authenticate users using LDAP
with Bernard Paques, FRANCOIS Alexandre, Vincent · 18 contributions, including:
Vincent : Ok ok I should have spent a little more time on this one. Thanks for your patience...
By Bernard Paques on Feb. 24 2009

Publication de brouillon...

Started by alf83 on May 9 2008, edited by Bernard on June 23 2008

Où est le bouton pour publier un brouillon ?

0%
with Bernard Paques, Christian, Le Carbonnier, olivier · 3 contributions, including:
Initialement, seuls les associés et les éditeurs d'une section pouvaient publier un article. Cette possibilité a été étendue aux auteurs, dans les sections en auto-publication, vous verrez ça dans la version 8.6.

Les différents cas traités par yacs 8.6 s'établissent comme suit :

* Section ordinaire : les pages sont postées en mode brouillon, et seuls les associés ou les éditeurs ont accès à la commande de publication.

* Section avec l'option 'auto_publish' : les auteurs ont le choix de poster en mode brouillon ou non, et maitrisent eux-mêmes la publication.
By Bernard on June 22 2008

brouillon

Patch LDAP pour 8.4 : un bug [Integrated]

Started by alf83 on May 30 2008, edited by Christian on June 17 2008


100%
with Bernard Paques, Christian, LECLERCQ Johann · 5 contributions, including:
Pour encore mieux connaitre yacs et son fonctionnement je te propose de le lire la charte

La prochaine version stable et la version 8.6 Macnana programmée, comme son nom l'indique, pour le mois de juin 2008. Certains d'entre nous sont en phase de test de la version 8.6alpha14. Bien sur l'objectif est de finaliser la version pour la fin du mois. Nul doute qu'il restera quelques petits bugs à éradiquer mais nous pourrons la considérer comme stable.


Actupro
quelques sites yacs : création site internet annuaire pro
By Christian on June 17 2008

8.4 ldap

Bibliographies

Started by LeChi on May 24 2008, edited by LeChi on June 10 2008


0%
with J.Juraver, Agnès Rambaud, FRANCOIS Alexandre · 6 contributions, including:

Voici le résultat de mes cellules grises.

 

----------------------------------------------

<?php
/
* décrit une référence de lecture
*
* @see overlays/overlay.php
*
* @author Christian Hinque christian.hinque@laposte.net
* @author McNana
* @author Bernard Paques bernard.paques@bigfoot.com
* @license http://www.gnu.org/copyleft/lesser.txt GNU Lesser General Public License
*/
class Biblio extends Overlay {

/

* build the list of fields for one overlay
*
* @see overlays/overlay.php
*
* @param the hosting attributes
* @return a list of ($label, $input, $hint)
*/

function get_fields($host) {
global $context;



// auteur
$local['label_en'] = 'Author';
$local['label_fr'] = 'Auteur';
$label = i18n::l($local, 'label');
$input = '<input type="text" name="auteur" value ="'.encode_field(isset($this->attributes['auteur'])?$this->attributes['auteur']:'').'" size="45" maxlength="128" />';
$fields[] = array($label, $input);

// maison édition
$local['label_en'] = 'Edition';
$local['label_fr'] = '&Eacute;dition';
$label = i18n::l($local, 'label');
$input = '<textarea name="editeur" rows="2" cols="50">'.encode_field(isset($this->attributes['editeur'])?$this->attributes['editeur']:'').'</textarea>';
$fields[] = array($label, $input);

// date de parution
$local['label_en'] = 'Publication date';
$local['label_fr'] = 'Date de parution';
$label = i18n::l($local, 'label');
$input = '<input type="date" name="dateparu" value ="'.encode_field($this->attributes['dateparu']).'" />';
$local['hint_en'] = 'Publication date of the book or publlication month of the magazine';
$local['hint_fr'] = 'Date de parution du livre ou mois de parution de la revue';
$hint = i18n::l($local, 'hint');
$fields[] = array($label, $input, $hint);

// numéro ISBN
$local['label_en'] = 'Reference';
$local['label_fr'] = 'R&eacute;f&eacute;rence';
$label = i18n::l($local, 'label');
$input = '<input type="text" name="isbn" value ="'.encode_field(isset($this->attributes['isbn'])?$this->attributes['isbn']:'').'" size="45" maxlength="128" />';
$local['hint_en'] = 'Usually, the ISBN identifier';
$local['hint_fr'] = 'L\'identifiant ISBN, le plus souvent';
$hint = i18n::l($local, 'hint');
$fields[] = array($label, $input, $hint);


// niveau
$local['label_en'] = 'Text level';
$local['label_fr'] = 'Niveau de texte';
$label = i18n::l($local, 'label');
$input = '<select name="niveau" >
<option value="'.encode_field($this->attributes['niveau']).'" selected>'.encode_field($this->attributes['niveau']).'</option>
<option value="Vulgarisation">Vulgarisation</option>
<option value="Professionnel">Professionnel</option>
<option value="Etudiant">Etudiant</option>
</select>';
$fields[] = array($label, $input);

// genre
$local['label_en'] = 'Kind of subject';
$local['label_fr'] = 'Genre de sujet';
$label = i18n::l($local, 'label');
$input = '<select name="genre" >
<option value="'.encode_field($this->attributes['genre']).'" selected>'.encode_field($this->attributes['genre']).'</option>
<option value="Architecture">Architecture</option>
<option value="Ing&eacute;nierie">Ing&eacute;nierie</option>
<option value="Urbanisme">Urbanisme</option>
</select>';
$fields[] = array($label, $input);

// note
$local = array();
$local['label_en'] = 'Note';
$local['label_fr'] = 'Note';
$label = i18n::l($local, 'label');
$input = '<select name="note">
<option value="'.encode_field($this->attributes['note']).'" selected>'.encode_field($this->attributes['note']).'</option>
<option value="Nul">Nul</option>
<option value="Passable">Passable</option>
<option value="Bien">Bien</option>
<option value="Excellent">Excellent</option>
<option value="G&eacute;nial">G&eacute;nial</option>
</select>';
$fields[] = array($label, $input);

return $fields;
}

/
* get an overlaid label
*
* Accepted action codes:
* - 'edit' the modification of an existing object
* - 'delete' the deleting form
* - 'new' the creation of a new object
* - 'view' a displayed object
*
* @see overlays/overlay.php
*
* @param string the target label
* @param string the on-going action
* @return the label to use
*/
function get_label($name, $action='view') {
global $context;

// the target label
switch($name) {

// description label
case 'description':
$local['label_en'] = 'My opinion';
$local['label_fr'] = 'Avis du r&eacute;f&eacute;renceur';
return i18n::l($local, 'label');

// help panel
case 'help':
if(($action == 'new') || ($action == 'edit'))
return '<p>'.i18n::s('Il faut &ecirc;tre le plus pr&eacute;cis possible dans les r&eacute;f&eacute;rences.').'</p>';
return NULL;

// page title
case 'page_title':

switch($action) {

case 'edit':
$local['label_en'] = 'Update one book review';
$local['label_fr'] = 'Modifiez une fiche de lecture';
return i18n::l($local, 'label');

case 'delete':
$local['label_en'] = 'Delete a book review';
$local['label_fr'] = 'Supprimez une fiche';
return i18n::l($local, 'label');

case 'new':
$local['label_en'] = 'Enter a new book review';
$local['label_fr'] = 'Publiez une nouvelle fiche de lecture';
return i18n::l($local, 'label');

case 'view':
default:
// use the article title as the page title
return NULL;

}
}

// no match
return NULL;
}

/

* display the content of one recipe
*
* Accepted variant codes:
* - 'view' - embedded into the main viewing page
*
* @see overlays/overlay.php
*
* @param string the variant code
* @param array the hosting record
* @return some HTML to be inserted into the resulting page
*/

function get_text($variant='view', $host=NULL) {
global $context;
$local = array();

// add something to zooming views only
if($variant != 'view')
return '';

// text to return
$rows = array();

// note
$localnote['label_en'] = 'Note';
$localnote['label_fr'] = 'Note';
$rows[] = array(i18n::l($localnote, 'label'), $this->attributes['note']);

// niveau de texte
$localniv['label_en'] = 'Text level';
$localniv['label_fr'] = 'Niveau de texte';
$rows[] = array(i18n::l($localniv, 'label'), $this->attributes['niveau']);


// Genre de texte
$localgenre['label_en'] = 'Kind of subject';
$localgenre['label_fr'] = 'Genre de sujet';
$rows[] = array(i18n::l($localgenre, 'label'), $this->attributes['genre']);


// author
$local['label_en'] = 'Author';
$local['label_fr'] = 'Auteur';
$rows[] = array(i18n::l($local, 'label'), $this->attributes['auteur']);

// maison édition
$local['label_en'] = 'Edition';
$local['label_fr'] = 'Edition';
$rows[] = array(i18n::l($local, 'label'), $this->attributes['editeur']);

// reference
$local['label_en'] = 'Reference';
$local['label_fr'] = 'R&eacute;f&eacute;rence';
$rows[] = array(i18n::l($local, 'label'), $this->attributes['isbn']);

// date de parution
$local['label_en'] = 'Publication date';
$local['label_fr'] = 'Date de parution';
$rows[] = array(i18n::l($local, 'label'), $this->attributes['dateparu']);



if(count($rows))
return Codes::beautify(Skin::table(NULL, $rows));
else
return '';
}

/**
* retrieve the content of one modified overlay
*
* @see overlays/overlay.php
*
* @param the fields as filled by the end user
* @return the updated fields
*/
function parse_fields($fields) {
$this->attributes['note'] = $fields['note'];
$this->attributes['auteur'] = $fields['auteur'];
$this->attributes['editeur'] = $fields['editeur'];
$this->attributes['dateparu'] = $fields['dateparu'];
$this->attributes['isbn'] = $fields['isbn'];
$this->attributes['niveau'] = $fields['niveau'];
$this->attributes['genre'] = $fields['genre'];

return $this->attributes;
}

}

?>


Christian Hinque dit LeChi Architecte

YACS 8.3beta31.1, 080401-22:30:55 GMT Style TOTEM 930; PHP 4.4.8 ; MySQL 5.0.44-log
By LeChi on June 10 2008

8.4beta30.4: authentification ldap [Solved]

Started by aikido44, edited by Christian on June 2 2008

Comment paramétrer, ordre des paramètres

100%
with Bernard Paques, Agnès Rambaud, Christian, FRANCOIS Alexandre · 12 contributions, including:
Merci surtout à alf83 . C'est un plaisir de mettre [résolu] sur ce problème !


Actupro
quelques sites yacs : création site internet annuaire pro
By Christian on June 2 2008

authentification ldap

Purge des fichiers /temporary/cache_i18n

Started by alf83 on June 2 2008


0%

Restreindre l'accès à la page "/articles/" (all pages) [Solved]

Started by alf83, edited by Christian on May 24 2008


100%
with Christian · 2 contributions, including:
Christian: Tout juste ! L'option 'users_without_teasers' laissait l'affichage des titres d'articles à visibilité restreinte.

Merci pour ton aide !
By alf83 on May 24 2008

8.4beta30.4: des reliquats de $variant dans overlay::get_view_text()

Started by alf83, edited by alf83 on May 15 2008


0%
with Christian · 2 contributions, including:
Merci pour votre message de bienvenue. J'en ai profité pour ausculter d'autres overlays et j'ai noté des reliquats de $variant dans l'overlay petition.php/get_view_text(). Les autres semblent OK.
By alf83 on May 15 2008
Business card

FRANCOIS Alexandre

Websites made with Yacs