plugins/SpecialUserFuncs.php
changeset 743 0acb5d0f8328
parent 741 a216e412c439
child 782 96848f04bbba
equal deleted inserted replaced
742:551b6a0aa3b4 743:0acb5d0f8328
  2013     global $db, $session, $paths, $template, $plugins; // Common objects
  2013     global $db, $session, $paths, $template, $plugins; // Common objects
  2014     global $lang;
  2014     global $lang;
  2015     
  2015     
  2016     $userpage = $paths->nslist['User'] . sanitize_page_id($username);
  2016     $userpage = $paths->nslist['User'] . sanitize_page_id($username);
  2017     $class = ( isPage($userpage) ) ? '' : ' class="wikilink-nonexistent"';
  2017     $class = ( isPage($userpage) ) ? '' : ' class="wikilink-nonexistent"';
  2018     $anchor = '<a href="' . makeUrlNS('User', sanitize_page_id($username)) . '"' . $class . ' onclick="load_component(\'SpryEffects\'); var el = document.getElementById(\'ml_moreinfo_' . $row['user_id'] . '\'); if ( !el.fx ) el.fx = new Spry.Effect.Blind(el, { duration: 500, from: \'0%\', to: \'100%\', toggle: true }); el.fx.start(); return false;">' . htmlspecialchars($username) . '</a>';
  2018     $anchor = '<a href="' . makeUrlNS('User', sanitize_page_id($username)) . '"' . $class . ' onclick="load_component(\'jquery\'); load_component(\'jquery-ui\'); var el = document.getElementById(\'ml_moreinfo_' . $row['user_id'] . '\'); $(el).toggle(\'blind\'); return false;">' . htmlspecialchars($username) . '</a>';
  2019     if ( $session->user_level >= USER_LEVEL_ADMIN )
  2019     if ( $session->user_level >= USER_LEVEL_ADMIN )
  2020     {
  2020     {
  2021       $anchor .= ' <small>- <a href="' . makeUrlNS('Special', 'Administration', 'module=' . $paths->nslist['Admin'] . 'UserManager&src=get&username=' . urlencode($username), true) . '"
  2021       $anchor .= ' <small>- <a href="' . makeUrlNS('Special', 'Administration', 'module=' . $paths->nslist['Admin'] . 'UserManager&src=get&username=' . urlencode($username), true) . '"
  2022                                onclick="ajaxAdminUser(\'' . addslashes(htmlspecialchars($username)) . '\'); return false;">' . $lang->get('userfuncs_ml_btn_adminuser') . '</a></small>';
  2022                                onclick="ajaxAdminUser(\'' . addslashes(htmlspecialchars($username)) . '\'); return false;">' . $lang->get('userfuncs_ml_btn_adminuser') . '</a></small>';
  2023     }
  2023     }