manageAuth ($loginForm)) return $loginForm; //---------------------------------------------------------------------------- // Run engine management. return $object->manageEngine (); } //============================================================================ // CONSTRUCTOR // // By default, we provide standard classes to manage users (annuOldShowClass, // annuOldAdminClass and annuOldFieldsClass). But subclasses of annuOldClass may pass // to this constructor subclasses of these classes. // $args is an alternate solution for $GS_ARGUMENTS arguments. See parent // class for more informations. //============================================================================ function annuOldClass ($show = null, $admin = null, $fields = null, $args = null) { parent::engineClass ( (empty ($show) ? new annuOldShowClass () : $show), (empty ($admin) ? new annuOldAdminClass () : $admin), (empty ($fields) ? new annuOldFieldsClass () : $fields), $args); //-------------------------------------------------------------------------- // Arguments. global $GS_GLOBAL; global $GS_ARGUMENTS; global $GS_PROJECT_ARGUMENTS; if (empty ($args)) $args = $GS_ARGUMENTS; $prjArgs = $GS_PROJECT_ARGUMENTS; $this->args_ = array (); $this->args_['filter'] = (isset ($args['filter']) ? $args['filter'] : ''); $this->args_['popupset'] = (isset ($args['popupset']) ? $args['popupset'] : 'frame'); $this->args_['searchtype'] = (isset ($args['searchtype']) ? $args['searchtype'] : 'letter'); $this->args_['empty_start']= (isset ($args['empty_start'])? $args['empty_start'] =='true': false); $this->args_['seealso'] = (isset ($args['seealso']) ? $args['seealso'] : ''); $this->args_['auth_annu'] = (isset ($args['auth_annu']) ? $args['auth_annu'] : ''); $this->args_['onlyone'] = (isset ($args['onlyone']) && !empty ($args['onlyone']) ? $args['onlyone'] : -1); //-------------------------------------------------------------------------- // Manage filter mode / filter_appli_label. $this->args_['filter_mode'] = (isset ($args['filter_mode'])? $args['filter_mode']:''); $this->filter_mode_is_label_ = ($this->args_['filter_mode'] == 'label'); $this->args_['filter_appli_label'] = (isset ($args['filter_appli_label'])? $args['filter_appli_label'] : ''); $this->filter_appli_label_ = ($this->args_['filter_appli_label']!='')? $this->args_['filter_appli_label'] : $this->filter_appli_label_; //-------------------------------------------------------------------------- // Manage diffusion action. //old: $this->args_['diffusion'] = (isset ($args['diffusion']) ? $args['diffusion'] == 'true' : false); $this->args_['diffusion'] = ($this->action_ == 'diffusion'); //-- SMTP server $this->args_['diffusion_smtp'] = (isset ($args['diffusion_smtp']) ? $args['diffusion_smtp'] : 'localhost:25'); //-- Project Arguments priority $this->args_['diffusion_smtp'] = (isset ($prjArgs['diffusion_smtp']) ? $prjArgs['diffusion_smtp'] : $this->args_['diffusion_smtp']); //-------------------------------------------------------------------------- // The mode 'diffusion' force several options : if ($this->args_['diffusion']) { //Force to 'show' mode. $this->action_ = 'show'; //Always Authentification mode. $this->withAuth_ = true; //No close. $this->openclose_ = false; //No max. $this->max_ = 0; } //-------------------------------------------------------------------------- // Manage U_STATUS TRIGGER //-- status_automail : if <> 0, send an email automatically when a cmd // update U_STATUS on the zero value. $this->args_['status_automail'] = (isset ($args['status_automail'])? $args['status_automail']: '0'); if ( $this->args_['status_automail'] == '') $this->args_['status_automail']= '0'; //-- status_okmsg_pattern : pattern $this->args_['status_okmsg_pattern'] = (isset ($args['status_okmsg_pattern']) ? $args['status_okmsg_pattern'] : ''); //-- Force a default pattern if ( $this->args_['status_okmsg_pattern'] == '') $this->args_['status_okmsg_pattern']= 'statut_automail.html'; //-- status_emailsender $this->args_['status_emailsender'] = (isset ($args['status_emailsender']) ? $args['status_emailsender'] : ''); //-- status_smtp . // NOTE: we have the same smtp for status_automail and diffusion mode. $this->args_['status_smtp'] = $this->args_['diffusion_smtp']; //-- status_filter_value $this->args_['status_filter_value'] = (isset ($args['status_filter_value']) ? $args['status_filter_value'] : ''); //-- status_mailformat $this->args_['status_mailformat'] = (isset ($args['status_mailformat']) ? $args['status_mailformat'] : 'plaintxt'); //-- Pattern mandatory sections $this->initAutoMailStatusInfos (); //-- Allow to display the icon to update u_status. $this->args_['status_mode_desactif'] = (isset ($args['status_mode_desactif']) ? $args['status_mode_desactif'] == 'true' : false); if (!$this->args_['status_mode_desactif']) { //-- Allow to display the icon to update u_status. $this->args_['noUpdateStatusIconForUsers'] = (isset ($args['noUpdateStatusIconForUsers']) ? $args['noUpdateStatusIconForUsers']:''); /* if ($this->args_['noUpdateStatusIconForUsers']!= '' ) { $uidArray = explode ('|', $this->args_['noUpdateStatusIconForUsers']); foreach ($uidArray as $uidKey) { $this->noUpdateStatusIconUsersArray_[$uidKey] = 1 ; } } */ $this->initNoUpdateStatusIconUsersArray ($this, $this->noUpdateStatusIconUsersArray_); } //-------------------------------------------------------------------------- // Include see also ? if (! empty ($this->args_['seealso'])) { $seealsoFile = 'appl/'.$this->args_['seealso'].'.php'; if (file_exists ($seealsoFile)) { include_once ($seealsoFile); } else { echo "Unable to find see also file $seealsoFile
"; } } //-------------------------------------------------------------------------- // Init instance of filter object. (NOTE: We must place this initialisation // after all args inits.) $this->initFilterObj ($this); } //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // OVERLOAD METHODS //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //============================================================================ /** * Overload user login management, according to a special object. * * We check that the level of the user is not greater than 1. * * @param object this object defines the login policy * @param string if login is needed, login form * @return boolean */ //============================================================================ function manageAuthWithObject (&$loginObj, &$outputText) { $ok = engineClass::manageAuthWithObject ($loginObj, $outputText); if ($ok && $this->withAuth_) { if ($this->userLevel_ > 1) { $msg = $this->label ('adm_not_admin', 'gsite'); $outputText = ''."\n". '

