<?php

/***************************************************************************

 showgallery.php
 ----------------
 copyright : (C) 2002-2003 The ezContents Development Team

 ***************************************************************************/

/***************************************************************************
 The ezContents Development Team offers no warranties on this script.
 The owner/licensee of the script is solely responsible for any problems
 caused by installation of the script or use of the script.

 All copyright notices regarding ezContents must remain intact on the
 scripts and in the HTML for the scripts.

 For more info on ezContents,
 visit http://www.ezcontents.org/

/***************************************************************************

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the License which can be found within the
 *   zipped package.
 *
 ***************************************************************************/

global $HTTP_SERVER_VARS;
if ( (substr($HTTP_SERVER_VARS["PHP_SELF"],-11) == 'control.php') ||
	 (substr($HTTP_SERVER_VARS["PHP_SELF"],-10) == 'module.php') ||
	 (substr($HTTP_SERVER_VARS["PHP_SELF"],-16) == 'showcontents.php') ) {
	 require_once('./modules/moduleSec.php');
} else {
	require_once('../moduleSec.php');
}

$GLOBALS["ModuleName"] = 'gallery';


if (!isset($GLOBALS["gsLanguage"])) { Header("Location: ".$GLOBALS["rootdp"]."module.php?link=".$GLOBALS["modules_home"].$GLOBALS["ModuleRef"]."/showgallery.php"); }
include_once ($GLOBALS["language_home"].$GLOBALS["gsLanguage"]."/lang_admin.php");
include_once ($GLOBALS["language_home"].$GLOBALS["gsLanguage"]."/lang_main.php");
include_languagefile ($GLOBALS["modules_home"].$GLOBALS["ModuleRef"]."/",$GLOBALS["gsLanguage"],"lang_gallery.php");


SubModuleHeader('',$GLOBALS["tSubmitGallery"]);


if ($GLOBALS["gsSiteWidth"] != '') { $screenwidth = $GLOBALS["gsSiteWidth"]; }
else { $screenwidth = 800; }
$screenwidth = $screenwidth - $GLOBALS["gnLeftFrameWidth"];
if (($GLOBALS["gsLRContentFrame"] == 'Y') || (($GLOBALS["gsLRContentFrame"] == 'A') && ($rightcontent)))
{
   $screenwidth = $screenwidth - $GLOBALS["gnRightColumnWidth"];
}
if ($GLOBALS["gnImageColumnBreak"] != '')
{
   if (file_exists($GLOBALS["image_home"].$GLOBALS["gnImageColumnBreak"]) == true)
   {
      $imageInfo = getimagesize($GLOBALS["image_home"].$GLOBALS["gnImageColumnBreak"]);
      $size = $imageInfo[0];
      $screenwidth = $screenwidth - $size;
   }
}
$screenwidth = $screenwidth - 100;

include($GLOBALS["modfiledir"].'/gallery_summary.php');

?>
