Location: PHPKode > projects > NewsP > admin/newsbox.inc.php
<?php include("auth.php");

echo"<H2>$lg[nav10]</H2>";
echo"$lg[nb60]<P>";

echo"<p><H3>$lg[nb61]</H3>";
echo"<I>$lg[nb065]</I>";

$serverpfad = getenv('SCRIPT_FILENAME'); 
$zerteil_slash = explode('/',$serverpfad);
$anz_sl = count($zerteil_slash);
$nb="newsbox.php";
$b = 0;
while ($b < ($anz_sl-2))
{
$pfad = "$pfad$zerteil_slash[$b]/";
$b++;
}

$nb_url = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$zerteil_url = explode('/',$nb_url);
$anz_us = count($zerteil_url);
$c = 0;
while ($c < ($anz_us-2))
{
$nburl = "$nburl$zerteil_url[$c]/";
$c++;
}

$scriptpath = "$pfad";
$steuerpath ="$scriptpath";

	
echo"<TABLE cellpadding=\"10\"><TR><TD class=td_l2 width=700>";
echo"<FONT SIZE=-2 COLOR=\"#999999\">&lt;TABLE style=&quot;float:right;&quot; cellpadding=&quot;5&quot;&gt;&lt;TR&gt;&lt;TD style=&quot;text-align: left; vertical-align: top; line-height: 15px; font-size:8pt; border-color: #000000; border-bottom-width: 2px; border-bottom-style: solid; border-top-width: 1px; border-top-style: solid; border-left-width: 1px; border-left-style: solid; border-right-width: 2px; border-right-style: solid; background-color: #ffffff;&quot;&gt;&lt;B&gt;&lt;I&gt;NEWS&lt;/I&gt;&lt;/B&gt;&lt;BR&gt;</FONT><BR>";
echo" &lt;?<BR>";
echo"\$steuerfiles = \"$steuerpath\";<BR>";
echo"\$nburl = \"http://$nburl\";<BR>";
echo"include(\"$steuerpath$nb\");<BR>";
echo"?&gt;<BR>";
echo"<FONT SIZE=-2 COLOR=\"#999999\">&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;</FONT></TD></TR></TABLE><HR>";

echo"<H3>$lg[nb63]</H3>";
echo"$lg[nb62]<P>";
echo"<TABLE cellpadding=\"10\"><TR><TD class=td_l2>&lt;iframe src=\"http://$nburl$nb\" width=\"<B><FONT COLOR=\"#FF0000\">200</FONT></B>\" height=\"<B><FONT COLOR=\"#FF0000\">100</FONT></B>\" name=\"nb_newsbox\"&gt;&lt;/iframe&gt;</TD></TR></TABLE>";
echo"<P>$lg[nb64]<HR>";
?>
<I>Example:</I><BR>
<TABLE cellpadding="5">
<TR>
<TD style="border-color: #000000; border-bottom-width: 2px; border-bottom-style: solid; border-top-width: 1px; border-top-style: solid; border-left-width: 1px; border-left-style: solid; border-right-width: 2px; border-right-style: solid; background-color: #ffffff;">
<B><I>...NEWS...</I></B><BR>
<?
$box='newsbox.php';
$steuerfiles = "$steuerpath";
$nburl = "http://$nburl";
include("$steuerpath$box");
?>
</TD>
</TR>
</TABLE>
<HR><BR>&nbsp;
<?
echo"<H3>$lg[nb066]:</H3>";
echo"$lg[nb067]:<P><A HREF=\"$nburl\" TARGET=\"_blank\"><B>$nburl</B></A><P> $lg[nb068]";
?>
Return current item: NewsP