Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #21  
Old 17th May 2011, 17:10
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default fix
Quote:
Originally Posted by turktiger View Post
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();
 ?>
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%" 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>








<br><br>
<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 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><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();


 
?>
Reply With Quote
The Following User Says Thank You to DARCK For This Useful Post:
turktiger (22nd May 2011)
  #22  
Old 18th May 2011, 19:36
turktiger turktiger is offline
Senior Member
 
Join Date: Jan 2011
Turkey
Posts: 20
Question
same , nothing change ?
Reply With Quote
  #23  
Old 19th May 2011, 16:28
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default help!
Hello!

I would be a problem, when I look at the page browsestreaming.php nothing comes on just a blank screen.
Reply With Quote
  #24  
Old 20th May 2011, 10:04
turktiger turktiger is offline
Senior Member
 
Join Date: Jan 2011
Turkey
Posts: 20
Default
Quote:
Originally Posted by Omenke View Post
Hello!

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

nothing works lol ,
Reply With Quote
  #25  
Old 20th May 2011, 16:34
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default oki
Quote:
Originally Posted by turktiger View Post
nothing works lol ,
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";
Reply With Quote
The Following User Says Thank You to DARCK For This Useful Post:
turktiger (22nd May 2011)
  #26  
Old 21st May 2011, 19:36
turktiger turktiger is offline
Senior Member
 
Join Date: Jan 2011
Turkey
Posts: 20
Default 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 
Reply With Quote
  #27  
Old 21st May 2011, 23:58
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default Updates
rooot.tar.gz

Last edited by DARCK; 22nd May 2011 at 14:29.
Reply With Quote
The Following 2 Users Say Thank You to DARCK For This Useful Post:
Omenke (22nd May 2011), turktiger (22nd May 2011)
  #28  
Old 22nd May 2011, 14:46
turktiger turktiger is offline
Senior Member
 
Join Date: Jan 2011
Turkey
Posts: 20
Default streaming tab ?
i want to say special thank to Darck , now works perfectly , can we add streaming tab in details.php like in the attached pic ?
Attached Thumbnails
tab.png  
Reply With Quote
  #29  
Old 23rd May 2011, 17:33
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default Added:kpschangebonus streaming
Click image for larger version

Name:	Capture-2.jpg
Views:	51
Size:	234.7 KB
ID:	2905Click image for larger version

Name:	Capture-3.jpg
Views:	27
Size:	317.5 KB
ID:	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); 


Reply With Quote
The Following 3 Users Say Thank You to DARCK For This Useful Post:
Marco (10th July 2012), Omenke (24th May 2011), turktiger (24th May 2011)
  #30  
Old 24th May 2011, 07:36
Omenke Omenke is offline
Senior Member
 
Join Date: May 2010
Hungary
Posts: 35
Default 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); 
Reply With Quote
The Following User Says Thank You to Omenke For This Useful Post:
turktiger (24th May 2011)
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 19:47. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.