Name:		Broken Link Marker V1.1 Final
Datum:		12-02-2009
Author: 	Crack
Homepage:	www.kit-coding.de
Email: 		Info@kit-coding.de

---------------------------------------------------------------------------------------------------
INSTAL HowTo Broken Link Marker V1.1
---------------------------------------------------------------------------------------------------

1. Lade alle Ordner unter Beibehaltung der Ordnerstruktur hoch. Dabei werden keine Dateien berschrieben ;)
2. Fhren Sie die install.php aus. Sie mssen Adminrechte besitzen!!! z.b. -> http://www.deineurl.de/include.php?path=install
3. ndere nun folgende 13 Dateien 

/pkinc/admin/contentarchive.php
/pkinc/admin/contentcompose.php
/pkinc/admintpl/content/history.htm
/pkinc/admintpl/content/history_row.htm
/pkinc/admin/config.php
/pkinc/admintpl/config_notify.htm
/pkinc/func/public.php
/pkinc/lang/de/event.php
/pkinc/public/download.php
/pkinc/publictpl/content/download.htm
/pkinc/public/link.php
/pkinc/publictpl/content/overview_links_linkbox.htm
/pkinc/admin/popup.php


=======================================================================

/pkinc/admin/contentarchive.php

Suche:

elseif($contentinfo['content_option']==4)
		$content_type=$lang['download'];

Fge darunter ein:

#Brokenlink Marker by www.kit-coding.de ANFANG
	if($contentinfo['content_broken']==0 && ($contentinfo['content_option']==4 || $contentinfo['content_option']==3))
		$broken='<img src="/images/accept.png" alt="Kein Defekt gemeldet" title="Kein Defekt gemeldet" />';
	elseif ($contentinfo['content_broken']==1 && ($contentinfo['content_option']==4 || $contentinfo['content_option']==3))
		$broken='<img src="/images/error.png" alt="Wurde als defekt gemeldet!" title="Wurde als defekt gemeldet!" />';
	else
		$broken='-';
	#Brokenlink Marker by www.kit-coding.de ENDE

=======================================================================

/pkinc/admin/contentcompose.php

Suche:

content_option='".$cont_type."',

Fge darunter ein:

content_broken='0',


=======================================================================

/pkinc/admintpl/content/history.htm

Suche:

<td class="heads" width="5%"><font class="headssmall">Optionen</font></td>

Fge darber ein:

<td class="heads" width="1%"><font class="headssmall">Defekt</font></td>

Suche weiter:

<td class="heads" width="47%"><font class="headssmall"><a class="headssmall" href="admin.php?path=contentarchive&entries=$entries&searchtext=$searchtext&searchtype=$searchtype&searchid=$searchid&searchcat=$searchcat&action=search&order=$ordertitle" title="nach Titel sortieren">Titel</a></font></td>

Ersetze mit:

<td class="heads" width="46%"><font class="headssmall"><a class="headssmall" href="admin.php?path=contentarchive&entries=$entries&searchtext=$searchtext&searchtype=$searchtype&searchid=$searchid&searchcat=$searchcat&action=search&order=$ordertitle" title="nach Titel sortieren">Titel</a></font></td>



ndere nun ALLE colspan="8" in colspan="9" in dieser Datei!!!!! (Insgesamt 3 Eintrge *Miau)

=======================================================================

/pkinc/admintpl/content/history_row.htm


Suche:

<td class="$row" align="right"><font class="small">$contentinfo[content_id]</font></td>

Fge darunter ein:

<td class="$row" align="center"><font class="small">$broken</font></td>

Sehr gut machst du das :) am besten holst du dir noch nen Kaffee, dauert noch ne Weile :P

=======================================================================

/pkinc/admin/config.php

Suche:

$narray=explode("\n",$_POST['notify_by_submit_im']); unset($notify_by_submit_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_submit_im.=$p."\n";}}}

Fge darunter ein:

		#Brokenlink Marker by www.kit-coding.de ANFANG
		$narray=explode("\n",$_POST['notify_by_broken_im']); unset($notify_by_broken_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_broken_im.=$p."\n";}}}
		$narray=explode("\n",$_POST['notify_by_broken_mail']); unset($notify_by_broken_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_broken_mail.=$p."\n";}}}
		#Brokenlink Marker by www.kit-coding.de ENDE

