🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #49457

Re: img +alt +greybox

#49457
From: alianora
Date: Mon, 26 Oct 2009 10:03
27 lines
1626 bytes
k pisze:
> alianora pisze:
>> Zrób plik PHP, który za parametr przyjmie nazwę czy ID pliku i utworzy 
>> w locie odpowiedni kod HTML.
> juz probowalem ale chyba nie da rady probowalem jak ponizej.. bez efektu

> <?
> if ($_GET['nr']) {
> print '<p><img src='.$_GET['nr'];
> print "oncontextmenu=\"return false\"/><p>";
> }
> ?>

print '<a href="a.php?nr='.urlencode($nazwapliku2).'" 
rel="gb_imageset[nice_pics]" >';

<?
if (isset($_GET['nr']) && file_exists($_GET['nr']) {
	$fname=urldecode($_GET['nr']);
	print '<p><img src="'.$fname.'" ';
	print 'oncontextmenu="return false" /><p>';
}
?>

tak na szybko...
Pozdr.
MK
Technical Details
Message-ID: <hc3s6k$8q6$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <hbfv3d$aq1$1@achot.icm.edu.pl> <hbh7uo$51m$1@inews.gazeta.pl> <hbl7lb$tpr$1@achot.icm.edu.pl> <hbmmhl$i24$1@inews.gazeta.pl> <hc21bo$c5b$1@achot.icm.edu.pl> <hc26je$9eq$1@inews.gazeta.pl> <hc2gfo$tf7$1@achot.icm.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: alianora <alianora@go2.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: img +alt +greybox
Date: Mon, 26 Oct 2009 11:03:59 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 27
Message-ID: <hc3s6k$8q6$1@inews.gazeta.pl>
References: <hbfv3d$aq1$1@achot.icm.edu.pl> <hbh7uo$51m$1@inews.gazeta.pl> <hbl7lb$tpr$1@achot.icm.edu.pl> <hbmmhl$i24$1@inews.gazeta.pl> <hc21bo$c5b$1@achot.icm.edu.pl> <hc26je$9eq$1@inews.gazeta.pl> <hc2gfo$tf7$1@achot.icm.edu.pl>
NNTP-Posting-Host: 132-to4-8.acn.waw.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1256551444 9030 94.75.107.132 (26 Oct 2009 10:04:04 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Mon, 26 Oct 2009 10:04:04 +0000 (UTC)
X-User: alianora
In-Reply-To: <hc2gfo$tf7$1@achot.icm.edu.pl>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit