<?php
/**
 * This file is part of
 * pragmaMx - Web Content Management System.
 * Copyright by pragmaMx Developer Team - http://www.pragmamx.org
 *
 * pragmaMx is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * $Revision: 1.8.2.6 $
 * $Author: vittatus $
 * $Date: 2008/10/06 22:35:37 $
 *
 * this file based on:
 * Mitglieder Fotoalbum
 * Copyright ©2008 by Markus Wahl
 * Buy-Version - http://www.weelife.de/
 */
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
$module_name = basename(dirname(__FILE__));
include("modules/$module_name/funktions.php");

global $prefix;

$userdata = mxGetUserData();
$option = $_GET['option'];


		
if($option == "upload") 
{

include("header.php"); 


?> 
<table width="96%" align="center" cellpadding="0" cellspacing="0" style="border-bottom: 1px dotted black">
  <tr> 
    <td width="236" height="50" > <div align="right"><img src="modules/user_pics/media/images/advanced_search.gif"></div></td>
    <td width="144" ><strong><a href="modules.php?name=user_pics&file=selectalbum&fromuser=<?php echo $cookie[1]; ?>">Fotoalben 
      anschauen</a></strong></td>
    <td width="39" ><div align="right"><strong><img src="modules/user_pics/media/images/add_album.gif" width="20" height="16"></strong></div></td>
    <td width="158" ><a href="modules.php?name=user_pics&file=isuser&option=createalbum"><strong>Neues 
      Album erstellen</strong></a></td>
    <td width="38" ><div align="right"><img src="modules/user_pics/media/images/edit_album.gif" width="20" height="16"></div></td>
    <td width="167"><a href="modules.php?name=user_pics&file=isuser&option=alben"><strong>Alben 
      / Bilder Verwalten</strong></a></td>
    <td width="40" ><div align="right"><strong><img src="modules/user_pics/media/images/custom_fields.gif" width="20" height="16"> 
        </strong></div></td>
    <td width="146"><strong><a href="modules.php?name=user_pics&file=isuser&option=upload">Bilder 
      Hochladen</a> </strong></td>
  </tr>
</table>
<br>

<form method="post" action="modules.php?name=user_pics&file=data&option=fileupload" ENCTYPE="multipart/form-data" name="eingabe">
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" >
    <!--DWLayoutTable-->
    <tr> 
      <td> <fieldset style="width: 98%;">
        <legend><strong>Bild Upload</strong></legend>
        <table width="98%" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="18">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td width="10">&nbsp;</td>
          </tr>
          <tr> 
            <td rowspan="6" valign="top" >&nbsp;</td>
            <td width="35%" align="right"><p><em>ACHTUNG 
                NUR (JPG) DATEIN</em> - Bild w&auml;hlen:&nbsp;&nbsp;&nbsp;</p></td>
            <td width="100%" height="40"> 
              <p> 
                <input type="file" size="40" name="uploadfile1">
                <br>
                <?php 
 $adminsettings = sql_fetch_array(sql_query("SELECT * FROM `".$prefix."_user_pics_admin` WHERE `gid` = '1'"));
 $size = $adminsettings['allowsize'] / 1024;
 $size = round($size, 2);
 $sizeausgabe = $size . " KB"; 
 echo "Maximale Dateigröße: ".$sizeausgabe.""; ?>
              </p></td>
            <td rowspan="6">&nbsp;</td>
          </tr>
          <tr> 
            <td width="35%" align="right">Album 
              w&auml;hlen:&nbsp;&nbsp;&nbsp;</td>
            <td height="40"> <select name="select">
                <?php
$result = sql_query("SELECT * FROM `".$prefix."_user_pics_alben` WHERE `from` = '".$userdata['uname']."'");
if (!$result)
{
echo "<center>FEHLER</center>";
}
while($alben = sql_fetch_assoc($result))
{
echo "<option value=\"".$alben['album']."\">".$alben['album']."</option>";
}
?>
                <option value="Bilder" selected>Bilder</option>
              </select> <a href="modules.php?name=user_pics&file=isuser&option=alben">(Alben 
              Verwalten)</a></td>
          </tr>
          <tr> 
            <td width="35%" align="right">Kategorie:&nbsp;&nbsp;&nbsp;<br> 
            </td>
            <td height="120"> <p> 
                <label> 
                <input type="radio" name="cat" value="1">
                Porträt</label>
                <br>
                <label> 
                <input type="radio" name="cat" value="2">
                Persönliches Bild</label>
                <br>
                <label> 
                <input type="radio" name="cat" value="3">
                Erotic Bild</label>
                <br>
                <label> 
                <input type="radio" name="cat" value="4">
                Gruppenbild</label>
                <br>
                <label> 
                <input name="cat" type="radio" value="5" checked>
                Sonstige</label>
              </p></td>
          </tr>
          <tr> 
            <td width="35%" align="right"><p>Kommentar:&nbsp;&nbsp;&nbsp;<br>
                &nbsp;<br>
                &nbsp;</p>
              <p>&nbsp; </p></td>
            <td height="140"> <textarea name="textarea" wrap="virtual" cols="50" rows="5" maxlength="50" OnFocus="CountMax();" OnClick="CountMax();" ONCHANGE="CountMax();" onKeydown="CountMax();" onKeyup="CountMax();"><?php echo $kommentar; ?></textarea> 
              <br>
              Noch 
              <input name="rv_counter2" type="TEXT" size="4" maxlength="3" value="50" readonly>
              Zeichen <br>
              <br>
              <br> 
              <?php
		
	   $resultA1=sql_query("SELECT `gid` FROM `".$prefix."_user_pics` WHERE `user` = '".$userdata['uname']."'");
       $numsfotos=sql_num_rows($resultA1);
	   
	   if ($numsfotos == "0") {
	   
	   echo "<input name=\"hauptfoto\" type=\"radio\" value=\"1\" checked readonly> Foto als Hauptfoto ?";
	   
	   } else {
	   
	   echo "<input name=\"hauptfoto\" type=\"radio\" value=\"1\"> Foto als Hauptfoto ?<br>";
	   echo "<input name=\"hauptfoto\" type=\"radio\" value=\"\"> Foto NICHT als Hauptfoto ?";
	   
	   }
	   ?>
              <br>
              <br> </td>
          </tr>
          <tr> 
            <td width="35%" rowspan="2" align="right">&nbsp;</td>
            <td height="30"> <input type="hidden" name="name2" value="user_pics"> 
              <input type="hidden" name="file2" value="data"> <input type="hidden" name="option2" value="fileupload"> 
              <input type="submit" name="Submit2" value="Hochladen"> </td>
          </tr>
          <tr> 
            <td height="18"><em style="font-size: 11px">Jedes 
              Bild wird nach dem Hochladen von einem Admin &Uuml;berpr&uuml;ft.</em></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td colspan="2" class="box_b">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
        </fieldset></td>
    </tr>
  </table>
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <!--DWLayoutTable-->
  <tr> 
    <td height="40" align="center" valign="center"><?php echo $copyright; echo $version; ?></td>
  </tr>
</table>
  <br>
</form>
<?php	  
include("footer.php"); 
}

if($option == "alben") 
{
include("header.php"); 


	   $resultA1=sql_query("SELECT `gid` FROM `".$prefix."_user_pics` WHERE `user` = '".$userdata['uname']."' AND `foto` != '".$userdata['uname']."-fakecheck'");
       $numsfotos=sql_num_rows($resultA1);
	   
	   $resultA2=sql_query("SELECT `gid` FROM `".$prefix."_user_pics_alben` WHERE `from` = '".$userdata['uname']."' AND `album` != 'Fakecheck'");
       $numsalben=sql_num_rows($resultA2);
	   
	   $adminsettings = sql_fetch_array(sql_query("SELECT * FROM `".$prefix."_user_pics_admin` WHERE `gid` = '1'"));

?>
<table width="96%" align="center" cellpadding="0" cellspacing="0" style="border-bottom: 1px dotted black">
  <tr> 
    <td width="353" height="50" > <div align="right"><img src="modules/user_pics/media/images/advanced_search.gif"></div></td>
    <td width="236" ><strong><a href="modules.php?name=user_pics&file=selectalbum&fromuser=<?php echo $cookie[1]; ?>">Fotoalben 
      anschauen</a></strong></td>
    <td width="51" ><div align="right"><strong><img src="modules/user_pics/media/images/add_album.gif" width="20" height="16"></strong></div></td>
    <td width="270" ><a href="modules.php?name=user_pics&file=isuser&option=createalbum"><strong>Neues 
      Album erstellen</strong></a></td>
    <td width="60" ><div align="right"><img src="modules/user_pics/media/images/edit_album.gif" width="20" height="16"></div></td>
    <td width="291"><a href="modules.php?name=user_pics&file=isuser&option=alben"><strong>Alben 
      / Bilder Verwalten</strong></a></td>
    <td width="64" ><div align="right"><strong><img src="modules/user_pics/media/images/custom_fields.gif" width="20" height="16"> 
        </strong></div></td>
    <td width="240"><strong><a href="modules.php?name=user_pics&file=isuser&option=upload">Bilder 
      Hochladen</a> </strong></td>
  </tr>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <!--DWLayoutTable-->
  <tr> 
    <td height="25" align="center" valign="center"><span style="font-size: 10px">Achtung 
      das Standard Album kann <b>nicht</b> als Slideshow ausgew&auml;hlt werden.</span></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <!--DWLayoutTable-->
  <tr> 
    <td> <fieldset style="width: 98%;">
      <legend><strong>Album Verwalten</strong></legend>
      <table width="95%" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="1%">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="1%">&nbsp;</td>
        </tr>
        <tr> 
          <td valign="top" >&nbsp;</td>
          <td width="98%"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
              <!--DWLayoutTable-->
              <tr> 
                <td width="21%" height="40" align="left" valign="center"><span style="font-size: 20px;">Alben 
                  Verwalten:</span></td>
                <td width="79%" align="right" valign="middle"><strong style="font-size: 14px;"> 
                  <?php 
		  if($numsfotos == $adminsettings['allowpics']) {
		  $makeredpics = "<span style=\"color: #FF0000; font-size: 14px;\">";
		  } else {
		  $makeredpics = "<span style=\"font-size: 14px;\">";
		  }
		  
		  if($numsalben == $adminsettings['allowalben']) {
		  $makeredalben = "<span style=\"color: #FF0000; font-size: 14px;\">";
		  } else {
		  $makeredalben = "<span style=\"font-size: 14px;\">";
		  }
		  
		  echo "Fotos: ".$makeredpics."".$numsfotos." / ".$adminsettings['allowpics']."</span> - Alben: ".$makeredalben."".$numsalben." / ".$adminsettings['allowalben']."</span>"; ?>
                  </strong></td>
              </tr>
            </table>
            <table style="border-bottom: 1px dotted gray; border-top: 1px dotted gray;" width="100%">
              <tr> 
                <td width="100%"> <a style="cursor:pointer;" href="#" onclick="ajax_loadContent('bildercontent','modules.php?name=user_pics&file=bildercontent');return false">Bilder 
                  (Standard) </a><span style="font-size: 9px;">- Dieses Album 
                  kann nicht Gelöscht werden</span> </td>
                <td width="25"> <div align="right"><a style="cursor:pointer;" href="#" onclick="ajax_loadContent('bildercontent','modules.php?name=user_pics&file=bildercontent');return false "><img src="modules/user_pics/media/images/advanced_search.gif"></a></div></td>
                <td width="25">&nbsp;</td>
              </tr>
            </table>
            <?php
	  
  
	  	$result = sql_query("SELECT * FROM `".$prefix."_user_pics_alben` WHERE `from` = '".$userdata['uname']."'");
		if (!$result)
		{
		echo "<center>FEHLER</center>";
		}
		while($alben = sql_fetch_assoc($result))
		{
		if (!empty($alben['kennwort']))
		{
		$passwortbild = "<img src=\"modules/$module_name/media/images/login.gif\">";
		}
		else
		{
		$passwortbild = "";
		}
		
		if ($alben['album'] == "Fakecheck") 
		{ 
		$is_slide = "";
		} 
		else {
		if ($alben['slide'] == "1") {
		$is_slide = "<a href=\"modules.php?name=$module_name&file=data&option=delslide\" style=\"cursor:help\" onmouseover=\"return overlib('<table><tr><td class=overlib>Slideshow Deaktivieren</td></tr></table>', FULLHTML);\" onmouseout=\"return nd();\"><img src=\"modules/$module_name/media/images/watermark.gif\"></a>";
		} else {
		$is_slide = "<a href=\"modules.php?name=$module_name&file=data&option=setslide&albumgid=".$alben['gid']."\" onmouseover=\"return overlib('<table><tr><td class=overlib>Album als Slideshow im Profil anzeigen</td></tr></table>', FULLHTML);\" onmouseout=\"return nd();\"><img src=\"modules/$module_name/media/images/icon_module.gif\"></a>";
		}
		}
		
	    echo "<table style=\"border-bottom: 1px dotted gray;\" width=\"100%\"><tr><td><a style=\"cursor:pointer;\" href=\"#\" onclick=\"ajax_loadContent('bildercontent','modules.php?name=user_pics&file=bildercontent&album=".$alben['album']."');return false\">".$alben['album']."</a>".$passwortbild."</td><td width=\"25\">".$is_slide."</td><td width=\"25\"><a style=\"cursor:pointer;\" href=\"#\" onclick=\"ajax_loadContent('bildercontent','modules.php?name=user_pics&file=bildercontent&album=".$alben['album']."');return false \"><img src=\"modules/user_pics/media/images/advanced_search.gif\"></a></td><td width=\"25\"><a href=\"modules.php?name=user_pics&file=data&option=deletealbum&album=".$alben['album']."&user=".$userdata['uname']."\" onmouseover=\"return overlib('<table><tr><td class=overlib>Album Löschen</td></tr></table>', FULLHTML);\" onmouseout=\"return nd();\" onClick=\"JavaScript: return confirm('Sicher das Du dieses Album mit allen enthaltenen Bildern löschen willst ?');\"><img src=\"modules/user_pics/media/images/delete_album.gif\"></a></td></tr></table>";
	    }
	  
	  ?>
            <br> <div style=\"width: 98%\"> 
              <div class="content" id="bildercontent"> 
                <!-- Empty div for dynamic content -->
                Lade Standard-Album Bilder - Bitte warten...</div>
            </div></td>
          <td >&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
      </fieldset></td>
  </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <!--DWLayoutTable-->
  <tr> 
    <td height="40" align="center" valign="center"><?php echo $copyright; echo $version; ?></td>
  </tr>
</table>
<p>&nbsp;</p>
<script type="text/javascript">
ajax_loadContent('bildercontent','modules.php?name=user_pics&file=bildercontent');
</script>
<?php

include("footer.php"); 
}
if($option == "createalbum") 
{

include("header.php"); 
?>
<table width="96%" align="center" cellpadding="0" cellspacing="0" style="border-bottom: 1px dotted black">
  <tr> 
    <td width="236" height="50" > <div align="right"><img src="modules/user_pics/media/images/advanced_search.gif"></div></td>
    <td width="144" ><strong><a href="modules.php?name=user_pics&file=selectalbum&fromuser=<?php echo $cookie[1]; ?>">Fotoalben 
      anschauen</a></strong></td>
    <td width="39" ><div align="right"><strong><img src="modules/user_pics/media/images/add_album.gif" width="20" height="16"></strong></div></td>
    <td width="158" ><a href="modules.php?name=user_pics&file=isuser&option=createalbum"><strong>Neues 
      Album erstellen</strong></a></td>
    <td width="38" ><div align="right"><img src="modules/user_pics/media/images/edit_album.gif" width="20" height="16"></div></td>
    <td width="167"><a href="modules.php?name=user_pics&file=isuser&option=alben"><strong>Alben 
      / Bilder Verwalten</strong></a></td>
    <td width="40" ><div align="right"><strong><img src="modules/user_pics/media/images/custom_fields.gif" width="20" height="16"> 
        </strong></div></td>
    <td width="146"><strong><a href="modules.php?name=user_pics&file=isuser&option=upload">Bilder 
      Hochladen</a> </strong></td>
  </tr>
</table>
<br>
<form method="post" action="modules.php?name=user_pics&file=data&option=createalbum">
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" >
    <!--DWLayoutTable-->
    <tr> 
      <td> <fieldset style="width: 98%;">
        <legend><strong>Album erstellen</strong></legend>
        <table width="98%" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="1%">&nbsp;</td>
            <td colspan="3">&nbsp;</td>
            <td width="1%">&nbsp;</td>
          </tr>
          <tr> 
            <td rowspan="3" valign="top" >&nbsp;</td>
            <td width="19%" ><div align="right">Album 
                Name:&nbsp;</div></td>
            <td height="35"> <input name="album2" type="text" size="40"> 
            </td>
            <td height="35"><em>&nbsp;Bitte 
              keine Sonderzeichen ! </em></td>
            <td rowspan="3" >&nbsp;</td>
          </tr>
          <tr> 
            <td width="19%" ><div align="right">Kennwort:&nbsp;</div></td>
            <td width="17%" height="35"><input name="kennwort" type="text" size="40"></td>
            <td width="62%">&nbsp;<em>Falls 
              kein Kennwort angegeben wird ist es f&uuml;r alle sichtbar.</em></td>
          </tr>
          <tr> 
            <td width="19%">&nbsp;</td>
            <td height="40" colspan="2"> 
              <input type="hidden" name="name3" value="user_pics"> <input type="hidden" name="file3" value="data"> 
              <input type="hidden" name="option3" value="createalbum"> <input type="submit" name="Submit3" value="Album Speichern"></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td colspan="3">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
        </fieldset></td>
    </tr>
  </table>
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" >
    <!--DWLayoutTable-->
    <tr> 
      <td height="40" align="center" valign="center"><?php echo $copyright; echo $version; ?></td>
    </tr>
  </table>
</form> 
  <?php
  
  
  include("footer.php"); 
}

if($option == "editfoto") 
{

$foto = $_GET['foto'];

$result = sql_query("SELECT * FROM `".$prefix."_user_pics` WHERE `foto` = '".$foto."'");
if (!$result)
{
echo "<center>FEHLER</center>";
}
while($pic = sql_fetch_assoc($result))
{
$kommentar = $pic['kommentar'];
$cat = $pic['cat'];
$album = $pic['album'];
}

include("header.php"); 
?>

<form action="modules.php?name=user_pics&file=data&option=savenewcomment" method="post" name="eingabe">
  <table width="96%" align="center" cellpadding="0" cellspacing="0" style="border-bottom: 1px dotted black">
    <tr> 
      <td width="236" height="50" > <div align="right"><img src="modules/user_pics/media/images/advanced_search.gif"></div></td>
      <td width="144" ><strong><a href="modules.php?name=user_pics&file=selectalbum&fromuser=<?php echo $cookie[1]; ?>">Fotoalben 
        anschauen</a></strong></td>
      <td width="39" ><div align="right"><strong><img src="modules/user_pics/media/images/add_album.gif" width="20" height="16"></strong></div></td>
      <td width="158" ><a href="modules.php?name=user_pics&file=isuser&option=createalbum"><strong>Neues 
        Album erstellen</strong></a></td>
      <td width="38" ><div align="right"><img src="modules/user_pics/media/images/edit_album.gif" width="20" height="16"></div></td>
      <td width="167"><a href="modules.php?name=user_pics&file=isuser&option=alben"><strong>Alben 
        / Bilder Verwalten</strong></a></td>
      <td width="40" ><div align="right"><strong><img src="modules/user_pics/media/images/custom_fields.gif" width="20" height="16"> 
          </strong></div></td>
      <td width="146"><strong><a href="modules.php?name=user_pics&file=isuser&option=upload">Bilder 
        Hochladen</a> </strong></td>
    </tr>
  </table>
  <br>
  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" >
    <!--DWLayoutTable-->
    <tr> 
      <td> <fieldset style="width: 98%;">
        <legend><strong>Bild bearbeiten</strong></legend>
        <table width="98%" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="1%">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td width="1%">&nbsp;</td>
          </tr>
          <tr> 
            <td rowspan="2" valign="top" >&nbsp;</td>
            <td width="31%"> <div align="center"><img src="<?php echo "".$thumb_dir_thumb_gross."/thumb_".$foto.".jpg"; ?>"><br>
                <br>
                Kategorie:<br>
                <b> 
                <?php 
	if($cat == "1") { echo "Potraie"; }
	if($cat == "2") { echo "Persönhliches Bild"; }
	if($cat == "3") { echo "Erotic Bild"; }
	if($cat == "4") { echo "Gruppen Bild"; }
	if($cat == "5") { echo "Sonstige"; }	
	 ?>
                </b> <br>
                <br>
                Album:<br>
                <b> 
                <?php 
	echo $album;	
	 ?>
                </b> </div></td>
            <td width="67%" height="300" > 
              <p> <strong>Beschreibung:</strong><br>
                <textarea name="text" wrap="virtual" cols="50" rows="5" OnFocus="CountMax();" OnClick="CountMax();" ONCHANGE="CountMax();" onKeydown="CountMax();" onKeyup="CountMax();"><?php echo $kommentar; ?></textarea>
                <br>
                Noch 
                <input name="rv_counter" type="TEXT" size="4" maxlength="3" value="255" readonly>
                Zeichen </p>
              <p> <strong>Kategorie:</strong><br>
                <label> 
                <input type="radio" name="cat" value="1">
                Potraie</label>
                <br>
                <label> 
                <input type="radio" name="cat" value="2">
                Persöhnliches Bild</label>
                <br>
                <label> 
                <input type="radio" name="cat" value="3">
                Erotic Bild</label>
                <br>
                <label> 
                <input type="radio" name="cat" value="4">
                Gruppen Bild</label>
                <br>
                <label> 
                <input name="cat" type="radio" value="5">
                Sonstige</label>
              </p>
              <p> <strong>Album:</strong><br>
                <select name="album">
                  <?php
$result = sql_query("SELECT * FROM `".$prefix."_user_pics_alben` WHERE `from` = '".$userdata['uname']."'");
if (!$result)
{
echo "<center>FEHLER</center>";
}
while($alben = sql_fetch_assoc($result))
{
echo "<option value=\"".$alben['album']."\">".$alben['album']."</option>";
}
?>
                  <option value="" selected>Nicht ändern</option>
                  <option value="Bilder">Bilder</option>
                </select>
                <br>
              </p></td>
            <td rowspan="2" >&nbsp;</td>
          </tr>
          <tr> 
            <td width="26%">&nbsp;</td>
            <td height="40"> <input type="hidden" name="name" value="user_pics"> 
              <input type="hidden" name="file" value="data"> <input type="hidden" name="option" value="savenewcomment"> 
              <input type="hidden" name="foto" value="<?php echo $foto; ?>"> <input type="submit" name="Submit" value="Veränderung Speichern"></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
        </fieldset></td>
    </tr>
  </table>
  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" >
    <!--DWLayoutTable-->
    <tr> 
      <td height="40" align="center" valign="center"><?php echo $copyright; echo $version; ?></td>
    </tr>
  </table>
</form>
  <?php
  
  
  include("footer.php"); 
}

?>