'.$msg.'


'."\n". ''."\n"; return false; } } return $ok; } //============================================================================ // OVERLOAD withSearch () // // If we are under admin mode (action == admin), we have search only if the // user is an administrator. Under other modes, we use $this->withSearch_. //============================================================================ function withSearch () { if ($this->action_ == 'admin') { return $this->isAdministrator_; } return $this->withSearch_; } //============================================================================ // OVERLOAD manageEngine () // // Manage a new action: filter (filters management), for administrators only. //============================================================================ function manageEngine () { $msg = ''; //-------------------------------------------------------------------------- // Manage filters ? if ($this->action_ == 'filter') { if (($this->userID_ > 0) && $this->isAdministrator_) { return $this->filterObj_->filterAdministration ($this); } else { $msg = $this->label ('adm_not_admin', 'gsite'); return ''."\n". '

'.$msg.'


'."\n". ''."\n"; } } //-------------------------------------------------------------------------- // Automail status. if (! $this->manageAutoMailStatus ($msg)) { $introMsg = $this->label ('annu_mailstatus_msgintro'); //"Mode d'envoi automatique de mail sur changement de statut IMPOSSIBLE :"; $adviceMsg = $this->label ('annu_mailstatus_advice'); //"Veuillez changer ce mode pour pouvoir utiliser ce module."; return ''."\n". '

