<?php if(!defined('master_script')) die();

/**
 * Default data
 *
 * @category   Module (exif)
 * @author     Nico Wenig <nico.wenig@yellowgreen.de>
 * @version	   2009-12-07
 */

	$modules['exif']['version'] = '1.1';
	$modules['exif']['author'] = 'Nico Wenig';
	$modules['exif']['support'] = 'mailto:nico.wenig@yellowgreen.de';
	$modules['exif']['pagemap version'] = '0.4';
	$modules['exif']['for'] = 'all';
	$modules['exif']['key'] = 'exif';
	$modules['exif']['path'] = $system_data['folder']['modules'] . $modules['exif']['key'] . '/';
	$modules['exif']['languages'] = $system_data['folder']['modules'] . $modules['exif']['key'] . '/languages/';
	$modules['exif']['protected'] = 0;
	$modules['exif']['preview'] = 1;

	include_txt($modules['exif']['key'], $modules['exif']['languages']);

/**
 * Save module to page
 *
 * @category   Module (exif)
 * @author     Nico Wenig <nico.wenig@yellowgreen.de>
 * @version	   2009-03-30
 */

	if(isset($_POST['save_exif'])) {
		$module_content_to_save = '
			<!-- MODULE: exif -->
			
			<?php
				$module_settings["exif"] = array(
					"language" => "' . clean_string($_POST['language'], true) . '",
					"margin top" => ' . intval($_POST['margin_top']) . ',
					"margin left" => ' . intval($_POST['margin_left']) . ',
					"css class" => "' . clean_string($_POST['css_class'], true) . '",
					"css id" => "' . clean_string($_POST['css_id'], true) . '"
				);
					
				' . connector('exif backend save') . '
				include_module("exif", false);
			?>
		';
	}

?>