View Single Post
  #20  
Old 17th May 2011, 09:22
turktiger turktiger is offline
Senior Member
 
Join Date: Jan 2011
Turkey
Posts: 20
Default Error on streamingmies ? divx
On brouwsestreaming.php

Code:
Parse error:  syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/uturk/public_html/brouwsestreaming.php on line 30

brouwsestreaming.php

Code:
      <?php

require_once 'global.php';
 require(TSDIR.'/'.$cache.'/categories.php');
$subcategories = array();
$searcincategories = array();
require_once(INC_PATH.'/functions_tsseo.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');




stdhead("Streaming ");
$lang->load ('streaming');
$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('<', '&lt;', $msg);
$msg = str_replace('>', '&gt;', $msg);
$msg = str_replace('javascript:', 'java script:', $msg);

return $msg;
}

begin_frame("streaming");

$res = mysql_query("SELECT COUNT(*) FROM divx");
$row = mysql_fetch_array($res);
$count = $row[0];

if ($act=="search") {
$perpage = 10;
}else {
$perpage = 10;
}

list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $_SERVER["PHP_SELF"] ."?" );

if (!$act or $act == "search") {

if ($id) {
$mess = "Press Play";
$res = mysql_query("SELECT * FROM divx WHERE id='$id'");
$arr = mysql_fetch_array($res);
$divx = $arr["url"];
$title = $arr["title"];
$image = $arr["image"];




}


 ?>

<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>

<table width="100%" height="300" align="center" border="0" cellpadding="0" cellspacing="">
<tr>
<td colspan="2" width="100%" valign="top" align="center">
<br>




<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="null" />
<param name="autoPlay" value="false" />
<param name="allowContextMenu" value="false" />
<param name="src" value="" />

<embed type="video/divx" src="" custommode="Stage6" width="720" height="394" mode="null" autoPlay="false" allowContextMenu="false" pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object></center>
<br><br>
</td>
</tr>
</table>

<br>

<fieldset class="td_search"><legend><b><?php echo $lang->streaming['streaming']; ?></b></legend>


<table width="100%" height="100%" align="center" border="0" cellpadding="0" cellspacing="0">
<tr><td width="100%" align="center">
<h1><div style="width:700px;text-align:center;"><?php echo $lang->streaming['codec']; ?> <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayerInstaller.exe"><font color=green><?php echo $lang->streaming['Windows']; ?></font></a> <?php echo $lang->streaming['pour']; ?> <a style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayer.dmg"><font color=green><?php echo $lang->streaming['Mac']; ?></font></a><br><font color=green><?php echo $lang->streaming['attention1']; ?> </font></center>
 <p><h2><center><h1><?php echo $lang->streaming['choix']; ?></h1></center></h2></p>     <br>

   <h2><?php echo $lang->streaming['dess']; ?><br><br>

    <?php echo $lang->streaming['paypal']; ?><a href=donate.php><font color=red>  <?php echo $lang->streaming['ici']; ?></font></a><?php echo $lang->streaming['mp']; ?><a href=sendmessage.php?receiver=1><font color=red><?php echo $lang->streaming['ici']; ?></font></a><br><br><font color="#0000CC"><?php echo $lang->streaming['count']; ?></font><br><br>

    <center><font size=5><?php echo $lang->streaming['rest']; ?>  <font color="#990000"><?=$CURUSER[droits_film], " " ?><?php echo $lang->streaming['Jetons']; ?></font></a></center>

 </h2>
   <center><a href="divxxxx.php"><font color=red size=5><?php echo $lang->streaming['triajout']; ?></font></a>   <br><br>  <a href="divxxxxx.php"><font color=red size=5><?php echo $lang->streaming['trialpa']; ?></font></a></center><br>

   </tr></td></table>
   </div>
  </fieldset>


<?php

 ?>
  



<br>

<fieldset class="td_search"><legend><b><?php echo $lang->streaming['scearch']; ?></b></legend>
<form name="divx_form_1" id="divx_form_1" method="post" action="brouwsestreaming.php">
<table width="100%" height="100%" align="center" border="0" cellpadding="0" cellspacing="0">
<tr><td width="100%" align="center">
<input type="text" name="recherche" value="<?php echo $recherche; ?>" maxlength='100' size='30'>
<input type="hidden" name="act" value="search">
<?php if($ajax_browse == "yes") { ?>
<input onclick="javascript:sndAjaxPost('brouwsestreaming.php','divx_form_1');" type="button" value="Search!">
<?php }else { ?>
<input type="submit" value="Search!">
<?php } ?>
</tr></td></table></form></fieldset>
<br>




<fieldset class="td_search"><legend><b><?php echo $lang->streaming['list']; ?></b></legend>




<table width="100%" height="100%" align="center" border="0" cellpadding="0" cellspacing="0">


   <body oncontextmenu="alert('Interdit de copier les éléments du site - Tous droits réservés.'); return false">






<tr>
<table border="0" cellpadding="0" cellspacing="0" width="100%">

    <tbody><tr>

        <td class="thead" style="padding: 10px 0pt 0pt;" align="center"><?php echo $lang->streaming['category']; ?></td>

        


<td class="thead" style="padding: 10px 0pt 0pt;" align="left">&nbsp;<?php echo $lang->streaming['name']; ?></td>

        

        <td class="thead" style="padding: 10px 0pt 0pt;" align="center"><?php echo $lang->streaming['ad']; ?></td>

        

    <td class="thead" style="padding: 10px 0pt 0pt;" align="center"><?php echo $lang->streaming['vu']; ?></td>
<td class="thead" style="padding: 10px 0pt 0pt;" align="center"><?php echo $lang->streaming['link']; ?></td>
    <td class="thead" style="padding: 10px 0pt 0pt;" align="center"><?php echo $lang->streaming['owner']; ?></td></tr> 


<?php
 if ($act=="search") {

$recherche = str_replace("+"," ",$_POST['recherche']);
$recherche = trim($recherche);
while(strpos($recherche," ")) {
$recherche = str_replace(" "," ",$recherche);
}
$recherche = MakeSQLSafe($recherche);
$res = mysql_query("SELECT COUNT(*) FROM divx");
while($arr = mysql_fetch_array($res))
$r2 = mysql_query("SELECT username FROM users WHERE id=$arr[owner]") or sqlerr();
            $a2 = mysql_fetch_assoc($r2);

$r4 = mysql_query("SELECT image FROM categoriess WHERE id=$arr[category]") or sqlerr();
            $a4 = mysql_fetch_assoc($r4);

{
    
$url = $arr["url"];

$title = $arr["title"];
$id = $arr["id"];

$divx = $arr["url"];

$image = $arr["image"];


$torrentid = $arr["torrentid"];
$torrentstreaming = $arr["torrentstreaming"];
$ddlstreaming = $arr["ddlstreaming"];
$added = $arr["added"];
$isnew = ($arr["added"] > $CURUSER["last_login"] ? '<img src="pic/newdownload.gif" class="inlineimg" alt="news" title="news" />' : '');
$isnew = $arr["isnew"];

$cat_desc = $arr["cat_desc"];






print ("<tr><td width=90%><b>-</b> <a href=\"".(($ajax_browse == 'yes') ? "javascript:sndAjaxReq('brouwsestreaming.php?id=".$id."');" : "brouwsestreaming.php.php?id=".$id."")."\">".$title."</a><br><br></td>");
  
}
print ('</tr>');

}else {
$res = mysql_query("SELECT * FROM divx ORDER BY id DESC $limit");
$row = mysql_num_rows($res);



$row = mysql_num_rows($res);
if($row !== 0){

while ($arr = mysql_fetch_array($res))
{
$r4 = mysql_query("SELECT image FROM categoriess WHERE id=$arr[category]") or sqlerr();
            $a4 = mysql_fetch_assoc($r4);

$r3 = mysql_query("SELECT * FROM categoriess WHERE type='c' and id=" .$arr[category]) or sqlerr();
            $a3 = mysql_fetch_assoc($r3);


$r2 = mysql_query("SELECT username FROM users WHERE id=$arr[owner]") or sqlerr();
            $a2 = mysql_fetch_assoc($r2);


$url = MakeHTMLSafe($arr["url"]);
$title = MakeHTMLSafe($arr["title"]);
$id = $arr["id"];

?>
<script type="text/javascript">
function doOpen(url){
var w = window.open(url,"Streaming","directories=no,width=635,height=362,toolbar=no,menubar=no,resizeable=no");
w.focus();
return false; //cancels href action
}
</script> 

<?php

echo '

 

<tr><td><img src="http:pic/categories/'.$a4['image'].'" alt="" title="" border="0"><img src="pic/categories/'.$a3['image'].'-c-'.$a3['id'].'" alt="" title="" border="0"></td><td>  <a href="detailvod.php?id='.$arr['id'].'">'.$arr['title'].' </a> </td><td>ajouter le '. $arr["added"].'   </td> <td>'.$a1['CNT'].'</td> <td style="padding: 10px 0pt 0pt;" align="center"><a target="_new" href="details.php?id='.$arr['torrentstreaming'].'" alt="telecharger en torrent" title="telecharger en torrent" ><span style="color: rgb(0, 0, 0);"><img src="http://www.bvlist.com/images/icon_download.gif"></span></a>  <a target="_new" href="detailddl.php?id='.$arr['ddlstreaming'].'" alt="telecharger en megaupload" title="telecharger en megaupload" ><span style="color: rgb(0, 0, 0);"><img src="http://www.bvlist.com/images/telecharger-icone.png" height="16" width="16"></span></a>  <a target="_new" href="'.$arr['allocine'].'" alt="lien allocine" title="lien allocine" ><span style="color: rgb(0, 0, 0);"><img src="http://www.bvlist.com/images/pins_allocine.png" ></span></a></td><td style="padding: 10px 0pt 0pt;" align="center">'.$a2[username].'</td>
 ';




}

print ('</tr>');

}else{
echo "<tr><td align=center><font color=red><b>Pas de Videos !</b></font></td></tr>";
}
}
echo "</tbody></table>";

if($row !== 0)
echo $pagerbottom;

echo "</fieldset><br>";
}


 ?>






</td></tr>
</table></form><br>
<?php
 {

$id = MakeSQLSafe(0 + $_GET['id']);
echo "<br><br><center><br><br><a href=\"".(($ajax_browse == 'yes') ? "javascript:sndAjaxReq('brouwsestreaming.php');" : "brouwsestreaming.php")."\"><H1><font color=red>REVENIR A LA PREMIERE PAGE</font></H1></a></center>";
}

end_frame();

stdfoot();
 ?>

Last edited by turktiger; 17th May 2011 at 09:48.
Reply With Quote