'.$introMsg.''."\n". ''."\n". ''."\n". '
'.$msg.''."\n". ''."\n". ''."\n". '
'.$adviceMsg.'


'."\n". ''."\n"; } //-------------------------------------------------------------------------- // Default. $engine = parent::manageEngine (); //-------------------------------------------------------------------------- // Diffusion ? $diffusion = ''; if ($this->args_['diffusion']) { registerJS($this); $diffusion = $this->diffusion (); } return $engine.$diffusion; } //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // SPECIFIC METHODS //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //============================================================================ /** * Init Filter Object. */ //============================================================================ function initFilterObj (&$mainObj) { $this->filterObj_ = new annuOldFilterClass($mainObj); } //============================================================================ /** * Init automail status Infos. */ //============================================================================ function initAutoMailStatusInfos () { //-- Init mandatory section in the pattern file. $this->automailStatusInfos_['sections'] = array('vBody' => 'statut_automail_validate_body', 'vSubject'=> 'statut_automail_validate_subject'); //-- Init mailformat (html|plaintxt). $this->automailStatusInfos_['mailformat'] = $this->args_['status_mailformat']; //-- Init addBcc flag. $this->automailStatusInfos_['isAddBcc'] = false; } //============================================================================ /** * Manage automail status controle. */ //============================================================================ function manageAutoMailStatus (&$msg) { //-------------------------------------------------------------------------- // Inits $bIsOk = true; $pattern = ''; //-------------------------------------------------------------------------- // Manage Check. if ($this->args_['status_automail'] != '0') { if (empty($this->args_['status_smtp'])) { $bIsOk = false; $msg = $this->label ('annu_mailstatus_badsmtp'); } elseif ( $this->args_['status_emailsender'] == '') { //-- In this case test if user current have an valid email. $userROW = gsapi_annu_getUserByAnnuFromID ($this, $this->userID_, $this->args_['auth_annu']); if ( (empty ($userROW->U_MAIL)) || (! gs_isValidEmail ($userROW->U_MAIL)) ) { $bIsOk = false; $msg = $this->label ('annu_mailstatus_baduseremail1'); $msg .= $this->label ('annu_mailstatus_baduseremail2'); } else { //-- Force current user email as email sender. $this->args_['status_emailsender'] = $userROW->U_MAIL; } } elseif (! gs_isValidEmail ($this->args_['status_emailsender'])) { $bIsOk = false; $msg = $this->label ('annu_mailstatus_badsender'); $msg .= ' ('.$this->args_['status_emailsender'].')'; } elseif (empty($this->args_['status_okmsg_pattern'])) { $bIsOk = false; $msg = $this->label ('annu_mailstatus_nookpattern'); } else { //---------------------------------------------------------------------- // Check - pattern && mandatory sections foreach ($this->automailStatusInfos_['sections'] as $section) { $pattern = $this->args_['status_okmsg_pattern'].'#'.$section; if (! gs_loadPattern ($this->project_, $pattern, $this, '') ) { $bIsOk = false; $msg = $this->label ('annu_mailstatus_badokpattern'); $msg .= ' ('.$pattern.')'; return $bIsOk; } } } return $bIsOk; } return $bIsOk; } //============================================================================ /** * Manage automail status callback to send a Automail with the pattern * (status_okmsg_pattern). * This function is called in adminAnnuClass::sendAutomailStatus() function. */ //============================================================================ function callbackAutoMailStatus(&$mainObj, &$args) { if (isset($args[0]) && isset($args[1]) ) { $fieldType = $args[0]; $fieldName = $args[1]; //------------------------------------------------------------------------ // Get Field infos data row // // NOTE : we must use showObj_ or annuShowClass to use correctly the // dumpFieldByName function. Because adminObj or adminAnnuClass // overload dumpFieldByName function by dumpUpdateFieldByName // to have a correct interactivity to update each ield. // So, here we just wants to keep the value in the goal to // push it in the pattern. // Then, a call like 'annuShowClass::dumpFieldByName(..) // is also right. $fieldData = $mainObj->showObj_->dumpFieldByName ($mainObj, $fieldName, $mainObj->automailStatusInfos_['uRow']); switch ($fieldType) { case 'value': return $fieldData['value']; break; case 'field': return $fieldData['field']; break; default : return ''; } } return ''; } //============================================================================ /** * Init the array of user where the update icon status mode is hidden. * * We check that the level of the user is not greater than 1. * * @param object $mainObj Main object. * @param array $uidArray Array to store the uid list of such users. * @return boolean */ //============================================================================ function initNoUpdateStatusIconUsersArray (&$mainObj, &$uidArray) { $tmpArray = null; if ($mainObj->args_['noUpdateStatusIconForUsers']!= '' ) { $tmpArray = explode ('|', $mainObj->args_['noUpdateStatusIconForUsers']); foreach ($tmpArray as $key => $value) { $uidArray [$value] = 1 ; } } } //============================================================================ /** * Manage diffusion mode. */ //============================================================================ function diffusion () { global $GS_GLOBAL; $STYLErow = $GS_GLOBAL['style_row']; //-------------------------------------------------------------------------- // An user must be logged. if ($this->userID_ <= 0) return ''; //-------------------------------------------------------------------------- // Register css. css_register ('linkBtn', ".linkBtn {\n". " font-family: $STYLErow->S_FONT_FAMILY;\n". " font-size: $STYLErow->S_FONT_SIZE_SMALL;\n". " font-style: normal;\n". " font-weight: bold;\n". " text-align: center;\n". " text-decoration: none;\n". " vertical-align: middle;\n". " color: $STYLErow->S_COLOR_TEXT;\n". " background-color: $STYLErow->S_COLOR_3;\n". "}\n" ); //-------------------------------------------------------------------------- // The current user must have a mail. // // BE CAREFUL : THE USER CONNECTED IS IN THE $this->args_['auth_annu'] annu // not necessarily in the $this->annu ! $userROW = gsapi_annu_getUserByAnnuFromID ($this, $this->userID_, $this->args_['auth_annu']); if (empty ($userROW->U_MAIL)) { $error = ''. "\n".' '. "\n".' '. "\n".' '; "\n".'
'. '
'. $this->label ('annu_diffusion_nousermail1'). '
'. $this->label ('annu_diffusion_nousermail2'). '
'; return $error; } //-------------------------------------------------------------------------- //-- Get Bcc UID sender $aBcc = gs_request('bcc',''); if($aBcc != ''){ foreach ($aBcc as $uid) { $aBccSender[$uid]='1'; } } //-------------------------------------------------------------------------- // Send message ? $title = (empty ($GLOBALS['annu_diff_title']) ? '' : stripslashes ($GLOBALS['annu_diff_title'])); $body = (empty ($GLOBALS['annu_diff_msg']) ? '' : stripslashes ($GLOBALS['annu_diff_msg'])); $dftMsg = ''; $attach = gs_request('linkurl',''); $format = gs_request('mailformat','plaintxt'); if (isset ($GLOBALS['annu_diff_cmd']) && ($GLOBALS['annu_diff_cmd'] == 'send')) { //------------------------------------------------------------------------ // We have a valid message ? if (empty ($title)) { $msg = $this->label ('annu_diffusion_empty'); $dftMsg = $body; } else { //---------------------------------------------------------------------- // Init an PHPMailer object . //Utilisation of phpmailer... //Note: l' e-mail a été envoyé via SMTP, si vous désirez envoyer le //même e-mail avec votre serveur local, il suffit de retirer l'appel // aux méthodes IsSMTP(),SmtpClose() et Host() puisque l'hôte sera local. //Vous pourrez aussi le cas échéant utiliser les méthodes //IsQmail(), IsSendmail, IsMail selon le serveur local utilisé $mail = new PHPmailer(); //---------------------------------------------------------------------- // Build message. $from = "$userROW->U_MAIL"; $fromName= "$userROW->U_NAME $userROW->U_SURNAME"; $to = $userROW->U_MAIL; $bcc = ''; $subject = $title."\r\n"; $body = $body; //---------------------------------------------------------------------- // Query all users. $filter = $this->showObj_->searchFilter ($this); unset ($filter['limit']); $filter['where'] .= " and U_MAIL != ''"; $result = $this->showObj_->performSearch ($this, $filter); while ($row = mysql_fetch_object ($result)) { //$bcc = "Bcc: \"$row->U_NAME $row->U_SURNAME\" <$row->U_MAIL>\r\n"; //AddCC,AddBCC,AddAddress if ( isset($aBccSender[$row->U_ID]) ){ $mail->AddBCC($row->U_MAIL, $row->U_NAME." ".$row->U_SURNAME); } } mysql_free_result ($result); $mail->IsSMTP(); $mail->Host=$this->args_['diffusion_smtp']; //$mail->IsMail(); $mail->From=$from; $mail->FromName=$fromName; $mail->AddAddress($userROW->U_MAIL); $mail->AddReplyTo($userROW->U_MAIL); $mail->IsHTML($format=='html'); //Manage attachment if($attach!=''){ $mail->AddAttachment($attach); } $mail->Subject = $title; $mail->Body = $body; /* if(!$mail->Send()){ //Teste le return code de la fonction echo $mail->ErrorInfo; //Affiche le message d'erreur (ATTENTION:voir section 7) echo $mail->ErrorInfo; } else{ echo 'Mail envoyé avec succès'; } */ //$out = $mail->Send(); if( !$mail->Send() ){ $msg = $mail->ErrorInfo; } else { $msg = $this->label ('annu_diffusion_sent'); } $mail->SmtpClose(); unset($mail); //@mail ($to, $subject, $body, $from.$bcc); } } //-------------------------------------------------------------------------- // Message ? if (empty ($msg)) { $msg = ''; } else { $msg = "\n".''. "\n".' '.$msg.''. "\n".''; } //-------------------------------------------------------------------------- // Build Attachment input. //-- Use of 'engine_links_class:::buildFileSelection' require_once 'modules/std/engine/engine_links_class.php'; $attachUrlInput = buildFileSelection ($this->annu_, $this->project_, $this->projectadm_, $this->locale_, '', 'updform', 'linkurl','none'); $attachData = ' '."\n". ' '. $this->label ('annu_diffusion_attach').' : '."\n". ' '.$attachUrlInput.''."\n". ' '."\n"; //-------------------------------------------------------------------------- // Build FormatData (Html, Text ). $FormatData = ' '."\n". ' '. $this->label ('annu_diffusion_format').' : '."\n". ' '. ' '."\n". ' '."\n". ' '."\n". ' '."\n". ' '."\n". ' '."\n". ' '."\n". ' '."\n". '
    '.$this->label ('annu_diffusion_txtformat').'  '.'    '.$this->label ('annu_diffusion_htmlformat').'
