user_management.php File Reference


Variables

 $strPathInDcmms = '../'
 $dcmPage = new DcmPage(basename(__FILE__))
$dcmPage strPathInDcmms = '../'
 $arrQuery = array()
 $query
 $result = pg_exec($query)
 $arrResult = array()
alter group dcmmsuser add user $_POST ["UserName"]
 $strInsertToTable
 $objResult = pg_query($strCreate)
 $strMessage
case edit_user
case update_user
case toggle_administrator
case remove_user
case __pad1__
 $strToggleLandmarkEditor
 $objResult = pg_query($strToggleLandmarkEditor)
 $strMessage
 $arrAdminIDs
 $params ['totalItems'] = count($arrUserIDs)
 $params ['perPage'] = 10
 $params ['nextImg'] = _('Next >>')
 $params ['prevImg'] = _('<< Back')
 $pager = & Pager::factory($params)
 $data = $pager->getPageData()
 $links = $pager->getLinks()
 $strQuery
 $arrActions
 $arrHelp
 $result = pg_exec($strQuery)
 $numFields = pg_numfields($result)
 $numActions = count($arrActions)
 $arrActions

Variable Documentation

alter group dcmmsuser add user $_POST["UserName"]
 

Initial value:

 _("Create user") ?>"
            title="<?= _('Click this button to create the new user.') ?>" /></td></tr>
          </table>
          </form><?php
        $dcmPage->footer("$Date: 2006-06-17 14:56:24 +0200 (Sat, 17 Jun 2006) $Empty");
        exit();
      break;
      case "create_user" :
        if((array_key_exists("UserName", $_POST))&&
        (array_key_exists("Password", $_POST))&&
        (array_key_exists("AdministrativeArea", $_POST) &&
        ($_POST["Password"] != "")&&($_POST["UserName"] != "")&&
        (is_numeric($_POST["AdministrativeArea"])))) {
          $strCreate = "create user ".$_POST["UserName"]." password '".
            $_POST["Password"]."'

$arrActions
 

Initial value:

 _("Administrator") ?></th> <?php
    if($numActions > 0) { 
      echo("<th>"._("Action")."</th>");
    }?>
    </tr><?php
    $arrActionKeys = array_keys($arrActions) array_values($arrActions)

$arrActions
 

Initial value:

 array(
    _("Edit") => "user_management.php?action=edit_user&user_name=",
    _("Toggle Administrator") => 
    "user_management.php?action=toggle_administrator&user_name=",
    _("Remove") => "user_management.php?action=remove_user&user_name=",
    _('Toggle Landmark Editor') => 
    'user_management.php?action=toggle_landmarkeditor&user_name=')

$arrAdminIDs
 

Initial value:

 $strMessage ?></p> <?php
  } ?>
  <p><a href="user_management.php?PHPSESSID=<?= session_id() 
  ?>&action=add_user&pageID=<?= isset($_REQUEST['pageID']) ? 
  $_REQUEST['pageID'] : '1' ?>" title="<?= _("Create a new DCMMS user.")?>"><?= 
  _("Add User") ?></a></p><?php
  
  
  $arrUserIDs = pg_get_group_array("dcmmsuser") pg_get_group_array("dcmmsadministrator")

$arrHelp
 

Initial value:

 array(
    _("Edit") => _("Edit DCMMS user attributes."),
    _("Toggle Administrator") => 
    _("Make the user a DCMMS administrator and vice versa."),
    _("Remove") => _("Delete a DCMMS user."),
    _('Toggle Landmark Editor') => 
    _('Make the user a landmark editor and vice versa.'))

$arrQuery = array()
 

$arrResult = array()
 

$data = $pager->getPageData()
 

$dcmPage = new DcmPage(basename(__FILE__))
 

$links = $pager->getLinks()
 

$numActions = count($arrActions)
 

$numFields = pg_numfields($result)
 

$objResult = pg_query($strToggleLandmarkEditor)
 

$objResult = pg_query($strCreate)
 

$pager = & Pager::factory($params)
 

$params['prevImg'] = _('&lt;&lt; Back')
 

$params['nextImg'] = _('Next &gt;&gt;')
 

$params['perPage'] = 10
 

$params['totalItems'] = count($arrUserIDs)
 

$query
 

Initial value:

 'select codedvalue, '.pg_localize('name', 
              'administrativearea').' from administrativearea'

$result = pg_exec($strQuery)
 

$result = pg_exec($query)
 

$strInsertToTable
 

Initial value:

 "insert into dcmmsuser values ('".$_POST["UserName"].
          "',".$_POST["AdministrativeArea"].',false)'

$strMessage
 

Initial value:

 sprintf(
              _('Successfully changed the landmark editor role of user &quot;%s&quot;.'), 
            $_REQUEST['user_name'])

$strMessage
 

Initial value:

 sprintf(
              _("Successfully created user '%s'."), 
              $_POST["UserName"])

$strPathInDcmms = '../'
 

Todo:
Allow to set AdministrativeArea to NULL.

$strQuery
 

Initial value:

 "select usename as username, usename as username,usename,usename as username,usename as".
    " username, coalesce(".pg_localize('name', 'AdministrativeArea').
    ", '')as AdministrativeArea, IsLandmarkEditor as LandmarkEditor from ".
    "pg_user,DcmmsUser left outer join AdministrativeArea on 
    AdministrativeArea.CodedValue = DcmmsUser.AdministrativeArea where ".
    "usename=DcmmsUser.Name and ".
    " ("

$strToggleLandmarkEditor
 

Initial value:

 'update DcmmsUser set IsLandmarkEditor = not 
          IsLandmarkEditor where Name = \''.
          $_REQUEST['user_name'].'\''

case __pad1__
 

case edit_user
 

case remove_user
 

$dcmPage strPathInDcmms = '../'
 

case toggle_administrator
 

case update_user
 


Generated on Sat Jul 1 21:19:27 2006 for DCMMS by  doxygen 1.4.6-NO