Skip to content
Snippets Groups Projects
Commit 8a73760b authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

flexprofile edit needs action tokens now for 1.7

parent cd99b3cb
No related branches found
No related tags found
No related merge requests found
...@@ -29,11 +29,16 @@ if ($_GET['firstlogin'] == 'yes'){ ...@@ -29,11 +29,16 @@ if ($_GET['firstlogin'] == 'yes'){
</div> </div>
<?php <?php
} }
$ts = time();
$token = generate_action_token($ts);
/* import forms css */ /* import forms css */
echo '<style type="text/css">@IMPORT url("/wdn/templates_3.0/css/content/forms.css");</style>'; echo '<style type="text/css">@IMPORT url("/wdn/templates_3.0/css/content/forms.css");</style>';
/* add 'cool' class to form */ /* 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 '<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 */ /* add fieldset and legend */
echo '<fieldset><legend>Edit Information</legend><ol>'; echo '<fieldset><legend>Edit Information</legend><ol>';
/* mjuhl: remove dynamic form by commenting out the following line: */ /* mjuhl: remove dynamic form by commenting out the following line: */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment