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
[addon]Stale PM's clean up
Controls ·  Search New posts · Mark unread

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

Unknown User
2011-09-20 17:58:34
Hi, this is'nt much of a mod,its more of an addition to the clean.php file, something i noticed from sorting out a big TT based site is the amount of PM's that was left in the database, so i came up with a method to control it based on one of the existing clean up systems:


open backend/cleanup.php


Copy the folling at the bottom of the file then save:

$messages = gmtime() - 90 * 86400;//delete read Messages(PM's) after 90 days

SQL_Query_exec("DELETE FROM messages WHERE unread = 'no' AND added < FROM_UNIXTIME($messages)");


Hope this helps those with a verry big database problem :angry:
2011-09-20 23:37:50
Thanks you salfordscripteR  :angry:
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