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 = 0 + $_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"] < 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())");
}
}
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
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