Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #41  
Old 5th August 2012, 11:38
easy62120 easy62120 is offline
Senior Member
 
Join Date: Jun 2010
P2P
Posts: 35
Exclamation 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"

Click the image to open in full size.
Click the image to open in full size.
Click the image to open in full size.
Any improvement is good to take
thank you

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


Bump: <span>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</span>

<span>Click the image to open in full size.</span>
<span>Click the image to open in full size.</span>

<span>If anyone can help me here is my streaming.php:</span>

<span>
PHP Code:
&lt;?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("'"'&amp;#39;'$msg);
$msg str_replace("--"'&amp;#45;&amp;#45;'$msg);
return 
$msg;
};
function 
MakeHTMLSafe($msg)
{
//this will stop people from using javascript and html tags in their posts.
$msg str_replace('&lt;''&amp;lt;'$msg);
$msg str_replace('&gt;''&amp;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"] &lt){
          
$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"] &gt){
      
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); 

 ?&
gt;
&
lt;STYLE type=text/css&gt;
.
td_search {
backgroundnone;
BORDER-TOP#a0a0a0 1px solid;
BORDER-BOTTOM#a0a0a0 1px solid;
BORDER-LEFT#a0a0a0 1px solid;
BORDER-RIGHT#a0a0a0 1px solid;
}
&
lt;/style&gt;  

&
lt;center&gt;&lt;object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="623" height="350" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab"&gt;
 &
lt;param name="custommode" value="Stage6" /&gt;
  &
lt;param name="mode" value="full" /&gt;
  &
lt;param name="autoPlay" value="true" /&gt;
  &
lt;param name="allowContextMenu" value="false" /&gt;
  &
lt;param name="src" value="&lt;?php echo ".$divx."; ?&gt;" /&gt;
&
lt;embed type="video/divx" src="&lt;?php echo ".$divx."; ?&gt;" custommode="Stage6" width="623" height="350" mode="full"  autoPlay="true"  allowContextMenu="false"  pluginspage="http://go.divx.com/plugin/download/"&gt;
&
lt;/embed&gt;
&
lt;/object&gt;&lt;/center&gt;

  &
lt;?php
  
}
    else{
    echo 
"&lt;center&gt;&lt;tr&gt;&lt;td align=center&gt;&lt;font color=red size=6&gt;&lt;b&gt;Vous devez etre un donateur pour avoir acces au streaming !&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/center&gt;";
}
    
stdfoot(); 
 ?&
gt
</span>
Reply With Quote
  #42  
Old 21st January 2013, 04:52
Cleanup Cleanup is offline
Senior Member
 
Join Date: Oct 2008
Posts: 34
Default 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?
Reply With Quote
Reply

Tags
56 , streaming , tsse

Thread Tools

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 21:26. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.