5th August 2012, 11:38
|
Senior Member
|
|
Join Date: Jun 2010
Posts: 35
|
|
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"
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></span>
<span></span>
<span>If anyone can help me here is my streaming.php:</span>
<span>
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("'", '&#39;', $msg); $msg = str_replace("--", '&#45;&#45;', $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"] < 1 ){ $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"] > 0 ){ 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(); ?>
</span>
|