Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #11  
Old 2nd May 2011, 23:36
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default [TSSE 5.6] Streaming
I work a little above all was not yet finished
Click image for larger version

Name:	Capture.jpg
Views:	60
Size:	228.1 KB
ID:	2869Click image for larger version

Name:	Capture-1.jpg
Views:	55
Size:	255.6 KB
ID:	2870Click image for larger version

Name:	Capture-2.jpg
Views:	43
Size:	223.9 KB
ID:	2871Click image for larger version

Name:	Capture-3.jpg
Views:	41
Size:	245.5 KB
ID:	2872
Attached Files
File Type: gz mod streaming.tar.gz (5.67 MB, 118 views)
Reply With Quote
The Following 2 Users Say Thank You to DARCK For This Useful Post:
Fynnon (3rd May 2011), smoky28 (3rd May 2011)
  #12  
Old 3rd May 2011, 12:05
smoky28's Avatar
smoky28 smoky28 is offline
Senior Member
 
Join Date: Aug 2010
Hungary
Posts: 82
Red face
my site shoutbox/outpoutinfo.php problem
country gif added
__________________
Sky-Tech Developer Team Hungary

Reply With Quote
  #13  
Old 3rd May 2011, 13:24
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Wink eng pleaes as im eng need it sorting
Quote:
Originally Posted by DARCK View Post
I work a little above all was not yet finished
ok need it in eng please asp and a read a read me doc as well as to where to put stuff so on
Reply With Quote
  #14  
Old 3rd May 2011, 19:58
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default show userdetail streaming uploader
edit the userdetails.lang.php

add
PHP Code:
'torrentstats10'    =>     'streaming uploader'
edit the userdetail.php

