Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   [TSSE 5.6] Streaming (http://www.bvlist.com/showthread.php?t=5557)

DARCK 17th May 2011 17:10

fix
 
Quote:


Originally Posted by turktiger (Post 27976)
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:

     
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('<', '<', $msg);
$msg = str_replace('>', '>', $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"];




}


 ?>































 



 ?>
 











";
}


 ?>







 {

$id = MakeSQLSafe(0 + $_GET['id']);
echo "
:sndAjaxReq('brouwsestreaming.php');" : "brouwsestreaming.php")."\">

REVENIR A LA PREMIERE PAGE

";
}

end_frame();

stdfoot();
 ?>

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('<''<'$msg);
$msg str_replace('>''>'$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%" 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="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="imagedivx.php?action=sticky" frameborder="0" scrolling="no" style="width:100%;" height="320"></iframe></tr>


</tbody></table>











<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><font color=green><?php echo $lang->streaming['attention1']; ?> </font></center>
 <p><h2><center><h1><?php echo $lang->streaming['choix']; ?></h1></center></h2></p>     

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

    <?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><font color="#0000CC"><?php echo $lang->streaming['count']; ?></font>

    <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>     <a href="divxxxxx.php"><font color=red size=5><?php echo $lang->streaming['trialpa']; ?></font></a></center>

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


<?php

 ?>
  





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





<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></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 style="padding: 10px 0pt 0pt;" align="center">'$arr["views"].'</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="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="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="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>";
}








 
?>




















</td></tr>


</table></form>