Suche weiter:

			notify_forum_i='".$notify_by_forum_im."',

Fge darunter ein:

			notify_broken_m='".$notify_by_broken_mail."',
			notify_broken_i='".$notify_by_broken_im."',

Suche weiter (ZZZZZZ):

if($config['notify_submit_i']!='')
				{
				$info=explode("\n",$config['notify_submit_i']);

				if(is_array($info))
					{
					foreach($info as $id)
						{
						$id=trim($id);
						
						if($id!='')
							{
							$notify_by_submit_info.=pkEntities($userinfo_cache[$id]['user_nick']).', ';
							}
						}
					}
				unset($info);
				}

Fge darunter ein:

			#Brokenlink Marker by www.kit-coding.de ANFANG
			if($config['notify_broken_i']!='')
				{
				$info=explode("\n",$config['notify_broken_i']);

				if(is_array($info))
					{
					foreach($info as $id)
						{
						$id=trim($id);
						
						if($id!='')
							{
							$notify_by_broken_info.=pkEntities($userinfo_cache[$id]['user_nick']).', ';
							}
						}
					}
				unset($info);
				}
			#Brokenlink Marker by www.kit-coding.de ENDE

Suche weiter:

		$notify_by_submit_im=$config['notify_submit_i'];

Fge darunter ein:

		#Brokenlink Marker by www.kit-coding.de ANFANG
		$notify_by_broken_mail=$config['notify_broken_m'];
		$notify_by_broken_im=$config['notify_broken_i'];
		#Brokenlink Marker by www.kit-coding.de ENDE

=======================================================================

/pkinc/admintpl/config_notify.htm

Suche:

<tr>
   <td class="left" colspan="2" align="right"><font class="small">*Bei Benachrichtungen per PN wird zus&auml;tzlich keine E-Mail versendet,
	auch wenn die Benachrichtigungs-Option im Benutzerprofil aktiviert ist.<br />
	Ihre Benutzer-ID lautet: <b>$userid</b></font></td>
 </tr>

Fge darunter ein:

<!-- Brokenlink Marker by www.kit-coding.de ANFANG -->
  <tr>
  <td class="highlight" colspan="2">bei Defekten Links</td>
 </tr>
 <tr>
  <td class="left" valign="top">per E-Mail<br />
	<font class="small">Tragen Sie hier die E-Mail-Adressen ein, an die eine Information bei neuen Einsendungen f&uuml;r
	den Content-Bereich gesendet werden soll.<br />Mehrere Angaben m&ouml;glich, je Zeile nur eine Angabe.</font></td>
  <td class="right">
	<textarea name="notify_by_broken_mail" cols="30" rows="5" class="w90">$notify_by_broken_mail</textarea></td>
 </tr>
 <tr>
  <td class="left" valign="top">per PN*<br />
	<font class="small">Tragen Sie hier die ID der Benutzer ein, die eine Kurznachricht bei neuen Einsendungen f&uuml;r den 
	Content-Bereich erhalten sollen.<br />Mehere Angaben m&ouml;glich, je Zeile nur eine Angabe.<br />
	<b>Gew&auml;hlte Benutzer:</b> $notify_by_broken_info</font></td>
  <td class="right">
	<textarea name="notify_by_broken_im" cols="30" rows="5" class="w90">$notify_by_broken_im</textarea><br />
	<a href="javascript:;" onClick="finduserID(200,300,'broken')">Benutzer suchen</a></td>
 </tr>
 <!-- Brokenlink Marker by www.kit-coding.de ENDE -->

=======================================================================

/pkinc/func/public.php

Du darfst auch ruhig eine rauchen gehen, dauert noch 3 Stunden :P

Suche:

case 'guestbook' :
			$url=pkLink('guestbook');
			
			pkDocmeta(pkGetSpecialHtml('__docmeta_refresh__',pkGetConfig('time_refresh'),$url));
			
			$msg=pkGetSpecialLang('event_'.$key,$url);
			break;	

