![]() |
![]() |
Version: 1.0
NukeWrap is a PHP-Nuke module that enables virtually any web content such as html, scripts (home pages, galleries, shopping carts, php, perl, asp, etc.) to be easily incorporated into your PHP-Nuke site. Just call the NukeWrap module with any URL and it will display it in your PHP-Nuke main area/window. I call it a content wrapper (takes any existing content anywhere and wraps your PHP-Nuke site around it. Uses an <iframe> which must be supported by the browser and JavaScript to resize the <iframe>.
The following options can be set in the nukewrap.cfg:
The General settings section defines overall settings for the NukeWrap module.
If url-security = true in General settings, then any URL must be entered here in order to be displayed.
The following are the same as the General section but override the General setting for the specific URL.
The following messages can be easily customized. Just modify the text in your
lang-yourlanguage.php file in the modules/NukeWrap/language/ directory.
_NOPAGEMSG No page was defined to display.
_TITLEMSG The following content is from another site.
_TITLEMSGEND The END of content from another site.
_NOTSERMSG Sorry, you are not authorized to use this feature. Please login.
_NOTAUTHHOSTMSG Sorry, this URL is not authorized to be displayed here.
_NOUSERENTRYMSG Sorry, you are not allowed to do that.
_NOTLOCALMSG Sorry, only local pages may be displayed.
_OPENDIRECTMSG Open in new window
_SORRYBROWSER Sorry, your browser does not understand iframes. Here is the
_LINKYOU link
_SORRYBROWSER1 to the page.
Just call NukeWrap in module fashion with the page variable set to the URL or
location that you want to display in PHP-Nuke. If Compare URL against URL
Security = true, then you may use either the URL or the alias that you defined.
For example, an anchor would look like:
URL: <a href="modules.php?name=NukeWrap&page=index.php">My Site</a>
Alias: <a href="modules.php?name=NukeWrap&page=mysite">My Site</a>
Cool! For a remote site you would use:
URL: <a href="modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/">PHP-Nuke
Site</a>
Alias: <a href="modules.php?name=NukeWrap&page=phpnuke">PHP-Nuke Site</a>
And you'll show the PHP-Nuke home page in your main window.
Example:
modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/&height=1000&width=90%
modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/&resize=1
modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/&title=The future of the
Web
Using the PHP-Nuke index variable you can show the center and right blocks if
you want by including &index=1.
Example:
modules.php?name=NukeWrap&page=http://www.PHP-Nuke.org/&index=1
You can place references in your user home page, linked to the main menu or
to sub menus, on user pages and just about anywhere. You can use hrefs <img srcs,
Javascript dynamic page generation, html redirection, and even php scripts by
sending Location: headers.
The real magic is that other applications written in php or perl or Javascript
or whatever run as if they were a part of PHP-Nuke, seamlessly and with little
effort. If you do this, be sure to give proper credit though. As long as it is
pleasant looking running standalone, it will look great running in PHP-Nuke via
NukeWrap.
Example:
page=http://somedomain.com/page.php?somevar=50&othervar=login
Becomes:
page=http://somedomain.com/page.php%3Fsomevar=50%26othervar=login
Please send bug reports or feedback to AbraCadaver@mckenzies.net or visit http://spidean.mckenzies.net.
PostWrap is Free Software released under the GNU/GPL license.