Source for file changeprofile.php
Documentation is available at changeprofile.php
* R.E. Login 2.0 - Profil változtatás - includes/changeprofile.php
* Profil változtatás. Változók inicializálása.
* Folyamatok elindítása. <br />
* <b>Dátum:</b> 2010.04.02.
* <b>Szerző weboldala:</b> {@link http://rimelek.hu/}<br />
* <b>Login weblapja:</b> {@link http://rimelek.hu/meghivos-loginrendszer-r-e-login-v2-0 R.E. Login v2.0}
* @author Takács Ákos (Rimelek), programmer [at] rimelek [dot] hu
* @copyright Copyright (C) 2010, Takács Ákos
* @license http://www.gnu.org/licenses/gpl.html
exit('Ez a fajl nem erheto el kozvetlenul. Reszletek a readme.txt-ben.');
require_once System::getIncLoginDir().
'classes/ChangeProfile.class.php';
require_once System::getIncLoginDir().
'classes/UserList.class.php';
if ( System::$user->rank(array('admin','owner'))
$user =
new User((int)
$_GET['uid']);
if (empty($user->username))
if (isset
($_POST['profile']) and is_array($_POST['profile']))
$profile =
$_POST['profile'];
if (!isset
($profile['public_mail']) or $profile['public_mail'] ==
'no')
$profile['public_mail'] =
'0';
$profile['public_mail'] =
'1';
$msg =
"Profil sikeresen módosítva!";
if ($user->T_users_useremail !=
$user->T_profiles_useremail)
$msg .=
"Most újra aktiválnod kell az e-mail címed.<br />".
PHP_EOL.
"Az aktiváló linket elküldtük az új e-mail címedre.";
foreach ($profile as $key =>
$value)
//if ($key == 'useremail') continue;
if (!isset
($_POST['profile']))
list
($data['bdyear'], $data['bdmonth'], $data['bdday']) =
explode('-',$data['birthdate']);
Documentation generated on Sun, 04 Apr 2010 22:43:31 +0200 by phpDocumentor 1.4.1