Hallo
hmmm komisch bei mir funtzt es nicht
/include/templates/gallery.htm
{EXPLODE}
<table width="100%" class="border" border="0" cellspacing="1" cellpadding="3">
  <tr class="Cdark">
  <td colspan="2" align="left"><a href="index.php?galleryupl" target="_self">BilderUpload</a></td>
 </tr><tr class="Chead">   
		<td width="74%" align="center"><b><font color="#4885c2">{_lang_category}</b></td>
    <td width="26%" align="center"><b>{_lang_pictures}</b></td>
  </tr>
	{EXPLODE}
	<tr class="{class}">
	  <td><a href="index.php?gallery-{id}"><font size=3>{name}</font></a><br /><span class="smalfont">» <font color=#000000 size=2><b>{besch}</b></font></span></td>
		<td align="right"><font size=2>
	    <div align="right"><b>{gallery}</b><img src="include/images/links/camera1.gif" hspace="30" vspace="0" align="absmiddle" alt="Bilder"></div></td>
	</tr>
	{EXPLODE}
</table>
<br /><br />
{EXPLODE}
<table width="100%" class="border" border="0" cellspacing="1" cellpadding="3">
  <tr class="Cdark">
		<td colspan="{imgperline}" align="center"><b><font color="#4885c2">{cname}</b></td>
  </tr>
  {EXPLODE}
     <td class="{class}" width="{width}%" valign="top" align="center">
 
<div onmouseover="hiddpos('infodiv{id}')" class="layer" id="infodiv{id}" style="position:absolute; top:50px; left:50px; display:none; width:200px; height:200px;">
<table width="100%" class="border" border="0" cellspacing="1" cellpadding="4">
  <tr>
    <td class="{class}" align="left">
      <strong>{_lang_filename}:</strong> {datei_name}
<br /><strong>{_lang_seen}:</strong> {klicks}
<br /><strong>{_lang_voting}:</strong> {vote_wertung}
<br /><strong>{_lang_comments}:</strong> {anz_koms}
<br /><strong>{_lang_desc}:</strong> {besch}
    </td>
  </tr>
</table>
</div>
       <table class="border" border="0" cellspacing="1" cellpadding="0">
         <tr>
           <td onmouseout="hiddpos('infodiv{id}')" onmouseover="alertpos('infodiv{id}')"><a href="index.php?gallery-show-{cat}-p{bildr}" onClick="return oeffneFenster({bildr},{cat});" target="_blank"><img src="include/images/gallery/img_thumb_{id}.{endung}" border="0" alt="{datei_name}" title=" " /></a></td>           
         </tr>
       </table>
     </td>
   {EXPLODE}
  </tr>
</table>
<center>{MPL}</center>
<script language="JavaScript" type="text/javascript">
<!--
  function oeffneFenster (bildr, cat) {
    var fenster = window.open ('index.php?gallery-show-'+cat+'-p'+bildr,'showBild','scrollbars=yes,height=600,width={breite},left=200,status=yes');
    fenster.focus();
    return (false);
  }
  
  // manage div ...
  document.onmousemove = checkPosition;
  function checkPosition(e) {
    if(document.all) {
      mausX = event.clientX + document.body.scrollLeft;
      mausY = event.clientY + document.body.scrollTop;
    } else {
      mausX = e.pageX;
      mausY = e.pageY;
    }
    
  }
  
  function alertpos(dname) {
  if (document.layers) {
    document.layers[0].left = mausX;
    document.layers[0].top = mausY;
  } else if (document.getElementById) {
    document.getElementById(dname).style.left = mausX + "px";
    document.getElementById(dname).style.top = mausY + "px";
  }
  document.getElementById(dname).style.display = "inline";
  }
  function hiddpos(dname) {
    document.getElementById(dname).style.display = "none";
  }
//-->
</script>
und dann
/include/contents/galleryupl.php
<?php
defined ('main') or die ( 'no direct access' );
require_once('include/includes/func/gallery.php');
        
