home *** CD-ROM | disk | FTP | other *** search
- <?php
-
- /************************************************************************/
- /* PHP-NUKE: Web Portal System */
- /* =========================== */
- /* */
- /* Copyright (c) 2002 by Francisco Burzi */
- /* http://phpnuke.org */
- /* */
- /* This program is free software. You can redistribute it and/or modify */
- /* it under the terms of the GNU General Public License as published by */
- /* the Free Software Foundation; either version 2 of the License. */
- /************************************************************************/
-
- /***************************************************************************
- * This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
- * by Tom Nitzschner (tom@toms-home.com)
- * http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
- *
- * As always, make a backup before messing with anything. All code
- * release by me is considered sample code only. It may be fully
- * functual, but you use it at your own risk, if you break it,
- * you get to fix it too. No waranty is given or implied.
- *
- * Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
- * then on my site. All original header code and copyright messages will be maintained
- * to give credit where credit is due. If you modify this, the only requirement is
- * that you also maintain all original copyright messages. All my work is released
- * under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
- *
- ***************************************************************************/
-
- if (eregi("javascript.php",$_SERVER['PHP_SELF'])) {
- Header("Location: ../index.php");
- die();
- }
-
- ##################################################
- # Include for some common javascripts functions #
- ##################################################
-
- if ($userpage == 1) {
- echo "<SCRIPT type=\"text/javascript\">\n";
- echo "<!--\n";
- echo "function showimage() {\n";
- echo "if (!document.images)\n";
- echo "return\n";
- echo "document.images.avatar.src=\n";
- echo "'$nukeurl/modules/Forums/images/avatars/gallery/' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value\n";
- echo "}\n";
- echo "//-->\n";
- echo "</SCRIPT>\n\n";
- }
-
- global $module, $name;
-
- if ($module == 1 AND file_exists("modules/$name/copyright.php")) {
- echo "<script type=\"text/javascript\">\n";
- echo "<!--\n";
- echo "function openwindow(){\n";
- echo " window.open (\"modules/$name/copyright.php\",\"Copyright\",\"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=400,height=200\");\n";
- echo "}\n";
- echo "//-->\n";
- echo "</SCRIPT>\n\n";
- }
-
- ?>