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] Who's Where Improvement
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

2012-11-30 09:42:37
Code from first post, no problem, no error, working just fine. Thanks.
Unknown User
2012-11-30 11:13:28
yes its ok the first post, i forgot to remove the below code



$where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);

   SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]);

Unknown User
2012-12-02 05:08:44
but the ip is not vissible...this is problem
2012-12-03 22:22:41
In admincp.php

remove



$res = SQL_Query_exec("SELECT `id`, `username`, `page`, `last_access` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `page` != '' ORDER BY `last_access` DESC LIMIT 100");






insert this





$res = SQL_Query_exec("SELECT `id`, `username`, `ip`, `page`, `last_access` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `page` != '' ORDER BY `last_access` DESC LIMIT 100");






insert this





<td class="table_col2" align="center"><?php echo ($row["ip"]); ?></td>






below this





<td class="table_col1" align="center"><a href="account-details.php?id=<?php echo $row["id"]; ?>"><b><?php echo $row["username"]; ?></b></a></td>

2012-12-04 02:15:57
"UFFENO1, post: 87174":
In admincp.php

remove



$res = SQL_Query_exec("SELECT `id`, `username`, `page`, `last_access` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `page` != '' ORDER BY `last_access` DESC LIMIT 100");

insert this




$res = SQL_Query_exec("SELECT `id`, `username`, `ip`, `page`, `last_access` FROM `users` WHERE `enabled` = 'yes' AND `status` = 'confirmed' AND `page` != '' ORDER BY `last_access` DESC LIMIT 100");






insert this





<td class="table_col2" align="center"><?php echo ($row["ip"]); ?></td>






below this





<td class="table_col1" align="center"><a href="account-details.php?id=<?php echo $row["id"]; ?>"><b><?php echo $row["username"]; ?></b></a></td>





you forgot this in admincp.php

after





Thanks for sharing :)



<th class="table_head">Username</th>




add





<th class="table_head">IP</th>


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)
2012-12-04 07:33:07
Ops! Thank you for helping me out. :rolleyes:
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