Skip to content

gerbesf/PR-LOG-Viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PR LOG Viewer 1.4

How to Configure (config.php)

Set Date/Time format

Configure the date/time format.

$config['date_format']="Y-m-d";
$config['hour_format']="H:i:s";

Configure expiration.

// Expiration time examples: 4 hours, 20 hours, 10 seconds
$config['expiration_time'] = '30 minutes';

Set your log file server

You need to host the ra_adminlog.txt and cd_hash.log or have internally access to configure the link/folder on 'path'.

Local file example for windows: 'path' => 'c:/prserver/logs/ra_admin_or_cdhash.txt',

Local file example for linux: 'path' => '/home/prserver/logs/ra_admin_or_cdhash.txt',

/* --------- SERVERS --------- */
$config['servers_list'][] = [
    'id' => 1, // keep the sequential order
    'name' => 'DIVSUL BRA', // server name

    // log files
    'ra_adminlog' => 'https://sposerver.divsul.com:666/PRServer/logs/ra_adminlog.txt', 
    'ra_adminlog_main' => 'https://sposerver.divsul.com:666/PRServer/logs/ra_adminlog_main.txt', 

    // hash files
    'hash_active_log' => 'https://sposerver.divsul.com:666/PRServer/logs/cdhash.txt', 
    'path_hash' => 'https://sposerver.divsul.com:666/PRServer/logs/cdhash_main.txt', 

    // server Files
    'whitelist' => 'https://sposerver.divsul.com:666/PRServer/logs/whitelist.txt',
    'banlist' => 'https://sposerver.divsul.com:666/PRServer/logs/banlist.con',

    'local_name' => 'divsul_bra.txt', // file name for this server
];


$config['servers_list'][] = [
    'id' => 2, // keep the sequential order
    'name' => 'DIVSUL USA', // server name

    // log files
    'ra_adminlog' => 'https://miaserver.divsul.com:666/PRServer/logs/ra_adminlog.txt', // filelog 1
    'ra_adminlog_main' => 'https://miaserver.divsul.com:666/PRServer/logs/ra_adminlog_main.txt', // filelog 2

    // hash files
    'hash_active_log' => 'https://miaserver.divsul.com:666/PRServer/logs/cdhash.txt', // filelog 1
    'path_hash' => 'https://miaserver.divsul.com:666/PRServer/logs/cdhash_main.txt', // filelog 2

    // server Files
    'whitelist' => 'https://miaserver.divsul.com:666/PRServer/logs/whitelist.txt',
    'banlist' => 'https://miaserver.divsul.com:666/PRServer/logs/banlist.con',

    'local_name' => 'divsul_usa.txt', // file name for this server
];

Enable/Disable Login access to view the logs

$config['require_login'] = false;

Display/Hide the last two blocks from the IP

This feature change ip from 201.201.201.201 to 201.201.000.000

$config['hide_ips'] = true;

Passwors with MD5

When you configure the 'password' with MD5, need to be encrypted and configure on the 'password' line.

$config['with_md5']=true;
$config['auth'] = [
    0 => [
        'id' => 1,
        'username' => 'admin',
        'password' => '21232f297a57a5a743894a0e4a801fc3',
        'name'=>'Admin'
    ]
];

Page Settings

 
// width of page
$config['full_width'] = false;
 
// height of modal
$config['modal_height'] = '700px';
 

*** IMPORTANT NOTE *** Need write permissions on the folder public/logs

Maintainers

  • Ferreira
  • Danesh_italiano

Initializers

  • Jeferson Costa
  • Renan Costa (xlShogunlx)

About

The tool you can se the log by ONLY one CLICK!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages