Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   [TSSE 5.6] Streaming (http://www.bvlist.com/showthread.php?t=5557)

turktiger 24th May 2011 10:11

Quote:

Originally Posted by turktiger (Post 28048)
i want to say special thank to Darck , now works perfectly , can we add streaming tab in details.php like in the attached pic ?


Thanks , works well :) :ok:

nikosuk 27th May 2011 20:51

Hello,
I just installed your mod, and seems to be working fine.
I tried and uploaded a file in a server i own.. accessible directly via http

eg http://myserver/file.avi

i Upload, i see the uploaded video, but when i try to download/view ..

i am supposed to have a streaming.php somewhere? could not find it in your post.

Please attach.

I found a streaming.php file from lateam, but i get a message that the DIvx file is not supported.

Any help here ??
Thank you in advance
:wallbash:

shasta 28th May 2011 00:45

Quote:

Originally Posted by lateam (Post 25362)


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\AppServ\www\streamingmies.php on line 22
:sos:
on streamingmies.php and divx.php too

DARCK 28th May 2011 09:09

hi
 
streaming.php
PHP Code:

<?php

require_once 'global.php';
  include_once 
INC_PATH '/functions_cache.php';
  include_once 
INC_PATH '/functions_ratio.php';
  
gzip ();
  
dbconn ();
  
loggedinorreturn ();
  
maxsysop ();
  
parked ();
  
define ('T_VERSION''v.0.7 by xam');



$id $_GET['id'];

function 
MakeSQLSafe($msg)
{

//this will allow all punctuation in the message, and also prevent sql injection.

$msg str_replace("'"'''$msg);
$msg str_replace("--"'--'$msg);

return 
$msg;
};

function 
MakeHTMLSafe($msg)
{

//this will stop people from using javascript and html tags in their posts.

$msg str_replace('<''<'$msg);
$msg str_replace('>''>'$msg);
$msg str_replace('javascript:''java script:'$msg);

return 
$msg;
}


$res mysql_query("SELECT COUNT(*) FROM divx");

$row mysql_fetch_array($res);

$count $row[0];



if (
$act=="search") {

$perpage 15;

}else {

$perpage 18;

}



list(
$pagertop$pagerbottom$limit) = pager($perpage$count$_SERVER["PHP_SELF"] ."?" );



if (!
$act or $act == "search") {



if (
$id AND ($CURUSER['stream'] == yes ))  {

$mess "Press Play";

$res mysql_query("SELECT * FROM divx WHERE id='$id'");

$arr mysql_fetch_array($res);

$divx $arr["url"];

$titre $arr["title"];

$image $arr["image"];







    
$req_ha mysql_query("SELECT id FROM divx_usage WHERE userid=$CURUSER[id] AND divxid = $id");

    
$row_ha mysql_num_rows($req_ha);

    if(
$row_ha == 0){

        if (
$CURUSER["droits_film"] < ){

          
$mess "Droits films épuisés";

          
$divx "";

          
$titre "";

        }

        else

          
mysql_query("update users set droits_film = droits_film - 1 WHERE id=$CURUSER[id]");

      }

if (
$CURUSER["droits_film"] > ){

      
mysql_query("insert into divx_usage (userid,divxid,date) values ($CURUSER[id],$id,now())");

    }

}

  else {

    
$mess="Selectionner une Vidéo";

  }
 

 
//création de la requête SQL: 
   
$sqlvue "UPDATE divx SET views = views+1 WHERE id = ".$_GET['id']; 
   
$reqvue mysql_query($sqlvue); 



 
?>

<STYLE type=text/css>
.td_search {
background: none;
BORDER-TOP: #a0a0a0 1px solid;
BORDER-BOTTOM: #a0a0a0 1px solid;
BORDER-LEFT: #a0a0a0 1px solid;
BORDER-RIGHT: #a0a0a0 1px solid;
}
</style>


<center><object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="623" height="350" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">

 <param name="custommode" value="Stage6" />

  <param name="mode" value="full" />
  <param name="autoPlay" value="true" />
  <param name="allowContextMenu" value="false" />
  <param name="src" value="<?php echo $divx?>" />

<embed type="video/divx" src="<?php echo $divx?>" custommode="Stage6" width="623" height="350" mode="full"  autoPlay="true"  allowContextMenu="false"  pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object></center>

   <body oncontextmenu="alert('Interdit de copier les éléments du site - Tous droits réservés.'); return false">

  <?php
  
}
    else{
    echo 
"<center><tr><td align=center><font color=red size=6><b>Vous devez etre un donateur pour avoir acces au streaming !</b></font></td></tr></center>";
}
 
?>

Bump:
Quote:

Originally Posted by shasta (Post 28209)
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\AppServ\www\streamingmies.php on line 22
:sos:
on streamingmies.php and divx.php too

give me the link to your site I look at your problem

turktiger 28th May 2011 15:21

Quote:

Originally Posted by turktiger (Post 28048)
i want to say special thank to Darck , now works perfectly , can we add streaming tab in details.php like in the attached pic ?

waiting for this impatiently :)

shasta 29th May 2011 18:29

Quote:

Originally Posted by DARCK (Post 28213)
streaming.php
PHP Code:

<?php

require_once 'global.php';
  include_once 
INC_PATH '/functions_cache.php';
  include_once 
INC_PATH '/functions_ratio.php';
  
gzip ();
  
dbconn ();
  
loggedinorreturn ();
  
maxsysop ();
  
parked ();
  
define ('T_VERSION''v.0.7 by xam');



$id $_GET['id'];

function 
MakeSQLSafe($msg)
{

//this will allow all punctuation in the message, and also prevent sql injection.

$msg str_replace("'"'''$msg);
$msg str_replace("--"'--'$msg);

return 
$msg;
};

function 
MakeHTMLSafe($msg)
{

//this will stop people from using javascript and html tags in their posts.

$msg str_replace('<''<'$msg);
$msg str_replace('>''>'$msg);
$msg str_replace('javascript:''java script:'$msg);

return 
$msg;
}


$res mysql_query("SELECT COUNT(*) FROM divx");

$row mysql_fetch_array($res);

$count $row[0];



if (
$act=="search") {

$perpage 15;

}else {

$perpage 18;

}



list(
$pagertop$pagerbottom$limit) = pager($perpage$count$_SERVER["PHP_SELF"] ."?" );



if (!
$act or $act == "search") {



if (
$id AND ($CURUSER['stream'] == yes ))  {

$mess "Press Play";

$res mysql_query("SELECT * FROM divx WHERE id='$id'");

$arr mysql_fetch_array($res);

$divx $arr["url"];

$titre $arr["title"];

$image $arr["image"];







    
$req_ha mysql_query("SELECT id FROM divx_usage WHERE userid=$CURUSER[id] AND divxid = $id");

    
$row_ha mysql_num_rows($req_ha);

    if(
$row_ha == 0){

        if (
$CURUSER["droits_film"] < ){

          
$mess "Droits films épuisés";

          
$divx "";

          
$titre "";

        }

        else

          
mysql_query("update users set droits_film = droits_film - 1 WHERE id=$CURUSER[id]");

      }

if (
$CURUSER["droits_film"] > ){

      
mysql_query("insert into divx_usage (userid,divxid,date) values ($CURUSER[id],$id,now())");

    }

}

  else {

    
$mess="Selectionner une Vidéo";

  }
 

 
//création de la requête SQL: 
   
$sqlvue "UPDATE divx SET views = views+1 WHERE id = ".$_GET['id']; 
   
$reqvue mysql_query($sqlvue); 



 
?>

<STYLE type=text/css>
.td_search {
background: none;
BORDER-TOP: #a0a0a0 1px solid;
BORDER-BOTTOM: #a0a0a0 1px solid;
BORDER-LEFT: #a0a0a0 1px solid;
BORDER-RIGHT: #a0a0a0 1px solid;
}
</style>


<center><object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="623" height="350" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">

 <param name="custommode" value="Stage6" />

  <param name="mode" value="full" />
  <param name="autoPlay" value="true" />
  <param name="allowContextMenu" value="false" />
  <param name="src" value="<?php echo $divx?>" />

<embed type="video/divx" src="<?php echo $divx?>" custommode="Stage6" width="623" height="350" mode="full"  autoPlay="true"  allowContextMenu="false"  pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object></center>

   <body oncontextmenu="alert('Interdit de copier les éléments du site - Tous droits réservés.'); return false">

  <?php
  
}
    else{
    echo 
"<center><tr><td align=center><font color=red size=6><b>Vous devez etre un donateur pour avoir acces au streaming !</b></font></td></tr></center>";
}
 
?>

Bump:
give me the link to your site I look at your problem

my site here
but now i installed you lateam tsse 5.6 version and work

nikosuk 30th May 2011 11:38

What kind of files?
 
Hi,
i would appreciate if you could reupload the file detailvod.php ?
It seems that i am missing some lines :(
Hits arent working.

Also what kind of files are supported? i am trying to load an avi ( divx codec) but i get the message that the file is not supported
Please help.

shasta 30th May 2011 20:38

Quote:

Originally Posted by nikosuk (Post 28253)
Hi,
i would appreciate if you could reupload the file detailvod.php ?
It seems that i am missing some lines :(
Hits arent working.

Also what kind of files are supported? i am trying to load an avi ( divx codec) but i get the message that the file is not supported
Please help.

same error :wallbash:

DARCK 30th May 2011 21:37

Quote:

Originally Posted by shasta (Post 28264)
same error :wallbash:

install divx webplayer http://www.divx.com

nikosuk 31st May 2011 14:00

hi,

i have the divx player, since i can watch divx video in player and in WEB player..
Perhaps give me a sample Avi link to test?
i tried many codec combinations but i always get
" the downloaded Video is not a DIvx file"

Any ideas?

Bump: i used lateam edition and now i am fine

;)


All times are GMT +2. The time now is 10:50.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.