ShowMyIP
From e107 Wiki
Contents |
ShowMyIP
a plugin by nlstart.
ShowMyIP v1.1 is out since December 28, 2007.
(initial version published December 7, 2007)
ShowMyIP is a simple plugin to display the IP address of the visitor.
Purpose of the ShowMyIP plugin
- GOAL: Display the IP address.
Latest version
version v1.1
Prerequisites
E107 core v0.7.7 (or newer) installed.
Support
Download: ShowMyIP download
Download mirror: ShowMyIP download mirror on plugins@e107.org
Forum: ShowMyIP forum
Bugs: ShowMyIP bug reports
Requests: ShowMyIP requests
Installation
Install
- a. Upload ShowMyIP files into your 'e107_plugins' folder. Although 'Upload plugin' from the Admin section might work, uploading your files by using an FTP client program is recommended.
- b. When working on Linux or Unix based server set the CHMOD settings of directories to 755 and set CHMOD of all .php files to 644.
- c. Login as an administrator into e107, go to Plugin Manager, install ShowMyIP and enjoy!
Updates
Not applicable; no database updates since v1.0!
Important background information
After installing there is no admin area for this plugin; the plugin adds a new link 'ShowMyIP' to the Admin Area > Site Links.
It is possible for a user with parameter ?full to view a more detailed screen with information. E.g.:
http://www.yourdomain.tld/e107_plugins/showmyip/showmyip.php?full
The 'full' version displays:
- Time stamp
- Proxy (from IE)
- Proxy Wikipedia definition
- GID (if available)
- Browser (User-Agent)
- Host name
- PHP Magic quotes setting
- PHP Display errors setting
- PHP Post Max Size
- PHP Post Max Size in bytes
Troubleshooting
Changelog
Version 1.1:
* Sub-goals for release 1.1:
- improvements
* Bugs Fixed:
- showmyip: added correct full php tag in top of file instead of shorttag
- PHP function getenv() doesn't work when Server API is ASAPI (IIS); the IP number is than always unknown
fixed by using function $_SERVER["REMOTE_ADDR"] for those situations.
- variables ip and full where set improperly
Version 1.0:
* Sub-goals for release 1.0: - make plugin fully e107 compliant - make plugin language independent * initial version
Future roadmap
- actually monitor the buglist
- monitor what features end users want
Technical aspects
Directory Structure
After a straight installation of ShowMyIP the directory structure in the e107_plugins folder should be as follows:
e107_plugins
|- ShowMyIP
|- images
|- languages
- The images folder contains the images 'logo_16.png' and 'logo_32.png' which are called by plugin.php
- The languages folder contains default language file English.php with all terms used by all modules of this plugin
Plugin Modules
The plugin consists of two different files forming one integrated module. Each .php file contains a standard set of instructions to run properly under e107. The plugin files are heavily commented in order to show starting plugin developers why certain things are done.
plugin.php
General set-up of e107 plugin to tell e107 Plugin Manager where files reside, which logo to use, etc.
readme.txt
Not really a module just a flat text file to display all relevant plugin background info, installation instructions etc.
showmyip.php
The main plugin; returns the IP address of the visitor or a 'full' report when called as showmyip.php?full.

