<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
include LOCALE.LOCALESET."members-profile.php";
include LOCALE.LOCALESET."user_fields.php";

 if (isset($done)) {
opentable("Sekminga");
echo "jusu pavadinimas sekmingai atnaujintas";
closetable();
}
opentable("pasikeisk pavadinima");
	echo "<table align='center' cellpadding='0' cellspacing='0'>
<form action='".FUSION_SELF."' method='post' name='inputform'>
<tr>
<td class='tbl'>Pasirinkite savo u?ra?à:</td>
<td class='tbl'><input type='text' name='user_title' value='".$userdata['user_title']."' maxlength='15' class='textbox' style='width:200px;'></td>
</tr>
<td class='tbl1' colspan='2'><input type='submit' name='update' class='button' value='Siusti'></td>
</table>";
closetable();


$title=stripinput($_POST['user_title']);
if ($_POST['update']) {
$result=dbquery("UPDATE ".DB_PREFIX."users SET user_title='$user_title' WHERE user_id='".$userdata['user_id']."'");
redirect(FUSION_SELF."?done");
} 
require_once "side_right.php";
require_once "footer.php";
?>