Guest User

Untitled

a guest
Nov 14th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class block_informseguim {
  15. function init() {
  16. $this->title = 'Informe seguimiento';
  17. $this->version = 2007032600;
  18. }
  19.  
  20. function get_content() {
  21. global $CFG;
  22. global $USER;
  23. global $COURSE;
  24.  
  25. $qr = mysql_query( 'select roleid from ' . $CFG->prefix . 'role_assignments inner join ' . $CFG->prefix . 'context on ' . $CFG->prefix . 'context.id=' . $CFG->prefix . 'role_assignments.contextid where contextlevel=50 and userid=\'' . $USER->id . '\' and ' . $CFG->prefix . 'context.instanceid=\'' . $COURSE->id . '\'' );
  26.  
  27. while ($rw = mysql_fetch_array( $qr )) {
  28. $roleid = $rw['roleid'];
  29. }
  30. ..............................................................
  31. ...................................
  32. ................
Advertisement
Add Comment
Please, Sign In to add comment