mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
16 lines
412 B
PHP
16 lines
412 B
PHP
<?php
|
|
|
|
include_once('includes/config.inc.php');
|
|
include_once('includes/session.inc.php');
|
|
include_once('includes/misc.inc.php');
|
|
|
|
if(php_sapi_name() !== 'cli') {
|
|
echo "This script is intended to be run from the command line";
|
|
} else {
|
|
if($allowrotatelogs === TRUE) {
|
|
$current_user['username']='<system>';
|
|
rotatelogs();
|
|
} else {
|
|
echo "Rotating logs has been disabled."
|
|
}
|
|
}
|