Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Free Torrent Source (http://www.bvlist.com/forumdisplay.php?f=25)
-   -   File manager (http://www.bvlist.com/showthread.php?t=1730)

Ginno 3rd January 2009 22:59

File manager
 
hi
i have a problem
i can't access my file manager in cp

Code:

Changelog  You don't have access here

adrian21 3rd January 2009 23:15

Re:
 
Could you give me your log.php file?
I want to help you:friend:

Ginno 3rd January 2009 23:59

Code:

/*
// +--------------------------------------------------------------------------+
// | 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("\n");
print("\n");
print("
Search Log
\n");
print("\n");
print("
\n");
print("
\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("Log is empty\n");
else
{

//echo $pagertop;

  print("\n");
  print("\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("\n");

    print("\n");
  }
  print("
DateTimeEvent
$date$time
$date$time".$arr['txt']."
");
}
echo $pagerbottom;

print("

Times are in GMT.

\n");

stdfoot();

?>


Dragan3591 6th January 2009 20:11

Check if the log is enabled in your admin panel!

Ginno 6th January 2009 20:46

i change the version...
now i use 1.2 final..
it's works better
i have a question...
where i edit the disklamer block??

wMan 6th January 2009 20:49

hmm quick guess index.php :coffee:

Ginno 6th January 2009 21:38

NOP...:unknown:
I WANT TO CHANGE THE CONTENS OF DISCLAIMER

Edgein 18th January 2009 10:20

Quote:

Originally Posted by Ginno (Post 7988)
NOP...:unknown:
I WANT TO CHANGE THE CONTENS OF DISCLAIMER

It's also in index.php

at line 916 til 918

Dragan3591 29th January 2009 15:35

Thanks for helping him man, I was kinda busy. Ta know work and fun (ya)..


All times are GMT +2. The time now is 20:16.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.