'."\n". ' '."\n". ' '."\n"; //-------------------------------------------------------------------------- // Build form. $form = ''. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. $msg. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".$FormatData. "\n".$attachData. "\n".'
'. $this->label ('annu_diffusion'). '
'. $this->label ('annu_diffusion_sender').' : '. ''. ' '.gs_htmlentities ($userROW->U_MAIL). '
'. $this->label ('annu_diffusion_title').' : '. ''. ''. ''. ''. '
'. $this->label ('annu_diffusion_msg').' : '. ''. ''. '
'; $btnCheckAll = ' [ '. ''. $this->label('annu_diffusion_checkall'). ''. ' ]'; $btnUnCheckAll = ' [ '. ''. $this->label('annu_diffusion_uncheckall'). ''. ' ]'; $form = $btnCheckAll." ".$btnUnCheckAll. '
'. $form. $this->filterURLhidden (true, true, true). "\n".' '. //Init a blank 'Div' element to put the on-fly variable bcc[] input. "\n".' '. "\n".'
'; return "\n".''. "\n".' '.$form.''. "\n".''; } } //============================================================================== /** * Function javascript to submit form. * */ //============================================================================== function registerJS(&$obj) { $jsFunc = "\n".'function displayDiffForm(){'; $jsFunc .= "\n".' var oForm;'; $jsFunc .= "\n".' if (oForm = document.getElementById("updform")){'; $jsFunc .= "\n".' oForm.style.display="block";'; $jsFunc .= "\n".' }'; $jsFunc .= "\n".'}'; js_register ('displayDiffForm',$jsFunc); $jsFunc = "\n".'function checkAll($flag){'; $jsFunc .= "\n".' var bccChkTab = document.getElementsByName("BCCChk");'; $jsFunc .= "\n".' for (i = 0; i < bccChkTab.length; i++)'; $jsFunc .= "\n".' {'; $jsFunc .= "\n".' bccChkTab[i].checked = $flag;'; $jsFunc .= "\n".' }'; $jsFunc .= "\n".'}'; js_register ('checkAll',$jsFunc); $jsFunc = "\n".'function sendDiffForm(){'; $jsFunc .= "\n".' var oForm = document.getElementById("updform");'; $jsFunc .= "\n".' var oBccDiv = document.getElementById("bccDiv");'; $jsFunc .= "\n".' var oBccChkTab = document.getElementsByName("BCCChk");'; $jsFunc .= "\n".' var oBccInput ;'; $jsFunc .= "\n".' var nBcc = 0 ;'; $jsFunc .= "\n"; $jsFunc .= "\n".' if (oForm && oBccDiv && oBccChkTab){'; $jsFunc .= "\n".' //vide oBccDiv'; $jsFunc .= "\n".' oBccDiv.innerHTML="";'; $jsFunc .= "\n".' //parcours bccChkTab'; $jsFunc .= "\n".' for (i = 0; i < oBccChkTab.length; i++)'; $jsFunc .= "\n".' {'; $jsFunc .= "\n".' if (oBccChkTab[i].checked){'; //-- Add checbox input on-fly in the div bccDiv $jsFunc .= "\n".' nBcc++;'; $jsFunc .= "\n".' oBccDiv.innerHTML=oBccDiv.innerHTML+"";'; $jsFunc .= "\n".' }'; $jsFunc .= "\n".' }'; $jsFunc .= "\n".' if (oForm.annu_diff_title.value == "") {'; $jsFunc .= "\n".' alert("'.$obj->label ('annu_diffusion_empty','',false).'");'; $jsFunc .= "\n".' } else {'; $jsFunc .= "\n".' if (nBcc<=0) {'; $jsFunc .= "\n".' alert("'.$obj->label ('annu_diffusion_senderempty','',false).'");'; $jsFunc .= "\n".' } else {'; $jsFunc .= "\n".' oForm.submit();'; $jsFunc .= "\n".' }'; $jsFunc .= "\n".' }'; $jsFunc .= "\n".' }'; $jsFunc .= "\n".'}'; js_register ('sendDiffForm',$jsFunc); } //------------------------------------------------------------------------------ // $Log: annu_class.php,v $ // Revision 1.25 2010-01-07 13:55:59 guillaume // small correction on init's arg onlyone // // Revision 1.24 2007-05-30 11:46:28 bouba // little correction // // Revision 1.23 2007/05/30 11:44:59 bouba // add run and factory // // Revision 1.22 2005/11/29 11:37:54 autran // Change all cal of htmlentities by gs_htmlentities call (for utf8 management). // // Revision 1.21 2005/08/05 10:23:47 autran // - Add ' btnUnCheckAll ' to the diffusion form. // // Revision 1.20 2005/04/04 10:01:09 autran // Add management of a list useres where the update // icon status was hidden in mode update status activate. // // Revision 1.19 2005/03/25 16:54:51 autran // Add status_mode_desactif parameter management. // // Revision 1.18 2005/03/25 15:18:28 autran // Description bug : // With IE, the diffusion send an Email only to the sender (administrator) and not // to all user in the check list !!!!! The bcc list was false with IE ! // Corrected. // // Revision 1.17 2005/03/23 15:40:58 yvan // $mail->From corrected // // Revision 1.15 2005/02/21 20:56:45 autran // Big Update : // - Implements a real annuFilterClass. // - Implements Filter automail status. // - add filter arguments. // // Revision 1.14 2005/01/27 15:35:20 yvan // empty_start argument available // // Revision 1.13 2004/10/11 10:17:55 autran // Correct the email annu user check // in calling 'gsapi_annu_getUserByAnnuFromID' instead of // 'gsapi_annu_getUserFromID' . // // Revision 1.12 2004/09/17 10:06:21 autran // Add comments. // // Revision 1.11 2004/07/21 15:13:16 autran // Add a warning message to the diffusion mode. // The warning appears in the case where the current // user had an empty email because to send an email in 'SMTP' // mode the sender must have an no empty email. // // Revision 1.10 2004/06/29 15:41:57 autran // Manage the new action : 'diffusion' . // // Revision 1.9 2003/05/13 15:56:06 lc // Check user level // // Revision 1.8 2003/05/05 13:30:18 lc // Add diffusion // // Revision 1.7 2002/09/13 07:50:58 lc // LC0043 : add a popup to show infos about an user // // Revision 1.6 2002/09/13 06:28:02 lc // LC0044 // // Revision 1.5 2002/07/08 10:01:57 lc // Use attribute annu_ from parent object. // // Revision 1.4 2002/05/23 08:26:07 lc // auth arg is now generic. // // Revision 1.3 2002/05/22 11:17:20 lc // Add popupset tag (set used for document popup). // Check if the page defines a seealso. // // Revision 1.2 2002/05/21 16:14:28 lc // Add auth argument. // // Revision 1.1 2002/05/21 13:49:32 lc // New version (engine based). // //-- End of source ------------------------------------------------------------ ?> $GLOBALS['userid'], 'project' => $GLOBALS['project'], 'annu' => $GLOBALS['annu'], 'action' => 'show', 'openclose' => false, 'auth' => true, 'dump' => false, 'search' => false, 'max' => 10); $object = new annuOldClass (null, null, null, $args); //-- Set application. $object->application_ = 'annu_old'; //-- Set title. $popupTitle = $object->label ('annu_show_user_title'); //---------------------------------------------------------------------------- // Login arguments. global $GS_GLOBAL; $GS_GLOBAL['login_extra_args'] = array ('annu', 'userid', 'with_msg'); //---------------------------------------------------------------------------- // Manage auth. if (! $object->manageAuth ($loginForm)) { $text = $loginForm; } else { //-------------------------------------------------------------------------- // Use messenger ? $messenger = ''; if (isset ($GLOBALS['with_msg']) && ($GLOBALS['with_msg'] == 1)) { $msgArgs = "'$object->project_', ". "'$object->locale_', ". $GLOBALS['userid']; $messenger = "\n".' '. "\n".' '. "\n".' '. "\n".' '. "\n".'    '. ''. ''. ''. ''. "\n".' '; } $text = $object->manageEngine (). $messenger; } //---------------------------------------------------------------------------- // Build page. return "\n".''. $text. "\n".'
'; } //------------------------------------------------------------------------------ // $Log: annu.php,v $ // Revision 1.8 2007-05-30 11:44:59 bouba // add run and factory // // Revision 1.7 2002/11/25 13:57:33 lc // Use gs_icon // // Revision 1.6 2002/11/21 14:09:58 lc // Manage login extra-arguments. // // Revision 1.5 2002/10/23 10:22:37 lc // Remove putStyles (call to engineClass::putStyles) // // Revision 1.4 2002/09/13 07:50:54 lc // LC0043 : add a popup to show infos about an user // // Revision 1.3 2002/05/21 13:49:06 lc // New version (engine based). // // Revision 1.2 2002/03/18 14:23:15 lc // Add photo management. // // Revision 1.1 2002/03/08 14:05:40 lc // Initial revision (without status, photo, filter management). // //-- End of source ------------------------------------------------------------ ?> ICSM / Annuaire
Application not found: annu_old