$file = is_uploaded_file($_FILES['userfile']['tmp_name'])
? $_FILES['userfile']['tmp_name']
: Env::v('photo');
if ($data = file_get_contents($file)) {
$myphoto = new PhotoReq(S::v('uid'), $data);
$file = is_uploaded_file($_FILES['userfile']['tmp_name'])
? $_FILES['userfile']['tmp_name']
: Env::v('photo');
if ($data = file_get_contents($file)) {
$myphoto = new PhotoReq(S::v('uid'), $data);
} elseif (Env::has('trombi')) {
$myphoto = new PhotoReq(S::v('uid'),
file_get_contents($trombi_x));
} elseif (Env::has('trombi')) {
$myphoto = new PhotoReq(S::v('uid'),
file_get_contents($trombi_x));
- require_once "profil/get_{$opened_tab}.inc.php";
- require_once "profil/verif_{$opened_tab}.inc.php";
+ require_once dirname(__FILE__) . "/profile/get_{$opened_tab}.inc.php";
+ require_once dirname(__FILE__) . "/profile/verif_{$opened_tab}.inc.php";
$page->assign('onglet', $opened_tab);
$page->assign('onglet_tpl', "profile/$opened_tab.tpl");
return;
$page->assign('onglet', $opened_tab);
$page->assign('onglet_tpl', "profile/$opened_tab.tpl");
return;
$log =& $_SESSION['log'];
$log->log('profil', $opened_tab);
$log =& $_SESSION['log'];
$log->log('profil', $opened_tab);
- require_once "profil/get_{$opened_tab}.inc.php";
- require_once "profil/verif_{$opened_tab}.inc.php";
- require_once "profil/assign_{$opened_tab}.inc.php";
+ require_once dirname(__FILE__) . "/profile/get_{$opened_tab}.inc.php";
+ require_once dirname(__FILE__) . "/profile/verif_{$opened_tab}.inc.php";
+ require_once dirname(__FILE__) . "/profile/assign_{$opened_tab}.inc.php";
$page->assign('onglet', $opened_tab);
$page->assign('onglet_tpl', "profile/$opened_tab.tpl");
$page->assign('onglet', $opened_tab);
$page->assign('onglet_tpl', "profile/$opened_tab.tpl");