当前位置: 首页>>代码示例>>PHP>>正文


PHP updatenotify_delete函数代码示例

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


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

示例1: updatenotify_process

        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            $retval |= updatenotify_process("userdb_user", "userdbuser_process_updatenotification");
            config_lock();
            $retval |= rc_exec_service("userdb");
            $retval |= rc_exec_service("websrv_htpasswd");
            $retval |= rc_exec_service("fmperm");
            if (isset($config['samba']['enable'])) {
                $retval |= rc_exec_service("passdb");
                $retval |= rc_update_service("samba");
            }
            config_unlock();
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("userdb_user");
        }
    }
}
if (!isset($config['access']['user']) || !is_array($config['access']['user'])) {
    $config['access']['user'] = array();
}
array_sort_key($config['access']['user'], "login");
$a_user =& $config['access']['user'];
$a_group = system_get_group_list();
if (isset($_GET['act']) && $_GET['act'] === "del") {
    updatenotify_set("userdb_user", UPDATENOTIFY_MODE_DIRTY, $_GET['uuid']);
    header("Location: access_users.php");
    exit;
}
function userdbuser_process_updatenotification($mode, $data)
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:access_users.php

示例2: array

$pgtitle = array(gettext("Services"), gettext("FTP"), gettext("Modules"));
$pconfig['mod_ban_enable'] = isset($config['ftpd']['mod_ban']['enable']);
if ($_POST) {
    $pconfig = $_POST;
    $config['ftpd']['mod_ban']['enable'] = isset($_POST['mod_ban_enable']) ? true : false;
    write_config();
    $retval = 0;
    if (!file_exists($d_sysrebootreqd_path)) {
        $retval |= updatenotify_process("ftpd_mod_ban", "ftpd_mod_ban_process_updatenotification");
        config_lock();
        $retval |= rc_update_service("proftpd");
        config_unlock();
    }
    $savemsg = get_std_save_message($retval);
    if ($retval == 0) {
        updatenotify_delete("ftpd_mod_ban");
    }
}
if (!isset($config['ftpd']['mod_ban']['rule']) || !is_array($config['ftpd']['mod_ban']['rule'])) {
    $config['ftpd']['mod_ban']['rule'] = array();
}
$a_rule =& $config['ftpd']['mod_ban']['rule'];
if (isset($_GET['act']) && $_GET['act'] === "del") {
    if ($_GET['uuid'] === "all") {
        foreach ($a_rule as $rulek => $rulev) {
            updatenotify_set("ftpd_mod_ban", UPDATENOTIFY_MODE_DIRTY, $a_rule[$rulek]['uuid']);
        }
    } else {
        updatenotify_set("ftpd_mod_ban", UPDATENOTIFY_MODE_DIRTY, $_GET['uuid']);
    }
    header("Location: services_ftp_mod.php");
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_ftp_mod.php

示例3: array

	POSSIBILITY OF SUCH DAMAGE.
*/
require "auth.inc";
require "guiconfig.inc";
$pgtitle = array(gettext("Disks"), gettext("Software RAID"), gettext("RAID 0/1/5"), gettext("Management"));
if ($_POST) {
    $pconfig = $_POST;
    if ($_POST['apply']) {
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            // Process notifications
            $retval = updatenotify_process("raid_gvinum", "gvinum_process_updatenotification");
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("raid_gvinum");
        }
        header("Location: disks_raid_gvinum.php");
        exit;
    }
}
if (!is_array($config['gvinum']['vdisk'])) {
    $config['gvinum']['vdisk'] = array();
}
array_sort_key($config['gvinum']['vdisk'], "name");
$a_raid =& $config['gvinum']['vdisk'];
if ($_GET['act'] === "del") {
    unset($errormsg);
    if ($a_raid[$_GET['id']]) {
        // Check if disk is mounted.
        if (0 == disks_ismounted_ex($a_raid[$_GET['id']]['devicespecialfile'], "devicespecialfile")) {
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_raid_gvinum.php

示例4: array

if (!isset($config['zfs']['pools']) || !is_array($config['zfs']['pools']['pool'])) {
    $config['zfs']['pools']['pool'] = array();
}
array_sort_key($config['zfs']['pools']['pool'], "name");
$a_pool =& $config['zfs']['pools']['pool'];
if ($_POST) {
    $pconfig = $_POST;
    if ($_POST['apply']) {
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            // Process notifications
            updatenotify_process("zfszpool", "zfszpool_process_updatenotification");
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("zfszpool");
        }
        header("Location: disks_zfs_zpool.php");
        exit;
    }
}
if ($_GET['act'] === "del") {
    updatenotify_set("zfszpool", UPDATENOTIFY_MODE_DIRTY, $_GET['uuid']);
    header("Location: disks_zfs_zpool.php");
    exit;
}
function zfszpool_process_updatenotification($mode, $data)
{
    global $config;
    $retval = 0;
    switch ($mode) {
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_zfs_zpool.php

示例5: array

	either expressed or implied, of the NAS4Free Project.
*/
require "auth.inc";
require "guiconfig.inc";
$pgtitle = array(gettext("Disks"), gettext("Software RAID"), gettext("RAID1"), gettext("Management"));
if ($_POST) {
    $pconfig = $_POST;
    if (isset($_POST['apply']) && $_POST['apply']) {
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            // Process notifications
            $retval = updatenotify_process("raid_gmirror", "gmirror_process_updatenotification");
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("raid_gmirror");
        }
        header("Location: disks_raid_gmirror.php");
        exit;
    }
}
if (!isset($config['gmirror']['vdisk']) || !is_array($config['gmirror']['vdisk'])) {
    $config['gmirror']['vdisk'] = array();
}
array_sort_key($config['gmirror']['vdisk'], "name");
$a_raid =& $config['gmirror']['vdisk'];
if (isset($_GET['act']) && $_GET['act'] === "del") {
    unset($errormsg);
    if ($a_raid[$_GET['id']]) {
        // Check if disk is mounted.
        if (0 == disks_ismounted_ex($a_raid[$_GET['id']]['devicespecialfile'], "devicespecialfile")) {
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_raid_gmirror.php

示例6: rc_update_service

            $retval |= rc_update_service("rpcbind");
            // !!! Do
            $retval |= rc_update_service("mountd");
            // !!! not
            $retval |= rc_update_service("nfsd");
            // !!! change
            $retval |= rc_update_service("statd");
            // !!! this
            $retval |= rc_update_service("lockd");
            // !!! order
            $retval |= rc_update_service("mdnsresponder");
            config_unlock();
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("nfsshare");
        }
    }
}
if (!isset($config['nfsd']['share']) || !is_array($config['nfsd']['share'])) {
    $config['nfsd']['share'] = array();
}
array_sort_key($config['nfsd']['share'], "path");
$a_share =& $config['nfsd']['share'];
if (isset($_GET['act']) && $_GET['act'] === "del") {
    updatenotify_set("nfsshare", UPDATENOTIFY_MODE_DIRTY, $_GET['uuid']);
    header("Location: services_nfs_share.php");
    exit;
}
function nfsshare_process_updatenotification($mode, $data)
{
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_nfs_share.php

示例7: array

if (!isset($config['zfs']['datasets']['dataset']) || !is_array($config['zfs']['datasets']['dataset'])) {
    $config['zfs']['datasets']['dataset'] = array();
}
array_sort_key($config['zfs']['datasets']['dataset'], "name");
$a_dataset =& $config['zfs']['datasets']['dataset'];
if ($_POST) {
    $pconfig = $_POST;
    if (isset($_POST['apply']) && $_POST['apply']) {
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            // Process notifications
            $retval |= updatenotify_process("zfsdataset", "zfsdataset_process_updatenotification");
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("zfsdataset");
        }
        header("Location: disks_zfs_dataset.php");
        exit;
    }
}
if (isset($_GET['act']) && $_GET['act'] === "del") {
    updatenotify_set("zfsdataset", UPDATENOTIFY_MODE_DIRTY, $_GET['uuid']);
    header("Location: disks_zfs_dataset.php");
    exit;
}
function zfsdataset_process_updatenotification($mode, $data)
{
    global $config;
    $retval = 0;
    switch ($mode) {
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_dataset.php

示例8: array

require "guiconfig.inc";
$pgtitle = array(gettext("Services"), gettext("Rsync"), gettext("Client"));
if ($_POST) {
    $pconfig = $_POST;
    if (isset($_POST['apply']) && $_POST['apply']) {
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            $retval |= updatenotify_process("rsyncclient", "rsyncclient_process_updatenotification");
            config_lock();
            $retval |= rc_exec_service("rsync_client");
            $retval |= rc_update_service("cron");
            config_unlock();
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("rsyncclient");
        }
    }
}
if (!isset($config['rsync']) || !is_array($config['rsync'])) {
    $config['rsync'] = array();
    if (!isset($config['rsync']['rsyncclient']) || !is_array($config['rsync']['rsyncclient'])) {
        $config['rsync']['rsyncclient'] = array();
    }
} else {
    if (!isset($config['rsync']['rsyncclient']) || !is_array($config['rsync']['rsyncclient'])) {
        $config['rsync']['rsyncclient'] = array();
    }
}
$a_rsyncclient =& $config['rsync']['rsyncclient'];
if (isset($_GET['act']) && $_GET['act'] === "del") {
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_rsyncd_client.php

示例9: array

require "guiconfig.inc";
$pgtitle = array(gettext("Services"), gettext("CIFS/SMB"), gettext("Shares"));
if ($_POST) {
    $pconfig = $_POST;
    if ($_POST['apply']) {
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            $retval |= updatenotify_process("smbshare", "smbshare_process_updatenotification");
            config_lock();
            $retval |= rc_update_service("samba");
            $retval |= rc_update_service("mdnsresponder");
            config_unlock();
        }
        $savemsg = get_std_save_message($retval);
        if (0 == $retval) {
            updatenotify_delete("smbshare");
        }
    }
}
if (!is_array($config['samba']['share'])) {
    $config['samba']['share'] = array();
}
array_sort_key($config['samba']['share'], "name");
$a_share =& $config['samba']['share'];
if ($_GET['act'] === "del") {
    updatenotify_set("smbshare", UPDATENOTIFY_MODE_DIRTY, $_GET['uuid']);
    header("Location: services_samba_share.php");
    exit;
}
function smbshare_process_updatenotification($mode, $data)
{
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_samba_share.php

示例10: array

	of the authors and should not be interpreted as representing official policies,
	either expressed or implied, of the NAS4Free Project.
*/
require "auth.inc";
require "guiconfig.inc";
$pgtitle = array(gettext("System"), gettext("Advanced"), gettext("loader.conf"));
if ($_POST) {
    if (isset($_POST['apply']) && $_POST['apply']) {
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            touch($d_sysrebootreqd_path);
        }
        $retval |= updatenotify_process("loaderconf", "loaderconf_process_updatenotification");
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("loaderconf");
        }
    }
}
if (!isset($config['system']['loaderconf']['param']) || !is_array($config['system']['loaderconf']['param'])) {
    $config['system']['loaderconf']['param'] = array();
}
array_sort_key($config['system']['loaderconf']['param'], "name");
$loader_param_list =& $config['system']['loaderconf']['param'];
if (isset($_GET['act']) && $_GET['act'] === "del") {
    if ($_GET['id'] === "all") {
        foreach ($loader_param_list as $param_key => $param_value) {
            updatenotify_set("loaderconf", UPDATENOTIFY_MODE_DIRTY, $loader_param_list[$param_key]['uuid']);
        }
    } else {
        updatenotify_set("loaderconf", UPDATENOTIFY_MODE_DIRTY, $_GET['uuid']);
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:system_loaderconf.php

示例11: isset

        $config['smartd']['temp']['info'] = $_POST['temp_info'];
        $config['smartd']['temp']['crit'] = $_POST['temp_crit'];
        $config['smartd']['email']['enable'] = isset($_POST['email_enable']) ? true : false;
        $config['smartd']['email']['to'] = !empty($_POST['email_to']) ? $_POST['email_to'] : "";
        $config['smartd']['email']['testemail'] = isset($_POST['email_testemail']) ? true : false;
        write_config();
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            $retval |= updatenotify_process("smartssd", "smartssd_process_updatenotification");
            config_lock();
            $retval |= rc_update_service("smartd");
            config_unlock();
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("smartssd");
        }
    }
}
if (!isset($config['disks']['disk']) || !is_array($config['disks']['disk'])) {
    $config['disks']['disk'] = array();
}
if (!isset($config['smartd']['selftest']) || !is_array($config['smartd']['selftest'])) {
    $config['smartd']['selftest'] = array();
}
$a_selftest =& $config['smartd']['selftest'];
$a_type = array("S" => "Short Self-Test", "L" => "Long Self-Test", "C" => "Conveyance Self-Test", "O" => "Offline Immediate Test");
if (isset($_GET['act']) && $_GET['act'] === "del") {
    if ($_GET['uuid'] === "all") {
        foreach ($a_selftest as $selftestv) {
            updatenotify_set("smartssd", UPDATENOTIFY_MODE_DIRTY, $selftestv['uuid']);
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:disks_manage_smart.php

示例12: array

    if (isset($_POST['apply']) && $_POST['apply']) {
        $ret = array("output" => array(), "retval" => 0);
        if (!file_exists($d_sysrebootreqd_path)) {
            // Process notifications
            $ret = zfs_updatenotify_process("zfsautosnapshot", "zfsautosnapshot_process_updatenotification");
            config_lock();
            $ret['retval'] |= rc_update_service("autosnapshot");
            config_unlock();
        }
        $savemsg = get_std_save_message($ret['retval']);
        if ($ret['retval'] == 0) {
            updatenotify_delete("zfsautosnapshot");
            header("Location: disks_zfs_snapshot_auto.php");
            exit;
        }
        updatenotify_delete("zfsautosnapshot");
        $errormsg = implode("\n", $ret['output']);
    }
}
if (isset($_GET['act']) && $_GET['act'] === "del") {
    $autosnapshot = array();
    $autosnapshot['uuid'] = $_GET['uuid'];
    updatenotify_set("zfsautosnapshot", UPDATENOTIFY_MODE_DIRTY, serialize($autosnapshot));
    header("Location: disks_zfs_snapshot_auto.php");
    exit;
}
function zfsautosnapshot_process_updatenotification($mode, $data)
{
    global $config;
    $ret = array("output" => array(), "retval" => 0);
    switch ($mode) {
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_snapshot_auto.php

示例13: updatenotify_get

    if ($root != '-') {
        $zfs['pools']['pool'][$index]['root'] = $root;
    }
    $zfs['pools']['pool'][$index]['size'] = $size;
    $zfs['pools']['pool'][$index]['cap'] = $cap;
    $zfs['pools']['pool'][$index]['health'] = $health;
}
if (updatenotify_exists('zfs_import_config')) {
    $notifications = updatenotify_get('zfs_import_config');
    $retval = 0;
    foreach ($notifications as $notification) {
        $retval |= !($notification['data'] == true);
    }
    $savemsg = get_std_save_message($retval);
    if ($retval == 0) {
        updatenotify_delete("zfs_import_config");
    }
}
include "fbegin.inc";
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabnavtbl">
		<ul id="tabnav">
			<li class="tabinact"><a href="disks_zfs_zpool.php"><span><?php 
echo gettext("Pools");
?>
</span></a></li>
			<li class="tabinact"><a href="disks_zfs_dataset.php"><span><?php 
echo gettext("Datasets");
?>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_zfs_config_current.php

示例14: array

require "auth.inc";
require "guiconfig.inc";
$pgtitle = array(gettext("Access"), gettext("Groups"));
if ($_POST) {
    $pconfig = $_POST;
    if ($_POST['apply']) {
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            $retval |= updatenotify_process("userdb_group", "userdbgroup_process_updatenotification");
            config_lock();
            $retval |= rc_exec_service("userdb");
            config_unlock();
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("userdb_group");
        }
    }
}
if (!is_array($config['access']['group'])) {
    $config['access']['group'] = array();
}
array_sort_key($config['access']['group'], "name");
$a_group_conf =& $config['access']['group'];
$a_group = system_get_group_list();
if ($_GET['act'] === "del") {
    updatenotify_set("userdb_group", UPDATENOTIFY_MODE_DIRTY, $_GET['uuid']);
    header("Location: access_users_groups.php");
    exit;
}
function userdbgroup_process_updatenotification($mode, $data)
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:access_users_groups.php

示例15: array

require "guiconfig.inc";
$pgtitle = array(gettext("Services"), gettext("Rsync"), gettext("Local"));
if ($_POST) {
    $pconfig = $_POST;
    if (isset($_POST['apply']) && $_POST['apply']) {
        $retval = 0;
        if (!file_exists($d_sysrebootreqd_path)) {
            $retval |= updatenotify_process("rsynclocal", "rsynclocal_process_updatenotification");
            config_lock();
            $retval |= rc_exec_service("rsync_local");
            $retval |= rc_update_service("cron");
            config_unlock();
        }
        $savemsg = get_std_save_message($retval);
        if ($retval == 0) {
            updatenotify_delete("rsynclocal");
        }
    }
}
if (!isset($config['rsync']) || !is_array($config['rsync'])) {
    $config['rsync'] = array();
    if (!isset($config['rsync']['rsynclocal']) || !is_array($config['rsync']['rsynclocal'])) {
        $config['rsync']['rsynclocal'] = array();
    }
} else {
    if (!isset($config['rsync']['rsynclocal']) || !is_array($config['rsync']['rsynclocal'])) {
        $config['rsync']['rsynclocal'] = array();
    }
}
$a_rsynclocal =& $config['rsync']['rsynclocal'];
if (isset($_GET['act']) && $_GET['act'] === "del") {
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_rsyncd_local.php


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