Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

"dent, post: 80697":
Open the file shoutbox.php and look for and find:



$THEME = $ss_a["uri"];

$lng_a = mysql_fetch_array(mysql_query("select uri from languages where id='" . $site_config['default_language'] . "'")) or die(mysql_error());

if ($lng_a)

$LANGUAGE = $lng_a["uri"];

}

and just under that add this:






//replace [url] tags with a proper link

$msg = preg_replace("/[url]([^[]+)[/url]/i","<a href="1" target="_blank">1</a>",$msg);




save file
i do it , but when i click link in shoutbox it redirected to :   /torrents-details.php?=id4 and  not to  [url="http://sitename"]http://sitename[/url]/torrents-details.php?=id4this is the problem ;)
"Azarus, post: 80532":


CREATE TABLE IF NOT EXISTS `countries` (

 `id` int(10) unsigned NOT NULL auto_increment,

 `name` varchar(50) default NULL,

 `flagpic` varchar(50) default NULL,

 `domain` char(3) default NULL,

 PRIMARY KEY  (`id`)

) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=103 ;

--

-- Dumping data for table `countries`

--

INSERT INTO `countries` (`id`, `name`, `flagpic`, `domain`) VALUES

(1, 'Sweden', 'sweden.gif', 'SE'),

(2, 'United States of America', 'usa.gif', 'US'),

(3, 'Russia', 'russia.gif', 'RU'),

(4, 'Finland', 'finland.gif', 'FI'),

(5, 'Canada', 'canada.gif', 'CA'),

(6, 'France', 'france.gif', 'FR'),

(7, 'Germany', 'germany.gif', 'DE'),

(8, 'China', 'china.gif', 'CN'),

(9, 'Italy', 'italy.gif', 'IT'),

(10, 'Denmark', 'denmark.gif', 'DK'),

(11, 'Norway', 'norway.gif', 'NO'),

(12, 'United Kingdom', 'uk.gif', 'UK'),

(13, 'Ireland', 'ireland.gif', 'IE'),

(14, 'Poland', 'poland.gif', 'PL'),

(15, 'Netherlands', 'netherlands.gif', 'NL'),

(16, 'Belgium', 'belgium.gif', 'BE'),

(17, 'Japan', 'japan.gif', 'JP'),

(18, 'Brazil', 'brazil.gif', 'BR'),

(19, 'Argentina', 'argentina.gif', 'AR'),

(20, 'Australia', 'australia.gif', 'AU'),

(21, 'New Zealand', 'newzealand.gif', 'NZ'),

(23, 'Spain', 'spain.gif', 'ES'),

(24, 'Portugal', 'portugal.gif', 'PT'),

(25, 'Mexico', 'mexico.gif', 'MX'),

(26, 'Singapore', 'singapore.gif', 'SG'),

(29, 'South Africa', 'southafrica.gif', 'ZA'),

(30, 'South Korea', 'southkorea.gif', 'KR'),

(31, 'Jamaica', 'jamaica.gif', 'JM'),

(32, 'Luxembourg', 'luxembourg.gif', 'LU'),

(33, 'Hong Kong', 'hongkong.gif', 'HK'),

(34, 'Belize', 'belize.gif', 'BZ'),

(35, 'Algeria', 'algeria.gif', 'DZ'),

(36, 'Angola', 'angola.gif', 'AO'),

(37, 'Austria', 'austria.gif', 'AT'),

(38, 'Yugoslavia', 'yugoslavia.gif', 'YU'),

(39, 'Western Samoa', 'westernsamoa.gif', 'WS'),

(40, 'Malaysia', 'malaysia.gif', 'MY'),

(41, 'Dominican Republic', 'dominicanrep.gif', 'DO'),

(42, 'Greece', 'greece.gif', 'GR'),

(43, 'Guatemala', 'guatemala.gif', 'GT'),

(44, 'Israel', 'israel.gif', 'IL'),

(45, 'Pakistan', 'pakistan.gif', 'PK'),

(46, 'Czech Republic', 'czechrep.gif', 'CZ'),

(47, 'Serbia', 'serbia.gif', 'YU'),

