|
#1
|
|||
|
|||
File manager
|
#2
|
|||
|
|||
Re:
Could you give me your log.php file?
I want to help you |
#3
|
|||
|
|||
Code:
<?php /* // +--------------------------------------------------------------------------+ // | Project: FTS - Free Torrent Source | // +--------------------------------------------------------------------------+ // | Module: log.php - View site's activity. | // | Version: 1.4 | // +--------------------------------------------------------------------------+ // | This file is part of FTS. Fts is based on TBDev, | // | originally by RedBeard of TorrentBits, extensively modified by | // | Gartenzwerg. | // | | // | FTS is free software; you can redistribute it and/or modify | // | it under the terms of the GNU General Public License as published by | // | the Free Software Foundation; either version 2 of the License, or | // | (at your option) any later version. | // | | // | FTS is distributed in the hope that it will be useful, | // | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with FTS; if not, write to the Free Software Foundation, | // | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | // +--------------------------------------------------------------------------+ // | FTS IS FREE SOFTWARE, but it still can contain some encoded files. | // +--------------------------------------------------------------------------+ // | Do not remove above lines! | // +--------------------------------------------------------------------------+ */ require "include/bittorrent.php"; dbconn(false); loggedinorreturn(); if (get_user_class() < UC_MODERATOR) stderr("Sorry", "Access denied."); // delete items older than a week $secs = 24 * 60 * 60; stdhead("Site log"); mysql_query("DELETE FROM sitelog WHERE " . gmtime() . " - UNIX_TIMESTAMP(added) > $secs") or sqlerr(__FILE__, __LINE__); print("<table border=1 cellspacing=0 width=605 cellpadding=5>\n"); print("<tr><td class=tabletitle align=left>Search Log</td></tr>\n"); print("<tr><td class=tableb align=left><form method=\"get\" action=searchlog.php>\n"); print("<input type=\"text\" name=\"query\" size=\"40\" value=\"" . htmlspecialchars($searchstr) . "\">\n"); print("<input type=submit value=" . SEARCH . " style='height: 20px' /></form>\n"); print("</td></tr></table>\n"); $res = mysql_query("SELECT COUNT(*) FROM sitelog"); $row = mysql_fetch_array($res); $count = $row[0]; $perpage = 20; list($pagertop, $pagerbottom, $limit) = pager(50, $count, "log.php?"); $res = mysql_query("SELECT added, txt FROM sitelog ORDER BY added DESC $limit") or sqlerr(__FILE__, __LINE__); if (mysql_num_rows($res) == 0) print("<b>Log is empty</b>\n"); else { //echo $pagertop; print("<table border=1 cellspacing=0 cellpadding=5>\n"); print("<tr><td class=tabletitle align=left>Date</td><td class=tabletitle align=left>Time</td><td class=tabletitle align=left>Event</td></tr>\n"); while ($arr = mysql_fetch_assoc($res)) { $color = 'black'; if (strpos($arr['txt'],'was uploaded by')) $color = "green"; if (strpos($arr['txt'],'was deleted by')) $color = "red"; if (strpos($arr['txt'],'was added to the Request section')) $color = "purple"; if (strpos($arr['txt'],'was edited by')) $color = "blue"; $date = substr($arr['added'], 0, strpos($arr['added'], " ")); $time = substr($arr['added'], strpos($arr['added'], " ") + 1); // print("<tr><td>$date</td><td>$time</td><td align=left></td></tr>\n"); print("<tr class=tableb><td>$date</td><td>$time</td><td align=left><font color='".$color."'>".$arr['txt']."</font></td></tr>\n"); } print("</table>"); } echo $pagerbottom; print("<p>Times are in GMT.</p>\n"); stdfoot(); ?> |
#4
|
||||
|
||||
Check if the log is enabled in your admin panel!
__________________
CLICK HERE FOR IMPORTANT NEWS FROM BVLIST!! "Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." Ernest Hemingway. "A positive attitude will not solve all your problems, but it will annoy enough people to make it worth the effort." Herm Albright. |
#5
|
|||
|
|||
i change the version...
now i use 1.2 final.. it's works better i have a question... where i edit the disklamer block?? |
#6
|
|||
|
|||
hmm quick guess index.php
|
#7
|
|||
|
|||
NOP...:unknown:
I WANT TO CHANGE THE CONTENS OF DISCLAIMER |
#8
|
||||
|
||||
It's also in index.php
at line 916 til 918 |
The Following User Says Thank You to Edgein For This Useful Post: | ||
Ginno (18th January 2009)
|
#9
|
||||
|
||||
Thanks for helping him man, I was kinda busy. Ta know work and fun (ya)..
__________________
CLICK HERE FOR IMPORTANT NEWS FROM BVLIST!! "Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." Ernest Hemingway. "A positive attitude will not solve all your problems, but it will annoy enough people to make it worth the effort." Herm Albright. |
Tags |
file , manager |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No input file specified | KM4 | Torrent Strike | 4 | 8th July 2012 16:27 |
welcome pm file? | hellbound | Template Shares | 2 | 6th August 2009 13:35 |
[Netvision 2.0] Category Manager | johnake | Mods & Themes | 2 | 2nd May 2009 15:05 |
[Help request] For stylesheets manager | Kotafi | TBDev | 7 | 13th October 2008 06:55 |
Swe lang file? | Swompen | Yuna Scatari Edition (YSE) | 8 | 27th July 2008 23:15 |