Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($mailbox['status'] == 'active' ||
- $mailbox['status'] == 'disabled') {
- $mailbox['type'] = 'mailbox';
- } else {
- $mailbox['type'] = 'redirect';
- }
- $mailbox['type'] = ($mailbox['status'] == 'active' ||
- $mailbox['status'] == 'disabled') ? 'mailbox' : 'redirect';
- switch($mailbox['status']) {
- case 'active':
- case 'disabled':
- $mailbox['type'] = 'mailbox';
- break;
- default:
- $mailbox['type'] = 'redirect';
- }
Add Comment
Please, Sign In to add comment