Menu

[r9]: / mantis / user_profile.php  Maximize  Restore  History

Download this file

33 lines (27 with data), 996 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
#Application name: PhpCollab
#Status page: 0
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
?>
<?php include( "../mantis/core_API.php" ) ?>
<?php //login_cookie_check() ?>
<?php
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );
//check_access( ADMINISTRATOR );
# get all form values from phpcollab
$f_id = $idSession;
$f_email = trim($em);
//echo "f_id = ".$f_id;
//echo "new email = ".$f_email;
# create the almost unique string for each user then insert into the table
$t_cookie_string = create_cookie_string();
// Modify it's update action , so new cookie string will created.
# update action
$query = "UPDATE $g_mantis_user_table
SET email='$f_email', cookie_string = '$t_cookie_string'
WHERE id='$f_id'";
$result = db_query( $query );
?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.