If you are upgrading e107 or just need your site to be offline for a while just tick the maintenance box and your visitors will be redirected to a page explaining the site is down for repair. After you've finished un-tick the box to return the site to normal.
How to allow a plugin page to bypass maintenance mode?
Place this before class2.php in your plugin script: $_E107['no_maintenance'] = true;