<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>

<xwikidoc>
<web>XWiki</web>
<name>AdminUsersSheet</name>
<language></language>
<defaultLanguage></defaultLanguage>
<translation>0</translation>
<parent>XWiki.AdminSheet</parent>
<creator>XWiki.Admin</creator>
<author>XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>XWiki.Admin</contentAuthor>
<creationDate>1211801430000</creationDate>
<date>1240954259000</date>
<contentUpdateDate>1240954259000</contentUpdateDate>
<version>1.1</version>
<title>AdminUsersSheet</title>
<template></template>
<defaultTemplate></defaultTemplate>
<validationScript></validationScript>
<comment></comment>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/1.0</syntaxId>
<hidden>false</hidden>
<content>### Globally administrate the users in a wiki.
#set($formname = "update")
#set($saveaction = "save")
##
## set the new interface from xwiki.cfg
##
#set($interface = $xwiki.rightsmanager.defaultUi)
##############################
## display the new interface
##############################
#if($interface == "new")
##
## inject needed JS and CSS files
##
#set($ok = $xwiki.jsfx.use("js/xwiki/lightbox/lightbox.js", true))
#set($ok = $xwiki.jsfx.use("js/xwiki/usersandgroups/usersandgroups.js", true))
#set($ok = $xwiki.ssfx.use("js/xwiki/usersandgroups/usersandgroups.css", true))
#set($ok = $xwiki.jsfx.use("js/xwiki/table/livetable.js", true))
#set($ok = $xwiki.ssfx.use("js/xwiki/table/livetable.css", true))
##
## url to get the users for displaying them in the ajax-based table
##
#set($url = "?xpage=getusers")
#if($context.database != "xwiki") 
  #set($mainwk = false) 
#else 
  #set($mainwk = true) 
#end
&lt;div id="xwikieditcontent"&gt;
  &lt;table id="userstable" class="xwiki-livetable"&gt;
    &lt;tr&gt;
      &lt;td class="xwiki-livetable-pagination" colspan="2"&gt;
        &lt;span id="userstable-limits" class="xwiki-livetable-limits"&gt;&lt;/span&gt;
        &lt;span id="userstable-ajax-loader" class="xwiki-livetable-loader"&gt;&lt;img src="$xwiki.getSkinFile('icons/ajax-loader.gif')" alt="$msg.get('xe.livetable.loading')" title="" /&gt;$msg.get("xe.livetable.loading")&lt;/span&gt;
        &lt;span class="pagination"&gt;
          &lt;span id="userstable-pagination-text" class="xwiki-livetable-pagination-text"&gt;$msg.get("xe.pagination.page")&lt;/span&gt;
          &lt;span id="userstable-pagination" class="xwiki-livetable-pagination-content" &gt;&lt;/span&gt;
        &lt;/span&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class="xwiki-livetable-display-container"&gt;
        &lt;table class="xwiki-livetable-display"&gt;
          &lt;thead class="xwiki-livetable-display-header"&gt;
             &lt;tr&gt;
               &lt;th class="xwiki-livetable-display-header-text" scope="col"&gt;$msg.get("xe.admin.users.username")&lt;/th&gt;
               &lt;th class="xwiki-livetable-display-header-text" scope="col"&gt;$msg.get("xe.admin.users.firstname")&lt;/th&gt;
               &lt;th class="xwiki-livetable-display-header-text" scope="col"&gt;$msg.get("xe.admin.users.lastname")&lt;/th&gt;
               &lt;th class="xwiki-livetable-display-header-text" scope="col"&gt;$msg.get("xe.admin.users.manage")&lt;/th&gt;
             &lt;/tr&gt;
             &lt;tr id="userstable-filters" class="xwiki-livetable-display-filters"&gt;
                &lt;td class="xwiki-livetable-display-header-filter"&gt;&lt;label for="name" class="hidden"&gt;$msg.get("xe.admin.users.filter.username")&lt;/label&gt;&lt;input id="name" name="name" type="text" class="filter"/&gt;&lt;/td&gt;
                &lt;td class="xwiki-livetable-display-header-filter"&gt;&lt;label for="first_name" class="hidden"&gt;$msg.get("xe.admin.users.filter.username")&lt;/label&gt;&lt;input id="first_name" name="first_name" type="text" class="filter"/&gt;&lt;/td&gt;
                &lt;td class="xwiki-livetable-display-header-filter"&gt;&lt;label for="last_name" class="hidden"&gt;$msg.get("xe.admin.users.filter.username")&lt;/label&gt;&lt;input id="last_name" name="last_name" type="text" class="filter"/&gt;&lt;/td&gt;
                &lt;td class="xwiki-livetable-display-header-filter"&gt;
                  #if(!$mainwk)
                    &lt;select name="wiki" class="filter"&gt;
                      &lt;option value="local" selected="selected"&gt;$msg.get("rightsmanager.local")&lt;/option&gt;
                      &lt;option value="global"&gt;$msg.get("rightsmanager.global")&lt;/option&gt;
                      &lt;option value="both"&gt;$msg.get("rightsmanager.both")&lt;/option&gt;
                    &lt;/select&gt;
  		  #else 
                    &lt;input name="wiki" type="hidden" value="local" /&gt; 
                  #end
                &lt;/td&gt;
             &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody id="userstable-display" class="xwiki-livetable-display-body"&gt;
            &lt;tr&gt;
              &lt;td colspan="4"&gt;&amp;nbsp;&lt;/td&gt;
            &lt;/tr&gt;
          &lt;/tbody&gt;
        &lt;/table&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;&lt;td colspan="3" id="tdAddNewUserOrGroup"&gt;      
      &lt;span class="buttonwrapper"&gt;&lt;a href="#" id="addNewUser" class="addNewUserOrGroup"&gt;$msg.get("rightsmanager.addnewuser")&lt;/a&gt;&lt;/span&gt;
    &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  {pre}
   &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
       var ta = new XWiki.widgets.LiveTable("$url", "userstable", displayUsers); 
       #if(!$xwiki.hasAccessLevel("view","XWiki.Registration") || $xwiki.getDocument("XWiki.Registration").isNew())
         #set($registerurl = $doc.getURL("view", "xpage=registeruser"))
         #set($saveurl = $doc.getURL("register", "xpage=registeruser"))
         #set($redirectuserurl = $xwiki.getDocument("XWiki.XWikiPreferences").getURL("admin", "editor=${editor}&amp;section=Users")) 
         Event.observe($('addNewUser'), "click", makeAddHandler("$registerurl", "$saveurl", "$redirectuserurl"));
       #else
         ## go to custom registration page
         $('addNewUser').href = "$xwiki.getURL('XWiki.Registration')";
       #end
  //]]&gt;
   &lt;/script&gt;
  {/pre}
