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

Announcements bar — 2019-12-17 20:35:14 in v3 Mods Completed
Beware: This script executes too many queries on every single page (If you have a big site it will slow down load time) + unnecessary duplication for unreadmmail which already is included in header.php.
table torrent index — 2019-12-11 08:28:52 in v3 Support
"MagixCoder, post: 67654, member: 20373":

j'ai pensé reduir la zone titre mes je n'y arrive pas :(

[ATTACH type="full" alt="5301"]5301[/ATTACH]

You need to learn html if you can't follow the already written instructions
mp shoutbox — 2019-12-10 21:20:17 in v3 Mods Requests
if ($CURUSER) {
    //check for new pm's
    $res = SQL_Query_exec("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");
    $arr = mysqli_fetch_row($res);
    $unreadmail = $arr[0];
    if ($unreadmail)
        print("<font color='#ff0000' size='3'><b><center><blink>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>$unreadmail</a>]</blink></center></b></a></font>&nbsp;&nbsp;");

}
mp shoutbox — 2019-12-10 20:16:55 in v3 Mods Requests
if ($CURUSER) {
    //check for new pm's
    $res = SQL_Query_exec("SELECT * FROM messages WHERE receiver=" . $CURUSER["id"] . " and unread='yes' AND location IN ('in','both')");
    $arr = mysqli_num_rows($res)
    if ($arr)
        print("<font color='#ff0000' size='3'><b><center><blink>You Got A New PM </font>[<a href='mailbox.php?inbox' target='_blank'>click here to read</a>]</blink></center></b></a></font>&nbsp;&nbsp;");
}
OK.RU BBCODE EMBED — 2019-12-10 19:35:56 in v3 Support
Wrong regular expression.

$s = preg_replace("/\[ok]https:\/\/(?:www\.)*+ok\.ru\/video\/([\d\-]+)\[\/ok\]/", "<paramb style=\"width:720px; height:400px;\" name=\"movie\" value='http://cdn.iframe.ly/embed.js' allowFullScreen=\"true\"></param><iframe src='https://ok.ru/videoembed/$1' allow=\"encrypted-media\" type=\"application/x-shockwave-flash\" width=\"720\" height=\"400\"></iframe>", $s);


Explanation:
1. For security reasons user must use https://
2. User can choose to use www or not. https://www.ok.ru or https://ok.ru
3. It will capture all numbers without letters even if the link is wrong for example: 151694#ds#@303434 it will always return : 151694303434

Result:
[ok]https://ok.ru/video/1516943034346[/ok]


Output for 7.4.0 | took 14 ms, 15.04 MiB
<paramb style="width:720px; height:400px;" name="movie" value='http://cdn.iframe.ly/embed.js' allowFullScreen="true"></param><iframe src='https://ok.ru/videoembed/1516943034346' allow="encrypted-media" type="application/x-shockwave-flash" width="720" height="400"></iframe> 
"Propaganda, post: 67631, member: 60":

No luck, white page again.

It's your side issue either php / the general code structure.
table torrent index — 2019-12-06 13:20:58 in v3 Support
[USER=20288]@m-jay[/USER] don't skip basics of html :ROFLMAO:

Just use responsive media queries and add wrappers around table (div) so it can be scrollable on tablets / mobiles

Example:


// HTML
<div class="div-responsive">
<table>
<tr>
<td>Row 1</td>
<td>Row 2</td>
<td>Row 3</td>
</tr>
<tr>
<td>Row 1</td>
<td>Row 2</td>
<td>Row 3</td>
</tr>
</table>
</div>

// CSS
@media only screen and (max-width: 790px) {
.div-responsive {
max-width: 480px;
overflow-x: scroll;
white-space: nowrap;
}
}
"spiritblue, post: 67610, member: 401":

ok thank you, but it does not work your correction


Yes, the id and name columns are ambiguous due to JOINS.

Try again, I have edited the post above.
[HACK] Mini Cover — 2019-12-02 15:01:51 in v3 Mods Completed
You don't need $sql, its already included in torrents-search.php and torrents.php

Also, you don't need ternary operator as it makes code messy, just add standard if else.

case 'cover':
if (!empty($row['image1']))
{
   $imgCover = '/uploads/images/' . htmlspecialchars($row['image1']);
}
else
{
   $imgCover = 'images/nocover.jpg';
}
echo '<td class=ttable_col'.$x.' align="center"><img width="30" height="35" src="'.$imgCover.'"></td>';
break;


See, way cleaner, less queries, less duplication.
Remove this
$r2 = SQL_Query_exec("SELECT name, image FROM categories WHERE id=$a[category]");
$a2 = mysqli_fetch_assoc($r2);


Never include SQL query inside while loop. It will loop X time the query and make database requery itself X times.

Use JOINS instead like this:
$r = SQL_Query_exec("SELECT torrents.id,  torrents.name,  torrents.size,  torrents.added,  torrents.seeders,  torrents.leechers,  torrents.category, categories.image
FROM torrents
LEFT JOIN categories
ON (categories.id = torrents.category)
WHERE (torrents.name LIKE {$query1}
AND torrents.seeders > '0'
AND torrents.id <> '$id')
OR
(name LIKE {$query2}
AND torrents.seeders > '0'
AND torrents.id <> '$id')
ORDER BY torrents.seeders
DESC LIMIT 10");
try with
if ($site_config['SETDEBUG'] === true) {
...
}
A quick tutorial for those who want to hide the admin panel in a good way so it cannot be accessed via URL.

Open your admin file and add the following code after include [color=rgb(147, 101, 184)]backend/functions.php[/color]


/**
* Hide admin panel from exploits with 404 header.
*
* @package hide_admin_panel_1.0
* @license GPLv3
* @author  Shadows
* @version 1.0
*/

// Change 'class', to the minimal user class number that are not allowed to visit
if (!$CURUSER || $CURUSER['class'] < 4)
{
   header('HTTP/1.1 404 Not Found');
   // include_once 'your_404_custom_file.php'; // Include your 404 custom file if you use a custom error handlers.
   exit;
}
else
{
   header('HTTP/1.1 200 OK');
}
I accidentally deleted files one week ago from my xampp test ?
Give the full sqlerr
Switch places of allocine, last_action to last_action, allocine
He told you what's the problem. You are missing comma between annon and last_action.
You can't allow 2 ips. Database stores only 1 ip per user.
//check if IP is already a peer

if ($site_config["ipcheck"] && $site_config["accountmax"] > "0") {

$ip = $_SERVER['REMOTE_ADDR'];

$ipc = SQL_Query_exec("SELECT COUNT(ip) FROM users WHERE ip = '$ip'");

$ipq = mysqli_num_rows($ipc);

if ($ipq >= $site_config["accountmax"])

show_error_msg("Error","$site_config[SITENAME] only allows $site_config[accountmax] account per IP. If you would like to create a new account, please contact a staff member via PM or IRC.<br><br> The error was: <font color=red>maximum account count($site_config[accountmax]) exceeded for $ip($ipq), cannot proceed with signup.</font>",1);

}
"niki, post: 67397, member: 20338":

Hello, ok thanks though the trackers use it :rolleyes:

Wait till representative of some company fill subpoena and obtain their personal information and get them a court order. Happened many times.
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