Author Topic: Pic Security  (Read 160640 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Pic Security
« Reply #75 on: January 02, 2006, 11:13:20 PM »
I have good and bad news...
The good news - I found the reason why FF/Opera don't play the video. Its because the media player plugin your are using on your site for some reason looses "temporary" cookies (aka session cookies). And since this method is based on sessions, 4images can not determin to which session is belong the request for the file and sends out "pic_error.gif" instead.

The bad news - I dont have a solution on how to fix it, but I'll keep looking ;)

P.S. this is crazy! While examining data sent by the browser and reseived responsed from the server I've learned that when open your page in IE it downloads about 20kb of the file (probably depese on client's internet speed), then it cut the connection and start downloading again that file but under different client name (first request under user agent "Windows-Media-Player/9.00.00.3250" - that is my MediaPlayer version, but second request is under "NSPlayer/10.0.0.3802 WMFSDK/10.0" - I have no clue what this is).
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline osmel

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Pic Security
« Reply #76 on: January 03, 2006, 05:29:40 AM »
microsoft uh? they cant make things simple lol
if you find any fix ill be very happy :)

Offline lorddean

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • ElitePhoto.eu
Re: Pic Security
« Reply #77 on: January 06, 2006, 12:56:05 PM »
How do I implement the codes in

« Reply #1 on: March 24, 2005, 03:39:31 AM »
http://www.4homepages.de/forum/index.php?topic=6997.msg30699#msg30699
(It's the first reply under this subject, Pic Security)

1) In which folders should I place the 3 files? (.htaccess, read_image.php and view_image.php)

2) Are there any other files I have to modify to activate the code? And if so, what modifications should I make?

Best regards
No-one who knows?

Offline osmel

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Pic Security
« Reply #78 on: January 07, 2006, 11:19:14 PM »
had to stop using the mod cuz many users cant watch the videos :(

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Pic Security
« Reply #79 on: January 07, 2006, 11:32:56 PM »
had to stop using the mod cuz many users cant watch the videos :(
Ok, I think I have a few ideas ;)
lets try this first: undo step 1.4
then find in includes/functions.php:
Code: [Select]
    $media = $site_template->parse_template("media/".$file_extension);Insert above:
Code: [Select]
    $site_template->register_vars(array(
      "media_src" => ($encrypt) ? $site_sess->url(ROOT_PATH."show.php?pic=".encrypt_add($media_src)) : $media_src,
      "media_src_original" => $media_src,
    ));

See if it works now.

If it doesn't, lets try to add this code instead:
Code: [Select]
    $sess_mode = $site_sess->mode;
    $site_sess->mode = "get";
    $site_template->register_vars(array(
      "media_src" => ($encrypt) ? $site_sess->url(ROOT_PATH."show.php?pic=".encrypt_add($media_src)) : $media_src,
      "media_src_original" => $media_src,
    ));
    $site_sess->mode = $sess_mode;
This should defenetly work (I'm 99% sure) ;)

Let me know if it works, and if it does, then with which code.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lorddean

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • ElitePhoto.eu
Re: Pic Security
« Reply #80 on: January 10, 2006, 10:19:03 AM »
Insert Quote
how do I implement the codes in

« Reply #1 on: March 24, 2005, 03:39:31 AM »
http://www.4homepages.de/forum/index.php?topic=6997.msg30699#msg30699
(It's the first reply under this subject, Pic Security)

1) In which folders should I place the 3 files? (.htaccess, read_image.php and view_image.php)

2) Are there any other files I have to modify to activate the code? And if so, what modifications should I make?
No-one who knows?

Offline osmel

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Pic Security
« Reply #81 on: January 11, 2006, 02:35:13 PM »
sorry but i guess still doesnt work :( i get the unspecified error... and when i copy and paste it on windows media player it does say expired

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Pic Security
« Reply #82 on: January 11, 2006, 02:53:36 PM »
Well, the problem now is in the plugin FF uses. Now the error states:
Quote
No combination of filters could be found to render the stream. (Error=80040218)
This means the MPlayer2 plugin that FF uses can not play .wmv format...try search on internet how to display videos in FF.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Pic Security
« Reply #83 on: January 12, 2006, 12:43:26 PM »
In the mean time, if the pasting activity expires, it might (highly) be possible this action is due to copyrighted-bytes recording. This year, encryption video method has increased. ;)

Offline osmel

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Pic Security
« Reply #84 on: January 13, 2006, 04:00:03 AM »
ok... somehow i just went to check again and its working, on both, opera and firefox
8O

using this code

Code: [Select]
$sess_mode = $site_sess->mode;
    $site_sess->mode = "get";
    $site_template->register_vars(array(
      "media_src" => ($encrypt) ? $site_sess->url(ROOT_PATH."show.php?pic=".encrypt_add($media_src)) : $media_src,
      "media_src_original" => $media_src,
    ));
    $site_sess->mode = $sess_mode;

Offline osmel

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Pic Security
« Reply #85 on: January 13, 2006, 04:09:25 AM »
theres only one thing now... the ecard function! i tried the code you posted before but it doesnt do anything :S

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: Pic Security
« Reply #86 on: January 13, 2006, 12:53:22 PM »
Quote

it doesnt do anything


Could you be more specific ?  :?

Offline osmel

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Pic Security
« Reply #87 on: January 13, 2006, 10:52:06 PM »
well the link its still there no encryption sorry for not giving the details :D

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Pic Security
« Reply #88 on: January 14, 2006, 12:47:12 AM »
i tried the code you posted before
And which code is that? link please.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: Page 4
« Reply #89 on: February 25, 2006, 09:32:14 AM »
I just wanted to share with the public with another way to secure pictures, that I made long time ago and successfuly have been using on my site. It hides location of the pictures and adds antileech as well.

.......................

This works fine, but while picture loads you can see the path to the picture at the bottom of the browser (IE) for a short time (some seconds).
Is there a way to hide this path showing up in the browser ?