hier ist der code
PHP-Quellcode
- if(preg_match("=(^|\ |\\n)(\[img\])([a-zA-Z0-9\.\/\-\_\:]{1,})(\[/img\])=i",$s,$url))
- {
- $info=getimagesize($url[3]);
- if(($info[2]>3)||($info[2]<1))
- {
- $replace="<a href=\"".$url[3]."\" target=\"_blank\">** Eingefügtes Bild **</a>";
- }
- else
- {
- if($info[0]<=$postpic_maxx)
- {
- $replace="<img src=\"".$url[3]."\" width=\"".$info[0]."\" height=\"".$info[1]."\">";
- }
- else
- {
- $faktor=$postpic_maxx/$info[0];
- $info[0]=$info[0]*$faktor;
- $info[1]=$info[1]*$faktor;
- $replace="<img src=\"".$url[3]."\" width=\"".$info[0]."\" height=\"".$info[1]."\">";
- }
- }
- $s=preg_replace("=(^|\ |\\n)\[img\]([a-zA-Z0-9\.\/\-\_\:]{1,})\[/img\]=i",$replace,$s);
- }
hat einer von euch ne ahnung wie man das ändern kann wenn ja danke ich im voraus
cu grindl