$this->bbcode_second_pass_code('', ' function page_footer(){ $forumlink=getsetting("forum","http://lotgd.net/forum"); //$forumlink="http://www.anpera.net/forum/index.php?c=12#"; global $output,$nestedtags,$header,$nav,$session,$REMOTE_ADDR,$REQUEST_URI,$pagestarttime,$dbtimethishit,$dbqueriesthishit,$quickkeys,$template,$logd_version;
while (list($key,$val)=each($nestedtags)){ $output.="</$key>";
unset($nestedtags[$key]); } $script.="<script language=\"JavaScript\" type=\"text/javascript\"> <!-- document.onkeypress=keyevent; function keyevent(e){ var c; var target; var altKey; var ctrlKey; if (window.event != null) { c=String.fromCharCode(window.event.keyCode).toUpperCase(); altKey=window.event.altKey; ctrlKey=window.event.ctrlKey; }else{ c=String.fromCharCode(e.charCode).toUpperCase(); altKey=e.altKey; ctrlKey=e.ctrlKey; } if (window.event != null) target=window.event.srcElement; else target=e.originalTarget; if (target.nodeName.toUpperCase()=='INPUT' || target.nodeName.toUpperCase()=='TEXTAREA' || altKey || ctrlKey){ }else{"; reset($quickkeys); while (list($key,$val)=each($quickkeys)){ $script.="\n if (c == '".strtoupper($key)."') { $val; return false; }"; } $script.=" } } //--> </script>";
// chat preview mod by Chaosmaker Modified for Ellis Colortags by Devilzimti)- start
$appoencode = Load_Tags(); $cases= " "; while(list($key,$val) = each($appoencode)) { if($val['allowed'] == true) { $cases .= " case \"".$val['code']."\":\n if (openspan) output= output+\"</span>\"; else openspan = true;\n output= output+\"<span style='color: #".$val['color'].";'>\";\n break;\n "; }else{ $cases .= "\n//".$val['code']." darf hier nicht benutzt werden!\n "; } } $script .= <<<JS <script type="text/javascript"> <!-- function appoencode(data) { var Fundstelle = -1; var tag = ''; var append = ''; var output = '<br />Vorschau: '; var openspan = false; while ((Fundstelle = data.search(/`/)) != -1) { tag = data.substr(Fundstelle+1, 1); append = data.substr(0,Fundstelle); append = append.replace(/</,'<'); append = append.replace(/>/,'>'); output = output+ append; if (data.length >= Fundstelle+2) data = data.substring(Fundstelle+2,data.length); else data = ''; switch (tag) { case "0": if (openspan) output= output+"</span>"; openspan = false; break; {$cases} default: output= output+"`"+tag; } } output += data; if (openspan) output += '</span>'; return output; } //--> </script> JS;
// chat preview mod by Chaosmaker (Modified for Ellis Colortags by Devilzimti) - end $footer = $template['footer']; if (strpos($footer,"{paypal}") || strpos($header,"{paypal}")){ $palreplace="{paypal}"; }else{ $palreplace="{stats}"; }
//NOTICE //NOTICE Although I will not deny you the ability to remove the below paypal link, I do request, as the author of this software //NOTICE that you leave it in. //NOTICE $paypalstr = '<table align="center" style="margin:0"><tr><td>'; $paypalstr .= '<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" style="margin:0"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="nahdude81@hotmail.com"> <input type="hidden" name="item_name" value="Legend of the Green Dragon Author Donation from '.preg_replace("/[`]./","",$session['user']['name']).'"> <input type="hidden" name="item_number" value="'.htmlentities($session['user']['login']).":".$_SERVER['HTTP_HOST']."/".$_SERVER['REQUEST_URI'].'"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="cn" value="Your Character Name"> <input type="hidden" name="cs" value="1"> <input type="hidden" name="currency_code" value="EUR"> <input type="hidden" name="tax" value="0"> <input type="image" src="images/paypal1.gif" border="0" name="submit" alt="Donate!"> </form>'; $paysite = getsetting("paypalemail", ""); if ($paysite != "") { $paypalstr .= '</td><td>'; $paypalstr .= '<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" style="margin:0"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="'.$paysite.'"> <input type="hidden" name="item_name" value="Legend of the Green Dragon Site Donation from '.preg_replace("/[`]./","",$session['user']['name']).'"> <input type="hidden" name="item_number" value="'.htmlentities($session['user']['login']).":".$_SERVER['HTTP_HOST']."/".$_SERVER['REQUEST_URI'].'"> <input type="hidden" name="no_shipping" value="1"> <input type="hidden" name="cn" value="Your Character Name"> <input type="hidden" name="cs" value="1"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="tax" value="0"> <input type="image" src="images/paypal2.gif" border="0" name="submit" alt="Donate!"> </form>'; } $paypalstr .= '</td></tr></table>'; // $paypalstr .= '</td></tr><tr><td span="2" align="right" valign="top"><a href="http://www.anpera.net" target="_blank"><img src="images/anpnet-klein.gif" alt="Sponsor" border="0"></a></td></tr></table>'; $footer=str_replace($palreplace,(strpos($palreplace,"paypal")?"":"{stats}").$paypalstr,$footer); $header=str_replace($palreplace,(strpos($palreplace,"paypal")?"":"{stats}").$paypalstr,$header); //NOTICE //NOTICE Although I will not deny you the ability to remove the above paypal link, I do request, as the author of this software //NOTICE that you leave it in. //NOTICE $header=str_replace("{nav}",$nav,$header); $footer=str_replace("{nav}",$nav,$footer);
$header = str_replace("{motd}", motdlink(), $header); $footer = str_replace("{motd}", motdlink(), $footer); $header = str_replace("{forum}", "<a href='$forumlink' target='_blank' class='motd'>Forum</a>", $header); $footer = str_replace("{forum}", "<a href='$forumlink' target='_blank' class='motd'>Forum</a>", $footer);
if ($session[user][acctid]>0) { $header=str_replace("{mail}",maillink(),$header); $footer=str_replace("{mail}",maillink(),$footer); $header=str_replace("{chat}","<a href='chat.php' target='_blank' class='motd' onClick=\"".popup("chat.php").";return false;\">Chat</a>",$header); $footer=str_replace("{chat}","<a href='chat.php' target='_blank' class='motd' onClick=\"".popup("chat.php").";return false;\">Chat</a>",$footer); $header=str_replace("{kurier}","<a href='kurier.php' target='_blank' class='motd' onClick=\"".popup("kurier.php").";return false;\">Kerhoat Kurier</a>",$header); $footer=str_replace("{kurier}","<a href='kurier.php' target='_blank' class='motd' onClick=\"".popup("kurier.php").";return false;\">Kerhoat Kurier</a>",$footer);
}else{ $header=str_replace("{mail}","",$header); $footer=str_replace("{mail}","",$footer); $header=str_replace("{chat}","",$header); $footer=str_replace("{chat}","",$footer); $header=str_replace("{kurier}","",$header); $footer=str_replace("{kurier}","",$footer); $header=str_replace("{fragen}","",$header); $footer=str_replace("{fragen}","",$footer);
} $header=str_replace("{faq}","<a href='petition.php?op=faq' onClick=\"".popup("petition.php?op=faq").";return false;\" target='_blank' align='right' class='motd'>FAQ</a>",$header); $footer=str_replace("{faq}","<a href='petition.php?op=faq' onClick=\"".popup("petition.php?op=faq").";return false;\" target='_blank' align='right' class='motd'>FAQ</a>",$footer); $header=str_replace("{petition}","<a href='petition.php' onClick=\"".popup("petition.php").";return false;\" target='_blank' align='right' class='motd'>Hilfe anfordern</a>",$header); $footer=str_replace("{petition}","<a href='petition.php' onClick=\"".popup("petition.php").";return false;\" target='_blank' align='right' class='motd'>Hilfe anfordern</a>",$footer); $header=str_replace("{petition}","<a href='petition.php' onClick=\"".popup("petition.php").";return false;\" target='_blank' align='right' class='motd'>Fragen? Admins Kontaktieren</a>",$header); $footer=str_replace("{petition}","<a href='petition.php' onClick=\"".popup("petition.php").";return false;\" target='_blank' align='right' class='motd'>Fragen? Admins kontaktieren</a>",$footer);
if ($session['user']['superuser']>=1){ // $sql = "SELECT count(petitionid) AS c,status FROM petitions GROUP BY status"; $sql = "SELECT max(lastact) AS lastact, count(petitionid) AS c,status FROM petitions GROUP BY status"; $result = db_query($sql); $petitions=array(0=>0,1=>0,2=>0); $petitions['unread'] = false; for ($i=0;$i<db_num_rows($result);$i++){ $row = db_fetch_assoc($result); $petitions[(int)$row['status']] = $row['c']; if ($row['lastact']>$session['lastlogoff']) $petitions['unread'] = true; } db_free_result($result); // Neue Petitionen; schauen, ob Sternchen nötig ist $petitions['star'] = ''; if ($petitions['unread']) { $sql = 'SELECT petitionid, lastact FROM petitions WHERE lastact > "'.$session['lastlogoff'].'"'; $result = db_query($sql); while ($row = db_fetch_assoc($result)) { if (!$session['petitions'][$row['petitionid']]) { $petitions['star'] = '<span class="colDkRed">*</span>'; } } db_free_result($result); } $footer = "<table border='0' cellpadding='5' cellspacing='0' align='right'><tr><td><b><a href='viewpetition.php'>Anfragen</a>$petitions[star]:</b> $petitions[0] Ungelesen, $petitions[1] Gelesen, $petitions[2] Geschlossen.</td></tr></table>".$footer; // $footer = "<table border='0' cellpadding='5' cellspacing='0' align='right'><tr><td><b>Anfragen:</b> $petitions[0] Ungelesen, $petitions[1] Gelesen, $petitions[2] Geschlossen.</td></tr></table>".$footer; addnav('','viewpetition.php'); } $footer=str_replace("{stats}",charstats(),$footer); $header=str_replace("{stats}",charstats(),$header); if($session[user][loggedin]){ switch (e_rand(1,2)){ case 1: $footer=str_replace("{vote}","<a href='http://www.galaxy-news.de/?page=charts&op=vote&game_id=1704' target='_blank'><img src='images/vote.gif' border=0 alt='Die besten Browsergames in den Galaxy-News MMOG-Charts!'></a>",$footer); $header=str_replace("{vote}","<a href='http://www.galaxy-news.de/?page=charts&op=vote&game_id=1704' target='_blank'><img src='images/vote.gif' border=0 alt='Die besten Browsergames in den Galaxy-News MMOG-Charts!'></a>",$header); break; case 2: $footer=str_replace("{vote}","<a href=\"http://www.browsergame-index.com/vote.php?id=Kerhoat\" target=\"_blank\" ><img border=\"0\" src=\"http://www.browsergame-index.com/designe/vote.gif\" width=\"\88\" height=\"30\"></a>",$footer); $header=str_replace("{vote}","<a href=\"http://www.browsergame-index.com/vote.php?id=Kerhoat\" target=\"_blank\"><img border=\"0\" src=\"http://www.browsergame-index.com/designe/vote.gif\" width=\"\88\" height=\"30\"></a>",$header); break; } } else{ $footer=str_replace("{vote}","<a href='http://www.galaxy-news.de/?page=charts&op=vote&game_id=1704' target='_blank'><img src='images/vote.gif' border=0 alt='Die besten Browsergames in den Galaxy-News MMOG-Charts!'></a><br><a href=\"http://www.mmog-charts.de/in.php?id=40\" target=\"_blank\"><img src=\"http://www.mmog-charts.de/images/button.png\" border=\"0\" alt=\"Vote for us @ MMOG-Charts.de\" style=\"margin:2px;\"></a>",$footer); $header=str_replace("{vote}","<a href='http://www.galaxy-news.de/?page=charts&op=vote&game_id=1704' target='_blank'><img src='images/vote.gif' border=0 alt='Die besten Browsergames in den Galaxy-News MMOG-Charts!'></a><br><a href=\"http://www.mmog-charts.de/in.php?id=40\" target=\"_blank\"><img src=\"http://www.mmog-charts.de/images/button.png\" border=\"0\" alt=\"Vote for us @ MMOG-Charts.de\" style=\"margin:2px;\"></a>",$header); } $header=str_replace("{script}",$script,$header); if ($session[user][loggedin]){ $footer=str_replace("{source}","<a href='source.php?url=".preg_replace("/[?].*/","",($_SERVER['REQUEST_URI']))."' target='_blank'>Source</a>",$footer); $header=str_replace("{source}","<a href='source.php?url=".preg_replace("/[?].*/","",($_SERVER['REQUEST_URI']))."' target='_blank'>Source</a>",$header); }else{ $footer=str_replace("{source}","<a href='source.php' target='_blank'>Source</a>",$footer); $header=str_replace("{source}","<a href='source.php' target='_blank'>Source</a>",$header); } $footer=str_replace("{copyright}","Copyright 2002-2006, Game: Eric Stevens",$footer); $footer=str_replace("{version}", "Version: $logd_version", $footer); //Hoster-Addon von Tronan <thibaud.roth@betriebsdirektor.de> www.lotgd.rhserver.de $footer=str_replace("{hosting}", "Hosting: <a href=\"".getsetting("hosting_url","")."\" target=\"_blank\">".getsetting("hosting_name","")."</a>", $footer); //Hoster-Addon Ende $footer=str_replace("{impressum}", "<a href='impressum.php' onClick=\"".popup("impressum.php").";return false;\" target='_blank'>Impressum</a>", $footer); $gentime = getmicrotime()-$pagestarttime; $session[user][gentime]+=$gentime; $session[user][gentimecount]++; $dbtimethishit=round($dbtimethishit,2); // $footer=str_replace("{pagegen}","Seitengenerierung: ".round($gentime,2)."s, Schnitt: ".round($session[user][gentime]/$session[user][gentimecount],2)."s - ".round($session[user][gentime],2)."/".round($session[user][gentimecount],2)."".($session[user][superuser]>1?"; DB: $dbqueriesthishit in $dbtimethishit s":"")."",$footer); $footer=str_replace("{pagegen}","Seitengenerierung: ".round($gentime,2)."s, Schnitt: ".round($session[user][gentime]/$session[user][gentimecount],2)."s".($session[user][superuser]>1?"; DB: $dbqueriesthishit in ".$dbtimethishit."s":"")."",$footer); if (strpos($_SERVER['HTTP_HOST'],"lotgd.net")!==false){ $footer=str_replace( "</html>", '<script language="JavaScript" type="text/JavaScript" src="http://www.reinvigorate.net/archive/app.bin/jsinclude.php?5193"></script></html>', $footer ); }
$output=$header.$output.$footer; $session['user']['gensize']+=strlen($output); $session[output]=$output; saveuser();
session_write_close(); //`mpg123 -g 100 -q hit.mp3 2>&1 > /dev/null`; //echo compress_out($output); echo $output; exit(); }')
Das: //echo compress_out($output); echo $output;
war vor einigen Tagen noch andersrum auskommentiert. Dann habe ich mal die "Weiße Seite"-Topics hier durchsucht. Hatte leider nicht den gewünschten Effekt. exit();
|