Members   Search      Help    Register    Login    Home
Today's Messages (off)  | Unanswered Messages (on)

Forum: M0dZ & HaCkZ
 Topic: IMDB Mod Replacement
IMDB Mod Replacement [message #5899] Thu, 12 January 2012 14:52
Pho3niX90 is currently offline Pho3niX90  
Messages: 35
Registered: October 2011
Location: South Africa
Leecher
Put this file in the imdb folder.
 Topic: Dance TV
Dance TV [message #5329] Sat, 12 February 2011 18:43
claudita is currently offline claudita  Romania
Messages: 37
Registered: December 2009
Location: ROMANIA
Leecher
add file (named dance.php)

<?php
/*
*----------------------------phpMyBitTorrent V 2.0.4---------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------------   And Joe Robertson (aka joeroberts)   -------------------*
*-------------               [url]http://www.p2pmania.it[/url]               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              [url]http://www.bittorrent.com[/url]             -------------*
   *----------------------------------------------------------- -------------------*
   *----------------------------------------------------------- -------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
   *----------------------------------------------------------- -------------------*
*------              ©2010 phpMyBitTorrent Development Team              ------*
*-----------               [url]http://phpmybittorrent.com[/url]               -----------*
   *----------------------------------------------------------- -------------------*
*--------------------   Sunday, May 17, 2009 1:05 AM   ------------------------*
*/
if (defined('IN_PMBT'))die ("You can't include this file");
define('IN_PMBT', true);
include("header.php");
OpenTable("TV ONLINE");
?>
<center>DANCE TV</center>
<embed type="application/x-mplayer2" width="490" height="320" pluginspage="[url]http://www.microsoft.com/Windows/MediaPlayer/[/url]" autostart="1" showcontrols="1" mute="false" volume="100" autoplay="1" uimode="full" enablefullscreencontrols="true" autosize="1" showtracker="1" transparentatstart="1" showstatusbar="1" showdisplay="0" stretchToFit="1" displaybackcolor="000000" src="[url]http://www.nettvonpc.com/play.php?tvid=238[/url]"></embed>
<?
CloseTable();
include ("footer.php");
?>


open blocks /usercp.php =>and add wer you want to show OR in theme/theme_name/main.php

OpenTable("TV ONLINE");
echo "<br />\n"; 
        print("<p>Dance TV: <a href='dance.php'>here</a></p>");
echo "<br />\n"; 
        print("<p>Wildlife: <a href='wild.php'>here</a></p>");
echo "<br />\n"; 
        print("<p>Comedy: <a href='comedy.php'>here</a></p>");
echo "<br />\n"; 
        print("<p>Classics mouvie: <a href='classics.php'>here</a></p>");
CloseTable();

Demo http://www.deemtrack.in/dance.php

[Updated on: Wed, 09 March 2011 20:59]

Report message to a moderator

 Topic: Guest Online/log Script!
Guest Online/log Script! [message #4351] Mon, 28 June 2010 21:32
Hasan is currently offline Hasan  Denmark
Messages: 89
Registered: April 2010
Seeder
A little script I made..( Used codes from other script and made this)
I'm still new too php so please be gentle o.o


In this script you can see guest/user online last 5 mins(you can chose how long time as well)and there will be added a log too..

You can see how it looks in my side wwww.u-torrentz.org, Just scroll down.

1) Install the Sql ( remember to change CHARSET to "latin1" when you import the sql file)

Code:
CREATE TABLE `guest` (
  `time` int(15) NOT NULL default '0',
  `ip` varchar(50) NOT NULL default '',
  `browser` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`time`)
)ENGINE=MyISAM DEFAULT CHARSET=latin1;


2) Upload the online.php file in you root ( You can mod it and add so you can see ip by adding "ip" or do other mods o.o)

3)

Add this code where ever you want it to... (easily too mod)

                
        //Guest Online
        $db_host = "localhost";
        $db_user = "User-name"; 
        $db_pass = "Password";
        $db_name = "DATABASE";
        $dbc = mysql_connect($db_host, $db_user, $db_pass);
        $dbs = mysql_select_db($db_name);
        $tm = time();
        $timeout = $tm - (300);  //300 is 5 mins
        if($_SERVER["REMOTE_ADDR"]){$ip=$_SERVER["REMOTE_ADDR"
                                             ];}
            else{$ip=$_SERVER["HTTP_X_FORWARDED_FOR"];}
        $brws = explode("(",$_SERVER["HTTP_USER_AGENT"]);
        $browser = $brws[0];
        mysql_query("INSERT INTO guest SET  time='".$tm."', ip='".$ip."', browser='".$browser."'");
        $delete = mysql_db_query($db_name, "DELETE FROM guest WHERE time<$timeout"); 

if(!($delete)) { 

    print ""; 

} 

        $count = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM guest"));
        mysql_close();
        echo "<br/><a href=\"online.php\"><b>Total Guest Online In Last 5 mins:</b> $count[0]</a><br/>";


Here you go Very Happy
  • Attachment: online.php
    (Size: 0.82KB, Downloaded 86 times)


My site www.u-torrentz.org
 Topic: world cup map
