Esempio n. 1
0
 private function attivaUtente($paramUserEmail)
 {
     // controllo se esiste
     echo $paramUserEmail;
     $futente = new FUtente();
     $esito = $futente->load($paramUserEmail);
     if (!$esito['stato']) {
         // lo attivo
         return $futente->activateUser($paramUserEmail);
     } else {
         return $flag = 'Utente non esistente';
     }
 }
Esempio n. 2
0
 /**
  * Controlla se un utente è gia inserito nel database
  * @param type $numero
  * @return type
  */
 public function checkUtente($numero)
 {
     $FUtente = new FUtente();
     $result = $FUtente->load($numero);
     return $result;
 }