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)

easy62120 5th August 2012 11:38

IN PROGRESS
 
Hello,
I worked on a project from old files of version 5.6 and're trying to make them compatible with the 7.2

Streaming to my members, I put the files as attachments.
Several concerns is presented to me
- Unable to launch a video
- Some errors in the bottom of pages

intallation:
- Execute the sql
- Send the file to your server
- Put the files languages ​​(french and english) in "include" ==>"language"

http://img15.hostingpics.net/pics/231643stream3.png
http://img15.hostingpics.net/pics/447091stream2.png
http://img15.hostingpics.net/pics/482231stream1.png
Any improvement is good to take
thank you

http://bayfiles.com/file/jdMv/GwBJ9c/divx7.2.zip


Bump: That's where I am now.
Video is recorded in the database errors are almost always corrected any worries at the research.
But then I wedged the launch of the video view screens, the screen remains black

http://img15.hostingpics.net/pics/972505stream1.png
http://img15.hostingpics.net/pics/138609stream2.png

If anyone can help me here is my streaming.php:

PHP Code:

<?php
define
('B_VERSION''6.6.3 by xam');
define('SKIP_MOD_QUERIES'true);
define('SKIP_CACHE_MESSAGE'true);
require(
'./global.php');
   if (!isset(
$CURUSER))
{
    
print_no_permission();
}
  
define ('T_VERSION''v.0.7 by xam');
stdhead("Streaming ");
$act = isset($_POST['act']) ? htmlspecialchars($_POST['act']) : '';
$ajax_browse 'yes';
    
$id intval(TS_Global('id'));
 
$divx=  "SELECT (*) FROM divx WHERE id='$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' ))  {

$query "SELECT (*) FROM divx WHERE id='$id'";
$arr mysql_query($query);
$divx $arr['url'];
            }



    
$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())");
    }

 
 
//création de la requête SQL: 
   
$sqlvue "UPDATE divx SET views = views +1 WHERE id = '.$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>

  <?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>";
}
    
stdfoot(); 
 
?>


Cleanup 21st January 2013 04:52

anyone enable to help me setting up mysql query
 
Hi guys

i'm ready to share with you guys my streaming for ts-se 7.2 if someone can help me setting up the mysql query to add token within a staff tool i allready have th etools partially setup the only problem i have is the query that's not happening in mysql

can anyone help me out please?


All times are GMT +2. The time now is 11:09.

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