world cup map [message #4350] Mon, 28 June 2010 13:35
Daffy is currently offline Daffy  United Kingdom
Messages: 359
Registered: October 2009
Location: uk
Releaser

got this out of a toolbar and put it on my site so we can check on how wc is doing lol. just add file to root and add link to it

this is what it looks like. but with your site around it also. pretty cool too.

http://i46.tinypic.com/296p26u.jpg
  • Attachment: wcup.php
    (Size: 1.01KB, Downloaded 78 times)


 Topic: Poster with glossy style, nice effect
Poster with glossy style, nice effect [message #4349] Mon, 28 June 2010 13:28
Daffy is currently offline Daffy  United Kingdom
Messages: 359
Registered: October 2009
Location: uk
Releaser

open main.php in your theme/s

find at the bottom. yours may look a little diff
function themefooter(){
global $db, $db_prefix, $startpagetime, $theme, $siteurl, $user, $upload_level, $sitename, $gfx_check, $donations, $INVITEONLY,$onlysearch, $pivate_mode, $forumshare, $shout_config, $PHP_SELF, $_SERVER;


and add below
echo '<script type="text/javascript" src="js/glossy.js"></script>';


now open include/functions.php

find
"<a href=\"\\1\" target=\"_blank\"><img border=0 src=\"\\1\" onLoad='SetSize(this, 300)'></a>",
"<a href=\"\\1\" target=\"_blank\"><img border=0 src=\"\\1\" onLoad='SetSize(this, 300)'></a>",


and change to this or alter as your see if yours is modified
"<a href=\"\\1\" target=\"_blank\"><img class=glossy border=0 src=\"\\1\" onLoad='SetSize(this, 300)'></a>",
"<a href=\"\\1\" target=\"_blank\"><img class=glossy border=0 src=\"\\1\" onLoad='SetSize(this, 300)'></a>",


basically adding

class=glossy


unpack attatched rar, upack and place glossy directory into your root/js folder.

http://i50.tinypic.com/15i4zzo.jpg
http://i50.tinypic.com/2nghg9k.jpg
  • Attachment: glossy.rar
    (Size: 3.35KB, Downloaded 98 times)


[Updated on: Mon, 28 June 2010 13:38]

Report message to a moderator

 Topic: New releases section
New releases section [message #4282] Sun, 13 June 2010 15:12
firefly0777 is currently offline firefly0777  
Messages: 10
Registered: June 2010
Location: south africa
Leecher
Hi Joe and company.

It would be very helpful to have a new release section
on the tracker with a pre time ability.

This is what I would like.A new releases section page with the ability of pre time auto detect release function or so the ability to auto move it after a specified time frame to the main page.
I do know that it is possible because ive seen it on another site.

This will be a powerful and useful thing to have.

thanks



[Updated on: Sun, 13 June 2010 15:15]

Report message to a moderator

 Topic: Birthday Mod
Birthday Mod [message #3705] Fri, 05 March 2010 04:31
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
allow a birthday list on index
Just a little something I threw together for me on monday Laughing
open database and add
ALTER TABLE `torrent_users`  ADD `birthday` varchar(20) character set utf8 collate utf8_bin default NULL,
Now open user/editprofile.php and find
[code]
<?php
if�(!isset($jabber)�OR�$jabber�==�"")�$jabber�=� "NULL";
��������processinput("jabber",$jabber);
?>
[/php]
and add after

//Birthday Modd
if(isset($userrow["birthday"]) OR !$userrow["birthday"]=='')$bday = explode("-", $userrow["birthday"]);
else
$bday = array('0','0','0');
$now = getdate(time() - date('Z'));
echo "<tr><td><p>";
help(pic("help.gif"),"Setting a year will list your age when it is your birthday.","BirthDay");
echo"BirthDay:</p></td>
<td><p><span class=\"genmed\">Day:</span>
<select name=\"bday_day\">
<option ".(($bday['0'] == 0)? "selected=\"selected\"" : '')." value=\"0\">--</option>
<option ".(($bday['0'] == 1)? "selected=\"selected\"" : '')." value=\"1\">1</option>
<option ".(($bday['0'] == 2)? "selected=\"selected\"" : '')." value=\"2\">2</option>
<option ".(($bday['0'] == 3)? "selected=\"selected\"" : '')." value=\"3\">3</option>
<option ".(($bday['0'] == 4)? "selected=\"selected\"" : '')." value=\"4\">4</option>
<option ".(($bday['0'] == 5)? "selected=\"selected\"" : '')." value=\"5\">5</option>
<option ".(($bday['0'] == 6)? "selected=\"selected\"" : '')." value=\"6\">6</option>
<option ".(($bday['0'] == 7)? "selected=\"selected\"" : '')." value=\"7\">7</option>
<option ".(($bday['0'] == Cool? "selected=\"selected\"" : '')." value=\"8\">8</option>
<option ".(($bday['0'] == 9)? "selected=\"selected\"" : '')." value=\"9\">9</option>
<option ".(($bday['0'] == 10)? "selected=\"selected\"" : '')." value=\"10\">10</option>
<option ".(($bday['0'] == 11)? "selected=\"selected\"" : '')." value=\"11\">11</option>
<option ".(($bday['0'] == 12)? "selected=\"selected\"" : '')." value=\"12\">12</option>
<option ".(($bday['0'] == 13)? "selected=\"selected\"" : '')." value=\"13\">13</option>
<option ".(($bday['0'] == 14)? "selected=\"selected\"" : '')." value=\"14\">14</option>
<option ".(($bday['0'] == 15)? "selected=\"selected\"" : '')." value=\"15\">15</option>
<option ".(($bday['0'] == 16)? "selected=\"selected\"" : '')." value=\"16\">16</option>
<option ".(($bday['0'] == 17)? "selected=\"selected\"" : '')." value=\"17\">17</option>
<option ".(($bday['0'] == 18)? "selected=\"selected\"" : '')." value=\"18\">18</option>
<option ".(($bday['0'] == 19)? "selected=\"selected\"" : '')." value=\"19\">19</option>
<option ".(($bday['0'] == 20)? "selected=\"selected\"" : '')." value=\"20\">20</option>
<option ".(($bday['0'] == 21)? "selected=\"selected\"" : '')." value=\"21\">21</option>
<option ".(($bday['0'] == 22)? "selected=\"selected\"" : '')." value=\"22\">22</option>
<option ".(($bday['0'] == 23)? "selected=\"selected\"" : '')." value=\"23\">23</option>
<option ".(($bday['0'] == 24)? "selected=\"selected\"" : '')." value=\"24\">24</option>
<option ".(($bday['0'] == 25)? "selected=\"selected\"" : '')." value=\"25\">25</option>
<option ".(($bday['0'] == 26)? "selected=\"selected\"" : '')." value=\"26\">26</option>
<option ".(($bday['0'] == 27)? "selected=\"selected\"" : '')." value=\"27\">27</option>
<option ".(($bday['0'] == 28)? "selected=\"selected\"" : '')." value=\"28\">28</option>
<option ".(($bday['0'] == 29)? "selected=\"selected\"" : '')." value=\"29\">29</option>
<option ".(($bday['0'] == 30)? "selected=\"selected\"" : '')." value=\"30\">30</option>
<option ".(($bday['0'] == 31)? "selected=\"selected\"" : '')." value=\"31\">31</option>
</select>
<span class=\"genmed\">Month:</span>
<select name=\"bday_month\">
<option value=\"0\">--</option>
<option ".(($bday['1'] == 1)? "selected=\"selected\"" : '')." value=\"1\">1</option>
<option ".(($bday['1'] == 2)? "selected=\"selected\"" : '')." value=\"2\">2</option>
<option ".(($bday['1'] == 3)? "selected=\"selected\"" : '')." value=\"3\">3</option>
<option ".(($bday['1'] == 4)? "selected=\"selected\"" : '')." value=\"4\">4</option>
<option ".(($bday['1'] == 5)? "selected=\"selected\"" : '')." value=\"5\">5</option>
<option ".(($bday['1'] == 6)? "selected=\"selected\"" : '')." value=\"6\">6</option>
<option ".(($bday['1'] == 7)? "selected=\"selected\"" : '')." value=\"7\">7</option>
<option ".(($bday['1'] == Cool? "selected=\"selected\"" : '')." value=\"8\">8</option>
<option ".(($bday['1'] == 9)? "selected=\"selected\"" : '')." value=\"9\">9</option>
<option ".(($bday['1'] == 10)? "selected=\"selected\"" : '')." value=\"10\">10</option>
<option ".(($bday['1'] == 11)? "selected=\"selected\"" : '')." value=\"11\">11</option>
<option ".(($bday['1'] == 12)? "selected=\"selected\"" : '')." value=\"12\">12</option>
</select>
<span class=\"genmed\">Year:</span>
<select name=\"bday_year\">
<option value=\"0\">--</option>
<option ".(($bday['2'] == 1910)? "selected=\"selected\"" : '')." value=\"1910\">1910</option>
<option ".(($bday['2'] == 1911)? "selected=\"selected\"" : '')." value=\"1911\">1911</option>
<option ".(($bday['2'] == 1912)? "selected=\"selected\"" : '')." value=\"1912\">1912</option>
<option ".(($bday['2'] == 1913)? "selected=\"selected\"" : '')." value=\"1913\">1913</option>
<option ".(($bday['2'] == 1914)? "selected=\"selected\"" : '')." value=\"1914\">1914</option>
<option ".(($bday['2'] == 1915)? "selected=\"selected\"" : '')." value=\"1915\">1915</option>
<option ".(($bday['2'] == 1916)? "selected=\"selected\"" : '')." value=\"1916\">1916</option>
<option ".(($bday['2'] == 1917)? "selected=\"selected\"" : '')." value=\"1917\">1917</option>
<option ".(($bday['2'] == 1918)? "selected=\"selected\"" : '')." value=\"1918\">1918</option>
<option ".(($bday['2'] == 1919)? "selected=\"selected\"" : '')." value=\"1919\">1919</option>
<option ".(($bday['2'] == 1920)? "selected=\"selected\"" : '')." value=\"1920\">1920</option>
<option ".(($bday['2'] == 1921)? "selected=\"selected\"" : '')." value=\"1921\">1921</option>
<option ".(($bday['2'] == 1922)? "selected=\"selected\"" : '')." value=\"1922\">1922</option>
<option ".(($bday['2'] == 1923)? "selected=\"selected\"" : '')." value=\"1923\">1923</option>
<option ".(($bday['2'] == 1924)? "selected=\"selected\"" : '')." value=\"1924\">1924</option>
<option ".(($bday['2'] == 1925)? " selected=\"selected\"" : '')." value=\"1925\">1925</option>
<option ".(($bday['2'] == 1926)? " selected=\"selected\"" : '')." value=\"1926\">1926</option>
<option ".(($bday['2'] == 1927)? " selected=\"selected\"" : '')." value=\"1927\">1927</option>
<option ".(($bday['2'] == 1928)? " selected=\"selected\"" : '')." value=\"1928\">1928</option>
<option ".(($bday['2'] == 1929)? " selected=\"selected\"" : '')." value=\"1929\">1929</option>
<option ".(($bday['2'] == 1930)? " selected=\"selected\"" : '')." value=\"1930\">1930</option>
<option ".(($bday['2'] == 1931)? " selected=\"selected\"" : '')." value=\"1931\">1931</option>
<option ".(($bday['2'] == 1932)? " selected=\"selected\"" : '')." value=\"1932\">1932</option>
<option ".(($bday['2'] == 1933)? " selected=\"selected\"" : '')." value=\"1933\">1933</option>
<option ".(($bday['2'] == 1934)? " selected=\"selected\"" : '')." value=\"1934\">1934</option>
<option ".(($bday['2'] == 1935)? " selected=\"selected\"" : '')." value=\"1935\">1935</option>
<option ".(($bday['2'] == 1936)? " selected=\"selected\"" : '')." value=\"1936\">1936</option>
<option ".(($bday['2'] == 1937)? " selected=\"selected\"" : '')." value=\"1937\">1937</option>
<option ".(($bday['2'] == 1938)? " selected=\"selected\"" : '')." value=\"1938\">1938</option>
<option ".(($bday['2'] == 1939)? " selected=\"selected\"" : '')." value=\"1939\">1939</option>
<option ".(($bday['2'] == 1940)? " selected=\"selected\"" : '')." value=\"1940\">1940</option>
<option ".(($bday['2'] == 1941)? " selected=\"selected\"" : '')." value=\"1941\">1941</option>
<option ".(($bday['2'] == 1942)? " selected=\"selected\"" : '')." value=\"1942\">1942</option>
<option ".(($bday['2'] == 1943)? " selected=\"selected\"" : '')." value=\"1943\">1943</option>
<option ".(($bday['2'] == 1944)? " selected=\"selected\"" : '')." value=\"1944\">1944</option>
<option ".(($bday['2'] == 1945)? " selected=\"selected\"" : '')." value=\"1945\">1945</option>
<option ".(($bday['2'] == 1946)? " selected=\"selected\"" : '')." value=\"1946\">1946</option>
<option ".(($bday['2'] == 1947)? " selected=\"selected\"" : '')." value=\"1947\">1947</option>
<option ".(($bday['2'] == 1948)? " selected=\"selected\"" : '')." value=\"1948\">1948</option>
<option ".(($bday['2'] == 1949)? " selected=\"selected\"" : '')." value=\"1949\">1949</option>
<option ".(($bday['2'] == 1950)? " selected=\"selected\"" : '')." value=\"1950\">1950</option>
<option ".(($bday['2'] == 1951)? " selected=\"selected\"" : '')." value=\"1951\">1951</option>
<option ".(($bday['2'] == 1952)? " selected=\"selected\"" : '')." value=\"1952\">1952</option>
<option ".(($bday['2'] == 1953)? " selected=\"selected\"" : '')." value=\"1953\">1953</option>
<option ".(($bday['2'] == 1954)? " selected=\"selected\"" : '')." value=\"1954\">1954</option>
<option ".(($bday['2'] == 1955)? " selected=\"selected\"" : '')." value=\"1955\">1955</option>
<option ".(($bday['2'] == 1956)? " selected=\"selected\"" : '')." value=\"1956\">1956</option>
<option ".(($bday['2'] == 1957)? " selected=\"selected\"" : '')." value=\"1957\">1957</option>
<option ".(($bday['2'] == 1958)? " selected=\"selected\"" : '')." value=\"1958\">1958</option>
<option ".(($bday['2'] == 1959)? " selected=\"selected\"" : '')." value=\"1959\">1959</option>
<option ".(($bday['2'] == 1960)? " selected=\"selected\"" : '')." value=\"1960\">1960</option>
<option ".(($bday['2'] == 1961)? " selected=\"selected\"" : '')." value=\"1961\">1961</option>
<option ".(($bday['2'] == 1962)? " selected=\"selected\"" : '')." value=\"1962\">1962</option>
<option ".(($bday['2'] == 1963)? " selected=\"selected\"" : '')." value=\"1963\">1963</option>
<option ".(($bday['2'] == 1964)? " selected=\"selected\"" : '')." value=\"1964\">1964</option>
<option ".(($bday['2'] == 1965)? " selected=\"selected\"" : '')." value=\"1965\">1965</option>
<option ".(($bday['2'] == 1966)? " selected=\"selected\"" : '')." value=\"1966\">1966</option>
<option ".(($bday['2'] == 1967)? " selected=\"selected\"" : '')." value=\"1967\">1967</option>
<option ".(($bday['2'] == 1968)? " selected=\"selected\"" : '')." value=\"1968\">1968</option>
<option ".(($bday['2'] == 1969)? " selected=\"selected\"" : '')." value=\"1969\">1969</option>
<option ".(($bday['2'] == 1970)? " selected=\"selected\"" : '')." value=\"1970\">1970</option>
<option ".(($bday['2'] == 1971)? " selected=\"selected\"" : '')." value=\"1971\">1971</option>
<option ".(($bday['2'] == 1972)? " selected=\"selected\"" : '')." value=\"1972\">1972</option>
<option ".(($bday['2'] == 1973)? " selected=\"selected\"" : '')." value=\"1973\">1973</option>
<option ".(($bday['2'] == 1974)? " selected=\"selected\"" : '')." value=\"1974\">1974</option>
<option ".(($bday['2'] == 1975)? " selected=\"selected\"" : '')." value=\"1975\">1975</option>
<option ".(($bday['2'] == 1976)? " selected=\"selected\"" : '')." value=\"1976\">1976</option>
<option ".(($bday['2'] == 1977)? " selected=\"selected\"" : '')." value=\"1977\">1977</option>
<option ".(($bday['2'] == 1978)? " selected=\"selected\"" : '')." value=\"1978\">1978</option>
<option ".(($bday['2'] == 1979)? " selected=\"selected\"" : '')." value=\"1979\">1979</option>
<option ".(($bday['2'] == 1980)? " selected=\"selected\"" : '')." value=\"1980\">1980</option>
<option ".(($bday['2'] == 1981)? " selected=\"selected\"" : '')." value=\"1981\">1981</option>
<option ".(($bday['2'] == 1982)? " selected=\"selected\"" : '')." value=\"1982\">1982</option>
<option ".(($bday['2'] == 1983)? " selected=\"selected\"" : '')." value=\"1983\">1983</option>
<option ".(($bday['2'] == 1984)? " selected=\"selected\"" : '')." value=\"1984\">1984</option>
<option ".(($bday['2'] == 1985)? " selected=\"selected\"" : '')." value=\"1985\">1985</option>
<option ".(($bday['2'] == 1986)? " selected=\"selected\"" : '')." value=\"1986\">1986</option>
<option ".(($bday['2'] == 1987)? " selected=\"selected\"" : '')." value=\"1987\">1987</option>
<option ".(($bday['2'] == 1988)? " selected=\"selected\"" : '')." value=\"1988\">1988</option>
<option ".(($bday['2'] == 1989)? " selected=\"selected\"" : '')." value=\"1989\">1989</option>
<option ".(($bday['2'] == 1990)? " selected=\"selected\"" : '')." value=\"1990\">1990</option>
<option ".(($bday['2'] == 1991)? " selected=\"selected\"" : '')." value=\"1991\">1991</option>
<option ".(($bday['2'] == 1992)? " selected=\"selected\"" : '')." value=\"1992\">1992</option>
<option ".(($bday['2'] == 1993)? " selected=\"selected\"" : '')." value=\"1993\">1993</option>
<option ".(($bday['2'] == 1994)? " selected=\"selected\"" : '')." value=\"1994\">1994</option>
<option ".(($bday['2'] == 1995)? " selected=\"selected\"" : '')." value=\"1995\">1995</option>
<option ".(($bday['2'] == 1996)? " selected=\"selected\"" : '')." value=\"1996\">1996</option>
<option ".(($bday['2'] == 1997)? " selected=\"selected\"" : '')." value=\"1997\">1997</option>
<option ".(($bday['2'] == 1998)? " selected=\"selected\"" : '')." value=\"1998\">1998</option>
<option ".(($bday['2'] == 1999)? " selected=\"selected\"" : '')." value=\"1999\">1999</option>
<option ".(($bday['2'] == 2000)? " selected=\"selected\"" : '')." value=\"2000\">2000</option>
<option ".(($bday['2'] == 2001)? " selected=\"selected\"" : '')." value=\"2001\">2001</option>
<option ".(($bday['2'] == 2002)? " selected=\"selected\"" : '')." value=\"2002\">2002</option>
<option ".(($bday['2'] == 2003)? " selected=\"selected\"" : '')." value=\"2003\">2003</option>
<option ".(($bday['2'] == 2004)? " selected=\"selected\"" : '')." value=\"2004\">2004</option>
<option ".(($bday['2'] == 2005)? " selected=\"selected\"" : '')." value=\"2005\">2005</option>
<option ".(($bday['2'] == 2006)? " selected=\"selected\"" : '')." value=\"2006\">2006</option>
<option ".(($bday['2'] == 2007)? " selected=\"selected\"" : '')." value=\"2007\">2007</option>
<option ".(($bday['2'] == 2008)? " selected=\"selected\"" : '')." value=\"2008\">2008</option>
<option ".(($bday['2'] == 2009)? " selected=\"selected\"" : '')." value=\"2009\">2009</option>
<option ".(($bday['2'] == 2010)? " selected=\"selected\"" : '')." value=\"2010\">2010</option>
</select></p></td></tr>\n";
//Birthday Modd End

