Commit | Line | Data |
---|---|---|
51ff3226 | 1 | <?php |
2 | function configure_email() { | |
3 | global $db,$error,$node; | |
4 | $node_id=$node['node_id']; | |
5 | $user_id=$_SESSION['user_id']; | |
6 | if ($node['node_permission']=='owner') { | |
7 | if(!empty($node_id)) { | |
8 | if($node_id == $user_id) { | |
9 | $user_email=addslashes($_POST['user_email']); | |
10 | $q="update users set email='$user_email' where user_id='$node_id'"; | |
11 | $db->query($q); | |
12 | } | |
13 | } | |
14 | } | |
15 | return true; | |
16 | } | |
17 | ?> |