javascript - How to hide images from unregistered users -


i made website share pictures films have problems privacy. when u create photo film u can share url people people not logged in website still can watch film http://thephotofilm.com/films/1002947

select path images img_id=(id) if($type=="ole") $type=1; else $type=1; if(!is_numeric($imageindex) || $imageindex<0) invalidimage(); 

if user not logged in display blank picture

thanks in advace!

you $_session['username'].

  if(isset($_session['username'])){   //change session session name.       echo 'show image here';      }      else{       echo 'tell him wtf doing here';       } 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -