Esempio n. 1
0
    ?>
    <td></td>
    <?php 
}
?>
  </tr>
</tfoot>

<tbody>
  <?php 
foreach (GetArrayValue("ItemList") as $item) {
    ?>
  <tr>
    <td>
      <?php 
    if (IsProviderActive(PROVIDER_ACCESSPATH_EDIT) && HasAccess(ACL_MOD_ACCESSPATH, ACL_ACTION_ADD)) {
        ?>
	    <a href="accesspathcreate.php?pi=<?php 
        print GetValue("Repository")->getEncodedParentIdentifier();
        ?>
&amp;r=<?php 
        print GetValue("Repository")->getEncodedName();
        ?>
&amp;p=<?php 
        print $item->getEncodedRelativePath();
        ?>
"><img src="templates/icons/addpath.png" alt="-" title="<?php 
        Translate("Add access path");
        ?>
"></a>
      <?php 
Esempio n. 2
0
	        </td>
	      </tr>
	    </table>
	
	  </td>
	</tr>
	</tfoot>
	
	<tbody>
		<?php 
foreach (GetArrayValue("UserList") as $u) {
    ?>
		<tr>
		  <td>
        <?php 
    if (HasAccess(ACL_MOD_USER, ACL_ACTION_DELETE) || HasAccess(ACL_MOD_ROLE, ACL_ACTION_ASSIGN)) {
        ?>
        <input type="checkbox" name="selected_users[]" value="<?php 
        print $u->name;
        ?>
">
        <?php 
    }
    ?>
      </td>
		  <td><a href="userview.php?username=<?php 
    print $u->getEncodedName();
    ?>
"><?php 
    print $u->name;
    ?>
PrintStringValue("DefaultAccessPath");
?>
">
			<p>
				<b><?php 
Translate("Syntax");
?>
:</b> <i>&lt;RepoName&gt;:/&lt;path&gt;</i>
				<br><?php 
Translate("An \"/\" as access path holds permissions over all repositories.");
?>
			</p>
		</div>

		<?php 
if (IsProviderActive(PROVIDER_REPOSITORY_VIEW) && HasAccess(ACL_MOD_REPO, ACL_ACTION_VIEW)) {
    ?>
		<p style="margin-top:0; margin-bottom:20px;">
			<img src="templates/icons/addpath.png" border="0" alt="<?php 
    Translate("Browse...");
    ?>
">
			<a href="repositorylist.php"><?php 
    Translate("Browse...");
    ?>
</a>
		</p>
		<?php 
}
?>
Esempio n. 4
0
    ?>
            </td>
            <td align="right">
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </tfoot>
  <tbody>
    <?php 
    foreach (GetArrayValue("RestrictedPathList") as $rp) {
        ?>
    <tr>
      <td><?php 
        if (HasAccess(ACL_MOD_PROJECTMANAGER, ACL_ACTION_UNASSIGN)) {
            ?>
<input type="checkbox" name="selected_accesspaths[]" value="<?php 
            print $rp->path;
            ?>
"><?php 
        }
        ?>
</td>
      <td><a href="accesspathview.php?accesspath=<?php 
        print $rp->getEncodedPath();
        ?>
"><?php 
        print $rp->path;
        ?>
</a> <small>(<?php 
Esempio n. 5
0
">
							<img src="templates/icons/addpath.png" alt="<?php 
            Translate("Add access path");
            ?>
" title="<?php 
            Translate("Add access path");
            ?>
">
						</a>
					<?php 
        }
        ?>
				</td>
				<td>
					<?php 
        if (GetBoolValue('ShowDeleteButton') && IsProviderActive(PROVIDER_REPOSITORY_EDIT) && HasAccess(ACL_MOD_REPO, ACL_ACTION_DELETE)) {
            ?>
						<input type="checkbox" name="selected_repos[]" value="<?php 
            print $r->name;
            ?>
">
					<?php 
        }
        ?>
				</td>
				<td>
					<a href="repositoryview.php?pi=<?php 
        print $r->getEncodedParentIdentifier();
        ?>
&amp;r=<?php 
        print $r->getEncodedName();
Esempio n. 6
0
        </td>
        <td align="right">
        </td>
      </tr>
    </table>
  </td>
</tr>
</tfoot>

<tbody>
<?php 
foreach (GetArrayValue("GroupList") as $g) {
    ?>
<tr>
  <td><?php 
    if (IsProviderActive(PROVIDER_GROUP_EDIT) && HasAccess(ACL_MOD_GROUP, ACL_ACTION_DELETE)) {
        ?>
<input type="checkbox" name="selected_groups[]" value="<?php 
        print $g->name;
        ?>
"><?php 
    }
    ?>
</td>
  <td><a href="groupview.php?groupname=<?php 
    print $g->getEncodedName();
    ?>
"><?php 
    print $g->name;
    ?>
</a></td>
Esempio n. 7
0
      </ul>
    </li>
    <?php 
}
?>

    <?php 
if (IsUserLoggedIn()) {
    ?>
    <li><a href="#"><?php 
    Translate("Session");
    ?>
</a>
      <ul class="ddm-sub">
        <?php 
    if (IsProviderActive(PROVIDER_USER_EDIT) && HasAccess(ACL_MOD_USER, ACL_ACTION_CHANGEPASS)) {
        ?>
<li><a href="userchangepass.php?username=<?php 
        SessionUsername();
        ?>
"><?php 
        Translate("Change password");
        ?>
</a></li><?php 
    }
    ?>
        <li><a href="logout.php"><?php 
    Translate("Logout");
    ?>
</a></li>
      </ul>
Esempio n. 8
0
<?php

if (HasAccess(ACL_MOD_ROLE, ACL_ACTION_VIEW)) {
    ?>
<div id="rolelist">
  <h2><?php 
    Translate('Available roles');
    ?>
</h2>
  <table class="datatable">
  <thead>
    <tr>
      <th><?php 
    Translate('Role');
    ?>
</th>
      <th><?php 
    Translate('Description');
    ?>
</th>
    </tr>
  </thead>
  <tbody>
  <?php 
    foreach (GetArrayValue('RoleList') as $r) {
        ?>
  <tr>
    <td><?php 
        print $r->getTranslatedName();
        ?>
</td>