Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
Thread Tools
  #31  
Old 24th May 2011, 10:11
turktiger turktiger is offline
Senior Member
 
Join Date: Jan 2011
Turkey
Posts: 20
Default
Quote:
Originally Posted by turktiger View Post
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 :)
Reply With Quote
  #32  
Old 27th May 2011, 20:51
nikosuk's Avatar
nikosuk nikosuk is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 59
Default
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
Reply With Quote
  #33  
Old 28th May 2011, 00:45
shasta's Avatar
shasta shasta is offline
Senior Member
 
Join Date: Mar 2011
P2P
Posts: 46
Default
Quote:
Originally Posted by lateam View Post

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

on streamingmies.php and divx.php too
Reply With Quote
  #34  
Old 28th May 2011, 09:09
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default 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('<''&lt;'$msg);
$msg str_replace('>''&gt;'$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 View Post
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\AppServ\www\streamingmies.php on line 22

on streamingmies.php and divx.php too
give me the link to your site I look at your problem
Reply With Quote
  #35  
Old 28th May 2011, 15:21
turktiger turktiger is offline
Senior Member
 
Join Date: Jan 2011
Turkey
Posts: 20
Default
Quote:
Originally Posted by turktiger View Post
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 :)
Reply With Quote
  #36  
Old 29th May 2011, 18:29
shasta's Avatar
shasta shasta is offline
Senior Member
 
Join Date: Mar 2011
P2P
Posts: 46
Default
Quote:
Originally Posted by DARCK View Post
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('<''&lt;'$msg);
$msg str_replace('>''&gt;'$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
Reply With Quote
  #37  
Old 30th May 2011, 11:38
nikosuk's Avatar
nikosuk nikosuk is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 59
Default 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.
Reply With Quote
  #38  
Old 30th May 2011, 20:38
shasta's Avatar
shasta shasta is offline
Senior Member
 
Join Date: Mar 2011
P2P
Posts: 46
Default
Quote:
Originally Posted by nikosuk View Post
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
Reply With Quote
  #39  
Old 30th May 2011, 21:37
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default
Quote:
Originally Posted by shasta View Post
same error
install divx webplayer http://www.divx.com
Reply With Quote
  #40  
Old 31st May 2011, 14:00
nikosuk's Avatar
nikosuk nikosuk is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 59
Default
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

;)
Reply With Quote
Reply

Tags
56 , streaming , tsse


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 17:56. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.