Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Reply
  #11  
Old 2nd November 2009, 17:31
evaldas40 evaldas40 is offline
Senior Member
 
Join Date: Jun 2009
Lithuania
Posts: 67
Default
i was triyng to add somewhere but i have eror in that line where i need to add :(

i add the filess, please add yuo that shoubox, becose i ghave a lot of erors
Attached Files
File Type: php index.php (3.5 KB, 3 views)
File Type: php global.php (8.7 KB, 4 views)
Reply With Quote
  #12  
Old 2nd November 2009, 17:34
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
Quote:
in global.php i dont find

//-------- Begins a main frame

function begin_main_frame()

look in theme/theme_name/template.php
you will see
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details

Last edited by daffy; 2nd November 2009 at 17:35. Reason: .
Reply With Quote
  #13  
Old 2nd November 2009, 17:37
evaldas40 evaldas40 is offline
Senior Member
 
Join Date: Jun 2009
Lithuania
Posts: 67
Default
how about index ?
Reply With Quote
  #14  
Old 2nd November 2009, 18:15
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
try this index.php
and give me bittorrent.php
PHP Code:
<?

require "include/bittorrent.php";

gzip();

dbconn(true);

if (
$_SERVER["REQUEST_METHOD"] == "POST") {

  
$choice $_POST["choice"];

  if (
$CURUSER && $choice != "" && $choice 256 && $choice == floor($choice)) {

    
$res sql_query("SELECT * FROM polls ORDER BY added DESC LIMIT 1") or sqlerr(__FILE____LINE__);

    
$arr mysql_fetch_assoc($res) or die("No pools");

    
$pollid $arr["id"];

    
$userid $CURUSER["id"];

    
$res sql_query("SELECT * FROM pollanswers WHERE pollid=$pollid && userid=$userid") or sqlerr(__FILE____LINE__);

    
$arr mysql_fetch_assoc($res);

    if (
$arr) die("Double vote");

    
sql_query("INSERT INTO pollanswers VALUES(0, $pollid$userid$choice)") or sqlerr(__FILE____LINE__);

    if (
mysql_affected_rows() != 1)

      
stderr($tracker_lang['error'], "Error.Your vote has not been accepted.");

    
header("Location: $DEFAULTBASEURL/");

    die;

  } else

    
stderr($tracker_lang['error'], "Please select option.");

}



stdhead($tracker_lang['homepage']);



//print("<table width=\"100%\" class=\"main\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"embedded\">");



//// Shoutbox 
 
print("<h2>Shoutbox:.");

print(
"<table width='100%' border='1' cellspacing='0' cellpadding='1'><tr><td class=text>\n");
print(
"<iframe src='shoutbox.php' width='100%' height='80' frameborder='0' name='sbox' marginwidth='0' marginheight='0'></iframe>

\n"
);
print(
"<form action='shoutbox.php' method='get' rel='nofollow' target='sbox' name='shbox' onSubmit=\"mySubmit()\">\n");
print(
"<center>Message: <input type='text' maxlength=140 name='shbox_text' size='100'>  <input type='submit' value='Post it'> <input type='hidden' name='sent' value='yes'>\n");
print(
"</td></tr></table></form>");
////

?>



<div align="center"><font class="small"><img src="./themes/<?=$ss_uri;?>/images/en.gif" width="20" height="15"></font></div>

<p align="justify"><font class="small" style="font-weight: normal;">No files you see here are hosted on the server. Links available are provided by site users and administation is not responsible for them. It is strictly prohibited to upload any copyrighted material without explicit permission from copyright holders. If you find that some content is abusing you feel free to contact administation.</font></p>



<!--</td></tr></table>-->



<?

stdfoot
();

?>
Reply With Quote
  #15  
Old 2nd November 2009, 19:31
evaldas40 evaldas40 is offline
Senior Member
 
Join Date: Jun 2009
Lithuania
Posts: 67
Default
there is bitt file

Attached Files
File Type: php bittorrent.php (2.6 KB, 5 views)
Reply With Quote
  #16  
Old 2nd November 2009, 19:43
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
new one
PHP Code:
<?

define
('IN_TRACKER'true);

@
error_reporting(E_ALL & ~E_NOTICE);

@
ini_set('error_reporting'E_ALL & ~E_NOTICE);

@
ini_set('display_errors''1');

@
ini_set('display_startup_errors''0');

@
ini_set('ignore_repeated_errors''1');

@
ignore_user_abort(1);

@
set_time_limit(0);

@
set_magic_quotes_runtime(0);

@
session_start();

define ('ROOT_PATH'dirname(dirname(__FILE__))."/");

function 
timer() {

    list(
$usec$sec) = explode(" "microtime());

    return ((float)
$usec + (float)$sec);

}

$tstart timer(); 

function 
textbbcode($form,$name,$content="") {
?>

<script language=javascript>
function SmileIT(smile,form,text){
    document.forms[form].elements[text].value = document.forms[form].elements[text].value+" "+smile+" ";
    document.forms[form].elements[text].focus();
}

function PopMoreSmiles(form,name) {
         link='moresmiles.php?form='+form+'&text='+name
         newWin=window.open(link,'moresmile','height=500,width=450,resizable=no,scrollbars=yes');
         if (window.focus) {newWin.focus()}
}

function PopMoreTags(form,name) {
         link='moretags.php?form='+form+'&text='+name
         newWin=window.open(link,'moresmile','height=500,width=775,resizable=no,scrollbars=yes');
         if (window.focus) {newWin.focus()}
}


function BBTag(tag,s,text,form){
switch(tag)
    {
    case '";
           document.forms[form].elements[s].value="QUOTE ";
           }
        break;
    case '[img]':
    if (document.forms[form].elements[s].value=="IMG ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"[img]";
        document.forms[form].elements[s].value="IMG*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"[/img]";
           document.forms[form].elements[s].value="IMG ";
           }
        break;
    case '[url="http://':%20%20%20%20if%20(document.forms%5bform%5d.elements%5bs%5d.value=="URL%20")%20%20%20%20%20%20%20{%20%20%20%20%20%20%20%20document.forms%5bform%5d.elements%5btext%5d.value%20=%20document.forms%5bform%5d.elements%5btext%5d.value+"%5burl%5d";%20%20%20%20%20%20%20%20document.forms%5bform%5d.elements%5bs%5d.value="URL*";%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20else%20%20%20%20%20%20%20%20%20%20%20{%20%20%20%20%20%20%20%20%20%20%20document.forms%5bform%5d.elements%5btext%5d.value%20=%20document.forms%5bform%5d.elements%5btext%5d.value+""]':
    if (document.forms[form].elements[s].value=="URL ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
        document.forms[form].elements[s].value="URL*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
           document.forms[form].elements[s].value="URL ";
           }
        break;
    case '[*]':
    if (document.forms[form].elements[s].value=="List ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"[*]";
        }
        break;
    case '[b]':
    if (document.forms[form].elements[s].value=="B ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
        document.forms[form].elements[s].value="B*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
           document.forms[form].elements[s].value="B ";
           }
        break;
    case '[i]':
    if (document.forms[form].elements[s].value=="I ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
        document.forms[form].elements[s].value="I*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
           document.forms[form].elements[s].value="I ";
           }
        break;
    case '[u]':
    if (document.forms[form].elements[s].value=="U ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
        document.forms[form].elements[s].value="U*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
           document.forms[form].elements[s].value="U ";
           }
        break;
    }
    document.forms[form].elements[text].focus();
}

</script>

  <table width="100%" style='margin: 3px' cellpadding="0" cellspacing="0">
    <tr>
      <td class=embedded colspan=2>
      <table cellpadding="2" cellspacing="1">
      <tr>
      <td class=embedded><input style="font-weight: bold;" type="button" name="bold" value="B " onclick="java script: BBTag('[b]','bold','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input style="font-style: italic;" type="button" name="italic" value="I " onclick="java script: BBTag('[i]','italic','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input style="text-decoration: underline;" type="button" name="underline" value="U " onclick="java script: BBTag('[u]','underline','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input type="button" name="li" value="List " onclick="java script: BBTag('[*]','li','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input type="button" name="quote" value="QUOTE " onclick="java script: BBTag('[quote]','quote','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input type="button" name="url" value="URL " onclick="java script: BBTag('[url]','url','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input type="button" name="img" value="IMG " onclick="java script: BBTag('[img]','img','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded>*<? echo MORE_TAGS;?></td>
      </tr>
      </table>
      </td>
    </tr>
    <tr>
      <td class=embedded>
      <textarea name="<? echo $name?>" rows="15" cols="80"><? echo $content?></textarea>
      </td>
      <td class=embedded>
      <table cellpadding="3" cellspacing="1">
      <?

      
global $smilies$BASEURL;
      while ((list(
$code$url) = each($smilies)) && $count<20) {
         if (
$count 4==0)
            print(
"<tr>");

            print(
"\n<td class=embedded style='padding: 3px; margin: 2px'><a href=\"java script: SmileIT('".str_replace("'","\'",$code)."','$form','$name')\"><img border=0 src=pic/smilies/".$url."></a></td>");
            
$count++;

         if (
$count 4==0)
            print(
"</tr>");
      }
      
?>
      </table>
      <center><? echo MORE_SMILES;?></center>
      </td>
    </tr>
  </table>
<?
}



// INCLUDE BACK-END

if (empty($rootpath))

    
$rootpath ROOT_PATH;

require_once(
$rootpath 'include/core.php');

?>
shoutbox.php must be in root
PHP Code:
<? 
require_once("include/bittorrent.php"); 
 
dbconn(false); 
 
loggedinorreturn(); 
 
//deleting messages 
 
if (isset($_GET['del'])) 

if (
is_numeric($_GET['del'])) 

$query "SELECT * FROM shoutbox WHERE id=".$_GET['del']; 
$result mysql_query($query); 

else { 
echo 
"<center>Invalid message ID</center>"
exit;} 
 
$row mysql_fetch_row($result); 
 
if ( (
get_user_class() >= UC_MODERATOR) ) 

$query "DELETE FROM shoutbox WHERE id=".$_GET['del']; 
mysql_query($query); 


 
?> 
<html><head> 
<title>ShoutBox</title> 
<META HTTP-EQUIV=REFRESH CONTENT="600; URL=shoutbox.php"> 
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> 
<style type="text/css"> 
A {color: #000000; font-weight: bold; } 
A:hover {color: #FF0000;} 
.small {font-size: 8pt; font-family: verdana; } 
.date {font-size: 7pt;} 
</style> 
<STYLE>BODY { 
SCROLLBAR-3DLIGHT-COLOR: #004E98; 
SCROLLBAR-ARROW-COLOR: #004E98; 
SCROLLBAR-DARKSHADOW-COLOR: white; 
SCROLLBAR-BASE-COLOR: white 

</STYLE> 
</head> 
<body bgcolor=#F5F4EA> 
<? 
 
/* 
if ($CURUSER["chatpost"] == 'no') 

print("<h2><br><center>You are banned.</center></h2>"); 
exit; 

else 

*/ 
 
if($_GET["sent"]=="yes"
if(!
$_GET["shbox_text"]) 

    
$userid=$CURUSER["id"]; 

else 

$userid=$CURUSER["id"]; 
$username=$CURUSER["username"]; 
$date=time(); 
$text=trim($_GET["shbox_text"]); 
 
mysql_query("INSERT INTO shoutbox (id, userid, username, date, text) VALUES ('id'," sqlesc($userid) . ", " sqlesc($username) . ", $date, " sqlesc($text) . ")") or sqlerr(__FILE____LINE__); 

 
$res mysql_query("SELECT * FROM shoutbox ORDER BY date DESC LIMIT 70") or sqlerr(__FILE____LINE__); 
if (
mysql_num_rows($res) == 0
print(
"\n"); 
else 

print(
"<table border=0 cellspacing=0 cellpadding=2 width='100%' align='left' class='small'>\n"); 
 
while (
$arr mysql_fetch_assoc($res)) 

$res2 mysql_query("SELECT username,class,avatar,donor,title,enabled,warned FROM users WHERE id=$arr[userid]") or sqlerr(__FILE____LINE__); 
$arr2 mysql_fetch_assoc($res2); 
 
if (
get_user_class() >= UC_MODERATOR) { 
$del="[<a href=/shoutbox.php?del=".$arr[id].">D</a>]"

 
print(
"<tr><td><font color=gray><span class='date'>".strftime("%H:%M",$arr["date"]).":.</font> 
$del 
</span> 
<a href='userdetails.php?id="
.$arr["userid"]."' target='_blank'>".$arr["username"]."</a>" 
(
$arr2["donor"] == "yes" "<img src=pic/star.gif alt='??????????'>" "") . 
(
$arr2["class"] == "3" "<img src="."/pic/rel.gif alt='???????'>" "") . 
(
$arr2["class"] == "2" "<img src="."/pic/vip.gif alt='VIP'>" "") . 
(
$arr2["class"] == "1" "<img src="."/pic/kan.gif alt='????????'>" "") . 
(
$arr2["warned"] == "yes" "<img src="."/pic/warned.gif alt=\"Warned\">" "") .format_comment
$arr[text] 
"
)); 

print(
"</table>"); 
 
 

 
 
?> 
</body> 
</html>
Reply With Quote
  #17  
Old 2nd November 2009, 19:52
evaldas40 evaldas40 is offline
Senior Member
 
Join Date: Jun 2009
Lithuania
Posts: 67
Default
new one
PHP Code:
<?

define
('IN_TRACKER'true);

@
error_reporting(E_ALL & ~E_NOTICE);

@
ini_set('error_reporting'E_ALL & ~E_NOTICE);

@
ini_set('display_errors''1');

@
ini_set('display_startup_errors''0');

@
ini_set('ignore_repeated_errors''1');

@
ignore_user_abort(1);

@
set_time_limit(0);

@
set_magic_quotes_runtime(0);

@
session_start();

define ('ROOT_PATH'dirname(dirname(__FILE__))."/");

function 
timer() {

    list(
$usec$sec) = explode(" "microtime());

    return ((float)
$usec + (float)$sec);

}

$tstart timer(); 

function 
textbbcode($form,$name,$content="") {
?>

<script language=javascript>
function SmileIT(smile,form,text){
    document.forms[form].elements[text].value = document.forms[form].elements[text].value+" "+smile+" ";
    document.forms[form].elements[text].focus();
}

function PopMoreSmiles(form,name) {
         link='moresmiles.php?form='+form+'&text='+name
         newWin=window.open(link,'moresmile','height=500,width=450,resizable=no,scrollbars=yes');
         if (window.focus) {newWin.focus()}
}

function PopMoreTags(form,name) {
         link='moretags.php?form='+form+'&text='+name
         newWin=window.open(link,'moresmile','height=500,width=775,resizable=no,scrollbars=yes');
         if (window.focus) {newWin.focus()}
}


function BBTag(tag,s,text,form){
switch(tag)
    {
    case '";
           document.forms[form].elements[s].value="QUOTE ";
           }
        break;
    case '[img]':
    if (document.forms[form].elements[s].value=="IMG ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"[img]";
        document.forms[form].elements[s].value="IMG*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"[/img]";
           document.forms[form].elements[s].value="IMG ";
           }
        break;
    case '[url="http://':%20%20%20%20if%20(document.forms%5bform%5d.elements%5bs%5d.value=="URL%20")%20%20%20%20%20%20%20{%20%20%20%20%20%20%20%20document.forms%5bform%5d.elements%5btext%5d.value%20=%20document.forms%5bform%5d.elements%5btext%5d.value+"%5burl%5d";%20%20%20%20%20%20%20%20document.forms%5bform%5d.elements%5bs%5d.value="URL*";%20%20%20%20%20%20%20%20}%20%20%20%20%20%20%20else%20%20%20%20%20%20%20%20%20%20%20{%20%20%20%20%20%20%20%20%20%20%20document.forms%5bform%5d.elements%5btext%5d.value%20=%20document.forms%5bform%5d.elements%5btext%5d.value+""]':
    if (document.forms[form].elements[s].value=="URL ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
        document.forms[form].elements[s].value="URL*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
           document.forms[form].elements[s].value="URL ";
           }
        break;
    case '[*]':
    if (document.forms[form].elements[s].value=="List ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"[*]";
        }
        break;
    case '[b]':
    if (document.forms[form].elements[s].value=="B ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
        document.forms[form].elements[s].value="B*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
           document.forms[form].elements[s].value="B ";
           }
        break;
    case '[i]':
    if (document.forms[form].elements[s].value=="I ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
        document.forms[form].elements[s].value="I*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
           document.forms[form].elements[s].value="I ";
           }
        break;
    case '[u]':
    if (document.forms[form].elements[s].value=="U ")
       {
        document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
        document.forms[form].elements[s].value="U*";
        }
       else
           {
           document.forms[form].elements[text].value = document.forms[form].elements[text].value+"";
           document.forms[form].elements[s].value="U ";
           }
        break;
    }
    document.forms[form].elements[text].focus();
}

</script>

  <table width="100%" style='margin: 3px' cellpadding="0" cellspacing="0">
    <tr>
      <td class=embedded colspan=2>
      <table cellpadding="2" cellspacing="1">
      <tr>
      <td class=embedded><input style="font-weight: bold;" type="button" name="bold" value="B " onclick="java script: BBTag('[b]','bold','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input style="font-style: italic;" type="button" name="italic" value="I " onclick="java script: BBTag('[i]','italic','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input style="text-decoration: underline;" type="button" name="underline" value="U " onclick="java script: BBTag('[u]','underline','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input type="button" name="li" value="List " onclick="java script: BBTag('[*]','li','<? echo $name?>','<? echo $form?>')" /></td>
      <td class=embedded><input type="button" name="quote" value="QUOTE " onclick="java script: BBTag('<<<@!1!@>>>
what this file name would be ? in root ?
Reply With Quote
  #18  
Old 2nd November 2009, 19:53
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
that's FUCKING BITTORRENT.PHP
Reply With Quote
  #19  
Old 2nd November 2009, 20:01
evaldas40 evaldas40 is offline
Senior Member
 
Join Date: Jun 2009
Lithuania
Posts: 67
Default
eror
Code:
Fatal error: Cannot redeclare textbbcode() (previously declared in /home/evaldas40/domains/cs.zones.lt/public_html/include/bittorrent.php:35) in /home/evaldas40/domains/cs.zones.lt/public_html/include/functions_global.php on line 501
Reply With Quote
  #20  
Old 2nd November 2009, 20:02
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
then put back on old bittorrent.php
Reply With Quote
Reply

Tags
ajax , pre6 , shoutbox , yse

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax Chat kp380lv Mods & Themes 13 26th July 2011 02:38
[FTS 1.1] Ajax Poller Edgein Mods & Themes 0 12th September 2009 08:37
Need Ajax chat in PB. re4ux xBTiT 2 26th August 2009 21:28
AJAX Chat vertex Yuna Scatari Edition (YSE) 1 26th June 2008 10:50
New ratio with ajax - Ajax 5 star ratings kp380lv Yuna Scatari Edition (YSE) 0 23rd June 2008 01:11



All times are GMT +2. The time now is 10:50. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.