.github
etc
usr
var
www
html
phpmyadmin
admin.php
coinpayments_ipn.php
delete.php
faq.php
favicon.ico
files.php
home.php
index.php
list.php
log.php
login.php
logout.php
password.php
pgp.php
register.php
robots.txt
upgrade.php
mail
skel
common.php
composer.json
cron.php
find_old.php
setup.php
setup_chroot.sh
COPYING
README.md
clean_nginx_sockets.sh
install_binaries.sh
20 lines
545 B
PHP
20 lines
545 B
PHP
<?php
|
|
require('../common.php');
|
|
$user=check_login();
|
|
if(!isset($_REQUEST['old']) || $_REQUEST['old']==0){
|
|
$old='';
|
|
}else{
|
|
$old='.1';
|
|
}
|
|
if(!isset($_REQUEST['type']) || $_REQUEST['type']==='access'){
|
|
$type='access';
|
|
}else{
|
|
$type='error';
|
|
}
|
|
header('Content-Type: text/plain; charset=UTF-8');
|
|
header("Content-disposition: filename=\"$type.log\"");
|
|
header('Pragma: no-cache');
|
|
header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0');
|
|
header('Expires: 0');
|
|
header("X-Accel-Redirect: /nginx/{$type}_$user[system_account].log$old");
|