#Separator
echo "<tr><td><HR SIZE=1 NOSHADE></td><td></td></tr>\n";


and add this image to your images folder http://p2p-evolution.com/images/birthday_Cake.png


http://a.imageshack.us/img831/5562/mybikes.png

[Updated on: Fri, 20 August 2010 13:11] by Moderator

Report message to a moderator

 Topic: shoutcast radio
icon12.gif  shoutcast radio [message #3365] Sun, 20 December 2009 23:57
Daffy is currently offline Daffy  United Kingdom
Messages: 359
Registered: October 2009
Location: uk
Releaser

to b updated

[Updated on: Fri, 01 January 2010 14:22]

Report message to a moderator

 Topic: comming up a DUTCH translation
comming up a DUTCH translation [message #3345] Sun, 13 December 2009 14:29
fammudde is currently offline fammudde  Netherlands
Messages: 3
Registered: December 2009
Location: Schiedam netherlands
Leecher
a LONG time ago already talked about it with joe, finally working on it.

because of my busy life at the moment i HOPE to finish te translation around the next week ( somewhere around the 18th )

Stats for translation: 25% done



UPDATE 04-01-2010: ok because some prived shit i havent any time but now i do (A) so lets translate the stuff! i start working on it again

[Updated on: Mon, 04 January 2010 11:49]

Report message to a moderator

 Topic: you tube
you tube [message #3128] Thu, 05 November 2009 00:41
Daffy is currently offline Daffy  United Kingdom
Messages: 359
Registered: October 2009
Location: uk
Releaser

for those who would like youtube scrolling on side block instead of vertical in the center.

if ($user->user) {
OpenTable("Youtube");

	?>
	<style type="text/css">

	#marqueecontainer{
	position: relative;
	/*width: 200px; marquee width */
	height: 500px; /*marquee height */
	background-color: transparent;
	overflow: hidden;
	border: 3px solid lightblue;*/
	padding: 2px;
	padding-left: 4px;
	}

	</style>

	<script type="text/javascript">

	/***********************************************
	* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
	* This notice MUST stay intact for legal use
	* Visit http://www.dynamicdrive.com/ for this script and 100s more.
	***********************************************/

	var delayb4scroll=1000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
	var marqueespeed=2 //Specify marquee scroll speed (larger is faster 1-10)
	var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

	////NO NEED TO EDIT BELOW THIS LINE////////////

	var copyspeed=marqueespeed
	var pausespeed=(pauseit==0)? copyspeed: 0
	var actualheight=''

	function scrollmarquee(){
	if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
	cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
	else
	cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
	}

	function initializemarquee(){
	cross_marquee=document.getElementById("vmarquee")
	cross_marquee.style.top=0
	marqueeheight=document.getElementById("marqueecontainer").offsetHeight
	actualheight=cross_marquee.offsetHeight
	if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
	cross_marquee.style.height=marqueeheight+"px"
	cross_marquee.style.overflow="scroll"
	return
	}
	setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
	}

	if (window.addEventListener)
	window.addEventListener("load", initializemarquee, false)
	else if (window.attachEvent)
	window.attachEvent("onload", initializemarquee)
	else if (document.getElementById)
	window.onload=initializemarquee


	</script>

	<div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
	<div id="vmarquee" style="position: absolute; width: 100%;">

	<!--YOUR SCROLL CONTENT HERE-->
	<?php
        
$query = "SELECT * FROM ".$db_prefix."_youtubevideo ORDER BY addtime";
$sql = $db->sql_query($query);
echo"<table border=\"1\">\n<tr>";
while ($row = $db->sql_fetchrow($sql)) {
$link = str_replace("http://youtube.com/v/","",$row["link"]);
$name = $row['name'];
echo"<center><a href=\"".$siteurl."/youtube.php?op=show&amp;video=".$row["link"]."\"><img title=\"".$name."\" src=\"http://i3.ytimg.com/vi/".$link."/default.jpg\" class=\"vimg120\" qlicon=\"".$link."\" alt=\"".$name."\"></a><br><p>$name</p>\n</BR></center>\n";
}
echo"</tr>\n</table>\n";
CloseTable();
}



http://i34.tinypic.com/20b1lwo.jpg

http://i182.photobucket.com/albums/x93/deanobaby_bucket/smiliesge4.gif


 Topic: MP3 Player
MP3 Player [message #3097] Fri, 30 October 2009 23:57
Daffy is currently offline Daffy  United Kingdom
Messages: 359
Registered: October 2009
Location: uk
Releaser

nice mp3 player will work on all sources and scripts.

add mp3 folder to root directory.

place this where you want to show.

OpenTable(MediaPlayer);
echo "<center>\n";
echo "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"150\" height=\"141\" id=\"clock\" align=\"middle\">\n";
echo "<param name=\"movie\" value=\"mp3/player.swf\" />\n";
echo "<param name=\"quality\" value=\"high\" />\n";
echo "<param name=\"scale\" value=\"exactfit\" />\n";
echo "<param name=\"wmode\" value=\"transparent\" />\n";
echo "<param name=\"menu\" value=\"false\">\n";
echo "<embed src=\"mp3/player.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"150\" height=\"141\" name=\"clock\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n";
echo "</object>\n";
CloseTable();


if you want for logged in only view add below

if ($user->user) {
OpenTable(MediaPlayer);
echo "<center>\n";
echo "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"150\" height=\"141\" id=\"clock\" align=\"middle\">\n";
echo "<param name=\"movie\" value=\"mp3/player.swf\" />\n";
echo "<param name=\"quality\" value=\"high\" />\n";
echo "<param name=\"scale\" value=\"exactfit\" />\n";
echo "<param name=\"wmode\" value=\"transparent\" />\n";
echo "<param name=\"menu\" value=\"false\">\n";
echo "<embed src=\"mp3/player.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"150\" height=\"141\" name=\"clock\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n";
echo "</object>\n";
CloseTable();
}


load your mp3 tracks only to mp3.
open list.xml with text editor, example of 2 tracks i have left and 2 slots as example.(the mp3 files in list are not included).
can add as many as you wish/ as your hdd can hold lol. plug in maybe needed.
if so post in forums and i will post link.


http://i37.tinypic.com/2962g0j.jpg


 Topic: Quick rar guide
Quick rar guide [message #3073] Thu, 29 October 2009 12:30
Daffy is currently offline Daffy  United Kingdom
Messages: 359
Registered: October 2009
Location: uk
Releaser

thought id share this as many people ask me "how do i rar up files in split volumes" you may want to add more yourself.

create new doc, named rarup.php copy all inside and upload to root

<?php

include("header.php");

OpenTable("Guide to Making Win RAR files
");
?><center>
<table class=main width=750 border=0 cellspacing=0 cellpadding=0><tr><td class=embedded>
<h2>Guide to Making Win RAR files
</h2>
<table width=100% border=1 cellspacing=0 cellpadding=10><tr><td class=text>
<p>Guide to Making Win RAR files.</p>
<ol>
<li>Download Winrar from here: '<a href=PATH TO WINRAR HERE/ target=_blank>WINRAR</a>'.</li>
<li>First find the file you want to RAR in window explorer.
.</li>
<li>Then right click and choose add to archive.</li>
<li>Next you want to choose "Store" in the compression method box.</li>
<li>In the split to volumes, bytes enter the following</li>
<li>50.000000 for DVD (files over 1.5 gig).</li>
<li>15.000000 for Music (files under 1.5 gig).</li>
Now this is important.
<li>Click the advance tab. Make sure you place a check in old style volume names.</li>
<li>This will make sure that each RAR files ends in r00, r01, r02 ect... Instead of part001, part002, ect...</li>
<li>That's it. It will then create the RAR files ready for torrent making.</li>
</td></tr></table>
</td></tr></table>
<?
CloseTable();

include("footer.php");
?>


change PATH TO WINRAR HERE with. you know lol


[Updated on: Thu, 29 October 2009 12:31]

Report message to a moderator

 Topic: Chat Mod
icon10.gif  Chat Mod [message #2742] Thu, 11 June 2009 07:46
Anonymous Leecher  United States
USE AT YOUR OWN RISK NOT SUPORTED OR CONDONED BY phpMyBitTorrent
This mod was created to make a link to my personal chat site.
I invite everyone to replace the chat.php with this file and have
users go to a site always maned for help

lots of features: including mp3 streaming, Ill be adding lots of
song. feel free to request songs for streaming. your users will never know sites are shared.

there is modes for administrator's, moderator's and spy's

please contact me for the mode passwords

hold you meetings here instead of MSN and press a siple button to save the text of your entire meeting. plus be entertained while you have your meetings too. passworded rooms are aways avail for privacy.

The purpose of this mod was to have a place we can all go
to talk about anything aswell as meet others to discuss phpmybittorrent. I hope to always have an expert be there.

hope you like the site

http://www.web-millenium.com/files/chat.rar

wlnelson Laughing

[Updated on: Thu, 11 June 2009 07:58] by Moderator

Report message to a moderator

 Topic: Increasing Torrent Name Displayed In List [pMBT2.0.3]
Increasing Torrent Name Displayed In List [pMBT2.0.3] [message #2397] Wed, 25 February 2009 00:36
Threedays is currently offline Threedays  Australia
Messages: 79
Registered: January 2009
Location: Australia
Seeder
To increase the torrent printing length for torrents listed...

On line 289 or there about in /include/bittorrent.php, increase the numbers 51 and 50 to say 71 and 70, as below.

                echo "\"  title=\"".$dispname."\">".((strlen($dispname) <= 71) ? search_word($dispname, $search): search_word(substr($dispname,0,70)."...", $search))."</a></p>";



[Updated on: Wed, 25 February 2009 00:37]

Report message to a moderator

 Topic: [PMBT 2.0.3] Adding tracker stats to forum
[PMBT 2.0.3] Adding tracker stats to forum [message #2304] Mon, 09 February 2009 03:28
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
this is not as hard as it may look

Step 1
open phpBB3/viewtopic.php and find
<?php
$post_list 
$user_cache $id_cache $attachments $attach_list $rowset $update_count $post_edit_list = array();
?>

now replace that with
<?php
#$post_list = $user_cache = $id_cache = $attachments =  $attach_list = $rowset = $update_count = $post_edit_list  = array();
#tracker stats
$post_list $user_cache $tracker_user_cache $tracker_id_cache $id_cache $attachments $attach_list $rowset $update_count $post_edit_list = array();
?>

now find
<?php
// We add the signature to every posters entry because  enable_sig is post dependant
            
if ($row['user_sig'] && $config['allow_sig'] && $user->optionget('viewsigs'))
            {
                
$user_sig $row['user_sig'];
            }
?>

And add after
<?php
if (defined('BT_SHARE'))
{
$tracker_user_cache[$poster_id] = get_tracker_stats($poster_id);
}
?>

Now find
<?php
$postrow 
= array(
?>

and add after
<?php
//tracker stats
        
'POSTER_UPLOAD'        => (!defined('BT_SHARE'))? '' $tracker_user_cache[$poster_id]['uploaded'],
        
'POSTER_DOWN_LOAD'     => (!defined('BT_SHARE'))? '' $tracker_user_cache[$poster_id]['downloaded'],
        
'POSTER_RATIO'         => (!defined('BT_SHARE'))? '' $tracker_user_cache[$poster_id]['ratio'],
        
//end
?>

OK your done there
now open say
phpBB3/styles/prosilver/templates/viewtopic_body.html
and find
        <!-- IF postrow.POSTER_POSTS != '' --><dd><strong>{L_POSTS}:</strong> {postrow.POSTER_POSTS}</dd><!-- ENDIF -->
        <!-- IF postrow.POSTER_JOINED --><dd><strong>{L_JOINED}:</strong> {postrow.POSTER_JOINED}</dd><!-- ENDIF -->
        <!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
And add before
                    <!-- IF postrow.POSTER_UPLOAD != '' --><dd><strong>Uploaded:</strong> {postrow.POSTER_UPLOAD}</dd><!-- ENDIF -->
                    <!-- IF postrow.POSTER_DOWN_LOAD != '' --><dd><strong>Downloaded:</strong> {postrow.POSTER_DOWN_LOAD}</dd><!-- ENDIF -->
                    <!-- IF postrow.POSTER_RATIO != '' --><dd><strong>Ratio:</strong> {postrow.POSTER_RATIO}</dd><!-- ENDIF -->
edit language to match yours
now go to admin panel purge cache and your done


http://a.imageshack.us/img831/5562/mybikes.png
 Topic: Last IP in view profile
Last IP in view profile [message #2219] Sat, 08 November 2008 06:04
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
for
v1.2.2
and
v2 beta

open user/profile.php

find
#User Class

add before

if(($user->admin)){

echo "<tr><td><p>Last IP</p></td>\n";
echo "<td><p>".long2ip($userrow["lastip"])."</p></td>\n";
}

[Updated on: Sat, 08 November 2008 06:22]

Report message to a moderator

 Topic: Additional Anti-cheat check
Additional Anti-cheat check [message #2158] Tue, 29 July 2008 13:32
Revan is currently offline Revan  Czech Republic
Messages: 125
Registered: April 2007
Super-Seeder
At the moment we use User Agent to discover if user is accessing announce from web browser or not, but if some smart ass would change user agent to something else it would very easily allow cheating...
This is fixed on lots of tbdev trackers however so I took their code and edited it to our purpose - thanks to the original creator!

So far we have this:
if (eregi("(Mozilla|Opera|Lynx|Netscape)",$HTTP_SERVER_VARS["HTTP_USER_AGENT"])) {
        die("<html><head><title>Error!</title></head><body><h3>Sorry, but this file is not suitable for browsers.</h3></body></html>");
}


What I'm suggesting is adding these lines below:
    $headers = getallheaders();
    if (isset($headers["Cookie"]) || isset($headers["Accept-Language"]) || isset($headers["Accept-Charset"])) {
    die("<html><head><title>Error!</title></head><body><h3>Sorry, but this file is not suitable for browsers.</h3></body></html>");
    }
    unset($headers);


If your server doesn't have (or allow) function getallheaders like mine (you're not using apache for example), then add these before the code:
if (!function_exists('getallheaders'))
{
    function getallheaders()
    {
       foreach ($_SERVER as $name => $value)
       {
           if (substr($name, 0, 5) == 'HTTP_')
           {
               $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
           }
       }
       return $headers;
    }
}
 Topic: shoutbox display invertion
shoutbox display invertion [message #2133] Fri, 04 July 2008 10:01
RazorSK is currently offline RazorSK  France
Messages: 52
Registered: April 2008
Seeder
hi all the community, i'm blammed to use the shoutbox because there is a problem with the scroll and display some times. If a lot of people send essage and the shoutbox is refreshing, you have to constantly scroll down to get the last message. So to remove this problem i have inverted the display, so the last message are the 1st displayed. If you want to do the same thing, do that:

in frame.php
search
."        window.scroll(0, 3000);\n"

or if you have done the joe fix search
."        window.scroll(1,199999);\n"


and replace it with:
."        window.scroll(1,1);\n"


now go 3 lines after, you have that:
$sql = "SELECT S.*, U.id as uid, U.avatar as avat, IF(U.name IS NULL, U.username, U.name) as user_name FROM ".$db_prefix."_shouts S LEFT JOIN ".$db_prefix."_users U ON S.user = U.id ORDER BY posted ASC;";


just replace it with:
$sql = "SELECT S.*, U.id as uid, U.avatar as avat, IF(U.name IS NULL, U.username, U.name) as user_name FROM ".$db_prefix."_shouts S LEFT JOIN ".$db_prefix."_users U ON S.user = U.id ORDER BY posted DESC;";


now the first line displayed is the last shout.

[Updated on: Fri, 04 July 2008 10:03]

Report message to a moderator

 Topic: offline
offline [message #2127] Tue, 01 July 2008 06:41
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
v 1.2.2
This a simple offline method that I use to put site in maintenance and announce/scrape still working.

1) open header.php

before
$startpagetime = microtime();

add
include("offline.php");


2) create offline.php and put following in it:
<?php
if ($_SERVER["REMOTE_ADDR"] != 'xxx.xxx.xxx.xxx')
#header( 'Location: http://www.xxxxxxxxxxx.com/maintain/index.html');
?>


put your ip instead of xxx.xxx.xxx.xxx above so you still can access site.
put your domain instead of xxxxxxxxxxx above

3) create maintain folder/directory in your webroot folder/directory

create index.html file with following:

<body bgcolor="#000000">

<p align="center">
<img border="0" src="http://www.xxxxxxxxxxxxxxxxx.com/maintain/logo.gif" width
="800" height="121"></p>
<p>&nbsp;</p>
<p align="center"><font color="#FFFFFF"><b>We are performing site maintenance. W
e'll be back soon.</font></b>
</p>

</body>


add your gif or jpg logo above accordingly.

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

if you want to put site offline just (uncomment) remove # from header line in offline.php
You can bring site back online by (commenting) putting # back on heeder line in offline.php



 Topic: phpbb3 integration problem
phpbb3 integration problem [message #2110] Sun, 08 June 2008 16:12
RazorSK is currently offline RazorSK  France
Messages: 52
Registered: April 2008
Seeder
hi all the community, i got a problem with my phpbb3 integration, my tracker is located here:

http://ks358108.kimsufi.com/

if i import users, i got an error page with the message:

"Erreur d'encodage de contenu" -> "Content Encoding Error"

anyone know what is that problem ?

Very Happy

edit: it import some users 4 or 5 before the error

[Updated on: Sun, 08 June 2008 16:16]

Report message to a moderator

 Topic: torrent peerlist pecentage completion bar
torrent peerlist pecentage completion bar [message #2049] Wed, 21 May 2008 00:35
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
for ver 1.2.2
I added a bar for completion percentage of each peer in torrent details.

used fews sections of donation bar progress ..and modified it for frame.php in peerlist section...

I ain't not expert in php/mysql..

find
$s .= _btpercent."

add following before or after:
$perc=sprintf("%.2f%%", (1 - ($row["to_go"] / $row["torrent_size"])) * 100);


find
echo $usertxt;


add before :

$usertxt.="<center><font size='1'><br><table class=main border=0 width=100><tr><td style='p
adding: 0px; background-image: url(images/loadbarbg.gif); background-repeat: repeat-x'>";
$pic = "loadbargreen.gif";
$width = round(1 * $perc);
$usertxt.="<img height=15 width=$width src=\"images/$pic\" alt='$donatein)%'><br><font size
='1'color=\"white\"><center>$perc</center></font></td></tr></table>";


oops...then clean up alt$donatein.. Razz

visually much more efficient and faster for me (perhaps other users too), than just moving the mouse over each transfer icon to see how much each peer has completed a torrent....!!

in a few days...I also might move the peer list.. all in a table vertically and sorted by progress bar (completion percentage) from...top to bottom...instead of left to right icons...

[Updated on: Wed, 21 May 2008 02:19]

Report message to a moderator

 Topic: invisible admin group
invisible admin group [message #1931] Thu, 10 April 2008 21:47
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
in ver 1.2.2

I modified header.php to check for admin group before it writes to online_users tables....therefore admin group is invisible

#if ($user->user) {^M
if (!$user->admin and $user->user) {
//Update online user list^M
$pagename = substr($_SERVER["PHP_SELF"],strrpos($_SERVER["PHP_SELF"], "/"
)+1);^M
$sqlupdate = "UPDATE ".$db_prefix."_online_users SET page = '".addslashe
s($pagename)."', last_action = NOW() WHERE id = ".$user->id.";";^M
$sqlinsert = "INSERT INTO ".$db_prefix."_online_users VALUES ('".$user->
id."','".addslashes($pagename)."', NOW(), NOW())";^M
 Topic: date/time torrent posted
date/time torrent posted [message #1930] Thu, 10 April 2008 21:40
DrAgon  United States
Messages: 192
Registered: August 2007
Super-Seeder
Bug hunter
in my ver of 1.2.2, I set btadded in english.php and then added time/date torrent posted in the detail page.. before seperator of description in details.php

#date posted
echo "<tr><td><p>"._btadded."</p></td><td><p>".$torrent["added "]."</p></td></tr>
\n";

#Separator^M
echo "<tr><td><HR SIZE=1 NOSHADE></td><td></td></tr>\n";^M
^M
#Description^M

 Topic: Check all pms on the page
Check all pms on the page [message #1731] Wed, 30 January 2008 17:18
Revan is currently offline Revan  Czech Republic
Messages: 125
Registered: April 2007
Super-Seeder
Hi guys, I did a checkbox on the pm list that lets you check or uncheck all pms on the page... what you need to do is:

find this in pm.php
 <SCRIPT language="JavaScript">
function submitform()
{
  document.folder.submit();
}
</SCRIPT>

and add after:
<script type="text/javascript">
<!--
var cnt=0;
function prochazej (uzel, pole)
{
  if(uzel.hasChildNodes())
    {
      var potomci = uzel.childNodes;
      for(var i = 0; i < potomci.length; i++)
        {
          prochazej(potomci[i], pole);
        }
    }
  else
    {
      cnt++;
      if(uzel.hasAttributes()){
        var atributy = uzel.attributes;
        for(var i = 0; i < atributy.length; i++)
          {
            if(atributy[i].nodeValue == "checkbox")
              {
              pole.push(uzel);
              break;
              }
          }
        }
    }
}
function SetAllCheckBoxes(FormName, CheckValue)
{
if(!document.forms[FormName])
return;
var objCheckBoxes = new Array();
//prochazej(document.forms[FormName], objCheckBoxes);
prochazej(document.getElementById("messages"), objCheckBoxes);
if(!objCheckBoxes)
return;
var countCheckBoxes = objCheckBoxes.length;
if(!countCheckBoxes)
objCheckBoxes.checked = CheckValue;
else
// set the check value for all check boxes
for(var i = 0; i < countCheckBoxes; i++)
objCheckBoxes[i].checked = CheckValue;
-->
}
</script>


then open pm/inbox.php
find:
"._btplmselect."

and replace with:
<input type=\"checkbox\" name=\"all\" onclick=\"SetAllCheckBoxes('privmsg_inbox', this.checked)\" />

then find:
echo "<tbody>";

and replace with:
echo "<tbody id=\"messages\" >";


then open pm/outbox.php
find:
"._btplmselect."

and replace with:
<input type=\"checkbox\" name=\"all\" onclick=\"SetAllCheckBoxes('privmsg_list', this.checked)\" />

then find:
echo "<tbody>";

and replace with:
echo "<tbody id=\"messages\" >";


That's all!
 Topic: automatic comment field resizing
automatic comment field resizing [message #1325] Thu, 13 September 2007 09:42
Revan is currently offline Revan  Czech Republic
Messages: 125
Registered: April 2007
Super-Seeder
this will change the commentlist to resize according to how many comments are in it

open details.php and find
$sql = "SELECT A.id as id, A.exeem, A.seeders, A.leechers, A.tot_peer, A.speed, A.info_hash, A.filename, A.banned, A.password, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(A.last_action) AS lastseed, A.numratings, A.name, IF(A.numratings < '".$minvotes."', NULL, ROUND(A.ratingsum / A.numratings, 1)) AS rating, A.save_as, A.descr, A.visible, A.size, A.plen, A.added, A.views, A.downloaded, A.completed, A.type, A.private, A.min_ratio, A.numfiles, A.owner, A.ownertype, A.complaints, A.evidence, A.tracker, A.tracker_list, A.dht as dht, A.md5sum as md5sum, A.uploader_host as user_host, B.name AS cat_name, IF(C.name IS NULL, C.username, C.name) as ownername, A.tracker_update, COUNT(S.status) as auths FROM ".$db_prefix."_torrents A LEFT JOIN ".$db_prefix."_categories B ON A.category = B.id LEFT JOIN ".$db_prefix."_users C ON A.owner = C.id LEFT JOIN ".$db_prefix."_privacy_file S ON S.torrent = A.id AND S.status = 'pending' WHERE A.id = '".$id."' GROUP BY A.id LIMIT 1;";

and add A.comments as comments so it will look like:
$sql = "SELECT A.id as id, A.exeem, A.seeders, A.leechers, A.tot_peer, A.speed, A.info_hash, A.filename, A.banned, A.password, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(A.last_action) AS lastseed, A.numratings, A.name, IF(A.numratings < '".$minvotes."', NULL, ROUND(A.ratingsum / A.numratings, 1)) AS rating, A.save_as, A.descr, A.visible, A.size, A.plen, A.added, A.views, A.downloaded, A.completed, A.type, A.private, A.min_ratio, A.numfiles, A.owner, A.ownertype, A.complaints, A.evidence, A.tracker, A.tracker_list, A.dht as dht, A.md5sum as md5sum, A.uploader_host as user_host, B.name AS cat_name, IF(C.name IS NULL, C.username, C.name) as ownername, A.tracker_update, COUNT(S.status) as auths, A.comments as comments FROM ".$db_prefix."_torrents A LEFT JOIN ".$db_prefix."_categories B ON A.category = B.id LEFT JOIN ".$db_prefix."_users C ON A.owner = C.id LEFT JOIN ".$db_prefix."_privacy_file S ON S.torrent = A.id AND S.status = 'pending' WHERE A.id = '".$id."' GROUP BY A.id LIMIT 1;";

then find
echo "<iframe src=\"frame.php?op=commentlist&id=".$torrent["id"]."&password=".urlencode($torrent["password"])."\" width=\"100%\" height=\"".$torrent["comments"]."*100\" align=\"middle\" scrolling=\"yes\" marginwidth=\"0\" marginheight=\"0\"></iframe>\n";
and replace it with
$height=$torrent[comments]*100;
echo "<iframe src=\"frame.php?op=commentlist&id=".$torrent["id"]."&password=".urlencode($torrent["password"])."\" width=\"100%\" height=\"$height\" align=\"middle\" scrolling=\"yes\" marginwidth=\"0\" marginheight=\"0\"></iframe>\n";

you can change the number 100 in $height=$torrent[comments]*100; if you feel that the comment list is too big or too small
 Topic: Customizing the html-editor
Customizing the html-editor [message #723] Thu, 08 March 2007 19:56
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
You probably noticed that the html-editor (used for the torrent description and the message texts, among others), has a couple of buttons in it that nobody will ever want to use -- like the "insert special character" button, or the "universal keyboard". turns out you just have to edit the file /FCKeditor/fckconfig.js, go to

FCKConfig.ToolbarSets["Default"]


and delete all the items that you don't want to see as a button. the items have pretty intuitive names, and are enclosed in brackets.

also, i found out that you can enable image uploads to your server by editing

/FCKeditor/editor/filemanager/upload/php

and setting
$Config['Enabled'] = false ;


to true, and specifying an upload path (folder must be writable of course) at
$Config['UserFilesPath'] =


that's pretty neat. downside is (with images in the description generally) that you can't seem to set a limit to image dimension or file size. at least i couldn't find anything in FCKeditor config. that means if somebody uploads a large image, it will screw up your template.

is there any way around this?
 Topic: Fix to shout box stoping in the middle
Fix to shout box stoping in the middle [message #706] Fri, 02 March 2007 18:42
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
OK I took a look at shout code and made a small fix to it to get
it to finnish going down when shouts get to high of a count.

open frame.php and find
."        window.scroll(0,30000);\n"

and chang it to
."        window.scroll(1,199999);\n"

I have tested it and is working with over 431 shouts and climbing.


http://a.imageshack.us/img831/5562/mybikes.png

[Updated on: Sat, 03 March 2007 01:10]

Report message to a moderator

 Topic: Remind members to leave comment
Remind members to leave comment [message #556] Fri, 29 December 2006 03:18
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
Quick hack taken from TBDEV
and edited for phpMyBitTorrent open header.php
find the last
?>

and add before
$res = mysql_query("SELECT torrent FROM ".$db_prefix."_peers WHERE uid='".$user->id."'")or print(mysql_error());
while($row = mysql_fetch_array($res)){
$kom = mysql_fetch_array(mysql_query("SELECT count(*) FROM ".$db_prefix."_comments WHERE user= '".$user->id."' AND torrent='$row[torrent]'"))or print(mysql_error());
$tor = mysql_fetch_array(mysql_query("SELECT name,owner FROM ".$db_prefix."_torrents WHERE id='$row[torrent]'"))or print(mysql_error());
if(!$kom[0] && $tor[owner] !=  $user->id){
 $komment .= "<a href=details.php?id=".$row[torrent].">".$tor[name]."</a><br>";
}
}
 if ($komment){
 print("<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=green><tr><td style='padding: 10px; background: green'>\n");
 print("Please leave a comment on:<br>$komment");
 print("</td></tr></table></p>\n");
}


http://a.imageshack.us/img831/5562/mybikes.png
 Topic: Rules-Hack
icon1.gif  Rules-Hack [message #525] Thu, 14 December 2006 05:20
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
This is a rules set for Puplic or Private and levels
User
Premium
Moderator
Admin

first make new data base table
-- --------------------------------------------------------

-- 
-- Table structure for table `torrent_rules`
-- 

CREATE TABLE `torrent_rules` (
  `id` int(11) NOT NULL auto_increment,
  `title` varchar(255) NOT NULL default '',
  `text` text NOT NULL,
  `public` enum('yes','no') NOT NULL default 'yes',
  `level` enum('user','premium','moderator','admin') NOT NULL default 'user',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

-- 
-- Dumping data for table `torrent_rules`
-- 

INSERT INTO `torrent_rules` VALUES (2, 'Downloading rules - <font color=#CC0000>By not following these rules you will lose download privileges!</font>', '<ul>     Access to the newest torrents is conditional on a good ratio! (See the <a class="altlink" href="../../faq.php#dl8"><strong>FAQ</strong></a> for details.)     Low ratios may result in severe consequences, including banning in extreme cases. </ul>', 'no', 'user');
INSERT INTO `torrent_rules` VALUES (3, 'General Forum Guidelines - <font color=#CC0000>Please follow these guidelines or else you might end up with a warning!</font>', '<ul>     No aggressive behaviour or flaming in the forums.     No trashing of other peoples topics (i.e. SPAM).     No language other than English in the forums.     No systematic foul language (and none at all on  titles).     No links to warez or crack sites in the forums.     No requesting or posting of serials, CD keys, passwords or cracks in the forums.     No requesting if there has been no ''<a href="http://www.nforce.nl/">scene</a>'' release in the last 7 days.     No bumping... (All bumped threads will be deleted.)     No images larger than 800x600, and preferably web-optimised.     No double posting. If you wish to post again, and yours is the last post in the thread please use the EDIT function, instead of posting a double.     Please ensure all questions are posted in the correct section!<br /> (Game questions in the Games section, Apps questions in the Apps section, etc.)     Last, please read the <a href="../../faq.php" class="altlink"><strong>FAQ</strong></a> before asking any questions! </ul>', 'no', 'user');
INSERT INTO `torrent_rules` VALUES (4, 'General rules - <font color=#CC0000>Breaking these rules can and will get you banned!</font>', '<ul>     Do not defy the moderators expressed wishes!     Do not upload our torrents to other trackers! (See the <a href="../../faq.php#up3" class="altlink"><strong>FAQ</strong></a> for details.)     <a name="warning"></a>Disruptive behaviour in the forums or on the game server will result in a warning (<img alt="" src="../../UserFiles/Image/warned.gif" /> ).<br /> You will only get <strong>one</strong> warning! After that it''s bye bye Kansas! </ul>', 'no', 'user');
INSERT INTO `torrent_rules` VALUES (5, 'Uploading rules - <font color=#CC0000>Torrents violating these rules may be deleted without notice</font>', '<ul>     All uploads must include a proper NFO.     Only scene releases. If it''s not on <a href="../../redir.php?url=http://www.nforce.nl" class="altlink">NFOrce</a> or <a href="http://www.grokmusiq.com/" class="altlink">grokMusiQ</a> then forget it!     The stuff must not be older than seven (7) days.     All files must be in original format (usually 14.3 MB RARs).     Pre-release stuff should be labeled with an *ALPHA* or *BETA* tag.     Make sure not to include any serial numbers, CD keys or similar in the description (you do <strong>not</strong> need to edit the NFO!).     Make sure your torrents are well-seeded for at least 24 hours.     Do not include the release date in the torrent name.     Stay active! You risk being demoted if you have no active torrents. </ul>\r\n    <ul>&nbsp;</ul>', 'no', 'premium');
INSERT INTO `torrent_rules` VALUES (9, 'Avatar Guidelines - <font color=#CC0000>Please try to follow these guidelines</font>', '<ul>\r\n    The allowed formats are .gif, .jpg and .png. \r\n    Be considerate. Resize your images to a width of 150 px and a size of no more than 150 KB. (Browsers will rescale them anyway: smaller images will be expanded and will not look good; larger images will just waste bandwidth and CPU cycles.) For now this is just a guideline but it will be automatically enforced in the near future. \r\n    Do not use potentially offensive material involving porn, religious material, animal / human cruelty or ideologically charged images. Mods have wide discretion on what is acceptable. If in doubt PM one. 		\r\n</ul>', 'no', 'user');
INSERT INTO `torrent_rules` VALUES (10, 'Moderating Rules - <font color=#CC0000>Use your better judgement!</font>', '<ul>\r\n    The most important rule: Use your better judgment!\r\n    Don''t be afraid to say <strong>NO</strong>! (a.k.a. &quot;Helshad''s rule&quot;.) \r\n    Don''t defy another mod in public, instead send a PM or through IM.\r\n    Be tolerant! Give the user(s) a chance to reform.\r\n    Don''t act prematurely, let the users make their mistakes and THEN correct them.\r\n    Try correcting any &quot;off topics&quot; rather then closing a thread.\r\n    Move topics rather than locking them.\r\n    Be tolerant when moderating the Chit-chat section (give them some slack).\r\n    If you lock a topic, give a brief explanation as to why you''re locking it.\r\n    Before you disable a user account, send him/her a PM and if they reply, put them on a 2 week trial.\r\n    Don''t disable a user account until he or she has been a member for at least 4 weeks.\r\n    <strong>Always</strong> state a reason (in the user comment box) as to why the user is being banned / warned.\r\n</ul>', 'no', 'moderator');
INSERT INTO `torrent_rules` VALUES (11, 'Moderating options - <font color=#CC0000>What are my privileges as a mod?</font>', '<ul>     You can delete and edit forum posts.     You can delete and edit torrents.     You can delete and change users avatars.     You can disable user accounts.     You can see the complete info of all users.     You can add comments to users (for other mods and admins to read).     You can stop reading now ''cuz you already knew about these options. <img alt="" src="/FCKeditor/editor/../../smiles/glasses1.gif" /><br /> </ul>', 'no', 'admin');

if you get most my hacks you have a images file (if not make one)
add this to it
http://www.moviegamesmore.net/themes/MGM/pics/menu/rules.gif

Now make 2 files
One is rules.php
<?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*--------               Hacked For phpMyBitTorrent                     --------*
*--------                       By Joeroberts                         ---------*
*--------              http://www.moviegamesmore.net                   --------*
*------------------------------------------------------------------------------*
*/

include("header.php");

$res = mysql_query("select * from ".$db_prefix."_rules order by id");
while ($arr=mysql_fetch_assoc($res)){
	if ($arr["public"]=="yes")
		{
		OpenTable("General-Rules");
	print("<form method=post action=modrules.php?act=edit&id=><table width=95% border=0 cellspacing=0 cellpadding=>");
	print("<tr><td width=100%>");
	echo "<tr><td><hr /></td><td></td></tr>\n";
	echo ("".$arr["title"]."");
	echo "<p>".str_replace("\n","<br>",$arr["text"])."</p>";
	if($user->admin)print("</td></tr><tr><td><input type=hidden value=$arr[id] name=id><input type=submit value='Edit'></td></tr></table></form>");
		CloseTable();
		}
    if($user->user && $arr["public"]=="no" && $arr["level"]=="user")
		{
		OpenTable("User-Rules");
	print("<form method=post action=modrules.php?act=edit&id=><table width=95% border=0 cellspacing=0 cellpadding=>");
	print("<tr><td width=100%>");
	echo "<tr><td><hr /></td><td></td></tr>\n";
	echo ("".$arr["title"]."");
	echo "<p>".str_replace("\n","<br>",$arr["text"])."</p>";
	if($user->admin)print("</td></tr><tr><td><input type=hidden value=$arr[id] name=id><input type=submit value='Edit'></td></tr></table></form>");
		CloseTable2();
		}
    if($user->premium && $arr["public"]=="no" && $arr["level"]=="premium")
		{
		OpenTable("Premium-Rules");
	print("<form method=post action=modrules.php?act=edit&id=><table width=95% border=0 cellspacing=0 cellpadding=>");
	print("<tr><td width=100%>");
	echo "<tr><td><hr /></td><td></td></tr>\n";
	echo ("".$arr["title"]."");
	echo "<p>".str_replace("\n","<br>",$arr["text"])."</p>";
	if($user->admin)print("</td></tr><tr><td><input type=hidden value=$arr[id] name=id><input type=submit value='Edit'></td></tr></table></form>");
		CloseTable2();
		}
    if($user->moderator && $arr["public"]=="no" && $arr["level"]=="moderator")
		{
		OpenTable("Moderator-Rules");
	print("<form method=post action=modrules.php?act=edit&id=><table width=95% border=0 cellspacing=0 cellpadding=>");
	print("<tr><td width=100%>");
	echo "<tr><td><hr /></td><td></td></tr>\n";
	echo ("".$arr["title"]."");
	echo "<p>".str_replace("\n","<br>",$arr["text"])."</p>";
	if($user->admin)print("</td></tr><tr><td><input type=hidden value=$arr[id] name=id><input type=submit value='Edit'></td></tr></table></form>");
		CloseTable();
		}
    if($user->admin && $arr["public"]=="no" && $arr["level"]=="admin")
		{
		OpenTable("Admin-Rules");
	print("<form method=post action=modrules.php?act=edit&id=><table width=95% border=0 cellspacing=0 cellpadding=>");
	print("<tr><td width=100%>");
	echo "<tr><td><hr /></td><td></td></tr>\n";
	echo ("".$arr["title"]."");
	echo "<p>".str_replace("\n","<br>",$arr["text"])."</p>";
	if($user->admin)print("</td></tr><tr><td><input type=hidden value=$arr[id] name=id><input type=submit value='Edit'></td></tr></table></form>");
		CloseTable();
		}
}


include("footer.php");

?>


and The other one is modrules.php
<?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*--------               Hacked For phpMyBitTorrent                     --------*
*--------                       By Joeroberts                         ---------*
*--------              http://www.moviegamesmore.net                   --------*
*------------------------------------------------------------------------------*
*/

include("header.php");
//DELETE RULE SECTION PAGE/FORM
$id = $_GET["id"];
if ($_GET["act"] == "delete")
{
OpenTable("");
mysql_query("DELETE FROM ".$db_prefix."_rules WHERE id = $id ") or sqlerr(__FILE__,__LINE__);
echo "<p>Rules PAGE/FORM Deleted</p>";
				header("Refresh: 5; url=modrules.php");

                CloseTable();
}				

//ADD NEW RULE SECTION PAGE/FORM
elseif ($_GET["act"] == "newsect")
{
OpenTable("Add Rule Section");

print("<form method=\"post\" action=\"modrules.php?act=addsect\">");
print("<table border=\"0\" cellspacing=\"0\" cellpadding=\"10\" align=\"center\">\n");
print("<tr><td>Section Title:</td><td><input style=\"width: 400px;\" type=\"text\" name=\"title\"/></td></tr>\n");
echo "<tr><td><hr></td><td></td></tr>";
echo "<tr><td><p>"._btdescription;
                if (!$allow_html) echo "<br>"._btnohtml."</p></td><td><p><textarea name=\"text\" rows=\"20\" cols=\"90\">".$res[title]."</textarea></p>\n</td></tr>\n";
                else {
                        echo "</td><td>";
                        $oFCKeditor = new FCKeditor('text') ;
                        $oFCKeditor->BasePath = 'FCKeditor/';
                        $oFCKeditor->Value = $res[text];
                        $oFCKeditor->Height = 350 ;
                        $oFCKeditor->Create();
						}
				echo "<tr><td><hr /></td><td></td></tr>\n";		
                echo "<tr><td><p>Puplic</p></td><td><p>";
                echo "<select name=\"public\">\n";
                echo "<option value=\"yes\">YES</option>\n";
                echo "<option value=\"no\">NO</option>\n";
                echo "</select>Is this puplic</p>\n";
                echo "</td></tr>\n";
                echo "<tr><td><hr /></td><td></td></tr>\n";
                echo "<tr><td><p>Level</p></td><td><p>";
                echo "<select name=\"level\">\n";
                echo "<option value=\"user\">User</option>\n";
                echo "<option value=\"premium\">Premium</option>\n";
                echo "<option value=\"moderator\" >Moderator</option>\n";
				echo "<option value=\"admin\" >Admin</option>\n";
                echo "</select>User Level for this rule</p>\n";
                echo "</td></tr>\n";
print("<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" value=\"Add\" style=\"width: 60px;\"></td></tr>\n");
print("</table></form>");
CloseTable();
}
//ADD NEW RULE SECTION TO DATABASE
elseif ($_GET["act"]=="addsect"){
$title = sqlesc($_POST["title"]);
//$text = sqlesc($_POST["text"]);
$public = sqlesc($_POST["public"]);
$level = sqlesc($_POST["level"]);
if (!get_magic_quotes_gpc()) $text = escape($text);
                if ($allow_html) {
                        if (preg_match("/<[^>]* (on[a-z]*[.]*)=[^>]*>/i", $text)) //HTML contains Javascript EVENTS. Must refuse
                                bterror(_btinvalidhtml,_btuploaderror);
                if (preg_match('/<a[^>]* href="[^"]*(javascript|vbscript):[^>]*>/i', $page)) //HTML contains Javascript or VBScript calls. Must refuse
                                bterror(_btinvalidhtml,_btuploaderror);
                }
                parse_html($text);
mysql_query("insert into ".$db_prefix."_rules (title, text, public, level) values($title, '".$text."', $public, $level)") or sqlerr(__FILE__,__LINE__);
header("Refresh: 0; url=modrules.php");
}
//EDIT RULE
elseif ($_GET["act"] == "edit"){
$id = $_POST["id"];
$res = @mysql_fetch_array(@mysql_query("select * from ".$db_prefix."_rules where id='$id'"));
OpenTable("Edit Rules");

print("<form method=\"post\" action=\"modrules.php?act=edited\">");
print("<table border=\"0\" cellspacing=\"0\" cellpadding=\"10\" align=\"center\">\n");
print("<tr><td>Section Title:</td><td><input style=\"width: 400px;\" type=\"text\" name=\"title\" value=\"$res[title]\" /></td></tr>\n");
echo "<tr><td><hr></td><td></td></tr>";
echo "<tr><td><p>"._btdescription;
                if (!$allow_html) echo "<br>"._btnohtml."</p></td><td><p><textarea name=\"text\" rows=\"20\" cols=\"90\">".$res[title]."</textarea></p>\n</td></tr>\n";
                else {
                        echo "</td><td>";
                        $oFCKeditor = new FCKeditor('text') ;
                        $oFCKeditor->BasePath = 'FCKeditor/';
                        $oFCKeditor->Value = $res[text];
                        $oFCKeditor->Height = 350 ;
                        $oFCKeditor->Create();
						}
				echo "<tr><td><hr /></td><td></td></tr>\n";		
                echo "<tr><td><p>Puplic</p></td><td><p>";
                echo "<select name=\"public\">\n";
                echo "<option value=\"yes\""; if($res["public"] == "yes") echo "selected"; echo ">YES</option>\n";
                echo "<option value=\"no\""; if($res["public"] == "no") echo "selected"; echo ">NO</option>\n";
                echo "</select>Is this puplic</p>\n";
                echo "</td></tr>\n";
                echo "<tr><td><hr /></td><td></td></tr>\n";
                echo "<tr><td><p>Level</p></td><td><p>";
                echo "<select name=\"level\">\n";
                echo "<option value=\"user\" "; if($res["level"] == "user") echo "selected"; echo ">User</option>\n";
                echo "<option value=\"premium\" "; if($res["level"] == "premium") echo "selected"; echo ">Premium</option>\n";
                echo "<option value=\"moderator\" "; if($res["level"] == "moderator") echo "selected"; echo " >Moderator</option>\n";
				echo "<option value=\"admin\" "; if($res["level"] == "admin") echo "selected"; echo " >Admin</option>\n";
                echo "</select>User Level for this rule</p>\n";
                echo "</td></tr>\n";
print("<tr><td colspan=\"2\" align=\"center\"><input type=hidden value=$res[id] name=id><input type=\"submit\" value=\"Save\" style=\"width: 60px;\"></td></tr>\n");
print("</table>");
CloseTable();
}
//DO EDIT RULE, UPDATE DB
elseif ($_GET["act"]=="edited"){
$id = $_POST["id"];
$title = sqlesc($_POST["title"]);
//$text = sqlesc($_POST["text"]);
$public = sqlesc($_POST["public"]);
$level = sqlesc($_POST["level"]);
if (!get_magic_quotes_gpc()) $text = escape($text);
                if ($allow_html) {
                        if (preg_match("/<[^>]* (on[a-z]*[.]*)=[^>]*>/i", $text)) //HTML contains Javascript EVENTS. Must refuse
                                bterror(_btinvalidhtml,_btuploaderror);
                if (preg_match('/<a[^>]* href="[^"]*(javascript|vbscript):[^>]*>/i', $page)) //HTML contains Javascript or VBScript calls. Must refuse
                                bterror(_btinvalidhtml,_btuploaderror);
                }
                parse_html($text);

mysql_query("update ".$db_prefix."_rules set title=$title, text = '".$text."', public=$public, level=$level where id=$id") or sqlerr(__FILE__,__LINE__);
header("Refresh: 0; url=modrules.php");
}
else{
// STANDARD MENU OR HOMEPAGE ETC
$res = mysql_query("select * from ".$db_prefix."_rules order by id");
OpenTable("Site Rules Editor");
print("<br><table width=100% border=0 cellspacing=0 cellpadding=10>");
print("<tr><td align=center><a href=modrules.php?act=newsect>Add New Rules Section</a></td></tr></table>\n");
CloseTable();

while ($arr=mysql_fetch_assoc($res))
{
	OpenTable($arr[title]);
	print("<form method=post action=modrules.php?act=edit&id=><table width=95% border=0 cellspacing=0 cellpadding=>");
	print("<tr><td width=100%>");
	echo "<p>".str_replace("\n","<br>",$arr["text"])."</p>";
	print("</td></tr><tr><td><input type=hidden value=$arr[id] name=id><input type=submit value='Edit'></td></tr></table></form>");
	print("</td></tr><tr><td><form name=delete-rule method=post action=modrules.php?act=delete&id=$arr[id]><input type=hidden name=delete value=$arr[id]> <input class=btn type=submit value=DELETE ></form></td></tr>\n");
	
	CloseTable();
}

echo "<br><br>";


echo "<br><br>";


}
include("footer.php");
?>

now open blocks/usercp.php and and add
echo imgdescr("rules.gif","rules.php","Rules");

You can edit delete and add new rules as You need

Injoy Your favorite Hacker Joeroberts Cool


http://a.imageshack.us/img831/5562/mybikes.png
 Topic: Add alternate text to cpl of buttons
Add alternate text to cpl of buttons [message #395] Wed, 22 November 2006 19:50
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
finally did what i long felt had to be done: add alternate text to a couple of icons and buttons. among those:

- buttons in the torrent index (edit, download, delete torrent)
- the "sticky" icon
- the "external tracker" icon

especially the latter two were very important -- it's far from obvious what they mean.

what i did was just ad a language variable to the relevant instances of the pic() function in /include/bittorrent.php (which is the index), and details.php, changing things like

echo pic("magnet.gif","magnet:?xt=urn:btih:".hex_to_base32($infohash_hex));


to

echo pic("magnet.gif","magnet:?xt=urn:btih:".hex_to_base32($infohash_hex,[B]_btalt_magnet[/B]));


i found that alternate text variables were already defined in english.php, but those contained a dot and didn't work (at least for me). so i renamed them in the improved english.php that i posted earlier.
  • Attachment: bittorrent.php
    (Size: 12.62KB, Downloaded 272 times)
  • Attachment: details.php
    (Size: 31.02KB, Downloaded 255 times)

[Updated on: Wed, 22 November 2006 19:52]

Report message to a moderator

 Topic: phpBB "port" (user db integration)
phpBB "port" (user db integration) [message #391] Tue, 21 November 2006 11:37
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
hi everybody,

as i mentioned elsewhere, i was rallying some support for "porting" phpBB to phpMyBitTorrent. already talked about this with djechelon.

what i have in mind is integrated user databases -- insertion of phpBB registrations into phpMyBitTorrent and the reverse, as well as a way to do that for pre-existing phpBB accounts (and pre-existing phpMyBitTorrent accounts? i personally have no use for that, but there might be people who do).

we're running phpBB2 currently, but since phpBB3 (http://www.phpbb.com/development/) is already in beta3, i guess the port should be done for that.
 Topic: Working hacks on my site
Working hacks on my site [message #330] Tue, 14 November 2006 07:11
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
Cool
These are some of the hacks that i have edited to work with
phpMyBitTorrent

Offers
Offer things to upload to your tracker for people to vote on
to make sure it is worth it for you to upload. You get a pm after
3 votes have been made. It shows offers in catigories and is broke
down in pages with choise of display order.
Requist
prety much the oposit of Offers. I a member is looking for
something and its not on your site they can Put in a requist for
what they want (both these display in the shoutbox when made.
Ratio Warning
when a members ratio is below .50 they go into ratio watch for
7 days after 7 days they get a warning and cannot dl a torrent(but
they can seed) if ther ratio stays below .50 for 5 days they get
banned.(you can change this to suit)
Warning
give a warning to a member for 1,2,3,forever weeks from members
edit with mod coments as to why (both these warning are removable
and give a pm to them member)
Site New
for site announcements and news you can set to allow coments
how many announcements are displayed at a time. and if they can
view archived news.
Casino
Give them something to do with ther upload credits this
hack has Bet on color bet on number bet members blackjack and
lottery
Arcade
this is a multy pack game wich has Asteroids, Hexxagon,
Breakout, Interactive buddy, Space Invaders,Moon Lander,Pac-Man,
Solitare, Simon, Snake, and a few more these games keep high
score and show the top 5 of each game
Donations
display needed donations and how much you have reseaved
in donations with ability to add a paypal button
Frequintly Asked Quistions
this section is comen on most site. you can add new edit
and change to what you want and it well do BBcode with adition
of redirect.php. It also has icons for New, and Updated Quistions
Random Shit List
Shows 10 Members randomly with bad ratio With smiles
Nuked Torrents
Nuke Torrents on your site to let members now that the dl may not be 100%
(has something wrong with it parts missing Or Quistionable)Kinda like
a warning to members they might not like what they get.
Comment Reminder
If a member is getting a file and has not posted a comment they get a frendly
reminder to leave a comment with quick link to the to the torrent in the reminder.
Invite System
Let Members Invite New members to the site. (Works good for private sites that dont have open registration).
Ratio Building (Free)Torrent
Give out Torrents that do not effect there downloads but stell allow
for upload credit.
Avatar In Shout-Box
Small vertion of members Avatar in the shout-box. Adds stile to the
shoutbox and flash
Country In Details
Let Your Members show where they are from with a flag in there details.
(also works with Extra stats to show where most your members are from.)
Avatar In Menu
Show members own avatar in ther menu under ther stats
Seeding Points
Give members Points for seeding back torrents. They can use them to get upload credits or what ever you want to set up.
(I have it set to work with Upload credit and Invites).


All of these come with admin controle. My site is from the
origenal release of phpMyBitTorrent 0.7 and may need some modes
to work with the new 1.0 but the changes are small and i can help
to do this if you would like PM me and let me know if you want
any of these I well need the vertion of phpMyBitTorrent you are
using I need to thank TT for most of these but they have all
been edited by me.


http://a.imageshack.us/img831/5562/mybikes.png

[Updated on: Wed, 03 January 2007 21:00]

Report message to a moderator




Current Time: Thu Feb 09 20:24:21 GMT 2012

Total time taken to generate the page: 0.01243 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software