&lt;/div&gt; ## end of xwikieditcontent
##############################
## display the old interface
##############################
#else 
 &lt;div id="xwikieditcontent"&gt;
  &lt;p&gt;$xwiki.parseMessage("editusersredirect")&lt;/p&gt;
 &lt;/div&gt;
#end</content>
</xwikidoc>
<commit_msg>XAADMINISTRATION-77: Improve the registration interface - Button on AdminUsersSheet was switched from lightbox button to link if XWiki.Registration exists, caused failed selenium tests which depended on lightbox. Now it's always the lightbox.<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>

<xwikidoc>
<web>XWiki</web>
<name>AdminUsersSheet</name>
<language></language>
<defaultLanguage></defaultLanguage>
<translation>0</translation>
<parent>XWiki.AdminSheet</parent>
<creator>XWiki.Admin</creator>
<author>XWiki.Admin</author>
<customClass></customClass>
<contentAuthor>XWiki.Admin</contentAuthor>
<creationDate>1211801430000</creationDate>
<date>1240954259000</date>
<contentUpdateDate>1240954259000</contentUpdateDate>
<version>1.1</version>
<title>AdminUsersSheet</title>
<template></template>
<defaultTemplate></defaultTemplate>
<validationScript></validationScript>
<comment></comment>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/1.0</syntaxId>
<hidden>false</hidden>
<content>### Globally administrate the users in a wiki.
#set($formname = "update")
#set($saveaction = "save")
##
## set the new interface from xwiki.cfg
##
#set($interface = $xwiki.rightsmanager.defaultUi)
##############################
## display the new interface
##############################
#if($interface == "new")
##
## inject needed JS and CSS files
##
#set($ok = $xwiki.jsfx.use("js/xwiki/lightbox/lightbox.js", true))
#set($ok = $xwiki.jsfx.use("js/xwiki/usersandgroups/usersandgroups.js", true))
#set($ok = $xwiki.ssfx.use("js/xwiki/usersandgroups/usersandgroups.css", true))
#set($ok = $xwiki.jsfx.use("js/xwiki/table/livetable.js", true))
#set($ok = $xwiki.ssfx.use("js/xwiki/table/livetable.css", true))
##
## url to get the users for displaying them in the ajax-based table
##
#set($url = "?xpage=getusers")
#if($context.database != "xwiki") 
  #set($mainwk = false) 
#else 
  #set($mainwk = true) 
