Version 1.12
This commit is contained in:
parent
2a066a7498
commit
de31cd3e9a
1373 changed files with 156282 additions and 45238 deletions
31
onyx2/modules/pistage/main.php
Normal file
31
onyx2/modules/pistage/main.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
$pistage = false;
|
||||
|
||||
if (!empty($OPT['ips']))
|
||||
{
|
||||
$ips = explode(';', $OPT['ips']);
|
||||
foreach($ips as $ip)
|
||||
{
|
||||
if ($_SERVER["REMOTE_ADDR"] == $ip) $pistage = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($OPT['ids']))
|
||||
{
|
||||
$SESS = new Session();
|
||||
|
||||
$ids = explode(';', $OPT['ids']);
|
||||
foreach($ids as $ids)
|
||||
{
|
||||
if ($SESS->values['id'] == $id) $pistage = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ($pistage)
|
||||
elog(var_export($_REQUEST, TRUE), 0, ONYX."log/users");
|
||||
|
||||
unset($pistage, $SESS, $ips, $ids);
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue