Subversion Repositories wimsdev

Rev

Rev 17800 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <!-- _widgets/motd.phtml -->
  2.  
  3. !readproc wimshome/log/classes/$wims_class/.users/$wims_user
  4. !set mot_=!record 0 of wimshome/log/classes/$wims_class/.motd
  5. !set mot_=!replace internal \var_ by $$user__ in $mot_
  6. !if $mot_!=$empty and $mot_ notsametext <br>
  7.  <div id="wims_class_motd" class="wims_msg info">
  8.    $mot_
  9.    !! !read ./wimshome/log/classes/$wims_class/.motd
  10.  </div>
  11. !endif
  12. !if anonymous isin $wims_user
  13.   !let test2=!record 0 of wimshome/log/classes/$wims_class/motd/anonymous
  14.   !let test=
  15. !else
  16.   !let test2=!record 0 of wimshome/log/classes/$wims_class/motd/$wims_user
  17.   !let test=!record 0 of wimshome/log/classes/$wims_class/motd/.$wims_user
  18. !endif
  19. !if # notin $test and $test2!=$empty
  20.  <div id="wims_class_pmotd" class="wims_msg info">
  21.     !set mot_=!replace internal \var_ by $$user__ in $test2
  22.     $mot_
  23.     !if anonymous notin $wims_user
  24.       !!  !read ./wimshome/log/classes/$wims_class/motd/$wims_user
  25.       &nbsp; [
  26.       !href module=adm/class/motd $(wims_name_actionlist[4])
  27.       ]
  28.     !endif
  29.   </div>
  30. !endif
  31. <!-- end _widgets/motd.phtml -->
  32.