summaryrefslogblamecommitdiffstats
path: root/apis/clientlog.inc.php
blob: 81a7dbf7468562abee2d7bd8b3632f6d88ca214d (plain) (tree)
1
2
3
4
5
6
7
8
9
10

     
  


                                                                                   

   

                                                   
 

                                                 
        
                                             
 
<?php

/*
 * For compatibility with old slx-admin, where apis were not connected to a module.
 * This is clientlog, which belonged to module syslog really, plus messy hacked in
 * hook for machine+user statistics.
 */

if (empty($_POST['type'])) die('Missing options.');
$type = mb_strtolower($_POST['type']);

if ($type{0} === '~' || $type{0} === '.') {
	require 'modules/statistics/api.inc.php';
} else {
	require 'modules/syslog/api.inc.php';
}