(48, 'Seychelles', 'seychelles.gif', 'SC'),

(49, 'Taiwan', 'taiwan.gif', 'TW'),

(50, 'Puerto Rico', 'puertorico.gif', 'PR'),

(51, 'Chile', 'chile.gif', 'CL'),

(52, 'Cuba', 'cuba.gif', 'CU'),

(53, 'Congo', 'congo.gif', 'CG'),

(54, 'Afghanistan', 'afghanistan.gif', 'AF'),

(55, 'Turkey', 'turkey.gif', 'TR'),

(56, 'Uzbekistan', 'uzbekistan.gif', 'UZ'),

(57, 'Switzerland', 'switzerland.gif', 'CH'),

(58, 'Kiribati', 'kiribati.gif', 'KI'),

(59, 'Philippines', 'philippines.gif', 'PH'),

(60, 'Burkina Faso', 'burkinafaso.gif', 'BF'),

(61, 'Nigeria', 'nigeria.gif', 'NG'),

(62, 'Iceland', 'iceland.gif', 'IS'),

(63, 'Nauru', 'nauru.gif', 'NR'),

(64, 'Slovenia', 'slovenia.gif', 'SI'),

(65, 'Albania', 'albania.gif', 'AL'),

(66, 'Turkmenistan', 'turkmenistan.gif', 'TM'),

(67, 'Bosnia Herzegovina', 'bosniaherzegovina.gif', 'BA'),

(68, 'Andorra', 'andorra.gif', 'AD'),

(69, 'Lithuania', 'lithuania.gif', 'LT'),

(70, 'India', 'india.gif', 'IN'),

(71, 'Netherlands Antilles', 'nethantilles.gif', 'AN'),

(72, 'Ukraine', 'ukraine.gif', 'UA'),

(73, 'Venezuela', 'venezuela.gif', 'VE'),

(74, 'Hungary', 'hungary.gif', 'HU'),

(75, 'Romania', 'romania.gif', 'RO'),

(76, 'Vanuatu', 'vanuatu.gif', 'VU'),

(77, 'Vietnam', 'vietnam.gif', 'VN'),

(78, 'Trinidad &amp; Tobago', 'trinidadandtobago.gif', 'TT'),

(79, 'Honduras', 'honduras.gif', 'HN'),

(80, 'Kyrgyzstan', 'kyrgyzstan.gif', 'KG'),

(81, 'Ecuador', 'ecuador.gif', 'EC'),

(82, 'Bahamas', 'bahamas.gif', 'BS'),

(83, 'Peru', 'peru.gif', 'PE'),

(84, 'Cambodia', 'cambodia.gif', 'KH'),

(85, 'Barbados', 'barbados.gif', 'BB'),

(86, 'Bangladesh', 'bangladesh.gif', 'BD'),

(87, 'Laos', 'laos.gif', 'LA'),

(88, 'Uruguay', 'uruguay.gif', 'UY'),

(89, 'Antigua Barbuda', 'antiguabarbuda.gif', 'AG'),

(90, 'Paraguay', 'paraguay.gif', 'PY'),

(92, 'Union of Soviet Socialist Republics', 'ussr.gif', 'SU'),

(93, 'Thailand', 'thailand.gif', 'TH'),

(94, 'Senegal', 'senegal.gif', 'SN'),

(95, 'Togo', 'togo.gif', 'TG'),

(96, 'North Korea', 'northkorea.gif', 'KP'),

(97, 'Croatia', 'croatia.gif', 'HR'),

(98, 'Estonia', 'estonia.gif', 'EE'),

(99, 'Colombia', 'colombia.gif', 'CO'),

(100, 'England', 'england.gif', 'GB'),

(101, 'Egypt', 'egypt.gif', 'EG'),

(102, 'Unknown', 'unknown.gif', ''),

(103, 'Aland Islands', 'alandislands.gif', 'AX'),

(104, 'American Samoa', 'americansamoa.gif', 'AS'),

(105, 'Anguilla', 'anguilla.gif', 'AI'),

(106, 'Armenia', 'armenia.gif', 'AM'),

