<?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/
 */

###Hier bitte anpassen falls was geändert werden soll#######
$temp_dir = "modules/user_pics/media/temp";
$upload_dir = "modules/user_pics/media/user_pics"; 
$thumb_dir_thumb_gross = "modules/user_pics/media/user_pics_thumb200"; 
$thumb_dir_thumb_klein = "modules/user_pics/media/user_pics_thumb50"; 

#########Hier wird die größe definiert wie breit das Foto im Album angezeigt werden kann#####
#########Das kommt immer auf das Themen an, wie breit das ist und ob die rechten bzw linken blöcke angezeigt werden.####
$maxwidth_in_album = "250";
###Wieviele Bilder sollen in einer reihe angezeigt werden bei der albumansicht 1 bild entspricht 50 px####
$bilderviewreihe = "3";
###Wieviele Bilder sollen in einer reihe angezeigt werden bei der album-manager ansicht 1 bild entspricht 200 px####
$bilderviewreihemanager = "3";
###Bitte hier deine Domain eintragen###(Ist für die Skalirung in der datei bildercontentview wichtig)
$domain = "http://www.gothiccommunity.de";

#####Ab hier bitte nichts mehr ändern!!!##############
if(MX_VERSION != "pragmaMx 0.1.9") {
echo "<script language=\"javascript\" src=\"includes/javascript/overlib.js\" type=\"text/javascript\"></script>";
echo "<script language=\"javascript\" src=\"includes/javascript/overlib_hideform.js\" type=\"text/javascript\"></script>";
}
?>

<script type="text/javascript" src="modules/user_pics/js/ajax.js"></script>
<script type="text/javascript" src="modules/user_pics/js/ajax-dynamic-content.js"></script>

<script language="JavaScript"> 
<!-- 
function CountMax() 
{ 
var wert,max; 
max = 255; 
wert = max-document.eingabe.text.value.length; 
if (wert < 0) { 
alert("Es dürfen nicht mehr als " + max + " Zeichen eingegeben werden!"); 
document.eingabe.text.value = document.eingabe.text.value.substring(0,max); 
wert = max-document.eingabe.text.value.length; 
document.eingabe.rv_counter.value = wert; 

} else { 
document.eingabe.rv_counter.value = max - document.eingabe.text.value.length; 
} 
} 
//--> 
</script> 
<?php

	function wordwrap2($str="", $width=75, $break=" ", $separator=" ", $outprefix="")
	{
    	$wbr = "<wbr>";
    	$width = $width - strlen(strip_tags($outprefix));
    	$str = trim($str);
    	if ($str=="")
		{
        	return $str;
        	exit;
    	}
    	$strarray = explode($separator,$str);
    	foreach ($strarray as $stritem) {$stritem = trim($stritem);}
    	$outarray = array();
    	$ln = 0; $wd = 0;
    	$outarray[$ln] = $outprefix;
    	while ($wd < sizeof($strarray))
		{
        	if (strlen(strip_tags($outarray[$ln]." ".$strarray[$wd]))>$width)
			{
            	$rlen = $width-1-strlen(strip_tags($outarray[$ln]." "));
            	if (strpos($strarray[$wd],$wbr)>1)
				{
                	$tarray = explode($wbr,$strarray[$wd]);
                	$i = 0;
                	$tstr = "";
                	while (($i<sizeof($tarray)) and (strlen($tstr.$tarray[$i])<$rlen))
					{
						$tstr .= $tarray[$i];
                    	$i++;
                	}
                	if ($i > 0)
					{
                    	$outarray[$ln] .= $tstr."-".$break;
                    	$ln++;
                    	$outarray[$ln] = $outprefix;
                    	$strarray[$wd] = "";
                    	for ($i=$i; $i<sizeof($tarray); $i++)
						{
                        	$strarray[$wd] .= $tarray[$i].$wbr;
                    	}
                	}
					else
					{
                    	$outarray[$ln] .= $break;
                    	$ln++;
                    	$outarray[$ln] = $outprefix;
                	}
            	}
				else
				{
                	$outarray[$ln] .= $break;
                	$ln++;
                	while (strlen($strarray[$wd])>$width)
					{
                    	$outarray[$ln] = $outprefix.substr($strarray[$wd],0,$width).$break;
						$ln++;
                    	$strarray[$wd] = substr($strarray[$wd],$width);
                	}
                	$outarray[$ln] = $outprefix.$strarray[$wd]." ";
                	$wd++;
            	}
        	}
			else
			{
            	$outarray[$ln] .= $strarray[$wd]." ";
            	$wd++;
       	 	}
    	}
    	return implode("",$outarray);
	}



$gopage="modules.php?name=user_pics&file=isuser&option=alben"; 


## DAS COPYRIGHT DARF NUR IN DER BUY-VERSION ENTFERNT WERDEN ##

$copyright = "<a href=\"http://www.weelife.de\" target=\"_blank\">&copy;</a>&nbsp;";

## KANN BEI BEDARF ENTFERNT WERDEN ##
$version = "2.0.0";

?>