$title = $allgAr['title'].' :: Gallery :: Upload ';
$hmenu = '<a class="smalfont" href="index.php?gallery" target="_self">Gallery</a><b> » </b>Galleryupload';
$design = new design ( $title , $hmenu );
$design->header();
$gallerycat = dblistee('',"SELECT id,name FROM prefix_gallery_cats ORDER by id");
if (has_right(-4)) { // RECHT hier, wenn eingeloggt
  # Bilder in eine Kategorie hochladen
  $msg = '';  
  if (isset($_POST['hochladen']) AND $_POST['hochladen'] == 'yes' AND isset($_POST['kat'])) {
      if (!empty($_FILES['file']['name'])) {        
        $fende = preg_replace("/.+\.([a-zA-Z]+)$/", "\\1", $_FILES['file']['name']);
        $fende = $endung = strtolower($fende);
        $name = substr($_FILES['file']['name'],0,-1*(strlen($fende)+1));
        $kate = escape($_POST['kat'], 'string');
        $size = @getimagesize ($_FILES['file']['tmp_name']);
        if (!empty($_FILES['file']['name']) AND $size[0] > 10 AND $size[1] > 10 AND ($size[2] == 2 OR $size[2] == 3 OR $size[2] == 1) AND ($fende == 'gif' OR $fende == 'jpg' OR $fende == 'jpeg' OR $fende == 'png')) {
          $besch = escape($_POST['besch'],'string');
          $id = db_result(db_query("SHOW TABLE STATUS FROM `". DBDATE ."` LIKE 'prefix_gallery_imgs'"),0,'Auto_increment');
          $bild_url = 'include/images/gallery/img_'.$id.'.'.$endung;
          if (@move_uploaded_file ($_FILES['file']['tmp_name'], $bild_url)) {
            db_query("INSERT INTO prefix_gallery_imgs (cat,datei_name,endung,besch) VALUES ('".$kate."','".$name."','".$endung."','".$besch."')");
            $msg .= 'Datei '.$name.'.'.$endung.' erfolgreich hochgeladen<br />';
            $bild_thumb = 'include/images/gallery/img_thumb_'.$id.'.'.$endung;
            $bild_norm  = 'include/images/gallery/img_norm_'.$id.'.'.$endung;
            create_thumb ($bild_url, $bild_thumb, $allgAr['gallery_preview_width']);
            create_thumb ($bild_url, $bild_norm , $allgAr['gallery_normal_width']);
          } else {
            $msg .= 'Datei '.$name.'.'.$endung.' konnte nicht hochgeladen werden<br />';
          }
        }
      } else {
            $msg .= 'Datei '.$name.'.'.$endung.' konnte nicht hochgeladen werden, kein unterstütztes Bildformat.<br />';
        }
  }
  ?>
<table border="0" cellpadding="5" cellspacing="1" width="100%">
 <tr>
  <td><?=$msg?>
   <form action="index.php?galleryupl" method="POST" enctype="multipart/form-data">
    <input type="hidden" name="hochladen" value="yes" />
    <table border="0" cellpadding="5" cellspacing="1" class="border" width="100%">
     <tr>
      <td class="Cmite">Kategory: </td>
      <td class="Cmite"><select name="kat"><?=$gallerycat?></select></td>
     </tr><tr>
      <td class="Cmite">Datei: </td>
      <td class="Cmite"><input size="45" type="file" name="file" /></td>
     </tr><tr>
         <td class="Cmite">Beschreibung: </td>
         <td class="Cmite"><input type="text" name="besch" value="" size="45" /></td>
     </tr><tr>
      <td colspan="2" class="Cdark"><button type="submit" value="Absenden" />Absenden</button>  </td>
     </tr>
    </table>
   </form>  
  </td>
 </tr>
</table>
  <?
}
else {echo '<br>Gäste dürfen keine Bilder in die Gallery hochladen!';
  $tpl = new tpl ( 'user/login' );
  $tpl->set_out('WDLINK', 'index.php?galleryupl', 0);
  }
$design->footer();
?>
Wo ist da mein fehler ???
Greetz Marv