(107, 'Aruba', 'aruba.gif', 'AW'),

(108, 'Azerbaijan', 'azerbaijan.gif', 'AZ'),

(109, 'Bahrain', 'bahrain.gif', 'BH'),

(110, 'Belarus', 'belarus.gif', 'BY'),

(111, 'Benin', 'benin.gif', 'BJ'),

(112, 'Bermuda', 'bermuda.gif', 'BM'),

(113, 'Bhutan', 'bhutan.gif', 'BT'),

(114, 'Bolivia', 'bolivia.gif', 'BO'),

(115, 'Botswana', 'botswana.gif', 'BW'),

(116, 'Bouvet Island', 'bouvetisland.gif', 'BV'),

(117, 'British Indian Ocean Territory', 'britishindianoceanterritory.gif', 'IO'),

(118, 'Brunei Darussalam', 'bruneidarussalam.gif', 'BN'),

(119, 'Bulgaria', 'bulgaria.gif', 'BG'),

(120, 'Burundi', 'burundi.gif', 'BI'),

(121, 'Cameroon', 'cameroon.gif', 'CM'),

(122, 'Cape Verde', 'capeverde.gif', 'CV'),

(123, 'Catalonia', 'catalinia.gif', 'CT'),

(124, 'Cayman Islands', 'caymanislands.gif', 'KY'),

(125, 'Central African Republic', 'centralafricanrepublic.gif', 'CF'),

(126, 'Chad', 'chad.gif', 'TD'),

(127, 'Christmas Island', 'christmasisland.gif', 'CX'),

(128, 'Cocos (Keeling) Islands', 'cocoskeelingislands.gif', 'CC'),

(129, 'Comoros', 'comoros.gif', 'KM'),

(130, 'Cook Islands', 'cookislands.gif', 'CK'),

(131, 'Costa Rica', 'costarica.gif', 'CR'),

(132, 'Cote D Ivoire (Ivory Coast)', 'cotedivoireivorycoast.gif', 'CI'),

(133, 'Cyprus', 'cyprus.gif', 'CY'),

(134, 'Democratic Republic of the Congo', 'democraticrepublicofthecongo.gif', 'CD'),

(135, 'Djibouti', 'djibouti.gif', 'DJ'),

(136, 'Dominica', 'dominica.gif', 'DM'),

(137, 'El Salvador', 'elsalvador.gif', 'SV'),

(138, 'Equiorial Guinea', 'eqitorialguinea.gif', 'GQ'),

(139, 'Eritrea', 'eritrea.gif', 'ER'),

(140, 'Ethiopia', 'ethiopia.gif', 'ET'),

(141, 'Falkland Islands (Malvinas)', 'falklandislandsmalvinas.gif', 'ET'),

(142, 'Faroe Islands (Malvinas)', 'faroeislands.gif', 'FO'),

(143, 'Federated States of Micronesia', 'federatedstatesofmicronesia.gif', 'FM'),

(144, 'Fiji', 'fiji.gif', 'FJ'),

(145, 'French Guiana', 'frenchguiana.gif', 'GF'),

(146, 'French Polynesia', 'frenchguiana.gif', 'PF'),

(147, 'French Southern Territories', 'frenchsouthernterritories.gif', 'TF'),

(148, 'Gabon', 'gabon.gif', 'GA'),

(149, 'Gambia', 'gambia.gif', 'GM'),

(150, 'Georgia', 'georgia.gif', 'GE'),

(151, 'Ghana', 'ghana.gif', 'GH'),

(152, 'Gibraltar', 'gibraltar.gif', 'GI'),

(153, 'Greenland', 'greenland.gif', 'GL'),

(154, 'Grenada', 'grenada.gif', 'GD'),

(155, 'Guadeloupe', 'guadeloupe.gif', 'GP'),

(156, 'Guam', 'guam.gif', 'GU'),

(157, 'Guinea', 'guinea.gif', 'GN'),

(158, 'Guinea-Bassau', 'guineabissau.gif', 'GW'),

(159, 'Guyana', 'guyana.gif', 'GY'),

(160, 'Haiti', 'haiti.gif', 'HT'),

(161, 'Heard Island and McDonald Islands', 'heardislandandmcdonaldislands.gif', 'HM'),

(162, 'Indonesia', 'indonesia.gif', 'ID'),

(163, 'Iran', 'iran.gif', 'IR'),

(164, 'Iraq', 'iraq.gif', 'IQ'),

(165, 'Jordan', 'jordan.gif', 'JO'),

(166, 'Kazakhstan', 'kazakhstan.gif', 'KZ'),

(167, 'Kenya', 'kenya.gif', 'KE'),

(168, 'Kuwait', 'kuwait.gif', 'KW'),

(169, 'Latvia', 'latvia.gif', 'LV'),

(170, 'Lebanon', 'lebanon.gif', 'LB'),

(171, 'Lesotho', 'lesotho.gif', 'LS'),

(172, 'Liberia', 'liberia.gif', 'LR'),

(173, 'Libya', 'libya.gif', 'LY'),

(174, 'Liechtenstein', 'liechtenstein.gif', 'LI'),

(175, 'Macao', 'macao.gif', 'MO'),

(176, 'Macedonia', 'macedonia.gif', 'MK'),

(177, 'Madagascar', 'madagascar.gif', 'MG'),

(178, 'Malawi', 'malawi.gif', 'MW'),

(179, 'Maldives', 'maldives.gif', 'MV'),

(180, 'Mali', 'mali.gif', 'ML'),

(181, 'Malta', 'malta.gif', 'MT'),

(182, 'Marsjall Islands', 'marshallislands.gif', 'MH'),

(183, 'Martinique', 'martinique.gif', 'MQ'),

(184, 'Mauritania', 'mauritania.gif', 'MR'),

(185, 'Mauritius', 'mauritius.gif', 'MU'),

(186, 'Moldova', 'moldova.gif', 'MD'),

(187, 'Monaco', 'monaco.gif', 'MC'),

(188, 'Mongolia', 'mongolia.gif', 'MN'),

(189, 'Montenegro', 'montenegro.gif', 'ME'),

(190, 'Montserrat', 'montserrat.gif', 'MS'),

(191, 'Morocco', 'morocco.gif', 'MA'),

(192, 'Mozambique', 'mozambique.gif', 'MZ'),

(193, 'Myanmar', 'myanmar.gif', 'MM'),

(194, 'Namibia', 'namibia.gif', 'NA'),

(195, 'Nepal', 'nepal.gif', 'NP'),

(196, 'New Caledonia', 'newcaledonia.gif', 'NC'),

(197, 'Nicaragua', 'nicaragua.gif', 'NI'),

(198, 'Niger', 'niger.gif', 'NE'),

(199, 'Niue', 'niue.gif', 'NU'),

(200, 'Norfolk Island', 'norfolkisland.gif', 'NF'),

(201, 'Northern Mariana Islands', 'northernmarianaislands.gif', 'MP'),

(202, 'Oman', 'oman.gif', 'OM'),

(203, 'Palau', 'palau.gif', 'PW'),

(204, 'Palestinian Territory', 'palapalestinianterritoryu.gif', 'PS'),

(205, 'Panama', 'panama.gif', 'PA'),

(206, 'Papua New Guinea', 'papuanewguinea.gif', 'PG'),

(207, 'Pitcairn', 'pitcairn.gif', 'PN'),

(208, 'Qatar', 'qatar.gif', 'QA'),

(209, 'Reunion', 'reunion.gif', 'RE'),

(210, 'Rwanda', 'rwanda.gif', 'RW'),

(211, 'Saint Helena', 'sainthelena.gif', 'SH'),

(212, 'Saint Kitts and Nevis', 'saintkittsandnevis.gif', 'KN'),

(213, 'Saint Lucia', 'saintlucia.gif', 'LC'),

(214, 'Saint Pierre and Miquelon', 'saintpierreandmiquelon.gif', 'PM'),

(215, 'Saint Vincent and the Grenadines', 'saintvincentandthegrenadines.gif', 'VC'),

(216, 'San Marino', 'sanmarino.gif', 'SM'),

