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
mod change nick name
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Requests

2019-05-01 06:36:32
If this is possible to be ported on 3.0  mod change nick name
2019-05-02 23:47:47
Im not familiar with this mod, can you link to it?
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-05-03 13:57:23
https://torrenttrader.xyz/index.php?threads/name-nick-change-in-staff-in-all-users-and-pm-notice.2050/
2019-05-04 10:24:22
Warning:  mysqli_escape_string() expects exactly 2 parameters, 1 given in /var/www/html/userfind_to_nick.php on line 33
userfind_to_nick.txt
Download
2019-05-04 14:25:15
the above link i posted is for v2.08, it may need some edits to work with v3
2019-05-04 15:10:28
try this. I didnt test this. Edited to remove short tags
<?php
/* ////////////////////////////////////////////////////////////////////
 [TT All] Receiver choice from list in new PM - by r@lphii
/////////////////////////////////////////////////////////////////////*/

require "backend/functions.php";
dbconn();
loggedinonly();

if (isset($_GET['action']) && $_GET['action'])
           $action=$_GET['action'];
else $action = '';;

if ($action!="find")
  {
?>

<form action="userfind_to_nick.php?action=find" name="users" method="post">
<div vlign="bottom">
 <table cellspacing=0 cellpadding=0 border=0 align=left width=100% bgcolor="#dddddd">
 <tr>
    <td class=col1 align=center><?php echo "<b>Pseudo</b>";?>:</td>
    <td class=col1 align=center><input type="text" name="user" size="30" /></td>
    <td class=col2 align=center><input type="submit" name="confirm" value="Rechercher" /></td>
 </tr>
 </table>
</div>
</form>
<?php
}
else
{
 $res=SQL_Query_exec("SELECT username FROM users WHERE username LIKE '%".mysqli_escape_string($GLOBALS["DBconnector"],$_POST["user"])."%' ORDER BY username");
 if (!$res or mysqli_num_rows($res)==0)
     {
?>
<table cellspacing=0 cellpadding=0 border=0 align=left width=100% bgcolor="#dddddd">
<tr><td><p align=center>Trouver <font color=red><b>0</b></font> membres , essayer à nouveau.<br />
<a href=userfind_to_pm.php><b>[Réessayez]</b></a></p></td></tr></table>
<?php    }
 else {
   $subres = SQL_Query_exec("SELECT COUNT(*) FROM users WHERE username LIKE '%".mysqli_real_escape_string($GLOBALS["DBconnector"],$_POST["user"])."%'");
   $subrow = mysqli_fetch_array($subres);
   $count = $subrow[0];

if ($count == "1"){?>
<p align=center>Trouver <b>1</b> membre</p>
<?php }elseif ($count >= "500"){ ?>
<p align=center>Trouver <b><?php echo $count ?></b> membres. Essayez d'être plus précis.</p>
<?php }else{ ?>
<p align=center>Trouver <b><?php echo $count ?></b> membre - Choisir ce membre.</p>
<?php } ?>
<div align="center">
 <form name=result>
<table bgcolor="dddddd" align=left width=100% cellspacing=0 cellpadding=0 border=0>
 <tr>
    <td align=center>
<?php
print("<b>Pseudo</b>");
?>
:</td>
<?php
    print("<td align=center><select name=\"name\" size=\"1\">");
    while($result=mysqli_fetch_array($res))
    print("<option name=uname value=" . $result["username"]. " />" . $result["username"] . "</option>");
    print("</select></td>");
?>
<script language=javascript>

function addusertopm(){
   window.opener.document.forms['edit'].elements['receiver'].value = document.forms['result'].elements['name'].options[document.forms['result'].elements['name'].options.selectedIndex].value;
   window.close();
}
</script>
<?php
    print("<td><input type=\"button\" name=\"confirm\" onclick=\"javascript:addusertopm()\" value=\"Choisir\"></td>");
?>
 </tr>
</table>
</form>
</div>
<?php
  }
}
?>

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728