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

the forum keeps removing backslashes in the code, so here is a screenshot then lol https://ibb.co/PQkv3RW
Manually add users — 2021-02-15 21:40:33 in v3 Mods Completed
also found the mod I thossed together for ratio stuff here https://torrenttrader.uk/topic?topicid=9732
Manually add users — 2021-02-15 21:39:50 in v3 Mods Completed
found the original post here https://torrenttrader.uk/topic?topicid=9818
Manually add users — 2021-02-15 21:30:57 in v3 Mods Completed
hmm, ok, seems we are on different pages. MY config.php has this
$site_config['new_member_upload_ratio'] = 2147483648; //2147483648 = 2GB of upload and inf. ratio to help get started
$site_config['new_member_invites'] = 0 ; // Every new user will get 0 invites to start with.

so if you add that, it should work? Since I am unable to know if you used that code in your site
Manually add users — 2021-02-15 20:29:36 in v3 Mods Completed
try this, mine has a few extra fields that get added to my database
SQL_Query_exec("INSERT INTO users ( added, last_access, secret, username, password, status, email) VALUES( NOW(), NOW(), $secret, $username, $passhash, 'confirmed', $email)");
oh, I didnt see that, just change to mysqli_fetch_array
should work the same in v3 :)
Manually add users — 2021-02-13 20:26:27 in v3 Mods Completed
heres an image you can use if you dont have one
Manually add users — 2021-02-13 18:05:18 in v3 Mods Completed
link in admincp.php
<td align="center"><a href="admincp.php?action=adduser"><img src="images/admin/adduser.png" border="0" width="118" height="80" alt="" /><br /><?php echo T_("ADDUSER"); ?></a><br /></td>

before last ?> add
#======================================================================#
# Add Users
#======================================================================#
if ($action == "adduser") {
if ($CURUSER["class"] < "7") {
       show_error_msg("Error", "Sorry you do not have the rights to view this page!", 1);
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
   if ($_POST["username"] == "" || $_POST["password"] == "" || $_POST["email"] == "")
       show_error_msg(T_("ERROR"), T_("DONT_LEAVE_ANY_FIELD_BLANK"),1);
   if ($_POST["password"] != $_POST["password2"])
       show_error_msg(T_("ERROR"), T_("PASSWORDS_NOT_MATCH"),1);
       $username = sqlesc($_POST["username"]);
       $password = $_POST["password"];
       $email = sqlesc($_POST["email"]);
       $secret = mksecret();
       $passhash = sqlesc(passhash($password)); // hash the password
       $secret = sqlesc($secret);
       SQL_Query_exec("INSERT INTO users (downloaded, uploaded, invites, added, last_access, secret, username, password, status, email) VALUES($site_config[new_member_upload_ratio], 0, $site_config[new_member_invites], NOW(), NOW(), $secret, $username, $passhash, 'confirmed', $email)");
       $res = SQL_Query_exec("SELECT id FROM users WHERE username=$username");
       $arr = mysqli_fetch_row($res);
if (!$arr)
       show_error_msg(T_("ERROR"), "Unable to create the account. The user name is possibly already taken.",1);
  //     header("Location: account-details.php?id=$arr[0]");
autolink ("account-details.php?id=$arr[0]", "<b><font color='#ff0000'> Account Created...Directing to details page</font></b>");
       die;
}

stdhead("Add user");
begin_frame();
?>
<div align=center>
<h1>Add User</h1>
<form method=post action=admincp.php?action=adduser>
<table border=1 cellspacing=0 cellpadding=5>
<tr><td class=rowhead>Name</td><td><input type=text name=username size=40></td></tr>
<tr><td class=rowhead>Password</td><td><input type=password name=password size=40></td></tr>
<tr><td class=rowhead>Retype password</td><td><input type=password name=password2 size=40></td></tr>
<tr><td class=rowhead>E-mail</td><td><input type=text name=email size=40></td></tr>
<tr><td colspan=2 align=center><input type=submit value="Create" class=btn></td></tr>

</table>
</form>
</div>
<?php
end_frame();
navmenu();
stdfoot();
}
#======================================================================#
# END Add Users
#======================================================================#

in config.php, add
$site_config['new_member_upload_ratio'] = 2147483648; //2147483648 = 2GB of upload and inf. ratio to help get started
$site_config['new_member_invites'] = 0 ; // Every new user will get 0 invites to start with.
upload images webp — 2021-02-12 14:36:57 in v2.08 Support
my torrents-upload has a few lines commented out. I dont remember why, but im sure it was for a reason, but I havent tried webp images. I may try it later and see


//if (!preg_match('/^(.+)\.(jpg|gif|png)$/si', $_FILES[image.$x]['name']))
// show_error_msg(T_("INVAILD_IMAGE"), T_("THIS_FILETYPE_NOT_IMAGE"), 1);

 
TT 2.5 [moded 2.08] — 2021-02-12 00:17:04 in M-BiTsy Support
Im blind also, just got my new glasses. No worries buddy. Glad everything is well :)
TT 2.5 [moded 2.08] — 2021-02-11 20:51:53 in M-BiTsy Support
Not sure on the avatar. I assume m-jay would know more on that if you are talking about this site. If you are talking about your own site, make a new post with code and someone may be able to help out
TT 2.5 [moded 2.08] — 2021-02-11 19:59:35 in M-BiTsy Support
try removing the (int)
	//EXTERNAL SCRAPE
