Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #1  
Old 26th October 2010, 13:26
lateam's Avatar
lateam lateam is offline
Senior Member
 
Join Date: Apr 2009
France
Posts: 40
Default [TSSE 5.6] Streaming
attention

Attention

coding in course





Click image for larger version

Name:	stre2.png
Views:	284
Size:	414.6 KB
ID:	2592Click image for larger version

Name:	stre3.png
Views:	186
Size:	286.4 KB
ID:	2593Click image for larger version

Name:	stre6.png
Views:	159
Size:	329.5 KB
ID:	2594Click image for larger version

Name:	streaming.png
Views:	117
Size:	483.1 KB
ID:	2595Click image for larger version

Name:	stre23.png
Views:	153
Size:	398.7 KB
ID:	2596Click image for larger version

Name:	stre30.png
Views:	221
Size:	234.1 KB
ID:	2597Click image for larger version

Name:	stre31.png
Views:	192
Size:	223.3 KB
ID:	2598Click image for larger version

Name:	stre36.png
Views:	123
Size:	460.5 KB
ID:	2599Click image for larger version

Name:	stre40.png
Views:	268
Size:	128.4 KB
ID:	2600Click image for larger version

Name:	stre45.png
Views:	197
Size:	205.2 KB
ID:	2601


Added:addjeton
Added:movies
Added:kpschangebonus streaming

1.
Create a new file streamingmies.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(" Cinema");

$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 java script and html tags in their posts.

$msg = str_replace('
<', '&lt;', $msg);
$msg = str_replace('
>', '&gt;', $msg);
$msg = str_replace('
java script:', 'java script:', $msg);

return $msg;
}

begin_frame("");

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

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

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 streamingmovies WHERE id='
$id'");
$arr = mysql_fetch_array($res);
$divx = $arr["url"];
$titre = $arr["title"];
$image = $arr["image"];
$category = $arr["category"];


    $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 = "plus de jeton";
          $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 un film";
  }
?>

<br>
</td>
<font color=white> <center><fieldset class="td_search"><legend><b>Fonctionnement</b></legend>
   <center><h1><font color=red>Bienvenue sur le service de streaming a la carte serietorrent!</font></h1></center>
<center><img src="http://lateam.cc/images/streaming.png" alt="" title="" onload="NcodeImageResizer.createOn(this);" border="0"></center>
       <br>
   <h2>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 choixque 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 ).
.<
br><br>
    
Pour vous procurez des jetons via paypal cliquez <a href=donate.php><font color=redici </font></a>ou échanger contre des point bonus cliquez <a href=mybonus.php><font color=redici </font></a>,Vous devrez envoyez un MP a <font color="#990000"><bLATEAM</b></font>  pour qu'il mette vos jetons a jour. <a href=sendmessage.php?receiver=1><font color=red>ici</font></a>.Un film streaming coute   <font color="green">1 Jeton</font><br><br>
    <center><font size=5> Il vous reste <font color="#990000"><?=$CURUSER[droits_film], " Jeton" ?></font></a></center>
 </h2>
   </center>
   </div>
  </fieldset>
</tr>
</table>
<br/>
 <body oncontextmenu="alert('
Vous ne pouvez pas copier les codes Tous droits réservés.'); return false">

<style type="text/css">
<!--
.style3 {font-size: 12px}
-->
</style>

<?php
$res = mysql_query("SELECT * FROM divx ORDER BY id DESC $limit");
$row = mysql_num_rows($res);

if($row !== 0){

while ($arr = mysql_fetch_array($res))
{
$id = $arr["id"];
$title = $arr["title"];
$image = $arr["image"];
$seolink = ts_seo($divx['
categoryid'],$divx['categoryname'],'c');

}
}else{
    echo "<tr><td align=center><font color=red><b>il n'
y a pas de video !</b></font></td></tr>";
}
}
echo "
</table>";

if(
$row !== 0)
echo 
$pagerbottom;
echo "
<br>";
?>




<table width="
100%" align="center" border="1" cellpadding="5" cellspacing="0">
    <tbody><tr>
        <td class="
thead"><a style="floatright;" href="#top" onClick="return toggle_collapse('showtorrents')"><img id="collapseimg_showtorrents" src="http://torrent.wdw.ro/pic/collapse_tcat.gif" alt="" border="0"></a>

            
<div align="center">
                <
strong>
               
films disponibles 
                
</strong>
            </
div>
        </
td>    </tr></tbody><tbody id="collapseobj_showtorrents" style="">
    
    <
tr>
        <
td align="center">
    <
iframe src="imageflow1.php?action=sticky" frameborder="0" scrolling="no" style="width:100%;" height="320"></iframe></tr>
</
tbody></table>


<
br><br>
<
table width="100%" align="center" border="1" cellpadding="5" cellspacing="0">
    <
tbody><tr>
        <
td class="thead"><a style="float: right;" href="#top" onClick="return toggle_collapse('showtorrents')"><img id="collapseimg_showtorrents" src="http://torrent.wdw.ro/pic/collapse_tcat.gif" alt="" border="0"></a>

            <
div align="center">
                <
strong>
                
les plus vues 
                
</strong>
            </
div>
        </
td>    </tr></tbody><tbody id="collapseobj_showtorrents" style="">
    
    <
tr>
        <
td align="center">
    <
iframe src="carbrowse2.php" frameborder="0" scrolling="no" style="width:95%;" height="135"></iframe></td>
</
tbody></table>


<
br><br>
<
table width="100%" align="center" border="1" cellpadding="5" cellspacing="0">
    <
tbody><tr>
        <
td class="thead"><a style="float: right;" href="#top" onClick="return toggle_collapse('showtorrents')"><img id="collapseimg_showtorrents" src="http://torrent.wdw.ro/pic/collapse_tcat.gif" alt="" border="0"></a>

            <
div align="center">
                <
strong>
                
deja vues 
                
</strong>
            </
div>
        </
td>    </tr></tbody><tbody id="collapseobj_showtorrents" style="">
    
    <
tr>
        <
td align="center">
<?
php
$sql 
"SELECT DISTINCT divx_usage.divxid, divx.image, divx.id FROM divx_usage LEFT JOIN divx ON divx_usage.divxid = divx.id WHERE userid LIKE '$CURUSER[id]' ORDER BY divxid DESC $limit";
$req mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
while(
$data mysql_fetch_assoc($req))
    {
    echo 
'<a rel="nofollow" href="divx.php?id='.$data['id'].'").""><img src='.$data['image'].' border=0 width=88 height=115" title="'.$data['id'].'" border=0></img> </a>';
    }
 
$sql "SELECT DISTINCT divx_usage.divxid, streamingkids.image, streamingkids.id FROM divx_usage LEFT JOIN streamingkids ON divx_usage.divxid = streamingkids.id WHERE userid LIKE '$CURUSER[id]' ORDER BY divxid DESC $limit";
$req mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());

while(
$data mysql_fetch_assoc($req))
    {
    echo 
'<a rel="nofollow" href="streamingkids.php?id='.$data['id'].'").""><img src='.$data['image'].' border=0 width=88 height=115" title="'.$data['id'].'" border=0></img> </a>';
    }
  
$sql "SELECT DISTINCT divx_usage.divxid, streamingtv.image, streamingtv.id FROM divx_usage LEFT JOIN streamingtv ON divx_usage.divxid = streamingtv.id WHERE userid LIKE '$CURUSER[id]' ORDER BY divxid DESC $limit";
$req mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());

while(
$data mysql_fetch_assoc($req))
    {
    echo 
'<a rel="nofollow" href="streamingtv.php?id='.$data['id'].'").""><img src='.$data['image'].' border=0 width=88 height=115" title="'.$data['id'].'" border=0></img> </a>';
    }
  
$sql "SELECT DISTINCT divx_usage.divxid, streamingspectacles.image, streamingspectacles.id FROM divx_usage LEFT JOIN streamingspectacles ON divx_usage.divxid = streamingspectacles.id WHERE userid LIKE '$CURUSER[id]' ORDER BY divxid DESC $limit";
$req mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());

while(
$data mysql_fetch_assoc($req))
    {
    echo 
'<a rel="nofollow" href="streamingspectacles.php?id='.$data['id'].'").""><img src='.$data['image'].' border=0 width=88 height=115" title="'.$data['id'].'" border=0></img> </a>';
    }
$sql "SELECT DISTINCT divx_usage.divxid, streamingxxx.image, streamingxxx.id FROM divx_usage LEFT JOIN streamingxxx ON divx_usage.divxid = streamingxxx.id WHERE userid LIKE '$CURUSER[id]' ORDER BY divxid DESC $limit";
$req mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());

while(
$data mysql_fetch_assoc($req))
    {
    echo 
'<a rel="nofollow" href="streamingxxx.php?id='.$data['id'].'").""><img src='.$data['image'].' border=0 width=88 height=115" title="'.$data['id'].'" border=0></img> </a>';
    }
?>

</tbody></table>
<font size=2>

<?
stdfoot
();
?>
</font>
2.Create a new file divx.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("films a la carte");

$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("");

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

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

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"];
$titre = $arr["title"];
$image = $arr["image"];
$synopsis = $arr["synopsis"];


    $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";
}

 
 
 ?>





<br><br><center>
<h1><div style="width:720px;text-align:center;"><font color=black>Pas d'
imagesTéléchargez DivX Web Player pour</font> <a onclick="pageTracker._trackPageview ('/outgoing/http_download_divx_com_player_DivXWebPlayerInstaller_exe');" rel="nofollow" style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayerInstaller.exe"><font color=red>Windows</font></a> <font color=black>ou pour</font> <a onclick="pageTracker._trackPageview ('/outgoing/http_download_divx_com_player_DivXWebPlayer_dmg');" rel="nofollow" style="text-decoration: underline;" href="http://download.divx.com/player/DivXWebPlayer.dmg"><font color=red>Mac</font></a><br><font color=black>Vous devrez redemarrer votre navigateur après avoir installé</font></center>
<
br/>

<
p>


<
br><center><font color=red><h1>SVP rapportez tous liens défectueux <a onclick="pageTracker._trackPageview ('/outgoing/http_lateam_cc_sendmessage_php_receiver_1');" rel='nofollow' href='http://lateam.cc/sendmessage.php?receiver=1'><font color=black>ICI</h1></font></center></a><tr><td width=900 valign=top><center


<
br><center>

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



<?
 
  
?>




<center><div style="padding-bottom: ' . $_div_padding_bottom . ';">

<table align="center" border="0" cellpadding="6" cellspacing="0" width="80%">

<div style="padding-bottom: 15px;">

<table border="0" cellpadding="0" cellspacing="0" width="80%">

    <tbody><tr>

        <td class="tlc"></td>
        <td class="thead" colspan="0">
 <div class="lcorner">
                  </div>
  <div class="rcorner">
                                     </div>

<span class="smalltext"><strong>infos sur le film</strong></span>
</td>
        <td class="trc"></td><tr>
     </tr>



    <td class="ml"></td>
        <td class="blok">











<?php
if ($titre) {
echo 
"<center><font  color=red size=4><b>..::".$titre."::..</b></font></center>";
echo 
"<br>";
echo 
"<center><IMG SRC=".$image."  WIDTH=200 HEIGHT=250 border=0></center>";
echo 
"<br>";
echo 
"<center><font  color=black size=2><b>..::".$synopsis."::..</b></font></center>";
echo 
"<br><br>";
}
 
?>







<br><br>








</td>
        <td class="mr"></td>
    </tr>
    <tr>
        <td class="blc"></td>
        <td class="bcenter"></td>

        <td class="brc"></td>
    </tr>
</tbody></table></center>

<br><br>

 




<center>
<div style="padding-bottom: ' . $_div_padding_bottom . ';">

<table align="center" border="0" cellpadding="6" cellspacing="0" width="80%">

<div style="padding-bottom: 15px;">

<table border="0" cellpadding="0" cellspacing="0" width="80%">

    <tbody><tr>

        <td class="tlc"></td>
        <td class="thead" colspan="0">
 <div class="lcorner">
                  </div>
  <div class="rcorner">
                                       </div>

<span class="smalltext"><strong>lecteur</strong></span>
</td>
        <td class="trc"></td><tr>
     </tr>



    <td class="ml"></td>
        <td class="blok">











