boards
[ class tree: boards ] [ index: boards ] [ all elements ]

Source for file user_preferences_inc.php

Documentation is available at user_preferences_inc.php

  1. <?php
  2. /**
  3.  * @package boards
  4.  * @subpackage functions
  5.  */
  6. $boardsSettings array(
  7.     /*
  8.     'boards_show_avatars' => array(
  9.         'pref'    => 'boards_show_avatars',
  10.         'label'   => "Show Avatars",
  11.         'type'    => "checkbox",
  12.         'default' => 'y',
  13.         'note'    => "",
  14.     ),
  15.      */
  16. );
  17.  
  18. if (!empty$_REQUEST['boards') ) {
  19.     foreach$boardsSettings as $option => $op{
  20.         if ($op['type']=="checkbox"{
  21.             $editUser->storePreference($op['pref']!empty$_REQUEST['boards'][$option]'y' 'n''users');
  22.         else {
  23.             $editUser->storePreference($op['pref']!empty$_REQUEST['boards'][$option]$_REQUEST['boards'][$option'''users');
  24.         }
  25.     }
  26. }
  27.  
  28. $gBitSmarty->assign('boardsSettings',$boardsSettings);
  29.  
  30. ifisset$_REQUEST['bitboarduprefs']['board_id') ) {
  31.     $_REQUEST['b'$_REQUEST['bitboarduprefs']['board_id'];
  32. }
  33.  
  34. $signatureContentnew LibertyContent();
  35. $content_type $editUser->getPreference('signature_content_type',"");
  36. $content_data $editUser->getPreference('signature_content_data',"");
  37. if (!empty($content_type&& !empty($content_data)) {
  38.     $signatureContent->mInfo['format_guid']=$editUser->getPreference('signature_content_type');
  39.     $signatureContent->mInfo['data']=$content_data;
  40. }
  41. $gBitSmarty->assign_by_ref'signatureContent'$signatureContent );
  42.  
  43.  
  44. ifisset$_REQUEST["format_guid") ) {
  45.     $signatureContent->mInfo['format_guid'$_REQUEST["format_guid"];
  46. }
  47.  
  48. ifisset$_REQUEST['bitboarduprefs']["edit") ) {
  49.     $signatureContent->mInfo["data"$_REQUEST['bitboarduprefs']["edit"];
  50.     $signatureContent->mInfo['parsed_data'$signatureContent->parseData();
  51. }
  52.  
  53. // If we are in preview mode then preview it!
  54. ifisset$_REQUEST["preview") ) {
  55.     $gBitSmarty->assign('preview''y');
  56. }
  57.  
  58. // Pro
  59. // Check if the page has changed
  60. if!empty$_REQUEST["save_bitboarduprefs") ) {
  61.     // Check if all Request values are delivered, and if not, set them
  62.     // to avoid error messages. This can happen if some features are
  63.     // disabled
  64.     $editUser->storePreference('signature_content_type',$signatureContent->mInfo['format_guid']'users');
  65.     $editUser->storePreference('signature_content_data',$signatureContent->mInfo['data']'users');
  66. }
  67.  
  68. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:32 +0000 by phpDocumentor 1.5.0-lsces