PHP-Quellcode
- ## EasyMod 0.0.7 compliant
- ##############################################################
- ##
- ## MOD Title: Impressum
- ## MOD Author: AWSW <> http://www.awsw.de
- ##
- ## MOD Description: Fügt ein Impressum zu Deinem phpBB2 hinzu. Adds a Impressum to your phpBB2.
- ## MOD Version: 1.10
- ##
- ## Installation Level: easy
- ## Installation Time: 3 Minutes
- ##
- ## Generator: phpBB2 Mod Maker 0.1.67
- ##############################################################
- ## This MOD is released under the GPL License. Intellectual Property is retained by the MOD Author(s) listed above. http://www.gnu.org
- ##############################################################
- ## For Security Purposes, Please Check: http://www.awsw.de/ for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. You´ll find support to this MOD at http://www.phpbb.de/
- ##############################################################
- ## Before Adding This MOD To Your Forum, You Should Back Up Your Complete Database And All Files Related To This MOD !
- ##############################################################
- ##
- ## Files to edit:
- ## <phpBB2-Root>/viewonline.php
- ## <phpBB2-Root>/admin/index.php
- ## <phpBB2-Root>/includes/constants.php
- ## <phpBB2-Root>/includes/page_header.php
- ## <phpBB2-Root>/templates/subSilver/overall_footer.tpl
- ## <phpBB2-Root>/language/lang_english/lang_impressum.php
- ## <phpBB2-Root>/language/lang_german/lang_impressum.php
- ## <phpBB2-Root>/language/lang_english/lang_main.php
- ## <phpBB2-Root>/language/lang_german/lang_main.php
- ##
- ##############################################################
- #
- # Installation:
- #
- ##############################################################
- #
- #-----[ COPY TO FOLDER ]------------------------------------------
- #
- # german: Dateien in vorgesehene Verzeichnisse kopieren
- #
- COPY phpBB2-Root/impressum.php TO impressum.php
- COPY phpBB2-Root/templates/subSilver/impressum_body.tpl TO templates/subSilver/impressum_body.tpl
- COPY phpBB2-Root/language/lang_english/lang_impressum.php TO language/lang_english/lang_impressum.php
- COPY phpBB2-Root/language/lang_german/lang_impressum.php TO language/lang_german/lang_impressum.php
- ##############################################################
- #
- #-----[ OPEN ]------------------------------------------
- #
- # german: Öffne
- #
- language/lang_english/lang_main.php
- #
- #-----[ FIND ]------------------------------------------
- #
- # german: Finde
- #
- ?>
- #
- #-----[ BEFORE, ADD ]------------------------------------------
- #
- # german: Davor einfügen
- #
- // Impressum MOD:
- $lang['Viewing_Impressum'] = "Viewing the Impressum";
- $lang['ImpressumMOD1'] = "Impressum";
- ##############################################################
- #
- #-----[ OPEN ]------------------------------------------
- #
- # german: Öffne
- #
- language/lang_german/lang_main.php
- #
- #-----[ FIND ]------------------------------------------
- #
- # german: Finde
- #
- ?>
- #
- #-----[ BEFORE, ADD ]------------------------------------------
- #
- # german: Davor einfügen
- #
- // Impressum MOD:
- $lang['Viewing_Impressum'] = "Betrachtet das Impressum";
- $lang['ImpressumMOD1'] = "Impressum";
- ##############################################################
- #
- #-----[ OPEN ]------------------------------------------
- #
- # german: Öffne
- #
- includes/constants.php
- #
- #-----[ FIND ]------------------------------------------
- #
- # german: Finde
- #
- define('PAGE_GROUPCP', -11);
- #
- #-----[ AFTER, ADD ]------------------------------------------
- # (! In case that -12 is used, chose an other value !)
- # german: Danach einfügen
- # (! Falls -12 schon belegt ist, wähle den nächst höheren Wert !)
- #
- define('PAGE_IMPRESSUM', -12);
- ##############################################################
- #
- #-----[ OPEN ]------------------------------------------
- #
- # german: Öffne
- #
- includes/page_header.php
- #
- #-----[ FIND ]------------------------------------------
- #
- # german: Finde
- #
- 'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- # german: Danach einfügen
- #
- 'L_ImpressumMOD1' => $lang['ImpressumMOD1'],
- #
- #-----[ FIND ]------------------------------------------
- #
- # german: Finde
- #
- 'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- # german: Danach einfügen
- #
- 'U_ImpressumMOD1' => append_sid('impressum.'.$phpEx),
- ##############################################################
- #
- #-----[ OPEN ]------------------------------------------
- #
- # german: Öffne
- #
- viewonline.php
- #
- #-----[ FIND ]------------------------------------------
- #
- # german: Finde
- #
- case PAGE_FAQ:
- $location = $lang['Viewing_FAQ'];
- $location_url = "faq.$phpEx";
- break;
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- # german: Danach einfügen
- #
- case PAGE_IMPRESSUM:
- $location = $lang['Viewing_Impressum'];
- $location_url = "impressum.$phpEx";
- break;
- ##############################################################
- #
- #-----[ OPEN ]------------------------------------------
- #
- # german: Öffne
- #
- admin/index.php
- #
- #-----[ FIND ]------------------------------------------
- #
- # german: Finde (1.)
- #
- case PAGE_FAQ:
- $location = $lang['Viewing_FAQ'];
- $location_url = "index.$phpEx?pane=right";
- break;
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- # german: Danach einfügen
- #
- case PAGE_IMPRESSUM:
- $location = $lang['Viewing_Impressum'];
- $location_url = "impressum.$phpEx?pane=right";
- break;
- #
- #-----[ FIND ]------------------------------------------
- #
- # german: Finde (2.)
- #
- case PAGE_FAQ:
- $location = $lang['Viewing_FAQ'];
- $location_url = "index.$phpEx?pane=right";
- break;
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- # german: Danach einfügen
- #
- case PAGE_IMPRESSUM:
- $location = $lang['Viewing_Impressum'];
- $location_url = "impressum.$phpEx?pane=right";
- break;
- ##############################################################
- #
- #-----[ OPEN ]------------------------------------------
- #
- # german: Öffne
- #
- templates/subSilver/overall_footer.tpl
- #
- #-----[ FIND ]------------------------------------------
- #
- # german: Finde
- #
- <div align="center"><span class="copyright"><br />{ADMIN_LINK}<br />
- #
- #-----[ AFTER, ADD ]------------------------------------------
- #
- # german: Danach einfügen
- #
- <a href="{U_ImpressumMOD1}" class="gensmall">{L_ImpressumMOD1}</a> <br>
- ##############################################################
- #
- #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
- #
- # german: Speichere/Schließe alle Dateien
- #
- # HTH AWSW
- # http://www.awsw.de
- #
- # EoM
Ging wunderbar.
nur jetzt das Prob:
Wenn ich dann unten auf den Link ''Impressum'' Klicke, komme ich immer wieder auf diese Site, wo ich schon bin.
Also z.B. bin ich im Forum (index.php) komm ich auch wieder ins Forum, oder bin ich im Portal (portal.php) komm ich wider ins Portal usw.
egal wo ich bin.
Weiss da jemand, wo der Hacken is ?
gruss