我创建了一个网站来分享电影等图片,但我在隐私方面遇到了问题。当您制作照片电影时,您可以与其他人分享其网址,但未登录我网站的人仍然可以观看我的电影 http://thephotofilm.com/films/1002947
SELECT path FROM images WHERE img_id=(id)
if($type=="ole")
$type=1;
else
$type=1;
if(!is_numeric($imageIndex) || $imageIndex<0)
invalidImage();
如果用户未登录显示空白图片
提前致谢!
最佳答案
您可以使用 $_session['username']
来完成。
if(isset($_session['username'])){ //change this session to your session name.
echo 'show image here';
}
else{
echo 'tell him wtf are you doing here';
}
关于javascript - 如何对未注册用户隐藏图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22309957/