Initial commit
This commit is contained in:
commit
998d011cd3
233 changed files with 36893 additions and 0 deletions
34
onyx/modules/pistage/main.php
Normal file
34
onyx/modules/pistage/main.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
$pistage = false;
|
||||
$file = null;
|
||||
|
||||
if (!is_dir(ONYX."log/users"))
|
||||
mkdir(ONYX."log/users");
|
||||
|
||||
if (!empty($OPT['ips']))
|
||||
{
|
||||
$ips = explode(';', $OPT['ips']);
|
||||
if (in_array($_SERVER["REMOTE_ADDR"], $ips))
|
||||
$pistage = true;
|
||||
}
|
||||
|
||||
if (!empty($OPT['ids']))
|
||||
{
|
||||
$SESS = new Session();
|
||||
|
||||
$ids = explode(';', $OPT['ids']);
|
||||
if (isset($SESS->values['id']) && in_array($SESS->values['id'], $ids))
|
||||
{
|
||||
$pistage = true;
|
||||
$file = $SESS->values['id'].".log";
|
||||
}
|
||||
}
|
||||
|
||||
if ($pistage)
|
||||
elog(var_export($_REQUEST, TRUE), 0, ONYX."log/users", $file);
|
||||
|
||||
unset($pistage, $SESS, $ips, $ids);
|
||||
?>
|
||||
Reference in a new issue