projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update AX website.
[platal.git]
/
modules
/
profile.php
diff --git
a/modules/profile.php
b/modules/profile.php
index
6714c4e
..
42c93ed
100644
(file)
--- a/
modules/profile.php
+++ b/
modules/profile.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
1
Polytechnique.org *
+ * Copyright (C) 2003-201
4
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-135,10
+135,10
@@
class ProfileModule extends PLModule
if (!$user->hasProfile()) {
return PL_NOT_FOUND;
} else {
if (!$user->hasProfile()) {
return PL_NOT_FOUND;
} else {
- $profile = $user->profile();
+ $profile = $user->profile(
false,0,Visibility::get(Visibility::VIEW_ADMIN)
);
}
} else {
}
} else {
- $profile = Profile::get($hrpid);
+ $profile = Profile::get($hrpid
,0,Visibility::get(Visibility::VIEW_ADMIN)
);
}
if (!$profile) {
}
if (!$profile) {
@@
-294,7
+294,7
@@
class ProfileModule extends PLModule
if (!$user->ax_id) {
$page->kill("Le matricule AX de {$user->hrid()} est inconnu");
}
if (!$user->ax_id) {
$page->kill("Le matricule AX de {$user->hrid()} est inconnu");
}
- http_redirect("http://
www
.polytechniciens.com/?page=AX_FICHE_ANCIEN&ancc_id=" . $user->ax_id);
+ http_redirect("http://
kx
.polytechniciens.com/?page=AX_FICHE_ANCIEN&ancc_id=" . $user->ax_id);
}
function handler_p_edit($page, $hrpid = null, $opened_tab = null, $mode = null, $success = null)
}
function handler_p_edit($page, $hrpid = null, $opened_tab = null, $mode = null, $success = null)
@@
-358,7
+358,7
@@
class ProfileModule extends PLModule
function handler_education_js($page)
{
function handler_education_js($page)
{
- pl_cached_
content_headers("text/javascript", "utf-8"
);
+ pl_cached_
dynamic_content_headers('text/javascript', 'utf-8'
);
$page->changeTpl('profile/education.js.tpl', NO_SKIN);
require_once 'education.func.inc.php';
}
$page->changeTpl('profile/education.js.tpl', NO_SKIN);
require_once 'education.func.inc.php';
}
@@
-516,6
+516,11
@@
class ProfileModule extends PLModule
return PL_NOT_FOUND;
}
return PL_NOT_FOUND;
}
+ // Referent view are logged.
+ if (S::logged()) {
+ S::logger()->log('view_referent', $pf->hrid());
+ }
+
$page->assign_by_ref('profile', $pf);
// Retrieves referents' countries.
$page->assign_by_ref('profile', $pf);
// Retrieves referents' countries.
@@
-864,5
+869,5
@@
class ProfileModule extends PLModule
}
}
}
}
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker
f
enc=utf-8:
?>
?>