<?php
if ($titre) {
echo 
"<center><font  color=red size=4><b>..::".$titre."::..</b></font></center>";




echo 
"<br><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="<?php echo $divx?>" />

<embed type="video/divx" src="<?php echo $divx?>" custommode="Stage6" width="930" height="500" mode="null"  autoPlay="false"  allowContextMenu="false"  pluginspage="http://go.divx.com/plugin/download/">
</embed>
</object></center>






<br><br>








</td>
        <td class="mr"></td>
    </tr>
    <tr>
        <td class="blc"></td>
        <td class="bcenter"></td>

        <td class="brc"></td>
    </tr>
</tbody></table></center>

<br><br>



<?php



}


 
?>



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

end_frame();

stdfoot();
3.add request sql

PHP Code:
--
-- 
Structure de la table `divx`
--
CREATE TABLE IF NOT EXISTS `divx` (
  `
idint(10unsigned NOT NULL auto_increment,
  `
titlevarchar(75NOT NULL,
  `
urltext NOT NULL,
  `
imagevarchar(255NOT NULL,
  `
synopsistext NOT NULL,
  `
categoryint(10unsigned NOT NULL default '0',
   `
sizebigint(20unsigned NOT NULL default '0',
 
 

  
PRIMARY KEY  (`id`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=;

--
-- 
Contenu de la table `divx`
-- 
PHP Code:
--
-- 
Structure de la table `streamingxxx`
--

CREATE TABLE IF NOT EXISTS `streamingxxx` (
  `
idint(10unsigned NOT NULL auto_increment,
  `
titlevarchar(75NOT NULL,
  `
urltext NOT NULL,
  `
imagevarchar(255NOT NULL,
  `
synopsistext NOT NULL,
  `
categoryint(10unsigned NOT NULL default '0',
   `
sizebigint(20unsigned NOT NULL default '0',
 
 

  
PRIMARY KEY  (`id`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=;

--
-- 
Contenu de la table `streamingxxx`
-- 
PHP Code:
--
-- 
Structure de la table `streamingtv`
--

CREATE TABLE IF NOT EXISTS `streamingtv` (
  `
idint(10unsigned NOT NULL auto_increment,
  `
titlevarchar(75NOT NULL,
  `
urltext NOT NULL,
  `
imagevarchar(255NOT NULL,
  `
synopsistext NOT NULL,
  `
categoryint(10unsigned NOT NULL default '0',
   `
sizebigint(20unsigned NOT NULL default '0',
 
 

  
PRIMARY KEY  (`id`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=;

--
-- 
Contenu de la table `streamingtv`
-- 
PHP Code:
--
-- 
Structure de la table `streamingkids`
--

CREATE TABLE IF NOT EXISTS `streamingkids` (
  `
idint(10unsigned NOT NULL auto_increment,
  `
titlevarchar(75NOT NULL,
  `
urltext NOT NULL,
  `
imagevarchar(255NOT NULL,
  `
synopsistext NOT NULL,
  `
categoryint(10unsigned NOT NULL default '0',
   `
sizebigint(20unsigned NOT NULL default '0',
 
 

  
PRIMARY KEY  (`id`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=;

--
-- 
Contenu de la table `streamingkids`
-- 
PHP Code:
--
-- 
Structure de la table `streamingspectacles`
--

CREATE TABLE IF NOT EXISTS `streamingspectacles` (
  `
idint(10unsigned NOT NULL auto_increment,
  `
titlevarchar(75NOT NULL,
  `
urltext NOT NULL,
  `
imagevarchar(255NOT NULL,
  `
synopsistext NOT NULL,
  `
categoryint(10unsigned NOT NULL default '0',
   `
sizebigint(20unsigned NOT NULL default '0',
 
 

  
PRIMARY KEY  (`id`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=;

--
-- 
Contenu de la table `streamingspectacles`
-- 
PHP Code:
--
-- 
Structure de la table `divx_usage`
--

CREATE TABLE IF NOT EXISTS `divx_usage` (
  `
idint(10unsigned NOT NULL auto_increment,
  `
useridvarchar(75NOT NULL default '',
  `
divxidtext NOT NULL,
  `
datetext NOT NULL,
  
PRIMARY KEY  (`id`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=165 ;

--
-- 
Contenu de la table `divx_usage`
-- 
add the query in the table users

PHP Code:
-- 
-- 
Structure de la table `users`
-- 

CREATE TABLE `users` (
  `
droits_filmdecimal(10,0NOT NULL default '10',
  
PRIMARY KEY  (`id`),
 ) 
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11325 ;

-- 
-- 
Contenu de la table `users`
-- 
4.Create a new file imageflow1.php
PHP Code:
<?php
require_once('global.php');
gzip();
dbconn(true);
maxsysop();


 
?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
       <title>chargement</title>
        
<script type="text/javascript">

window.google_analytics_uacct = "UA-3186736-1";


</script>
</head>
       <body>
      <link rel="stylesheet" href="ImageFlow/screen.css" type="text/css" media="screen" />
     <script language="JavaScript" type="text/javascript" src="ImageFlow/imageflow.js"></script>
    <div align="center">
   <?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);

    {
 
if (
$id) {
$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"] < ){
          
$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"] > ){
      
mysql_query("insert into divx_usage (userid,divxid,date) values ($CURUSER[id],$id,now())");
    }
}
  else {
    
$mess="Selectionner une Vidéo";
  }

  
?>
      <div id="imageflow"> 
        <div id="loading">
          <b>chargement</b><br/>
          <img src="ImageFlow/loading.gif" width="208" height="13" alt="loading" /> 
        </div>
      <div id="images">
     <?php
     
     


$res 
mysql_query("SELECT * FROM divx ORDER BY id DESC LIMIT 100000");$row mysql_num_rows($res);

if(
$row !== 0){

while (
$arr mysql_fetch_array($res))
{

$i=0;

$id $data['id'];
$cnt $data["CNT"];
$image $arr['image'];
$title $arr['title'];
$id str_replace('_'' ' $id);
$id str_replace('.'' ' $id);
$id substr($id050);
if(
$i && $i 15 == 0)



  
?>
       <img src="<?=$image?>"width="85" height="105"   longdesc="divx.php?id=<?=$arr["id"]?>" alt="<br><br><br><font color=green><br><?=$title?></font><br>    " />
  <?php
 
{

}

}
}else{
    echo 
"<tr><td align=center><font color=red><b>Pas de Videos !</b></font></td></tr>";
}
  
?>
      </div>
       <div id="captions"></div>
        <div id="scrollbar">
         <div id="slider"></div>
        </div>
       </div>
      </div>
     <?php
     
}
    }
   
?>
    
<script type="text/javascript"><!--
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
//-->
</script>
<script type="text/javascript"><!--
try {
var pageTracker = _gat._getTracker("UA-3186736-1");
pageTracker._trackPageview();
} catch(err) {}
//-->
</script>
</body>
   </html>
  <?php

?>
5.



put in root /images/arrow.png
Attached Thumbnails
stre60.png  
Attached Files
File Type: gz ImageFlow.tar.gz (20.0 KB, 158 views)

Last edited by lateam; 26th October 2010 at 17:47.
Reply With Quote
The Following 3 Users Say Thank You to lateam For This Useful Post:
BEST (26th October 2010), Marco (26th October 2010), Tory (26th October 2010)
  #2  
Old 26th October 2010, 14:48
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
very nice mod :) maybe share it with us :)


Merci
Reply With Quote
  #3  
Old 27th October 2010, 12:14
Tory's Avatar
Tory Tory is offline
Senior Member
 
Join Date: Jun 2008
France
Posts: 40
Question streaming for ts 5.6
Erreur request sql users how to thank you

Une fois creer la requete sql users je recois une erreur merci de m aider

Et comment creer ceci
Added:addjeton
Added:movies
Added:kpschangebonus streaming

merci

Reply With Quote
  #4  
Old 13th November 2010, 14:18
lateam's Avatar
lateam lateam is offline
Senior Member
 
Join Date: Apr 2009
France
Posts: 40
Default HI
Quote:
Originally Posted by Tory View Post
Erreur request sql users how to thank you

Une fois creer la requete sql users je recois une erreur merci de m aider

Et comment creer ceci
Added:addjeton
Added:movies
Added:kpschangebonus streaming

merci

ROOT/admin/addjeton.php
addjeton.php
PHP Code:
<?



  
function class_amount ()
  {
    echo 
'<select name="classamount" style="width: 145px;" id="specialboxes">
    <option value="0" style="color: gray;">( amount )</option>'
;
    
$i 1;
    while (
$i 51)
    {
      print 
'' '<option value=' $i '>' $i ' droits_film</option>
'
;
      ++
$i;
    }

    echo 
'</select>';
  }

  if (!
defined ('STAFF_PANEL_TSSEv56'))
  {
    exit (
'<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
  }

  
define ('UA_VERSION''0.3 by xam');
  if (
$HTTP_SERVER_VARS['REQUEST_METHOD'] == 'POST')
  {
    
$class = (int)$_POST['usergroup'];
    if ((
$class == '-' OR !is_valid_id ($class)))
    {
      
$class '';
    }

    
$query 'enabled=\'yes\' AND status=\'confirmed\'' . ($class ' AND usergroup=' $class '');
    if (
$_POST['doit'] == 'yes')
    {
      if ((
$_POST['classamount'] < OR 51 $_POST['classamount']))
      {
        
stderr ('Error''Don\'t leave any fields blank!');
      }

      
$modcomment gmdate ('Y-m-d') . ' - Got ' .  ($_POST['classamount']) . ' droits_film Amount from ' $CURUSER['username'] . ' (droits_film Add Tool)' $eol;
      
$ulamount sqlesc ($_POST['classamount']);
      (
sql_query ('' 'UPDATE users SET droits_film = droits_film + ' $ulamount ', modcomment=CONCAT(' sqlesc ($modcomment '') . ('' ', modcomment) WHERE ' $query)) OR sqlerr (__FILE__45));
      
stderr ('droits_film'$_POST['classamount'] . 'droits_film is sent to ' . ($class 'following class: ' get_user_class_name ($class) : 'everyone...'));
      exit ();
    }

    if ((
$_POST['username'] == '' OR $_POST['droits_film'] == ''))
    {
      
stderr ('Error''Don\'t leave any fields blank!');
    }

    
$username sqlesc ($_POST['username']);
    
$droits_film sqlesc ($_POST['droits_film']);
    
$modcomment gmdate ('Y-m-d') . ' - Got ' . ($_POST['droits_film']) . ' droits_film Amount from ' $CURUSER['username'] . ' (jeton Add Tool)' $eol;
    (
sql_query ('' 'UPDATE users SET droits_film= droits_film + ' $droits_film ', modcomment=CONCAT(' sqlesc ($modcomment '') . ('' ', modcomment) WHERE username=' $username ' AND ' $query)) OR sqlerr (__FILE__56));
    (
$res sql_query ('' 'SELECT id FROM users WHERE username=' $username) OR sqlerr (__FILE__57));
    
$arr mysql_fetch_row ($res);
    if (!
$arr)
    {
      
stderr ('Error''Unable to update account.');
    }

    
header ('' 'Location: ' $BASEURL '/userdetails.php?id=' $arr['0']);
    exit ();
  }

  
$usergroups _selectbox_ (NULL'usergroup');
  
stdhead ('Update Users droits_film Amounts');
  
_form_header_open_ ('Update Users droits_film Amounts');
  echo 
'<form method="post" action="' $_this_script_ '">';
  
begin_table (true);
  echo 
'<tr><td class="rowhead">User name: </td><td class="row1"><input type="text" name="username" id="specialboxn" size="40"/></td></tr>';
  echo 
'<tr><td class="rowhead">droits_film: </td><td class="row1"><input type="text" name="droits_film" size="40" id="specialboxes"/> <input type="submit" value="do it" class="btn"/></td></tr>';
  echo 
'</form>';
  
end_table ();
  
_form_header_close_ ();
  echo 
'<br>';
  
_form_header_open_ ('Send xdroits_film  amount to everyone!');
  echo 
'<form action="' $_this_script_ '" method="post">';
  
begin_table (true);
  echo 
'<tr><td class="row1" align="center">Usergroup:
<input type = "hidden" name = "doit" value = "yes" />'
;
  echo 
$usergroups ' ';
  
class_amount ();
  echo 
'<input type="submit" value="do it" class="btn" />
</td></tr>'
;
  
end_table ();
  echo 
'</form>';
  
_form_header_close_ ();
  
stdfoot ();
?>
Click image for larger version

Name:	Capture-100.png
Views:	153
Size:	426.9 KB
ID:	2624 Click image for larger version

Name:	Capture-101.png
Views:	102
Size:	385.1 KB
ID:	2625

Click image for larger version

Name:	Capture-102.png
Views:	73
Size:	440.3 KB
ID:	2626 Click image for larger version

Name:	Capture-103.png
Views:	85
Size:	440.6 KB
ID:	2627



---------------------------------------------------------------------------------

Added:movies
ROOT/admin/movies.php
movies.php
PHP Code:
<?php
  $rootpath 
'./../';
  require_once 
$rootpath 'global.php';
  
dbconn ();
  
loggedinorreturn ();
  
stdhead ('divx add');

  if (!
defined ('STAFF_PANEL_TSSEv56'))
  {
    exit (
'<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
  }
?>



<html>
<form method="POST" action="streamingmovies.php">
<center>
<center><font size=4 color=red>Ajouter un film</font><br></center>

<center><font color=green>Lien url</font></center><input type="text" name="url" size="50" value="" maxlength="350"><br>
<center><font color=green>Image</font></center><input type="text" name="image" size="50" value="" maxlength="350"><br>
<center><font color=green>titre</font></center><input type="text" name="title" size="50" value="" maxlength="350"><br>
<center><font color=green>synopsis</font></center><input type="text" name="synopsis" size="50" value="" maxlength="350"><br>
<input type="submit" value="Ajouter" name="envoyer">
</center>
</form>

</html>

<html>
<form method="POST" action="streamingmovies3.php">
<center>
<center><br><br><font size=4 color=red>editer un film</font><br></center>

<center><font color=green>Entrez le ID du film à editer</font></center><input type="text" name="id" size="50" value="" maxlength="350"><br>
<center><font color=green>Lien url</font></center><input type="text" name="url" size="50" value="" maxlength="350"><br>
<center><font color=green>Image</font></center><input type="text" name="image" size="50" value="" maxlength="350"><br>
<center><font color=green>titre</font></center><input type="text" name="title" size="50" value="" maxlength="350"><br>
<center><font color=green>synopsis</font></center><input type="text" name="synopsis" size="50" value="" maxlength="350"><br>
<input type="submit" value="edit" name="edit">
</center>
</form>

</html>


<html>
<form method="POST" action="streamingmovies2.php">
<center>
<center><br><br><font size=4 color=red>Supprimez un film</font><br></center>
<center><font color=green>Entrez le ID du film à supprimez</font></center><input type="text" name="id" size="50" value="" maxlength="350"><br>
<input type="submit" value="Supprimer" name="envoyer">
</center><br><br>
</form>

</html>



<?php
// on crée la requête SQL
$sql 'SELECT id FROM divx ORDER BY id DESC LIMIT 0,1 ';

// on envoie la requête
$req mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());

// on fait une boucle qui va faire un tour pour chaque enregistrement
while($data mysql_fetch_assoc($req))
    {
    
// on affiche les informations de l'enregistrement en cours

   
echo '<center><b><font size=4 color=red>Le dernier ID utilisé</font></b><br><br></center> ';
    echo 
'<center><b><font size=5 color=green>'.$data['id'].' '.$data['title'].'</font></b><br></center> ';

    }

?>

<?
 stdfoot 
('');
?>
Added:movies

ROOT/admin/streamingmovies.php
streamingmovies.php

PHP Code:
<?php
  $rootpath 
'./../';
  require_once 
$rootpath 'global.php';
  
dbconn ();
  
loggedinorreturn ();
  
stdhead ('streaming add');




if(isset(
$_POST['url']))      $url=$_POST['url'];
else      
$url="";

if(isset(
$_POST['image']))      $image=$_POST['image'];
else      
$image="";

if(isset(
$_POST['title']))      $title=$_POST['title'];
else      
$image="";

if(isset(
$_POST['synopsis']))      $synopsis=$_POST['synopsis'];
else      
$image="";

// On vérifie si les champs sont vides
if(empty($url) OR empty($image))
    {
    echo 
'<center><font color="red">Attention, aucun champ ne peut rester vide !</font></center>';
    }

// Aucun champ n'est vide, on peut enregistrer dans la table
else
    {
       
// connexion à la base


    // on écrit la requête sql
    
$sql "INSERT INTO divx(url,image,title,synopsis) VALUES('$url','$image','$title','$synopsis')";

    
// on insère les informations du formulaire dans la table
    
mysql_query($sql) or die('Erreur SQL !'.$sql.'<br>'.mysql_error());

    
// on affiche le résultat pour le visiteur
    
echo '<br><br><center><font size=5 color=green>Vos infos on été ajoutées.</font></center>';
    echo 
'<br><br><a rel="nofollow" href="/admin/index.php?act=movies" class="" title="Ajoutez un autre film"><center><font color=red size=4>Ajoutez un autre film</a></font></center><br><br>';


    
mysql_close();  // on ferme la connexion
    
}


  
stdfoot ('');

Last edited by lateam; 13th November 2010 at 14:37.
Reply With Quote
  #5  
Old 14th November 2010, 09:54
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default SQL Problem
Hello!

This is a problem with mysql when you want to put more than

Code:
   
-- Structure de la table `users`
-- 
 CREATE  TABLE  `users` ( `droits_film` decimal( 10, 0  )  NOT  NULL default  '10',
 PRIMARY  KEY (  `id`  ) ,

) ENGINE  =  MYISAM  DEFAULT CHARSET  = UTF8 AUTO_INCREMENT  =11325;

     
MySQL ERROR:
  #1064 - You have an error in your SQL syntax; check the manual that  corresponds to your MySQL server version for the right syntax to use  near ') ENGINE=MyISAM  DEFAULT CHARSET=UTF8 AUTO_INCREMENT=11325' at  line 8
Reply With Quote
  #6  
Old 15th November 2010, 08:34
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Default sql table user fix
Quote:
Originally Posted by Omenke View Post
Hello!

This is a problem with mysql when you want to put more than

Code:
   
-- Structure de la table `users`
-- 
 CREATE  TABLE  `users` ( `droits_film` decimal( 10, 0  )  NOT  NULL default  '10',
 PRIMARY  KEY (  `id`  ) ,

) ENGINE  =  MYISAM  DEFAULT CHARSET  = UTF8 AUTO_INCREMENT  =11325;

     
MySQL ERROR:
  #1064 - You have an error in your SQL syntax; check the manual that   corresponds to your MySQL server version for the right syntax to use   near ') ENGINE=MyISAM  DEFAULT CHARSET=UTF8 AUTO_INCREMENT=11325' at   line 8

ok run whis in phpmyadmin

PHP Code:
ALTER TABLE `usersADD `droits_filmdecimal(10,0NOT NULL default '10'
Reply With Quote
The Following User Says Thank You to lafouine022 For This Useful Post:
Tory (15th November 2010)
  #7  
Old 15th November 2010, 22:34
Tory's Avatar
Tory Tory is offline
Senior Member
 
Join Date: Jun 2008
France
Posts: 40
Default [TSSE 5.6] Streaming
Merci beaucoup
Reply With Quote
  #8  
Old 20th November 2010, 20:21
destos destos is offline
Member
 
Join Date: Feb 2010
P2P
Posts: 5
Default
Added:kpschangebonus streaming

where is this file?

I think missing some queries on database for usergroup.
Any way...It's not full
Reply With Quote
  #9  
Old 21st November 2010, 13:23
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default
Hello!

Well, it's something I do not want to work.
Missing, the file streamingmovies2.php etc..

In vain do I add a movie you will not be displayed.

Or is it a separate plugin which can display?
Reply With Quote
  #10  
Old 21st November 2010, 14:25
lateam's Avatar
lateam lateam is offline
Senior Member
 
Join Date: Apr 2009
France
Posts: 40
Default
Quote:
Originally Posted by destos View Post
Added:kpschangebonus streaming

where is this file?

I think missing some queries on database for usergroup.
Any way...It's not full
coding in course !!
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 18:47. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.