before
PHP Code:
                  <a href="#showcontents" onclick="TSAjaxRequest(\'showuploaded\');">';
    echo $lang->userdetails['
torrentstats1'];
    echo '
</a>
                                    <
br /> 
add
PHP Code:
                                                                       <a href="#showcontents" onclick="TSAjaxRequest(\'showstream\');">';
    echo $lang->userdetails['
torrentstats10'];
    echo '
</a>
                                    <
br /> 
edit the ts_ajax2.php

before
PHP Code:
 if ((isset ($_POST['what']) AND $_POST['what'] == 'showuploaded'))
  {
    
$ultorrentscount tsrowcount ('id''torrents''owner=' $userid);
    if ((
$ultorrentscount AND $ultorrentscount))
    {
      
$r mysql_query ('SELECT t.id, t.name, t.seeders, t.leechers, t.times_completed, t.category, t.added, t.anonymous, t.owner, c.name as categoryname, c.image FROM torrents t INNER JOIN categories c ON (t.category=c.id) WHERE t.owner=' sqlesc ($userid) . ' ORDER BY t.added DESC');
      
$torrents '    
        <table class=\'main\' border=\'1\' cellspacing=\'0\' cellpadding=\'0\' width=\'100%\'>
'<tr><td class=\'colhead\' align=\'center\' width=\'36\'>' $lang->global['type'] . '</td><td class=\'colhead\' align=\'left\' style=\'padding: 0px 0px 0px 2px;\'>' $lang->global['name'] . '</td><td class=\'colhead\' align=\'center\'>' $lang->global['snatched'] . '</td><td class=\'colhead\' align=\'center\'><img src=\'' $BASEURL '/' $pic_base_url 'seeders.gif\'></td><td class=\'colhead\'  align=\'center\'><img src=\'' $BASEURL '/' $pic_base_url 'leechers.gif\'></td></tr>
'
;
      while (
$a mysql_fetch_array ($r))
      {
        
$orj_name_ $a['name'];
        
$t_added my_datee ($dateformat$a['added']) . ' ' my_datee ($timeformat$a['added']);
        
$a['name'] = htmlspecialchars_uni ($a['name']);
        
$cat '<img src="' $BASEURL '/' $pic_base_url $table_cat '/' $a['image'] . ('' '" alt="' $a['categoryname'] . '" title="' $a['categoryname'] . '">');
        
$torrents .= '' '<tr><td align=\'center\' width=\'36\' heigth=\'48\'>' $cat '</td><td align=\'left\' style=\'padding: 0px 0px 0px 2px;\'><a href=\'' $BASEURL '/details.php?id=' $a['id'] . '\' alt=\'' $a['name'] . '\' title=\'' $a['name'] . '\'><b>' cutename ($orj_name_80) . ('' '</b></a><br />' $t_added '</td>') . ('' '<td align=\'center\'><a href=\'' $BASEURL '/viewsnatches.php?id=') . $a['id'] . '\'><b>' ts_nf ($a['times_completed']) . ' x </b>' $lang->global['times'] . '</a></td><td align=\'center\'>' ts_nf ($a['seeders']) . '</td><td align=\'center\'>' ts_nf ($a['leechers']) . '</td></tr>
'
;
      }

      
$torrents .= '</table>';
    }
    else
    {
      
$torrents $lang->global['nothingfound'];
    }

    
show_msg ($torrents);
    exit ();
    return 
1;
  } 
add
PHP Code:
 if ((isset ($_POST['what']) AND $_POST['what'] == 'showstream'))
  {
    
$uldivxcount tsrowcount ('id''divx''owner=' $userid);
    if ((
$uldivxcount AND $uldivxcount))
    {
      
$r mysql_query ('SELECT t.id, t.title, t.category, t.added,  t.owner, c.name as categoryname, c.image FROM divx t INNER JOIN categories c ON (t.category=c.id) WHERE t.owner=' sqlesc ($userid) . ' ORDER BY t.added DESC');
      
$divx '    
        <table class=\'main\' border=\'1\' cellspacing=\'0\' cellpadding=\'0\' width=\'100%\'>
'<tr><td class=\'colhead\' align=\'center\' width=\'36\'>' $lang->global['type'] . '</td><td class=\'colhead\' align=\'left\' style=\'padding: 0px 0px 0px 2px;\'>' $lang->global['name'] . '</td></tr>
'
;
      while (
$a mysql_fetch_array ($r))
      {
        
$orj_name_ $a['title'];
        
$t_added my_datee ($dateformat$a['added']) . ' ' my_datee ($timeformat$a['added']);
        
$a['title'] = htmlspecialchars_uni ($a['title']);
        
$cat '<img src="' $BASEURL '/' $pic_base_url $table_cat '/' $a['image'] . ('' '" alt="' $a['categoryname'] . '" title="' $a['categoryname'] . '">');
        
$divx .= '' '<tr><td align=\'center\' width=\'36\' heigth=\'48\'>' $cat '</td><td align=\'left\' style=\'padding: 0px 0px 0px 2px;\'><a href=\'' $BASEURL '/detailvod.php?id=' $a['id'] . '\' alt=\'' $a['name'] . '\' title=\'' $a['name'] . '\'><b>' cutename ($orj_name_80) . ('' '</b></a><br />' $t_added '</td>') . ('' '') .  '<b></tr>
'
;
      }

      
$divx .= '</table>';
    }
    else
    {
      
$divx $lang->global['nothingfound'];
    }

    
show_msg ($divx);
    exit ();
    return 
1;
  } 


Click image for larger version

Name:	Capture-4.jpg
Views:	62
Size:	252.0 KB
ID:	2875

Quote:
Originally Posted by xblade View Post
ok need it in eng please asp and a read a read me doc as well as to where to put stuff so on
Quote:
Originally Posted by xblade View Post
ok need it in eng please asp and a read a read me doc as well as to where to put stuff so on
create streaming.lang.php

PHP Code:
<?php
/*
+--------------------------------------------------------------------------
|   TS Special Edition v.5.7 
|   ========================================
|   by xam
|   (c) 2005 - 2008 Template Shares Services
|   http://templateshares.net
|   ========================================
|   Web: http://templateshares.net
|   Time: April 7, 2009, 2:44 pm
|   Signature Key: TSSE451412009
|   Email: contact@templateshares.net
|   TS SE IS NOT FREE SOFTWARE!
+---------------------------------------------------------------------------
*/
/* 
TS Special Edition English Language File
Translation by xam Version: 0.1

*/

if(!defined('IN_TRACKER'))
  die(
'Hacking attempt!');

// streaming.php
$language['streaming'] = array
(
    
'upload'                =>'upload',
    
'streaming'                =>'streaming',
    
'descr'                =>'details pour le streaming',
    
'added'                =>'ajouter',
    
'owner'                =>'uploader'
);
?>
edit the detailvod.php

after
PHP Code:
stdhead("Streaming "); 
add
PHP Code:
$lang->load  ('streaming'); 
search
PHP Code:
<td style="padding-left: 5px;"  class="subheader" valign="top"  width="147">uploader</td
remplace by
PHP Code:
<td  style="padding-left: 5px;" class="subheader" valign="top"  width="147">'.$lang->streaming['owner'].'</td

Last edited by DARCK; 3rd May 2011 at 20:51.
Reply With Quote
  #15  
Old 3rd May 2011, 21:13
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default thax you for your help
Thax for your time on this one i wish there was more peeps like your self helping out .thax
Reply With Quote
  #16  
Old 4th May 2011, 11:38
smoky28's Avatar
smoky28 smoky28 is offline
Senior Member
 
Join Date: Aug 2010
Hungary
Posts: 82
Question
problem streaming localhost

Click the image to open in full size.
__________________
Sky-Tech Developer Team Hungary

Reply With Quote
  #17  
Old 4th May 2011, 18:33
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default smoky
add jetons
edit admin/edituser.php

search

PHP Code:
print '<tr><td class=rowhead>Invites:</td><td  colspan=2 align=left><input type="text" name="invites" size="50"  id="specialboxn" value="' . (int)$userdata['invites'] . ('' '" ' .  $othervalue '/></td></tr>
'
); 
added after

PHP Code:
 print '<tr><td class=rowhead>Jetons:</td><td  colspan=2 align=left><input type="text" name="droits_film"  size="50" id="specialboxn" value="' . (int)$userdata['droits_film'] .  ('' '" ' $othervalue '/></td></tr>
'
); 
search

PHP Code:
 getvar (array ('username''password''email''usergroup',  'title''avatar''signature''donor''warned''warnlength',  'warnpm''supportlang''supportfor''addcomment''enabled',  'seedbonus''invites''uploaded''downloaded',  'reset_timeswarned')); 
replaced by

PHP Code:
   getvar (array ('username''password''email''usergroup',  'title''avatar''signature''donor''warned''warnlength',  'warnpm''supportlang''supportfor''addcomment''enabled',  'seedbonus''invites''uploaded''downloaded''reset_timeswarned',  'droits_film')); 


Bump: include /languages /english/streaming.lang.php

PHP Code:
<?php
/*
+--------------------------------------------------------------------------
|   TS Special Edition v.5.7 
|   ========================================
|   by xam
|   (c) 2005 - 2008 Template Shares Services
|   http://templateshares.net
|   ========================================
|   Web: http://templateshares.net
|   Time: April 7, 2009, 2:44 pm
|   Signature Key: TSSE451412009
|   Email: contact@templateshares.net
|   TS SE IS NOT FREE SOFTWARE!
+---------------------------------------------------------------------------
*/
/* 
TS Special Edition English Language File
Translation by xam Version: 0.1

*/

if(!defined('IN_TRACKER'))
  die(
'Hacking attempt!');

// streaming.php
$language['streaming'] = array
(
      
'ici'                =>'ici ',
      
'codec'                =>'Pas d\'images? Téléchargez DivX Web Player pour ',
      
'pour'                =>'ou pour',
      
'attention1'                =>'Vous devrez redémarrer votre navigateur aprčs avoir installé',
      
'choix'                =>'Veuillez choisir un film',
      
'Mac'                =>'Mac',
      
'Windows'                =>'Windows',
      
'dess'                =>'Ce service vous permet de regarder sans téléchargement une sélection de films, séries, spectacles et autre émission de TV.
Chaque sélection sera décomptée de votre crédit de films dčs le clic sur l\'image de votre choix, que vous le regardiez ou non.
Vous pourrez cependant regarder le film déjŕ visionné autant de fois que vous le voulez ŕ l\'avenir sans ętre débité en jeton et ce sans limite de durée( tant qu\'il sera présent dans notre base streaming ).'
,
 
      
'paypal'                =>'Pour vous procurez des jetons via paypal cliquez',
      
'mp'                =>'Vous devrez envoyez un MP pour mettre vos jetons a jour.',
      
'scearch'                =>'Chercher une video',
      
'Jetons'                =>'Jetons',
      
'retour'                =>'REVENIR A LA PREMIERE PAGE',
      
'list'                =>'Liste des videos'
      
'rest'                =>'Il vous reste'
      
'triajout'                =>'Triés par ajouts'
      
'trialpa'                =>'Triés par ordre alphabétiques'
      
'votefff'                =>'fois(s)'
      
'vote'                =>'Vote',  
      
'category'                =>'Type',
      
'link'                =>'lien',    
      
'name'                =>'Nom du Streaming',
      
'streaming'                =>'Streaming',
      
'size'                =>'Taille',
      
'vu'                =>'Vu',    
      
'wiev'                =>'Voir',
      
'hit'                =>'Hits',
      
'descr'                =>'Details pour le streaming',
      
'smplus '                =>'(Plus de smilies) ',
      
'Smilies '                =>'Smilies ',    
      
'titlestr'                =>'Titre du Streaming :',
      
'linkURL'                =>'Lien URL du film.avi :',
      
'linkIMAG'                =>'Image :',
      
'idtorrent'                =>'torrentid :',
      
'mega'                =>'megauploadid :',
      
'allo'                =>'lien allocine :',
      
'ex1'                =>'EX: http://lateambox.dyndns.org/divx/V.2009.S02E09.FASTSUB.VOSTFR.HDTV.XviD-RAW.avi',
      
'ex2'                =>'EX: http://images.allocine.fr/r_160_214/b_1_cfd7e1/medias/nmedia/18/77/96/35/19701393.jpg',
      
'ex3'                =>'EX: 45',
      
'ex4'                =>'EX: 3',
      
'ex5'                =>'EX: http://www.allocine.fr/film/fichefilm_gen_cfilm=129477.html',
      
'ad'                =>'Ajouter',
      
'descr2'                =>'Description:',
      
'test'                =>'test',
      
'added'                =>'Ajouter',
      
'count'                =>'Un film streaming coute 1 Jeton',
      
'owner'                =>'Uploader'
);
?>
brouwsestreaming.php
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 $_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($_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();
 
?>
detailvod.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');
stdhead("Streaming ");
$lang->load ('streaming');
$id $_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("Information sur le streaming");

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

if (
$act=="search") {
$perpage 1;


          }else {

$perpage 1;
          }

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"];
$category $arr["category"];
$torrentstreaming $arr["torrentstreaming"];
$added $arr["added"];
$isnew = ($arr["added"] > $CURUSER['last_login'] ? '<img src="'.$BASEURL.'/'.$pic_base_url.'newdownload.gif" class="inlineimg" alt="'.$lang->browse['newtorrent'].'" title="'.$lang->browse['newtorrent'].'" />' '');
$ddlstreaming $arr["ddlstreaming"];
          }
?>

<script type="text/javascript">
    //<![CDATA[
    
        var ncode_imageresizer_warning_small = "Cliquez sur cette barre pour afficher l'image complčte.";
        var ncode_imageresizer_warning_filesize = "Cette image a été redimensionnée. Cliquez sur cette barre pour afficher l'image complčte. L'image originale est de taille %1$sx%2$s et poids %3$sKB.";
        var ncode_imageresizer_warning_no_filesize = "Cette image a été redimensionnée. Cliquez sur cette barre pour afficher l'image complčte. L'image originale est de taille %1$sx%2$s.";
        var ncode_imageresizer_warning_fullsize = "Cliquez sur cette barre pour afficher la petite image.";
    //]]>
</script>

<script type="text/javascript" src="/scripts/ncode_imageresizer.js?v=5.6"></script>

<style type="text/css">
    .ncode_imageresizer_warning
    {
        display: none;
    }
</style>
<script type="text/javascript" src="scripts/floatbox/floatbox.js?v=5.6"></script>
<link rel="stylesheet" href="scripts/floatbox/floatbox.css" type="text/css" media="screen" />
<script type="text/javascript">
    //<![CDATA[
    function setFloatboxOptions()
    {
        fb.resizeDuration = 2.5;
        fb.imageFadeDuration = 2.5;
        fb.overlayFadeDuration = 0;
        fb.navType = "both";
    };
    //]]>
</script>

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




<?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 * FROM divx WHERE id='$id'");
while(
$arr mysql_fetch_array($res))
{


$ddlstreaming $arr["ddlstreaming"];
$added $arr["added"];
$isnew = ($arr["added"] > $CURUSER["last_login"] ? '<img src="pic/newdownload.gif" class="inlineimg" alt="news" title="news" />' '');
$torrentid $arr["torrentid"];
$image $arr["image"];
$url $arr["url"];
$category $arr["category"];
$descr $arr["descr"];
$title $arr["title"];
$id $arr["id"];
print (
"");
}
print (
'</tr>');

}else {
$res mysql_query("SELECT * FROM divx WHERE id='$id'");
$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);

$row mysql_num_rows($res);

if(
$row !== 0){

while (
$arr mysql_fetch_array($res))

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

  
if($CURUSER)
{
$query="SELECT divx.id,divx.image,count(divx_usage.divxid) as CNT FROM `divx_usage` LEFT JOIN divx ON divxid = divx.id GROUP BY `divxid` ORDER BY CNT DESC LIMIT 17";
$result=mysql_query($query);
$num mysql_num_rows($result);

  }

    require(
'ratings/includes/rating_functions.php');

    
$rating show_rating($id$CURUSER['id']);





echo 
'
<div id="details" class="yui-navset yui-navset-top">
<ul class="yui-nav">
<div class="yui-content">
<div style="display: block;" id="details">

<table border="0" cellpadding="4" cellspacing="0" width="95%">
<tbody><tr>
<td colspan="3" class="thead"> '
.$arr['title'].'</td>
</tr>

<tr>
<td rowspan="9" align="center" valign="top" width="175"><img src="'
.$arr['image'].'" width="175" height="175" class="glossy"</a><br><br>    
<div class="tsbox" id="Rating_6">'
.$rating.'</div>
</td>  

<td style="padding-left: 5px;" class="subheader" valign="top" width="147">'
.$lang->streaming['wiev'].'</td>
<td style="padding-left: 5px;" valign="top" width="430"><a href="streaming.php?id='
.$arr['id'].'" target="_blank" onclick="return doOpen(this.href)">    <img src="pic/streaming.png"></a></td>
</tr>

<tr>
<td style="padding-left: 5px;" class="subheader" valign="top" width="147">'
.$lang->streaming['added'].'</td>
<td style="padding-left: 5px;" valign="top">'
.$arr['added'].' </td>
</tr>

<tr>
<td style="padding-left: 5px;" class="subheader" valign="top" width="147">'
.$lang->streaming['category'].'</td>
<td style="padding-left: 5px;" valign="top"><img src="http:pic/categories/'
.$a4['image'].'" alt="" title="" border="0"></td>
</tr>
    
    

<tr>
<td style="padding-left: 5px;" class="subheader" valign="top" width="147">'
.$lang->streaming['size'].'</td>
<td style="padding-left: 5px;" valign="top">'
.$arr['size'].'</td>
</tr>

<tr>
<td style="padding-left: 5px;" class="subheader" valign="top" width="147">'
.$lang->streaming['owner'].'</td>
<td style="padding-left: 5px;" valign="top">'
.$a2[username].'</td>
</tr>
    
<tr>
<td style="padding-left: 5px;" class="subheader" valign="top" width="147">'
.$lang->streaming['vu'].'</td>
<td style="padding-left: 5px;" valign="top">'
.$arr['count'].'<a href=""></a> '.$lang->streaming['votefff'].'</td>
</tr>

<tr>
<td style="padding-left: 5px;" class="subheader" valign="top" width="147">'
.$lang->streaming['hit'].'</td>
<td style="padding-left: 5px;" valign="top"></td>
</tr>

<br>

<table border="0" cellpadding="5" cellspacing="0" width="95%">
<tbody><tr>
<td class="thead">'
.$lang->streaming['descr'].' '.$arr['title'].'</td>
</tr>

<tr>
<td>  '
.format_comment($arr['descr']).'
</td>
</tr>

<br>
</tbody></table>
<br>
<br />
</div>
</div>'
;


}

print (
'');

}else{
echo 
"<tr><td align=center><font color=red><b>'.$lang->streaming['descr'].'Pas de Videos !</b></font></td></tr>";
}
}
echo 
"";
if(
$row !== 0)
echo 
"";
}
?>
<?php
{
$id MakeSQLSafe($_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();

?>


uploaddivx.php

PHP Code:
<?php
  
require "global.php";
 
gzip ();
  
dbconn ();
  
loggedinorreturn ();
  
maxsysop ();
  
parked ();
  
define ('U_VERSION''2.0 by xam');
  if ((
$usergroups['canstream'] == 'no' OR $usergroups['canstream'] != 'yes'))
  {
    
print_no_permission ();
    exit ();
  }

stdhead ('streaming add');
$lang->load ('streaming');
?>

<td class="tablea" style="width:120px;">
</td>

<form method="POST" action="add.php">
<div class=""></div>
<div id="">
<div class="">
<!-- begin editor -->
<table class="tborder" border="0" cellpadding="4" cellspacing="1" width="40%">
<tbody><tr>
<td class="thead" colspan="2">
<strong>Uploader un STREAMING </strong>
            </td>
        </tr>
        <tr>

            <td class="subheader" colspan="2">
            <?php echo $lang->streaming['test']; ?>
            </td>
        </tr>

        
        <tr>
            <td class="trow2" width="20%">
                <strong><?php echo $lang->streaming['titlestr']; ?></strong>
            </td>
            <td class="trow2">
                <input id="specialboxg" name="title" size="40" maxlength="85" value="" tabindex="1" type="text">
            </td>
        </tr>

        

        <tr>
            <td class="trow2" valign="top">
                <strong><?php echo $lang->streaming['descr2']; ?></strong>
                <br>
                <div style="margin: auto;">
                <table class="tborder" border="0" cellpadding="4" cellspacing="1" width="150">
                    <tbody><tr>
                        <td class="thead">

                            <span class="smalltext"><strong><?php echo $lang->streaming['Smilies ']; ?></strong> <a href="javascript:clickableEditor.openGetMoreSmilies('clickableEditor');"><?php echo $lang->streaming['smplus ']; ?></a></span>
                        </td>
                    </tr>
                    <tr>
                        <td class="trow1">
                            <table id="clickable_smilies" align="center" border="0" cellpadding="2" cellspacing="0" width="100%">

                                
            <tbody><tr><td class="none">
                <img style="cursor: pointer;" src="pic/smilies/ras.gif" class="smilie" alt=":ras:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/rolleyes.gif" class="smilie" alt=":rolleyes:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/sad.gif" class="smilie" alt=":(" border="0">
            </td>

            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/sick.gif" class="smilie" alt=":sick:" border="0">
            </td>
            </tr><tr>
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/sleep.gif" class="smilie" alt=":sleep:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/smart.gif" class="smilie" alt=":smart:" border="0">

            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/smartass.gif" class="smilie" alt=":smartass:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/smile1.gif" class="smilie" alt=":)" border="0">
            </td>
            </tr><tr>
            <td class="none">

                <img style="cursor: pointer;" src="pic/smilies/smile2.gif" class="smilie" alt=":smile2:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/sneaky.gif" class="smilie" alt=":sneaky:" border="0">
            </td>
            
            <td class="none">
                                 <img style="cursor: pointer;" src="pic/smilies/tongue.gif" class="smilie" alt=":P" border="0">
            </td>
            
            <td class="none">

                <img style="cursor: pointer;" src="pic/smilies/unsure.gif" class="smilie" alt=":unsure:" border="0">
            </td>
            </tr><tr>
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/w00t.gif" class="smilie" alt=":w00t:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/wacko.gif" class="smilie" alt=":wacko:" border="0">
            </td>

            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/wave.gif" class="smilie" alt=":wave:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/weep.gif" class="smilie" alt=":weep:" border="0">
            </td>
            </tr><tr>
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/weirdo.gif" class="smilie" alt=":weirdo:" border="0">

            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/whistle.gif" class="smilie" alt=":whistle:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/wink.gif" class="smilie" alt=";)" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/yes.gif" class="smilie" alt=":yes:" border="0">

            </td>
            </tr><tr>
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/yikes.gif" class="smilie" alt=":yikes:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/yucky.gif" class="smilie" alt=":yucky:" border="0">
            </td>
            
            <td class="none">

                <img style="cursor: pointer;" src="pic/smilies/alien.gif" class="smilie" alt=":alien:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/angel.gif" class="smilie" alt=":angel:" border="0">
            </td>
            </tr><tr>
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/angry.gif" class="smilie" alt=":angry:" border="0">
            </td>

            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/arrow.gif" class="smilie" alt=":arrow:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/arrow2.gif" class="smilie" alt=":arrow2:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/blink.gif" class="smilie" alt=":blink:" border="0">
            </td>

            </tr><tr>
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/blush.gif" class="smilie" alt=":blush:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/bow.gif" class="smilie" alt=":bow:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/boxing.gif" class="smilie" alt=":boxing:" border="0">

            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/cake.gif" class="smilie" alt=":cake:" border="0">
            </td>
            </tr><tr>
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/cap.gif" class="smilie" alt=":cap:" border="0">
            </td>
            
            <td class="none">

                <img style="cursor: pointer;" src="pic/smilies/chef.gif" class="smilie" alt=":chef:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/cigar.gif" class="smilie" alt=":cigar:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/clap.gif" class="smilie" alt=":clap:" border="0">
            </td>
            </tr><tr>

            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/clap2.gif" class="smilie" alt=":clap2:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/closedeyes.gif" class="smilie" alt=":closedeyes:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/clover.gif" class="smilie" alt=":clover:" border="0">
            </td>

            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/clown.gif" class="smilie" alt=":clown:" border="0">
            </td>
            </tr><tr>
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/confused.gif" class="smilie" alt=":confused:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/cool1.gif" class="smilie" alt=":cool1:" border="0">

            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/cool2.gif" class="smilie" alt=":cool2:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/cowboy.gif" class="smilie" alt=":cowboy:" border="0">
            </td>
            </tr><tr>
            <td class="none">

                <img style="cursor: pointer;" src="pic/smilies/crazy.gif" class="smilie" alt=":crazy:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/crockett.gif" class="smilie" alt=":crockett:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/cry.gif" class="smilie" alt=":cry:" border="0">
            </td>
            
            <td class="none">

                <img style="cursor: pointer;" src="pic/smilies/cylon.gif" class="smilie" alt=":cylon:" border="0">
            </td>
            </tr><tr>
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/dawgie.gif" class="smilie" alt=":dawgie:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/detective.gif" class="smilie" alt=":detective:" border="0">
            </td>

            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/devil.gif" class="smilie" alt=":devil:" border="0">
            </td>
            
            <td class="none">
                <img style="cursor: pointer;" src="pic/smilies/dumbells.gif" class="smilie" alt=":dumbells:" border="0">
            </td>
                
                            </tr></tbody></table>
                        </td>
                    </tr>

                </tbody></table>
                </div>
            </td>        
            <td class="trow2"><textarea id="message" name="descr" rows="20" cols="75" tabindex="2"></textarea>
                        <script type="text/javascript">
            var imagepath = "pic/"
            var usephptag = "yes"
        </script>
        
        <script type="text/javascript" src="scripts/prototype.lite.js?v=5.6"></script>
        <script type="text/javascript" src="scripts/general.js?v=5.6"></script>
        <script type="text/javascript">
            
        var editor_language = {
        title_bold: "Insert bold text",
        title_italic: "Insert italic text",
        title_underline: "Insert underlined text",
        title_left: "Align text to the left",
        title_center: "Align text to the center",
        title_right: "Align text to the right",
        title_justify: "Justify text",
        title_numlist: "Insert numbered list",
        title_bulletlist: "Insert bulleted list",
        title_image: "Insert image",
        title_hyperlink: "Insert hyperlink",
        title_email: "Insert email address",
        title_quote: "Insert quoted text",
        title_code: "Insert formatted code",
        title_swf: "Insert swf",
                title_php: "Insert formatted PHP code",
        title_sql: "Insert formatted SQL code",
        title_youtube: "Add an in-line Youtube Video clip",
        title_imdb: "Add IMDB frame window",
        title_close_tags: "Close any open MyCode tags that you currently have open",
        enter_list_item: "Enter a list item. Click cancel or leave blank to end the list.",
        enter_url: "Please enter the URL of the website.",
        enter_url_title: "Optionally, you can also enter a title for the URL.",
        enter_email: "Please enter the email address you wish to insert.",
        enter_email_title: "Optionally, you may also enter a title for the email address.",
        enter_image: "Please enter the remote URL of the image you wish to insert.",
        size_xx_small: "XX Small",
        size_x_small: "X Small",
        size_small: "Small",
        size_medium: "Medium",
        size_x_large: "X Large",
        size_xx_large: "XX Large",
        color_white: "White",
        color_black: "Black",
        color_red: "Red",
        color_yellow: "Yellow",
        color_pink: "Pink",
        color_green: "Green",
        color_orange: "Orange",
        color_purple: "Purple",
        color_blue: "Blue",
        color_beige: "Beige",
        color_brown: "Brown",
        color_teal: "Teal",
        color_navy: "Navy",
        color_maroon: "Maroon",
        color_limegreen: "Lime Green",
        font: "Font",
        size: "Text Size",
        color: "Text Color",
        undo: "Undo",
        redo: "Redo"
    };
        </script>
        <script type="text/javascript" src="scripts/editor.js?v=5.6"></script>
        <script type="text/javascript">    
            var clickableEditor = new messageEditor("message", {lang: editor_language, rtl: 0});
            clickableEditor.bindSmilieInserter("clickable_smilies");
        </script>

        <!-- end editor -->
            </td>
        
        </tr>
<tr>
            <td class="trow2" width="20%">
                <strong><?php echo $lang->streaming['linkURL']; ?></strong>
            </td>
            <td class="trow2">
                <input id="specialboxg" name="url" size="40" maxlength="85" value="" tabindex="1" type="text"></div><br>

<b><font color="red"><?php echo $lang->streaming['ex1']; ?> </font></font></b>
            
            </td>
        </tr>

<tr>
                <td class="trow2" with="20%">
                    <strong><?php echo $lang->streaming['category']; ?></strong>
                </td>
                <td class="trow2">
                    <select name="category" id="specialboxn">
    
            <option value="10" style="color: red;">3D</option>
            
            
            <option value="1" style="color: red;">APPLICATION</option>

            
                <option value="33">&nbsp;&nbsp;|-- Autre</option>
                
                <option value="3">&nbsp;&nbsp;|-- Linux</option>
                
                <option value="32">&nbsp;&nbsp;|-- Mac</option>
                
                <option value="4">&nbsp;&nbsp;|-- Windows</option>
                
            
            <option value="22" style="color: red;">CAM TS SCREENER</option>
            
                <option value="39">&nbsp;&nbsp;|-- R5</option>

                
            
            <option value="13" style="color: red;">DESSINS ANIMES</option>
            
            
            <option value="14" style="color: red;">DOCUMENTAIRE</option>
            
            
            <option value="18" style="color: red;">DVD SCREENER</option>
            
            
            <option value="15" style="color: red;">DVDR</option>
            
            
            <option value="16" style="color: red;">DVDRIP</option>
            
                <option value="35">&nbsp;&nbsp;|-- Action</option>

                
                <option value="36">&nbsp;&nbsp;|-- Aventure</option>
                
                <option value="37">&nbsp;&nbsp;|-- Drame</option>
                
                <option value="38">&nbsp;&nbsp;|-- FantastiqueSci-Fi</option>
                
            
            <option value="17" style="color: red;">DVDRIP VOSTFR</option>
            
            
            <option value="19" style="color: red;">EBOOK</option>
            
            
            <option value="40" style="color: red;">HD</option>

            
                <option value="41">&nbsp;&nbsp;|-- 1080p</option>
                
                <option value="42">&nbsp;&nbsp;|-- 720P</option>
                
            
            <option value="11" style="color: red;">IMAGES</option>
            
            
            <option value="23" style="color: red;">INCLASSABLE</option>
            
            
            <option value="20" style="color: red;">JEUX</option>
            
                <option value="26">&nbsp;&nbsp;|-- PS3</option>

                
                <option value="25">&nbsp;&nbsp;|-- Wii</option>
                
                <option value="24">&nbsp;&nbsp;|-- Xbox360</option>
                
            
            <option value="21" style="color: red;">MUSIQUES</option>
            
                <option value="29">&nbsp;&nbsp;|-- Clip</option>
                
                <option value="30">&nbsp;&nbsp;|-- mp3</option>
                
                <option value="31">&nbsp;&nbsp;|-- Piste Son</option>

                
                <option value="28">&nbsp;&nbsp;|-- wave</option>
                
                <option value="27">&nbsp;&nbsp;|-- wma</option>
                
            
            <option value="5" style="color: red;">SERIES</option>
            
                <option value="8">&nbsp;&nbsp;|-- vf</option>
                
                <option value="6">&nbsp;&nbsp;|-- vo</option>
                
                <option value="7">&nbsp;&nbsp;|-- vost</option>

                
            
            <option value="9" style="color: red;">Sexy</option>
            
                <option value="34">&nbsp;&nbsp;|-- Sexy</option>
                
            
            <option value="12" style="color: red;">SPECTACLE</option>
            
            </select>
                </td>
            </tr>