Fge darunter ein:

		#Brokenlink Marker by www.kit-coding.de ANFANG
		case 'broken_marker' :
			$url=$ENV->_get('moveto');
			$url=$url ? pkLinkUnEntities(urldecode($url)) : '';
			$link=pkLink('','',$url);
			
			pkDocmeta(pkGetSpecialHtml('__docmeta_refresh__',pkGetConfig('time_refresh'),$link));
			
			$msg=pkGetSpecialLang('event_'.$key,$link);
			break;
		#Brokenlink Marker by www.kit-coding.de ENDE

=======================================================================

/pkinc/lang/de/event.php

Suche:

#47
'eventtitle_download_not_found'=>'Download nicht gefunden',
'event_download_not_found'=>'Leider konnte der von Ihnen gew&uuml;nschte Download konnte nicht gefunden werden.<br /><br /><a href="include.php?path=download&contentid=$contentid&download=go">Klicken Sie bitte hier um es erneut zu versuchen</a>.',

Fge darunter ein:

#Brokenlink Marker by www.kit-coding.de ANFANG
'eventtitle_broken_marker'=>'Defekten Link melden',
'event_broken_marker'=>'Vielen Dank das Sie uns einen defekten Link gemeldet haben. In K&uuml;rze wird sich ein Administrator den Link ansehen.<br /><br /><span class="small">Sie werden weitergeleitet. Wenn Sie nicht warten m&ouml;chten, <a href="%s">klicken Sie bitte hier</a></span>',
#Brokenlink Marker by www.kit-coding.de ENDE

=======================================================================

/pkinc/public/download.php

Suche:

if($file_size=='' || $file_size=="0")
	$file_size='&nbsp; - &nbsp;'; 

Fge darunter ein:

#Brokenlink Marker by www.kit-coding.de ANFANG
include(pkDIRPUBLIC.'brokenlink'.pkEXT);
#Brokenlink Marker by www.kit-coding.de ENDE

=======================================================================

/pkinc/publictpl/content/download.htm

Suche:

<tr>
		  <td nowrap colspan="2"><a class="small" title="Download empfehlen" href="include.php?path=contact&mode=suggest&suggest_path=$suggest_url"><b>Download empfehlen</b></a></td>
		 </tr>

Fge darunter ein:

<!-- Brokenlink Marker by www.kit-coding.de ANFANG -->
<tr>
                 <form method="post" action="include.php?path=download&contentid=$contentinfo[content_id]">
                 <td colspan="2" align="left"><input class="button" type="submit" name="broken" value="Link defekt ?"></td>
                 </form>  
                 </tr>
 <!-- Brokenlink Marker by www.kit-coding.de ENDE -->

=======================================================================

/pkinc/public/link.php

Suche:

$contentid=(isset($_REQUEST['contentid']) && intval($_REQUEST['contentid'])>0) ? intval($_REQUEST['contentid']) : 0;

Fge darunter ein:

#Brokenlink Marker by www.kit-coding.de ANFANG
include(pkDIRPUBLIC.'brokenlink'.pkEXT);
#Brokenlink Marker by www.kit-coding.de ENDE

=======================================================================

/pkinc/publictpl/content/overview_links_linkbox.htm

Suche:

$content_comment

Fge darber ein:

<tr>
          <form method="post" action="include.php?path=link&contentid=$contentinfo[content_id]">
          <td colspan="2" align="left"><input class="button" type="submit" name="broken" value="Link defekt ?"></td>
          </form>  
         </tr>


=======================================================================

/pkinc/admin/popup.php

Suche:

elseif($option=='comment')
		$option_element='notify_by_comment_im';

Fge darunter ein:

#Brokenlink Marker by www.kit-coding.de ANFANG
	elseif($option=='broken')
		$option_element='notify_by_broken_im';
#Brokenlink Marker by www.kit-coding.de ENDE

=======================================================================

Das war es auch schon.

Juhu


Support:
============================

Support & Fragen: 

Support gebe ich gerne im FORUM unter www.kit-coding.de 
PNS oder ICQ werden gnadenlos ignoriert!!!