#end
&lt;div id="xwikieditcontent"&gt;
  &lt;table id="userstable" class="xwiki-livetable"&gt;
    &lt;tr&gt;
      &lt;td class="xwiki-livetable-pagination" colspan="2"&gt;
        &lt;span id="userstable-limits" class="xwiki-livetable-limits"&gt;&lt;/span&gt;
        &lt;span id="userstable-ajax-loader" class="xwiki-livetable-loader"&gt;&lt;img src="$xwiki.getSkinFile('icons/ajax-loader.gif')" alt="$msg.get('xe.livetable.loading')" title="" /&gt;$msg.get("xe.livetable.loading")&lt;/span&gt;
        &lt;span class="pagination"&gt;
          &lt;span id="userstable-pagination-text" class="xwiki-livetable-pagination-text"&gt;$msg.get("xe.pagination.page")&lt;/span&gt;
          &lt;span id="userstable-pagination" class="xwiki-livetable-pagination-content" &gt;&lt;/span&gt;
        &lt;/span&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class="xwiki-livetable-display-container"&gt;
        &lt;table class="xwiki-livetable-display"&gt;
          &lt;thead class="xwiki-livetable-display-header"&gt;
             &lt;tr&gt;
               &lt;th class="xwiki-livetable-display-header-text" scope="col"&gt;$msg.get("xe.admin.users.username")&lt;/th&gt;
               &lt;th class="xwiki-livetable-display-header-text" scope="col"&gt;$msg.get("xe.admin.users.firstname")&lt;/th&gt;
               &lt;th class="xwiki-livetable-display-header-text" scope="col"&gt;$msg.get("xe.admin.users.lastname")&lt;/th&gt;
               &lt;th class="xwiki-livetable-display-header-text" scope="col"&gt;$msg.get("xe.admin.users.manage")&lt;/th&gt;
             &lt;/tr&gt;
             &lt;tr id="userstable-filters" class="xwiki-livetable-display-filters"&gt;
                &lt;td class="xwiki-livetable-display-header-filter"&gt;&lt;label for="name" class="hidden"&gt;$msg.get("xe.admin.users.filter.username")&lt;/label&gt;&lt;input id="name" name="name" type="text" class="filter"/&gt;&lt;/td&gt;
                &lt;td class="xwiki-livetable-display-header-filter"&gt;&lt;label for="first_name" class="hidden"&gt;$msg.get("xe.admin.users.filter.username")&lt;/label&gt;&lt;input id="first_name" name="first_name" type="text" class="filter"/&gt;&lt;/td&gt;
                &lt;td class="xwiki-livetable-display-header-filter"&gt;&lt;label for="last_name" class="hidden"&gt;$msg.get("xe.admin.users.filter.username")&lt;/label&gt;&lt;input id="last_name" name="last_name" type="text" class="filter"/&gt;&lt;/td&gt;
                &lt;td class="xwiki-livetable-display-header-filter"&gt;
                  #if(!$mainwk)
                    &lt;select name="wiki" class="filter"&gt;
                      &lt;option value="local" selected="selected"&gt;$msg.get("rightsmanager.local")&lt;/option&gt;
                      &lt;option value="global"&gt;$msg.get("rightsmanager.global")&lt;/option&gt;
                      &lt;option value="both"&gt;$msg.get("rightsmanager.both")&lt;/option&gt;
                    &lt;/select&gt;
  		  #else 
                    &lt;input name="wiki" type="hidden" value="local" /&gt; 
                  #end
                &lt;/td&gt;
             &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody id="userstable-display" class="xwiki-livetable-display-body"&gt;
            &lt;tr&gt;
              &lt;td colspan="4"&gt;&amp;nbsp;&lt;/td&gt;
            &lt;/tr&gt;
          &lt;/tbody&gt;
        &lt;/table&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;&lt;td colspan="3" id="tdAddNewUserOrGroup"&gt;      
      &lt;span class="buttonwrapper"&gt;&lt;a href="#" id="addNewUser" class="addNewUserOrGroup"&gt;$msg.get("rightsmanager.addnewuser")&lt;/a&gt;&lt;/span&gt;
    &lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  {pre}
   &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
       var ta = new XWiki.widgets.LiveTable("$url", "userstable", displayUsers); 
       #set($registerurl = $doc.getURL("view", "xpage=registeruser"))
       #set($saveurl = $doc.getURL("register", "xpage=registeruser"))
       #set($redirectuserurl = $xwiki.getDocument("XWiki.XWikiPreferences").getURL("admin", "editor=${editor}&amp;section=Users")) 
       Event.observe($('addNewUser'), "click", makeAddHandler("$registerurl", "$saveurl", "$redirectuserurl"));
  //]]&gt;
   &lt;/script&gt;
  {/pre}
&lt;/div&gt; ## end of xwikieditcontent
##############################
## display the old interface
##############################
#else 
 &lt;div id="xwikieditcontent"&gt;
  &lt;p&gt;$xwiki.parseMessage("editusersredirect")&lt;/p&gt;
 &lt;/div&gt;
#end</content>
</xwikidoc>

{'fraction_non_alphanumeric': 0.21616803596341652, 'fraction_numerical': 0.008525809951945434, 'mean_word_length': 4.232360097323601, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 2, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2499489', 'n_tokens_mistral': 4761, 'n_tokens_neox': 4549, 'n_words': 563}