<tr>
            <td class="trow2" width="20%">
                <strong><?php echo $lang->streaming['linkIMAG']; ?></strong>
            </td>
            <td class="trow2">
                <input id="specialboxg" name="image" size="40" maxlength="85" value="" tabindex="1" type="text"></div><br>

<b><font color="red"><?php echo $lang->streaming['ex2']; ?></font></font></b>
            </td>
        </tr>

<tr>
            <td class="trow2" width="20%">
                <strong><?php echo $lang->streaming['idtorrent']; ?> </strong>
            </td>
            <td class="trow2">
                <input id="specialboxg" name="torrentstreaming" size="40" maxlength="85" value="" tabindex="1" type="text"></div><br>

<b><font color="red"><?php echo $lang->streaming['ex3']; ?></font></font></b>
            </td>
        </tr>

<tr>
            <td class="trow2" width="20%">
                <strong><?php echo $lang->streaming['mega']; ?></strong>
            </td>
            <td class="trow2">
                <input id="specialboxg" name="ddlstreaming" size="40" maxlength="85" value="" tabindex="1" type="text"></div><br>

<b><font color="red"><?php echo $lang->streaming['ex4']; ?> </font></font></b>
            </td>
        </tr>
<tr>
            <td class="trow2" width="20%">
                <strong><?php echo $lang->streaming['allo']; ?></strong>
            </td>
            <td class="trow2">
                <input id="specialboxg" name="allocine" size="40" maxlength="85" value="" tabindex="1" type="text"></div><br>

<b><font color="red"><?php echo $lang->streaming['ex5']; ?></font></font></b>
            </td>
        </tr>

<tr>
<td colspan="2" class="trow2" align="center">


<input type="submit" value="<?php echo $lang->streaming['ad']; ?>" name="envoyer">
</td>
        </tr>
        
        
        </tbody></table>
        <br>
        
        

    


    </div>



    </div>







</form>






<?php 


?>




<?
 stdfoot 
('');
?>
Attached Thumbnails
Capture-55.jpg  

Last edited by DARCK; 6th May 2011 at 19:53. Reason: added
Reply With Quote
The Following User Says Thank You to DARCK For This Useful Post:
smoky28 (6th May 2011)
  #18  
Old 16th May 2011, 19:57
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default Help
PHP Code:
error

SQL
-lekérdezés:   
ALTER  TABLE  `groups`  ADD  `can_streamenum(  'yes',  'no'  )  COLLATE utf8_turkish_ci NOT  NULL DEFAULT  'yes';

A MySQL mondta:http://dev.mysql.com/doc/refman/5.1/en/error-messages-server.html

#1146 - Table 'Extrem.groups' doesn't exist 
Reply With Quote
  #19  
Old 16th May 2011, 22:47
smoky28's Avatar
smoky28 smoky28 is offline
Senior Member
 
Join Date: Aug 2010
Hungary
Posts: 82
Smile sql error
PHP Code:
ALTER  TABLE  `usergroups`  ADD  `can_streamenum(  'yes',  'no'  )  COLLATE utf8_turkish_ci NOT  NULL DEFAULT  'yes'
így már jó lesz

so you will be fine
__________________
Sky-Tech Developer Team Hungary

Reply With Quote
  #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
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 16:11. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.