diff --git a/plugins/flexprofile_mj/views/default/profile/edit.php b/plugins/flexprofile_mj/views/default/profile/edit.php index 82883a0f46668d8559e3128f30f4342b2482246b..14c3b745981d33b05df06be0c8dbaff1e9c01d16 100755 --- a/plugins/flexprofile_mj/views/default/profile/edit.php +++ b/plugins/flexprofile_mj/views/default/profile/edit.php @@ -29,11 +29,16 @@ if ($_GET['firstlogin'] == 'yes'){ </div> <?php } + +$ts = time(); +$token = generate_action_token($ts); + + /* import forms css */ echo '<style type="text/css">@IMPORT url("/wdn/templates_3.0/css/content/forms.css");</style>'; /* add 'cool' class to form */ echo '<div id="formloading"><img src="/wdn/templates_3.0/css/header/images/colorbox/loading.gif" alt="Loading Form" /><noscript>Please enable JavaScript to use the profile editor.</noscript></div>'; -echo '<form style="margin-top: 24px" action="'.$vars['url'].'action/flexprofile/edit" method="post" enctype="multipart/form-data" class="cool">'; +echo '<form style="margin-top: 24px" action="'.$vars['url'].'action/flexprofile/edit?__elgg_ts='.$ts.'&__elgg_token='.$token.'" method="post" enctype="multipart/form-data" class="cool">'; /* add fieldset and legend */ echo '<fieldset><legend>Edit Information</legend><ol>'; /* mjuhl: remove dynamic form by commenting out the following line: */