For some raason I want turn off video embed code.
I found this
Code: Select all
return print("Content-type:text/html\n\nVideo embed restricted for this user") nless $c->{"video_embed_$utype2"};
Of course "link" is a path to movie on my website.
I try with somethink like this
Code: Select all
return print("Content-type:text/html\n\nWatch this movie: <a href='http://domian.com'.$video_code.'/'>here</a>") unless $c->{"video_embed_$utype2"};
Update:
If someone want this here is solution:
Code: Select all
return print("Content-type:text/html\n\nWatch this file here: <a href='$c->{site_url}/$file->{file_code}' target='_blank'>$file->{file_name}</a>") unless $c->{"video_embed_$utype2"};