(217, 'Sao Tome and Principe', 'saotomeandprincipe.gif', 'ST'),

(218, 'Saudi Arabia', 'saudiarabia.gif', 'SA'),

(219, 'Serbia and Montenegro', 'serbiaandmontenegro.gif', 'CS'),

(220, 'S. Georgia and S. Sandwich Islands', 'sgeorgiaandssandwichislands.gif', 'GS'),

(221, 'Sierra Leone', 'sierraleone.gif', 'SL'),

(222, 'Slovakia', 'slovakia.gif', 'SK'),

(223, 'Solomon Islands', 'solomonislands.gif', 'SB'),

(224, 'Somalia', 'somalia.gif', 'SO'),

(225, 'Sri Lanka', 'srilanka.gif', 'LK'),

(226, 'Sudan', 'srudan.gif', 'SD'),

(227, 'Suriname', 'suriname.gif', 'SR'),

(228, 'Svalbard and Jan Mayen', 'svalbardandjanmayen.gif', 'SJ'),

(229, 'Swaziland', 'swaziland.gif', 'SZ'),

(230, 'Syria', 'syria.gif', 'SY'),

(231, 'Tajikistan', 'tajikistan.gif', 'TJ'),

(232, 'Tanzania', 'tanzania.gif', 'TZ'),

(233, 'Timor-Leste', 'timorleste.gif', 'TL'),

(234, 'Tokelau', 'tokelau.gif', 'TK'),

(235, 'Tonga', 'tonga.gif', 'TO'),

(236, 'Tunisia', 'tunisia.gif', 'TN'),

(237, 'Turks and Caicos Islands', 'turksandcaicosislands.gif', 'TC'),

(238, 'Tuvalu', 'tuvalu.gif', 'TV'),

(239, 'Uganda', 'uganda.gif', 'UG'),

(240, 'United Arab Emirates', 'unitedarabemirates.gif', 'AE'),

(241, 'United States Minor Outlying Islands', 'unitedstatesminoroutlyingislands.gif', 'UM'),

(242, 'Vatican City State (Holy See)', 'vaticancitystateholysee.gif', 'VA'),

(243, 'Virgin Islands (British)', 'virginislandsbritish.gif', 'VG'),

(244, 'Virgin Islands (U.S.)', 'virginislandsus.gif', 'VI'),

(245, 'Wallis and Futuna', 'wallisandfutuna.gif', 'WF'),

(246, 'Western Sahara', 'westernsahara.gif', 'EH'),

(247, 'Yemen', 'yemen.gif', 'YE'),

(248, 'Yugoslavia (former)', 'yugoslaviaformer.gif', 'YU'),

(249, 'Zambia', 'zambia.gif', 'ZM'),

(250, 'Zimbabwe', 'zimbabwe.gif', 'ZW');


where to put the flags folder ?
"iMagin3 SweeTDeviL, post: 34417":
This hack is entirely based in the v Torrential Storm 1.x hack, with the correct changes.

In torrents-upload.php find:

write_log("Torrent $id ($torrent) was uploaded by " . $CURUSER["username"]);
Insert after:


mysql_query("INSERT INTO shoutbox VALUES('', 'System', 'New Torrent: ".$torrent." has been uploaded by ."]" .$CURUSER['username']. "', now(), '0')") or sqlerr(__FILE__,__LINE__);







and in shoutbox.php find:


$THEME = $ss_a["uri"];

$lng_a = mysql_fetch_array(mysql_query("select uri from languages where id='" . $site_config['default_language'] . "'")) or die(mysql_error());

if ($lng_a)

$LANGUAGE = $lng_a["uri"];

}





add after:


//replace [url] tags with a proper link

$msg = preg_replace("/[url]([^[]+)[/url]/i","<a href="1" target="_blank">1</a>",$msg);
[/code]






Have fun!

iMagin3

hy i am newbie plz tell me where i have to  //replace [url] tags with a proper link  
$msg = preg_replace("/[url]([^[]+)[/url]/i","<a href="1" target="_blank">1</a>",$msg);

if(!isset($_GET['history'])){
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728