if ($external=='yes' && $site_config['UPLOADSCRAPE']){
$tracker=str_replace("/announce","/scrape",$announce);
$stats = torrent_scrape_url($tracker, $infohash);
$seeders = strip_tags($stats['seeds']);
$leechers = strip_tags($stats['peers']);
$downloaded = strip_tags($stats['downloaded']);

SQL_Query_exec("UPDATE torrents SET leechers='".$leechers."', seeders='".$seeders."',times_completed='".$downloaded."',last_action= '".get_date_time()."',visible='yes' WHERE id='".$id."'");
}
//END SCRAPE
 
Then create anon.js file and place in scripts folder. If you dont have a scripts folder in your site root, just create one or change the path in the first set of code above. This will filter all links, including https and http
var protected_links = "";
var a_to_va = 0;
var a_to_vb = 0;
var a_to_vc = "";
function auto_anonymize()
{
auto_anonyminize();
}
function auto_anonyminize()
{
var a_to_vd = window.location.hostname;
if(protected_links != "" && !protected_links.match(a_to_vd))
{
protected_links += ", " + a_to_vd;
}
else if(protected_links == "")
{
protected_links = a_to_vd;
}
var a_to_ve = "";
var a_to_vf = new Array();
var a_to_vg = 0;
a_to_ve = document.getElementsByTagName("a");
a_to_va = a_to_ve.length;
a_to_vf = a_to_fa();
a_to_vg = a_to_vf.length;
var a_to_vh = false;
var j = 0;
var a_to_vi = "";
for(var i = 0; i < a_to_va; i++)
{
a_to_vh = false;
j = 0;
while(a_to_vh == false && j < a_to_vg)
{
a_to_vi = a_to_ve.href;
if(a_to_vi.match(a_to_vf[j]) || !a_to_vi || (!a_to_vi.match("http://") && !a_to_vi.match("https://")))
{
a_to_vh = true;
}
j++;
}

if(a_to_vh == false)
{
//// Comment or uncomment below to select a different redirect service ////
//a_to_ve.href = "http://anon.to?" + a_to_vi;
a_to_ve.href = "http://nullrefer.com?" + a_to_vi;
//a_to_ve.href = "http://hideref.org/?" + a_to_vi;
//a_to_ve.href = "http://dereferer.com/?" + a_to_vi;
//a_to_ve.href = "http://hidemyass.com?" + a_to_vi;
//a_to_ve.href = "http://redirect.am?" + a_to_vi;
//a_to_ve.href = "http://lolinez.com?" + a_to_vi;
a_to_vb++;
a_to_vc += i + ":::" + a_to_ve.href + "\n" ;
}
}
var a_to_vj = document.getElementById("anonyminized");
var a_to_vk = document.getElementById("found_links");
if(a_to_vj)
{
a_to_vj.innerHTML += a_to_vb;
}
if(a_to_vk)
{
a_to_vk.innerHTML += a_to_va;
}
}
function a_to_fa()
{
var a_to_vf = new Array();
protected_links = protected_links.replace(" ", "");
a_to_vf = protected_links.split(",");
return a_to_vf;
}
 
I was cleaning up old code and realized the file I had was not filtering https links, so now it does. This mod used to be here I thought, but I couldnt find it to post an update, so I make a new thread.
In all theme footer.php before last /body tag put
<script src="<?php echo $site_config["SITEURL"];?>/scripts/anon.js" type="text/javascript"></script>
<script type="text/javascript"><!--
protected_links = "<?php echo $site_config["SITEURL"];?>";
auto_anonymize();
//--></script>
 
This used to be posted in the past, but I couldnt find it. Anyway, I was just cleaning up some old code and had another look at this and realized it was not filtering https links, so now it does.
In all theme footer.php files before last </body>
<script src="<?php echo $site_config["SITEURL"];?>/scripts/anon.js" type="text/javascript"></script>
<script type="text/javascript"><!--
protected_links = "<?php echo $site_config["SITEURL"];?>";
auto_anonymize();
//--></script>
place anon.js file in scripts folder or create scripts folder if its not present
 
I hope everything is working well for you.  :) Make sure you pay attention to this section because it may not be the same as the user levels you have. Adjust those case numbers as needed. Also, mysqli_free_result can be deleted, its not needed. I commented it in my code because I like being able to know what I changed and why. Im stupid that way lol
switch ($ab[0]) {
case 8: // Site owner:
$name = "".$row['name']."";
break;
case 7: // Administrator:
$name = "".$row['name']."";
break;
case 6: // Super Moderator
$name = "".$row['name']."";
break;
case 5: // Moderator
$name = "".$row['name']."";
break;
case 4: // Uploader
$name = "".$row['name']."";
break;
case 3: // VIP
$name = "".$row['name']."";
break;
case 2: // Power User
$name = "".$row['name']."";
break;
case 1: // User
$name = "".$row['name']."";
break;
case 0: // System
$name = "".$row['name']."";
}
I noticed that your UID is 1, when it should be 0 if you are using system or a non-user as a user (which I recommend)
admincp.php
SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,'".get_date_time()."', 'Robot Crazy' ,".$msg_shout.")");


Here is my full getshout.php file
https://www.mediafire.com/file/5iqrekgxuwdg5yh/getshout.rar/file
you cant just insert an image like that, you would probably have to use tags like [img][/img] and link to an image on site, but I never tried it, perhaps like
$msg_shout = sqlesc("".T_("SHOUTBOX_CLEARED_MESSAGE")."", [img][/img] );
Torrent Test — 2021-01-23 07:05:45 in M-BiTsy Support
downloading just fine so far with qbittorrent
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: 10

  • Online

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