<?php


 
{





$id MakeSQLSafe($_GET['id']);


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


 
?>


turktiger 18th May 2011 19:36

same , nothing change ?

Omenke 19th May 2011 16:28

help!
 
Hello!

I would be a problem, when I look at the page browsestreaming.php nothing comes on just a blank screen.

turktiger 20th May 2011 10:04

Quote:

Originally Posted by Omenke (Post 28011)
Hello!

I would be a problem, when I look at the page browsestreaming.php nothing comes on just a blank screen.


nothing works lol , :fire:

DARCK 20th May 2011 16:34

oki
 
Quote:

Originally Posted by turktiger (Post 28024)
nothing works lol , :fire:

your problem is accentuated because of charger ����

Default Character Set?
Character Set for Ajax Scripts?

EDIT TRACKER SETTING ISO-8859-15

be sure you use the right encoding with the meta tag (to be placed in the head) below:

YOU ARE UTF-8

var baseurl="http://extremtorrent.ath.cx";
var dimagedir="http://extremtorrent.ath.cx/pic/";
var charset="UTF-8";
var userid="5";

turktiger 21st May 2011 19:36

error error error
 
My friend that's a php error , whatever i had changed character set with iso-8859-15 , nothing changed ?

PHP Code:

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


DARCK 21st May 2011 23:58

Updates
 
1 Attachment(s)
Attachment 2900

turktiger 22nd May 2011 14:46

streaming tab ?
 
1 Attachment(s)
i want to say special thank to Darck , now works perfectly , can we add streaming tab in details.php like in the attached pic ?

DARCK 23rd May 2011 17:33

Added:kpschangebonus streaming
 
2 Attachment(s)
Attachment 2905Attachment 2906

edit mybonus.php
find
PHP Code:

 case 'invite':
          {
            if (
$kpsinvite != 'yes')
            {
              
$errors[] = $lang->mybonus['error3'];
            }
            else
            {
              (
sql_query ('UPDATE users SET invites = invites + ' $Result['menge'] . ', seedbonus = IF(seedbonus < ' $Result['points'] . ', 0, seedbonus - ' $Result['points'] . ') WHERE id = ' sqlesc ($Userid)) OR sqlerr (__FILE__82));
              if (
mysql_affected_rows ())
              {
                
update_user ($Userid'Purchased item: ' $Result['bonusname'] . ' for ' $Result['points'] . ' points.');
                
$KPSUSED true;
              }
            }

            break;
          } 

add after

PHP Code:

 case 'cinema':
          {
            if (
$kpscinema != 'yes')
            {
              
$errors[] = $lang->mybonus['error3'];
            }
            else
            {
              (
sql_query ('UPDATE users SET droits_film = droits_film + ' $Result['menge'] . ', seedbonus = IF(seedbonus < ' $Result['points'] . ', 0, seedbonus - ' $Result['points'] . ') WHERE id = ' sqlesc ($Userid)) OR sqlerr (__FILE__82));
              if (
mysql_affected_rows ())
              {
                
update_user ($Userid'Purchased item: ' $Result['bonusname'] . ' for ' $Result['points'] . ' points.');
                
$KPSUSED true;
              }
            }

            break;
          } 


edit include/readconfig_kps.php
find
PHP Code:

$kpsratiofix = (!empty ($KPS['kpsratiofix']) ? $KPS['kpsratiofix'] : 'yes'); 

add after
PHP Code:

 $kpscinema = (!empty ($KPS['kpscinema']) ? $KPS['kpscinema'] : 'yes'); 


edit admin/managesettings.php
find
PHP Code:

 print_rows ('Enable Fix Torrent Ratio Usage?'show_helptip ('Enable/Disable Fix Torrent Ratio Usage for KPS Page.') . '
        <select class="bginput" name="configoption[kpsratiofix]">
                        <option value="yes"' 
iif ($kpsratiofix == 'yes'' selected="selected"') . '>Yes</option>
                        <option value="no"' 
iif ($kpsratiofix == 'no'' selected="selected"') . '>No</option>
                    </select>'
); 

add after
PHP Code:

print_rows ('Enable jeton Usage?'show_helptip ('Enable/Disable jeton Usage for KPS Page.') . '
        <select class="bginput" name="configoption[kpscinema]">
                        <option value="yes"' 
iif ($kpscinema == 'yes'' selected="selected"') . '>Yes</option>
                        <option value="no"' 
iif ($kpscinema == 'no'' selected="selected"') . '>No</option>
                    </select>'
); 

add sql

PHP Code:

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

--
-- 
Structure de la table `bonus`
--

CREATE TABLE IF NOT EXISTS `bonus` (
  `
idint(5NOT NULL AUTO_INCREMENT,
  `
bonusnamevarchar(50NOT NULL DEFAULT '',
  `
pointsdecimal(5,1NOT NULL DEFAULT '0.0',
  `
descriptiontinytext NOT NULL,
  `
artvarchar(10NOT NULL DEFAULT 'traffic',
  `
mengebigint(20unsigned NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;

--
-- 
Contenu de la table `bonus`
--

INSERT INTO `bonus` (`id`, `bonusname`, `points`, `description`, `art`, `menge`) VALUES
(1'1.0 GB De partage''250.0''Quand vous avez acquis les points bonus requis, vous pouvez les échanger contre des crédit de partage. Les points seront retirer de votre banque de point et le crédit de votre partage sera automatiquement ajuster. ''traffic'1073741824),
(
2'2.5 GB De partage''500.0''Quand vous avez acquis les points bonus requis, vous pouvez les échanger contre des crédit de partage. Les points seront retirer de votre banque de point et le crédit de votre partage sera automatiquement ajuster.''traffic'2684354560),
(
3'5 GB De partage''800.0''Quand vous avez acquis les points bonus requis, vous pouvez les échanger contre des crédit de partage. Les points seront retirer de votre banque de point et le crédit de votre partage sera automatiquement ajuster.''traffic'5368709120),
(
4'3 Invitations''100.0''Quand vous avez acquis les points bonus requis, vous pouvez les échanger contre des invitation. Les points seront retirer de votre banque de point et les invitation seront automatiquement ajuster.''invite'3),
(
5'Titre personnalisé''250.0''Pour seulement 50 points karma, vous pouvez acheter un titre personnalisé. La seul restriction est de respecter un language correte et non offensant, les classe d''usager ne peuvent en aucun temps servir de titre personnalisé. Les points seront retirer de ''title'1),
(
6'Le statu de VIP''950.0''Quand vous avez acquis les points bonus requis, vous pouvez acheter un statu de VIP pour une période de 1 moi. Les points seront retirer de votre banque de point et le statu de VIP vous sera automatiquement accordé ''class'1),
(
7'Donner un cadeau en points karma''100.0''Vous n''avez pas besoin de vos point et vous aimeriez aider un membre. vous pouver lui faire parvenir 100 points karma. Ces 100 points seront retirer de votre banque pour être tranférer a la banque du membre que vous aurez choisi.''gift_1'1073741824),
(
8'1 Jeton streaming''600.0''Quand vous avez acquis les points bonus requis, vous pouvez les échanger contre des jetons. Les points seront retirer de votre banque de point et les jetons seront automatiquement ajuster''cinema'1); 



:drink:

Omenke 24th May 2011 07:36

re
 
just so much out of the sql

PHP Code:

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

--
-- 
Structure de la table `bonus`
--

CREATE TABLE IF NOT EXISTS `bonus` (
  `
idint(5NOT NULL AUTO_INCREMENT,
  `
bonusnamevarchar(50NOT NULL DEFAULT '',
  `
pointsdecimal(5,1NOT NULL DEFAULT '0.0',
  `
descriptiontinytext NOT NULL,
  `
artvarchar(10NOT NULL DEFAULT 'traffic',
  `
mengebigint(20unsigned NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;

--
-- 
Contenu de la table `bonus`
--

INSERT INTO `bonus` (`id`, `bonusname`, `points`, `description`, `art`, `menge`) VALUES
(8'1 Jeton streaming''600.0''Quand vous avez acquis les points bonus requis, vous pouvez les échanger contre des jetons. Les points seront retirer de votre banque de point et les jetons seront automatiquement ajuster''cinema'1); 

:friend:


All times are GMT +2. The time now is 17:01.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.