plugins/SpecialUserPrefs.php
changeset 1083 ef2dbcac5d56
parent 1081 745200a9cc2a
child 1086 6a59951b70e4
equal deleted inserted replaced
1082:d1c41601ef39 1083:ef2dbcac5d56
   303       break;
   303       break;
   304     case 'Signature':
   304     case 'Signature':
   305       $template->tpl_strings['PAGE_NAME'] = $lang->get('usercp_signature_title');
   305       $template->tpl_strings['PAGE_NAME'] = $lang->get('usercp_signature_title');
   306       break;
   306       break;
   307     case 'Profile':
   307     case 'Profile':
       
   308     case 'Home':
       
   309       if ( isset($_POST['submit']) )
       
   310         csrf_request_confirm();
       
   311       
   308       $template->tpl_strings['PAGE_NAME'] = $lang->get('usercp_publicinfo_title');
   312       $template->tpl_strings['PAGE_NAME'] = $lang->get('usercp_publicinfo_title');
   309       break;
   313       break;
   310   }
   314   }
   311   
   315   
   312   $template->header();
   316   $template->header();
   776             </th>
   780             </th>
   777           </tr>
   781           </tr>
   778         </table>
   782         </table>
   779       </div>
   783       </div>
   780       <?php
   784       <?php
       
   785       // CSRF protection
       
   786       echo '<input type="hidden" name="cstok" value="' . $session->csrf_token . '" />';
   781       echo '</form>';
   787       echo '</form>';
   782       break;
   788       break;
   783     case 'Avatar':
   789     case 'Avatar':
   784       if ( getConfig('avatar_enable', 0) !== 1 )
   790       if ( getConfig('avatar_enable', 0) !== 1 )
   785       {
   791       {