Example #1
0
File: ucp.php Project: omtim/kleeja
         if (empty($ERRORS)) {
             $user_salt = substr(base64_encode(pack("H*", sha1(mt_rand()))), 0, 7);
             $mail = $new_mail ? "mail='" . $SQL->escape($t_pmail) . "'" : '';
             $showmyfile = $t_show_my_filecp != $show_my_filecp ? ($mail == '' ? '' : ',') . "show_my_filecp='" . $t_show_my_filecp . "'" : '';
             $pass = $t_ppass_new != '' ? ($showmyfile != '' || $mail != '' ? ',' : '') . "password='******', password_salt='" . $user_salt . "'" : "";
             $id = $user->data['id'];
             $update_query = array('UPDATE' => "{$dbprefix}users", 'SET' => $mail . $showmyfile . $pass, 'WHERE' => 'id=' . $id);
             ($hook = $plugin->run_hook('qr_update_data_in_profile')) ? eval($hook) : null;
             //run hook
             if (trim($update_query['SET']) == '') {
                 $text = $lang['DATA_CHANGED_NO'];
             } else {
                 $text = $lang['DATA_CHANGED_O_LO'];
                 $SQL->build($update_query);
             }
             kleeja_info($text, '', true, get_url_of('profile'));
         }
     }
     #else submit
     ($hook = $plugin->run_hook('end_profile')) ? eval($hook) : null;
     //run hook
     break;
 case 'get_pass':
     #if not default system, let's give him a link for integrated script
     if ($config['user_system'] != 1) {
         $text = '<a href="' . (!empty($forgetpass_script_path) ? $forgetpass_script_path : $script_path) . '">' . $lang['LOST_PASS_FORUM'] . '</a>';
         kleeja_info($text, $lang['PLACE_NO_YOU']);
     }
     #page info
     $current_template = 'get_pass.php';
     $current_title = $lang['GET_LOSTPASS'];
Example #2
0
</li>
				<?php 
    }
    ?>
			</ul>
		</dd>
	</dl>
	<?php 
}
?>
	<!-- @end-msg -->


	<!-- profile -->
	<form action="<?php 
echo get_url_of('profile');
?>
" method="post">
	<div id="profile">
		<div class="boxdata">
			<h6 class="tit"><?php 
echo $lang['EDIT_U_DATA'];
?>
</h6>
			<div class="boxdata_inner">
				<label><?php 
echo $lang['USERNAME'];
?>
</label>
				<input type="text" readonly="readonly" class="bu_username" value="<?php 
echo $user->data['name'];
Example #3
0
    ?>
"  class="list-group-item<?php 
    if ($current_page == 'login') {
        ?>
 active<?php 
    }
    ?>
"><?php 
    echo $lang['LOGIN'];
    ?>
</a>
				<?php 
    if ($config['register']) {
        ?>
				<a href="<?php 
        echo get_url_of('register');
        ?>
"  class="list-group-item<?php 
        if ($current_page == 'register') {
            ?>
 active<?php 
        }
        ?>
"><?php 
        echo $lang['REGISTER'];
        ?>
</a>
				<?php 
    }
    ?>
			<?php