cotonti.com : watermark error siena https://www.cotonti.com Последние сообщения в теме Cotonti en Mon, 06 Oct 2025 05:14:16 -0000 elfrenazo change line 9

FALSE / TRUE

if (strpos($realpath, $_SERVER['DOCUMENT_ROOT']) === TRUE || !preg_match('#\.(gif|jpeg|jpg|png)$#i', $path))
ok plugin

yes

]]>
пн, 09 янв 2012 21:32:54 -0000
Trustmaster I see, something is wrong with path detection. Could you open 'plugins/watermark/lib/watermark.php' and replace line 12 with:

echo '<h1>Forbidden</h1>Path: '.$path.'<br/>Realpath: '.$realpath.'<br/>DocRoot: ' . $_SERVER['DOCUMENT_ROOT'];

This will help to find the bug.

]]>
пн, 09 янв 2012 12:02:05 -0000
elfrenazo sorry this is the html output to the selected watermark

<img src="http://www .malditopc.es/./plugins/watermark/lib/watermark.php?path=datas%2Fusers%2F%2F17_1308.jpg" alt="" />
]]>
вс, 08 янв 2012 19:38:10 -0000
Trustmaster And how does it look when watermark is enabled?

]]>
вс, 08 янв 2012 10:06:29 -0000
elfrenazo <img src="http://www .malditopc.es/./datas/users//17_1308.jpg" alt="" /> ]]> вс, 08 янв 2012 08:27:12 -0000 Trustmaster Sorry, I mean "src" of images in the HTML output (result page).

]]>
вс, 08 янв 2012 08:19:56 -0000
elfrenazo Ok

IMG LINE 1

\[img=((?:http://|https://|ftp://)?[^\]"\';:\?]+\.(?:jpg|jpeg|gif|png))\]((?:http://|https://|ftp://)?[^\]"\';:\?]+\.(?:jpg|jpeg|gif|png))\[/img\]


<a href="https://www.cotonti.com/$1"><img src="https://www.cotonti.com/$2" alt="" /></a>

 

IMG LINE 2

\[img\]((?:http://|https://|ftp://)?[^"\';:\?\[]+\.(?:jpg|jpeg|gif|png))\[/img\]


<img src="https://www.cotonti.com/$1" alt="" />

]]>
вс, 08 янв 2012 00:47:22 -0000
Trustmaster That config looks correct. Could you give me some example "src" attribute values for images when watermark is enabled?

]]>
сб, 07 янв 2012 09:37:50 -0000
elfrenazo hello, error in watermark, images disappear.

Config: datas/users/(.*?)\.(gif|jpeg|jpg|png)

is that correct? I have to put something in htaccess?

]]>
чт, 05 янв 2012 07:30:23 -0000