Пример #1
0
        $width = $param[0];
        $height = $param[1];
        //echo $width."/".$height."<BR>";
        $hoehe = 40;
        $breite = $hoehe / $height * $width;
        echo "<SPAN style='cursor:pointer;'><td class='normal' style='width:80px;'align='center'><a href='#' target=\"vollbild\" onclick=\"ZeigeBild('{$bild}', '{$width}', '{$height}', '', 'HQ', 'start');return false\"  title='{$ranking} Downloads; zur vergr&ouml;&#223;erten Ansicht'><img src='../../images/vorschau/hq-preview/{$file}' alt='Vorschaubild', width='{$breite}', height='{$hoehe}'></a></TD></span>";
    }
    //Leer-Raum affuellen, wenn weniger als 10 Bilder bisher heruntergeladen wurden:
    for ($x = '0'; $x < 10 - $num4; $x++) {
        echo "<TD class='normal' style='width:80px;'></TD>";
    }
    echo "\n\t\t\t</TR>\n\t\t\t\n\t\t\t<TR class='normal'>\n\t\t\t<TD class='normal' align='center' colspan='10'>&nbsp;\n\t\t\t</TD>\n\t\t\t</TR>\n\t\t\t\n\t\t\t<TR class='normal' style='height:3px;'>\n\t\t\t<TD class='normal' align='center' bgcolor='#FF9900' colspan='10'>\n\t\t\t</TD>\n\t\t\t</TR>\n\t\t\t\n\t\t\t</TBODY>\n\t\t\t</TABLE>\n\t\t\t</CENTER>";
} else {
    //so alnge keine Bilder in der DB sind, wird bei jedem Start geprueft, ob alle notwendigen Applikationen verfuegbar sind! Das kann dauern...
    echo "<div class='content'>\n\t\t<p style='margin-top:120px; margin-left:10px; text-align:center'>";
    checkSoftware();
    echo "</p></div><br style='clear:both;' />";
}
//Fuer Test-Zwecke:
//$text = 'pic2base wurde vom Rechner '.$REMOTE_ADDR.' unter dem User  '.$c_username.' aufgerufen.';
//log-file schreiben:
$fh = fopen($p2b_path . 'pic2base/log/p2b.log', 'a');
fwrite($fh, date('d.m.Y H:i:s') . " " . isset($REMOTE_ADDR) . " " . $_SERVER['PHP_SELF'] . " " . $_SERVER['HTTP_USER_AGENT'] . " " . $c_username . "\n");
fclose($fh);
mysql_close($conn);
echo "</span>\n\t</p>\n\t\n\t</div>\n\t<br style='clear:both;' />\n\n\t<p id='fuss'><A style='margin-right:745px;' HREF='http://www.pic2base.de' target='blank'>www.pic2base.de</A>" . $cr . "</p>\n\n</div>";
?>
</DIV>
</CENTER>
</BODY>
</HTML>
	-->
	</style>
</HEAD>

<BODY>

<CENTER>

<DIV Class="klein">

<?php 
include '../../share/global_config.php';
include $sr . '/bin/share/db_connect1.php';
include $sr . '/bin/share/functions/main_functions.php';
include $sr . '/bin/css/initial_layout_settings.php';
$result0 = mysql_query("SELECT * FROM {$table1} WHERE id = '{$uid}' AND aktiv = '1'");
$username = mysql_result($result0, isset($i0), 'username');
echo "\n\t<div class='page' id='page'>\n\t\n\t\t<div class='head' id='head'>\n\t\t\tpic2base :: Software-Kontrolle <span class='klein'>(User: "******")</span>\n\t\t</div>\n\t\t\n\t\t<div class='navi' id='navi'>\n\t\t\t<div class='menucontainer'>";
include $sr . '/bin/html/admin/adminnavigation.php';
echo "\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class='content' id='content'>\n\t\t\t<p id='check_result' style='margin-top:120px; margin-left:10px; text-align:center'>\n\t\t\t\tDie erforderlichen Software-Komponenten werden gesucht.<br/><br/>Bitte warten Sie einen Moment...\n\t\t\t</p>\n\t\t</div>\n\t\t\n\t\t<div class='foot' id='foot'>\n\t\t\t<A style='position:relative; top:8px; left:10px; font-size:10px; color:#eeeeee;' HREF='http://www.pic2base.de' target='blank'>www.pic2base.de</A>\n\t\t</div>\n\t\n\t</div>";
$sw_check = checkSoftware($sr);
echo "<input type='hidden' id = 'erg' value = \"{$sw_check}\">";
?>
</DIV>
</CENTER>
</BODY>
</HTML>

<script language="Javascript">
document.getElementById("check_result").innerHTML=document.getElementById("erg").value;
</script>
			
	.tdleft	{
			width:120px;
			text-align:left;
			}
			
	.tdright	{
			width:330px;
			text-align:left;
			}
	-->
	</style>
</HEAD>

<BODY LANG="de-DE" scroll = "auto">

<CENTER>

<DIV Class="klein">

<?php 
include '../../share/global_config.php';
include $sr . '/bin/share/db_connect1.php';
include $sr . '/bin/share/functions/main_functions.php';
$result0 = mysql_query("SELECT * FROM {$table1} WHERE id = '{$uid}' AND aktiv = '1'");
$username = mysql_result($result0, isset($i0), 'username');
echo "\n\t<div class='page'>\n\t\n\t\t<p id='kopf'>pic2base :: Software-Kontrolle <span class='klein'>(User: "******")</span></p>\n\t\t\n\t\t<div class='navi' style='clear:right;'>\n\t\t\t<div class='menucontainer'>";
include $sr . '/bin/html/admin/adminnavigation.php';
echo "\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class='content'>\n\t\t<p style='margin-top:120px; margin-left:10px; text-align:center'>";
checkSoftware($sr);
echo "</p>\n\t\t</div>\n\t\t<br style='clear:both;' />\n\t\n\t\t<p id='fuss'><A style='margin-right:745px; color:#eeeeee;' HREF='http://www.pic2base.de' target='blank'>www.pic2base.de</A>" . $cr . " </p>\n\t\n\t</div>\n</DIV>\n</CENTER>\n</BODY>\n</HTML>";