HEX
Server: nginx/1.22.1
System: Linux VM-16-9-centos 3.10.0-1160.99.1.el7.x86_64 #1 SMP Wed Sep 13 14:19:20 UTC 2023 x86_64
User: www (1001)
PHP: 7.3.31
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/oa.sanjiangapp.com/app/sys/group/view/privbygroup.html.php
<?php
/**
 * The manage privilege by group view of group module of ZDOO.
 *
 * @copyright   Copyright 2009-2018 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      Xiying Guan <guanxiying@xirangit.com>
 * @package     group
 * @version     $Id: managepriv.html.php 1517 2011-03-07 10:02:57Z wwccss $
 * @link        http://www.zdoo.com
 */
?>
<div class='panel'>
<div class='panel-body list'>
<form class='form' id='ajaxForm' method='post'>
  <?php foreach($lang->appModule as $app => $modules):?>
  <?php if($currentApp && $app != $currentApp) continue;?>
  <?php if($app != 'sys' and !isset($groupPrivs['apppriv'][$app])) continue;?>
  <div class='item'>
    <div class='item-content'>
      <table class='table table-hover table-bordered table-priv'>
        <?php $i = 1;?>
        <?php foreach($lang->resource as $moduleName => $moduleActions):?>
        <?php if(!in_array($moduleName, $modules)) continue;?>
        <?php if(!$this->group->checkMenuModule($currentMenu, $moduleName)) continue;?>
        <?php
        $this->app->loadLang($moduleName, $app);
        /* Check method in select version. */
        if($version)
        {
            $hasMethod = false;
            foreach($moduleActions as $action => $actionLabel)
            {
                if(strpos($changelogs, ",$moduleName-$actionLabel,") !== false)
                {
                    $hasMethod = true;
                    break;
                }
            }
            if(!$hasMethod) continue;
        }
        ?>
        <tr>
          <?php if($i == 1):?>
          <?php $rowspan = $app == 'crm' ? count($lang->appModule->$app) + 1 : count($lang->appModule->$app);?>
          <th rowspan="<?php echo $rowspan;?>" class='w-100px text-right'>
            <label class="checkbox-inline">
              <?php echo zget($apps, $app);?>
              <input type="checkbox" class='checkApp' />
            </label>
          </th>
          <?php endif;?>
          <th class='text-right w-120px'>
            <label class="checkbox-inline">
              <?php
              if($app == 'superadmin' && $moduleName == 'adminUser')
              {
                  echo $this->lang->user->adminUser;
              }
              elseif($moduleName == 'user')
              {
                  echo $this->lang->user->colleagueMenuName;
              }
              else
              {
                  echo isset($this->lang->$moduleName->common) ? $this->lang->$moduleName->common : $moduleName;
              }
              ?>
              <input type="checkbox" class='checkModule' />
            </label>
          </th>
          <td id='<?php echo $moduleName;?>'>
            <?php
            if($app == 'superadmin' && $moduleName == 'adminUser') $moduleName = 'user';
            $options = array();
            foreach($moduleActions as $action => $actionLabel)
            {
                if(!empty($version) and strpos($changelogs, ",$moduleName-$actionLabel,") === false) continue;
                $options[$action] = is_object($lang->$moduleName->$actionLabel) ? $lang->$moduleName->$actionLabel->common : $lang->$moduleName->$actionLabel;
            }
            echo html::checkbox("actions[$moduleName]", $options, isset($groupPrivs[$moduleName]) ? $groupPrivs[$moduleName] : '');
            ?>
          </td>
        </tr>
        <?php $i++;?>
        <?php endforeach;?>
        <?php if($app == 'crm'):?>
        <tr>
          <th class='text-right'><?php echo $lang->group->extent;?></th>
          <td colspan='2'>
            <label class='checkbox-inline'>
              <?php $checked = isset($groupPrivs['crm']['manageAll']) ? 'checked' : '';?>
              <input type='checkbox' name='actions[crm][]' value='manageAll' class='manageAll' <?php echo $checked?> />
              <?php echo $lang->group->manageAll;?>
            </label>
          </td>
        </tr>
        <?php endif;?>
      </table>
    </div>
  </div>
  <?php endforeach;?>

  <div class='form-actions text-center'>
    <?php
    echo html::submitButton($lang->save);
    echo html::linkButton($lang->goback, $this->createLink('group', 'browse'));
    echo html::hidden('foo'); // Just a hidden var, to make sure $_POST is not empty.
    echo html::hidden('noChecked'); // Save the value of no checked.
    ?>
  </div>
</form>
</div>
</div>
<script type='text/javascript'>
var groupID = <?php echo $group->id;?>;
var menu    = "<?php echo $currentMenu;?>";
</script>