331: if (!extension_loaded(\'imap\')) err(\'imap non disponible\'); 332: $mbox = @imap_open(IMAP_HOST, IMAP_USER, IMAP_PASS); 333: if (!$mbox) err(\'IMAP connexion echouee: \' . imap_last_error()); 334: $count = imap_num_msg($mbox); 335: imap_close($mbox); 336: ok([\'connected\' => true, \'messages\' => $count, \'inbox\' => IMAP_USER]); 337: } 338: 339: // ── Debug email (boubaker inbox) ───────────────────────────────────── 340: case \'debug_email\': { 341: if (!extension_loaded(\'imap\')) err(\'imap non disponible\'); 342: $mbox = @imap_open(IMAP_HOST, IMAP_USER, IMAP_PASS); 343: if (!$mbox) err(\'IMAP connexion echouee: \' . imap_last_error());