Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-05-22 21:39:41

Eri
Member
Registered: 2011-03-18
Posts: 977

Server manager question

When i try to suspend a server i am getting this message "Are you sure you want to suspend this server (all server videos will not work)?"
This means that all videos that this server host will not play or the script will not upload videos on that server.
Thank You


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#2 2011-05-22 21:55:23

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Server manager question

It means that you will not be able to upload videos to that server. Videos will still play.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2011-05-22 22:18:54

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Server manager question

I was confiused with this message "all server videos will not work" also i was getting e mails from webmasters that my site videos do not play.


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#4 2011-05-23 00:22:13

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Server manager question

Hmm...did you find out why videos dont play?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2011-05-23 04:45:37

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Server manager question

For me they play at every browser.
I have included this way to protect hotlinking http://www.icemelon.com/tutorials/14/Pr … inking.htm

I start a session at  /modules/video/components/view.php
// e.g.
session_start();
$_SESSION['arbitrary'] = 'twister';

and protect the /modules/video/player/config.php
with
session_start();
if($_SESSION['arbitrary'] == "twister"){

PHP PROTECTED CODE

}
unset($_SESSION['arbitrary']);
unset($arbitrary);

You think this may be the problem?

Last edited by Eri (2011-05-23 04:48:36)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#6 2011-05-23 07:42:22

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Server manager question

In both cases, dont use session_start(); and session is already started. Also you dont need to run unset($arbitrary). That was needed years ago when register_globals was used. If you have debug installed session_start() and unset($arbitrary) would stop the script execution.

I also checked right now and it works for me.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#7 2011-05-23 08:23:45

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Server manager question

I have removed link protection )

Is there any other way to protect CURL video hotlink link?


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#8 2011-05-23 15:21:25

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Server manager question

No no...you should keep the link protection. Its a very very good idea. You could have in modules/video/components/view.php something like $_SESSION['xxx'] = $video_id and in modules/video/player/config.php if (!(isset$_SESSION['xxx'] ) OR $_SESSION['xxx'] != $video_id) die();


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#9 2011-05-23 15:35:40

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Server manager question

BTW: RTMP ( Red5 and so on ) should prevent leeching and hotlinking.
Another possibility is http://redmine.lighttpd.net/wiki/1/Docs … reDownload but i dunno how it works exactly.

Last edited by Coscast (2011-05-23 15:38:07)


sgt-halfsize-banner.jpg

Offline

#10 2011-05-23 17:12:16

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Server manager question

Coscast wrote:

Another possibility is http://redmine.lighttpd.net/wiki/1/Docs … reDownload but i dunno how it works exactly.

thanks


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#11 2011-05-23 17:23:27

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Server manager question

symtab wrote:

No no...you should keep the link protection. Its a very very good idea. You could have in modules/video/components/view.php something like $_SESSION['xxx'] = $video_id and in modules/video/player/config.php if (!(isset$_SESSION['xxx'] ) OR $_SESSION['xxx'] != $video_id) die();


do not work, modules/video/player/config.php do not show up.

Steps that i made was

At  modules/video/player/config.php
after
$video_id     = (isset($_GET['id'])) ? (int) $_GET['id'] : 0;
added
if (!(isset$_SESSION['xxx'] ) OR $_SESSION['xxx'] != $video_id) die();


At  modules/video/components/view.php
after
$cache_id     = 'video_'.$this->video_id;
added
$_SESSION['xxx'] = $cache_id;



Also added only this code at modules/video/player/config.php
$_SESSION['xxx'] = $video_id;
if (!(isset$_SESSION['xxx'] ) OR $_SESSION['xxx'] != $video_id) die();
but still do not work.

Last edited by Eri (2011-05-23 17:26:37)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#12 2011-05-24 00:40:53

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Server manager question

Thats not the same. In modules/video/components/view.php add $_SESSION['xxx'] = $this->video_id;


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#13 2011-05-24 20:31:45

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Server manager question

symtab wrote:

Thats not the same. In modules/video/components/view.php add $_SESSION['xxx'] = $this->video_id;

changed but getting the same error sad

Last edited by Eri (2011-05-24 20:32:11)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#14 2011-05-25 10:51:17

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Server manager question

works now smile changed OR with &&
if (!(isset$_SESSION['xxx'] ) && $_SESSION['xxx'] != $video_id) die();


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#15 2011-05-25 18:49:58

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Server manager question

Erm...yeah should be &&.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB