• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP updatenotify_get_mode函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中updatenotify_get_mode函数的典型用法代码示例。如果您正苦于以下问题:PHP updatenotify_get_mode函数的具体用法?PHP updatenotify_get_mode怎么用?PHP updatenotify_get_mode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了updatenotify_get_mode函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: gettext

</td>
						<td width="10%" class="listhdrr"><?php 
echo gettext("Used");
?>
</td>
						<td width="20%" class="listhdrr"><?php 
echo gettext("Creation");
?>
</td>
						<td width="10%" class="list"></td>
					</tr>
					<?php 
foreach ($a_snapshot as $snapshotv) {
    ?>
					<?php 
    $notificationmode = updatenotify_get_mode("zfssnapshot", serialize(array('snapshot' => $snapshotv['snapshot'], 'recursive' => false)));
    ?>
					<tr>
						<td class="listlr"><?php 
    echo htmlspecialchars($snapshotv['path']);
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo htmlspecialchars($snapshotv['name']);
    ?>
&nbsp;</td>
						<?php 
    if (UPDATENOTIFY_MODE_MODIFIED == $notificationmode) {
        ?>
						<td class="listr"><?php 
        echo htmlspecialchars($snapshotv['used']);
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_snapshot.php


示例2: gettext

									<td width="30%" class="listhdrr"><?php 
echo gettext("Frequency");
?>
</td>
									<td width="30%" class="listhdrr"><?php 
echo gettext("Expire");
?>
</td>
									<td width="10%" class="list"></td>
								</tr>
								<?php 
$i = 0;
foreach ($a_rule as $rule) {
    ?>
								<?php 
    $notificationmode = updatenotify_get_mode("ftpd_mod_ban", $rule['uuid']);
    ?>
								<tr>
									<td class="listlr"><?php 
    echo htmlspecialchars($rule['event']);
    ?>
&nbsp;</td>
									<td class="listr"><?php 
    echo htmlspecialchars($rule['occurrence']);
    ?>
/<?php 
    echo htmlspecialchars($rule['timeinterval']);
    ?>
</td>
									<td class="listr"><?php 
    echo htmlspecialchars($rule['expire']);
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_ftp_mod.php


示例3: get_gvinum_disks_list

					</tr>
					<?php 
$raidstatus = get_gvinum_disks_list();
?>
					<?php 
$i = 0;
foreach ($a_raid as $raid) {
    ?>
					<?php 
    $size = gettext("Unknown");
    $status = gettext("Stopped");
    if (is_array($raidstatus) && array_key_exists($raid['name'], $raidstatus)) {
        $size = $raidstatus[$raid['name']]['size'];
        $status = $raidstatus[$raid['name']]['state'];
    }
    $notificationmode = updatenotify_get_mode("raid_gvinum", $raid['uuid']);
    switch ($notificationmode) {
        case UPDATENOTIFY_MODE_NEW:
            $size = gettext("Initializing");
            $status = gettext("Initializing");
            break;
        case UPDATENOTIFY_MODE_MODIFIED:
            $size = gettext("Modifying");
            $status = gettext("Modifying");
            break;
        case UPDATENOTIFY_MODE_DIRTY:
            $status = gettext("Deleting");
            break;
    }
    ?>
					<tr>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_raid_gvinum.php


示例4: gettext

</td>
            <td width="10%" class="listhdrr"><?php 
echo gettext("List");
?>
</td>
            <td width="10%" class="listhdrr"><?php 
echo gettext("Access mode");
?>
</td>
            <td width="10%" class="list"></td>
          </tr>
  			  <?php 
foreach ($a_module as $modulev) {
    ?>
  			  <?php 
    $notificationmode = updatenotify_get_mode("rsyncd", $modulev['uuid']);
    ?>
          <tr>
            <td class="listlr"><?php 
    echo htmlspecialchars($modulev['name']);
    ?>
&nbsp;</td>
            <td class="listr"><?php 
    echo htmlspecialchars($modulev['path']);
    ?>
&nbsp;</td>
            <td class="listr"><?php 
    echo htmlspecialchars($modulev['comment']);
    ?>
&nbsp;</td>
            <td class="listbg"><?php 
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_rsyncd_module.php


示例5: get_gmirror_disks_list

					</tr>
					<?php 
$raidstatus = get_gmirror_disks_list();
?>
					<?php 
$i = 0;
foreach ($a_raid as $raid) {
    ?>
					<?php 
    $size = gettext("Unknown");
    $status = gettext("Stopped");
    if (is_array($raidstatus) && array_key_exists($raid['name'], $raidstatus)) {
        $size = $raidstatus[$raid['name']]['size'];
        $status = $raidstatus[$raid['name']]['state'];
    }
    $notificationmode = updatenotify_get_mode("raid_gmirror", $raid['uuid']);
    switch ($notificationmode) {
        case UPDATENOTIFY_MODE_NEW:
            $size = gettext("Initializing");
            $status = gettext("Initializing");
            break;
        case UPDATENOTIFY_MODE_MODIFIED:
            $size = gettext("Modifying");
            $status = gettext("Modifying");
            break;
        case UPDATENOTIFY_MODE_DIRTY:
            $status = gettext("Deleting");
            break;
    }
    ?>
          <tr>
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_raid_gmirror.php


示例6: gettext

</td>
						<td width="20%" class="listhdrr"><?php 
echo gettext("Gateway");
?>
</td>
						<td width="30%" class="listhdrr"><?php 
echo gettext("Description");
?>
</td>
						<td width="10%" class="list"></td>
					</tr>
					<?php 
foreach ($a_routes as $route) {
    ?>
					<?php 
    $notificationmode = updatenotify_get_mode("routes", $route['uuid']);
    ?>
					<tr>
						<td class="listlr">
							<?php 
    $iflabels = array('lan' => 'LAN', 'wan' => 'WAN', 'pptp' => 'PPTP');
    for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
        $iflabels['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
    }
    echo htmlspecialchars($iflabels[$route['interface']]);
    ?>
						</td>
	          <td class="listr"><?php 
    echo strtolower($route['network']);
    ?>
&nbsp;</td>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:system_routes.php


示例7: gettext

</td>
						<td width="10%" class="listhdrr"><?php 
echo gettext("File system");
?>
</td>
						<td width="10%" class="listhdrr"><?php 
echo gettext("Status");
?>
</td>
						<td width="10%" class="list"></td>
					</tr>
					<?php 
foreach ($a_disk_conf as $disk) {
    ?>
					<?php 
    $notificationmode = updatenotify_get_mode("device", $disk['uuid']);
    switch ($notificationmode) {
        case UPDATENOTIFY_MODE_NEW:
            $status = gettext("Initializing");
            break;
        case UPDATENOTIFY_MODE_MODIFIED:
            $status = gettext("Modifying");
            break;
        case UPDATENOTIFY_MODE_DIRTY:
            $status = gettext("Deleting");
            break;
        default:
            $status = 0 == disks_exists($disk['devicespecialfile']) ? gettext("ONLINE") : gettext("MISSING");
            break;
    }
    ?>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_manage.php


示例8: gettext

</td>
									<td width="30%" class="listhdrr"><?php 
echo gettext("Type");
?>
</td>
									<td width="40%" class="listhdrr"><?php 
echo gettext("Description");
?>
</td>
									<td width="10%" class="list"></td>
				        </tr>
							  <?php 
foreach ($a_selftest as $selftest) {
    ?>
							  <?php 
    $notificationmode = updatenotify_get_mode("smartssd", $selftest['uuid']);
    ?>
				        <tr>
				          <td class="listlr"><?php 
    echo htmlspecialchars($selftest['devicespecialfile']);
    ?>
&nbsp;</td>
									<td class="listr"><?php 
    echo htmlspecialchars(gettext($a_type[$selftest['type']]));
    ?>
&nbsp;</td>
									<td class="listr"><?php 
    echo htmlspecialchars($selftest['desc']);
    ?>
&nbsp;</td>
									<?php 
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:disks_manage_smart.php


示例9: gettext

</td>
	          <td width="20%" class="listhdrr"><?php 
echo gettext("Value");
?>
</td>
	          <td width="30%" class="listhdrr"><?php 
echo gettext("Comment");
?>
</td>
	          <td width="10%" class="list"></td>
	        </tr>
				  <?php 
foreach ($loader_param_list as $param) {
    ?>
				  <?php 
    $notificationmode = updatenotify_get_mode("loaderconf", $param['uuid']);
    ?>
	        <tr>
	        	<?php 
    $enable = isset($param['enable']);
    ?>
	          <td class="<?php 
    echo $enable ? "listlr" : "listlrd";
    ?>
"><?php 
    echo htmlspecialchars($param['name']);
    ?>
&nbsp;</td>
	          <td class="<?php 
    echo $enable ? "listr" : "listrd";
    ?>
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:system_loaderconf.php


示例10: gettext

</td>
						<td width="5%" class="listhdrr"><?php 
echo gettext("UID");
?>
</td>
						<td width="30%" class="listhdrr"><?php 
echo gettext("Group");
?>
</td>
						<td width="10%" class="list"></td>
					</tr>
					<?php 
foreach ($a_user as $userv) {
    ?>
					<?php 
    $notificationmode = updatenotify_get_mode("userdb_user", $userv['uuid']);
    ?>
					<tr>
						<td class="listlr"><?php 
    echo htmlspecialchars($userv['login']);
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo htmlspecialchars($userv['fullname']);
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo htmlspecialchars($userv['id']);
    ?>
&nbsp;</td>
						<td class="listr"><?php 
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:access_users.php


示例11: gettext

</td>
						<td width="10%" class="listhdrr"><?php 
echo gettext("Schedule time");
?>
</td>
						<td width="10%" class="listhdrr"><?php 
echo gettext("Life time");
?>
</td>
						<td width="10%" class="list"></td>
					</tr>
					<?php 
foreach ($a_autosnapshot as $autosnapshotv) {
    ?>
					<?php 
    $notificationmode = updatenotify_get_mode("zfsautosnapshot", serialize(array('uuid' => $autosnapshotv['uuid'])));
    ?>
					<tr>
						<td class="listlr"><?php 
    echo htmlspecialchars($autosnapshotv['path']);
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo htmlspecialchars($autosnapshotv['name']);
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo htmlspecialchars(isset($autosnapshotv['recursive']) ? "yes" : "no");
    ?>
&nbsp;</td>
						<td class="listr"><?php 
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_snapshot_auto.php


示例12: get_gconcat_disks_list

					</tr>
					<?php 
$raidstatus = get_gconcat_disks_list();
?>
					<?php 
$i = 0;
foreach ($a_raid as $raid) {
    ?>
					<?php 
    $size = gettext("Unknown");
    $status = gettext("Stopped");
    if (is_array($raidstatus) && array_key_exists($raid['name'], $raidstatus)) {
        $size = $raidstatus[$raid['name']]['size'];
        $status = $raidstatus[$raid['name']]['state'];
    }
    $notificationmode = updatenotify_get_mode("raid_gconcat", $raid['uuid']);
    switch ($notificationmode) {
        case UPDATENOTIFY_MODE_NEW:
            $size = gettext("Initializing");
            $status = gettext("Initializing");
            break;
        case UPDATENOTIFY_MODE_MODIFIED:
            $size = gettext("Modifying");
            $status = gettext("Modifying");
            break;
        case UPDATENOTIFY_MODE_DIRTY:
            $status = gettext("Deleting");
            break;
    }
    ?>
          <tr>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_raid_gconcat.php


示例13: gettext

</td>
						<td width="10%" class="listhdrr"><?php 
echo gettext("Health");
?>
</td>
						<td width="15%" class="listhdrr"><?php 
echo gettext("AltRoot");
?>
</td>
						<td width="10%" class="list"></td>
					</tr>
					<?php 
foreach ($a_pool as $poolk => $poolv) {
    ?>
					<?php 
    $notificationmode = isset($poolv['uuid']) ? updatenotify_get_mode("zfszpool", $poolv['uuid']) : UPDATENOTIFY_MODE_UNKNOWN;
    if (UPDATENOTIFY_MODE_NEW == $notificationmode) {
        $altroot = $cap = $avail = $used = $size = $dedup = $health = gettext("Initializing");
    } else {
        if (UPDATENOTIFY_MODE_MODIFIED == $notificationmode) {
            $altroot = $cap = $avail = $used = $size = $dedup = $health = gettext("Modifying");
        } else {
            $altroot = $cap = $avail = $used = $size = $dedup = $health = gettext("Unknown");
        }
    }
    if (is_array($a_poolstatus) && array_key_exists($poolv['name'], $a_poolstatus)) {
        $size = $a_poolstatus[$poolv['name']]['size'];
        $used = $a_poolstatus[$poolv['name']]['used'];
        $avail = $a_poolstatus[$poolv['name']]['avail'];
        $cap = $a_poolstatus[$poolv['name']]['cap'];
        $dedup = $a_poolstatus[$poolv['name']]['dedup'];
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:disks_zfs_zpool.php


示例14: gettext

</td>
						<td width="10%" class="listhdrr"><?php 
echo gettext("Sparse");
?>
</td>
						<td width="30%" class="listhdrr"><?php 
echo gettext("Description");
?>
</td>
						<td width="10%" class="list"></td>
					</tr>
					<?php 
foreach ($a_volume as $volumev) {
    ?>
					<?php 
    $notificationmode = updatenotify_get_mode("zfsvolume", $volumev['uuid']);
    ?>
					<tr>
						<td class="listlr"><?php 
    echo htmlspecialchars($volumev['pool'][0]);
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo htmlspecialchars($volumev['name']);
    ?>
&nbsp;</td>
						<?php 
    if (UPDATENOTIFY_MODE_MODIFIED == $notificationmode || UPDATENOTIFY_MODE_NEW == $notificationmode) {
        ?>
						<td class="listr"><?php 
        echo htmlspecialchars($volumev['volsize']);
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_volume.php


示例15: gettext

</td>
	          <td width="20%" class="listhdrr"><?php 
echo gettext("Value");
?>
</td>
	          <td width="30%" class="listhdrr"><?php 
echo gettext("Comment");
?>
</td>
	          <td width="10%" class="list"></td>
	        </tr>
				  <?php 
foreach ($a_rcvar as $rcvarv) {
    ?>
				  <?php 
    $notificationmode = updatenotify_get_mode("rcconf", $rcvarv['uuid']);
    ?>
	        <tr>
	        	<?php 
    $enable = isset($rcvarv['enable']);
    ?>
	          <td class="<?php 
    echo $enable ? "listlr" : "listlrd";
    ?>
"><?php 
    echo htmlspecialchars($rcvarv['name']);
    ?>
&nbsp;</td>
	          <td class="<?php 
    echo $enable ? "listr" : "listrd";
    ?>
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:system_rcconf.php


示例16: gettext

</td>
						<td width="10%" class="listhdrr"><?php 
echo gettext("Who");
?>
</td>
						<td width="30%" class="listhdrr"><?php 
echo gettext("Description");
?>
</td>
            <td width="10%" class="list"></td>
          </tr>
  			  <?php 
foreach ($a_rsyncclient as $rsyncclient) {
    ?>
  			  <?php 
    $notificationmode = updatenotify_get_mode("rsyncclient", $rsyncclient['uuid']);
    ?>
          <tr>
          	<?php 
    $enable = isset($rsyncclient['enable']);
    ?>
						<td class="<?php 
    echo $enable ? "listlr" : "listlrd";
    ?>
"><?php 
    echo htmlspecialchars($rsyncclient['remoteshare']);
    ?>
&nbsp;</td>
						<td class="<?php 
    echo $enable ? "listr" : "listrd";
    ?>
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_rsyncd_client.php


示例17: htmlspecialchars

</td>
									<td width="5%" class="listhdrr"><?php 
echo htmlspecialchars(gettext("<->"));
?>
</td>
									<td width="26%" class="listhdrr"><?php 
echo gettext("Description");
?>
</td>
									<td width="10%" class="list"></td>
								</tr>
								<?php 
foreach ($a_rule as $rule) {
    ?>
								<?php 
    $notificationmode = updatenotify_get_mode("firewall", $rule['uuid']);
    ?>
								<tr>
									<?php 
    $enable = isset($rule['enable']);
    switch ($rule['action']) {
        case "allow":
            $actionimg = "fw_action_allow.gif";
            break;
        case "deny":
            $actionimg = "fw_action_deny.gif";
            break;
        case "unreach host":
            $actionimg = "fw_action_reject.gif";
            break;
    }
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:system_firewall.php


示例18: get_gstripe_disks_list

					</tr>
					<?php 
$raidstatus = get_gstripe_disks_list();
?>
					<?php 
$i = 0;
foreach ($a_raid as $raid) {
    ?>
					<?php 
    $size = gettext("Unknown");
    $status = gettext("Stopped");
    if (is_array($raidstatus) && array_key_exists($raid['name'], $raidstatus)) {
        $size = $raidstatus[$raid['name']]['size'];
        $status = $raidstatus[$raid['name']]['state'];
    }
    $notificationmode = updatenotify_get_mode("raid_gstripe", $raid['uuid']);
    switch ($notificationmode) {
        case UPDATENOTIFY_MODE_NEW:
            $size = gettext("Initializing");
            $status = gettext("Initializing");
            break;
        case UPDATENOTIFY_MODE_MODIFIED:
            $size = gettext("Modifying");
            $status = gettext("Modifying");
            break;
        case UPDATENOTIFY_MODE_DIRTY:
            $status = gettext("Deleting");
            break;
    }
    ?>
          <tr>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_raid_gstripe.php


示例19: gettext

</td>
						<td width="10%" class="listhdrr"><?php 
echo gettext("Who");
?>
</td>
						<td width="30%" class="listhdrr"><?php 
echo gettext("Description");
?>
</td>
            <td width="10%" class="list"></td>
          </tr>
  			  <?php 
foreach ($a_rsynclocal as $rsynclocal) {
    ?>
  			  <?php 
    $notificationmode = updatenotify_get_mode("rsynclocal", $rsynclocal['uuid']);
    ?>
          <tr>
          	<?php 
    $enable = isset($rsynclocal['enable']);
    ?>
            <td class="<?php 
    echo $enable ? "listlr" : "listlrd";
    ?>
"><?php 
    echo htmlspecialchars($rsynclocal['source']);
    ?>
&nbsp;</td>
						<td class="<?php 
    echo $enable ? "listr" : "listrd";
    ?>
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_rsyncd_local.php


示例20: gettext

</td>
						<td width="5%" class="listhdrr"><?php 
echo gettext("GID");
?>
</td>
						<td width="40%" class="listhdrr"><?php 
echo gettext("Description");
?>
</td>
						<td width="10%" class="list"></td>
					</tr>
					<?php 
foreach ($a_group_conf as $groupv) {
    ?>
					<?php 
    $notificationmode = updatenotify_get_mode("userdb_group", $groupv['uuid']);
    ?>
					<tr>
						<td class="listlr"><?php 
    echo htmlspecialchars($groupv['name']);
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo htmlspecialchars($groupv['id']);
    ?>
&nbsp;</td>
						<td class="listr"><?php 
    echo htmlspecialchars($groupv['desc']);
    ?>
&nbsp;</td>
						<?php 
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:access_users_groups.php



注:本文中的updatenotify_get_mode函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP updatenotify_process函数代码示例发布时间:2022-05-23
下一篇:
PHP updatenotify_exists函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap