}
return PL_NOT_FOUND;
}
+ if (S::logged()) {
+ $_SESSION['log']->log('view_profile', $login);
+ }
$new = Env::v('modif') == 'new';
$user = get_user_details($login, S::v('uid'), $view);
if (Env::has('quick') || $action == 'geoloc') {
$quick = trim(Env::v('quick'));
+ if (S::logged() && !Env:has('page')) {
+ $_SESSION['log']->log('search', 'quick=' . $quick);
+ }
$list = 'profile|prf|fiche|fic|referent|ref|mentor';
if (S::has_perms()) {
$list .= '|admin|adm|ax';
'school' => array('field' => 'id', 'table' => 'applis_def', 'text' => 'text', 'exact' => false),
'city' => array('table' => 'geoloc_city', 'text' => 'name', 'exact' => false)
);
+ if (!Env::has('page')) {
+ $_SESSION['log']->log('search', 'adv=' . var_export($_GET, true));
+ }
foreach ($textFields as $field=>&$query) {
if (!Env::v($field) && Env::v($field . 'Txt')) {
$res = XDB::query("SELECT {$query['field']}
--- /dev/null
+INSERT INTO logger.actions (text, description)
+ VALUES ('view_profile', 'Consultation d\'une fiche'),
+ ('search', 'RĂ©alisation d\'une recherche');
+
+# vim:set syntax=mysql: