function mdrop_connect_server() { $user_id = get_current_user_id(); $server = mdrop_get_server($user_id); $email = mdrop_get_email($user_id); $password = mdrop_get_password($user_id); return MDROP_Attachment_List::instance($server, $email, $password); }
echo '<div class="error"><p>'; _e('<strong>Please enable fileinfo</strong><br>', 'mdrop'); _e('Open <em style="background: #eee;">php.ini</em> uncomment the following: <em style="background: #eee;">extension=php_fileinfo.dll</em>', 'mdrop'); echo '</p></div>'; return; } $header_path = dirname(__FILE__) . '/header.php'; $header_path = apply_filters('mdrop_header_path', $header_path, 'settings'); if (file_exists($header_path)) { require_once $header_path; } $user_id = get_current_user_id(); $mail_server = mdrop_get_server($user_id); $email = mdrop_get_email($user_id); $password = mdrop_get_password($user_id); $drop_token = mdrop_get_token($user_id); ?> <div class="postbox"> <h3 class="mdrop-h3-title"><?php _e('Settings', 'mdrop'); ?> </h3> <div class="mdrop-settings-content"> <div id="mdrop-read-me-wrap" style="display: none; margin-bottom: 35px;"> <p> <strong><?php _e('For Gmail', 'mdrop'); ?>