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


PHP getMPDCRONSettings函数代码示例

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


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

示例1: getMPDResetTimeFromConfig

function getMPDResetTimeFromConfig()
{
    $itemhash = getMPDCRONSettings();
    $cronitem = $itemhash['ITEM'];
    if (isset($cronitem)) {
        return "{$cronitem['minute']} {$cronitem['hour']} {$cronitem['mday']} {$cronitem['month']} {$cronitem['wday']}";
    } else {
        return NULL;
    }
}
开发者ID:rootsghost,项目名称:5651-pfsense,代码行数:10,代码来源:interfaces.php

示例2: base64_decode

     $pconfig['ppp_password'] = base64_decode($a_ppps[$pppid]['password']);
     $pconfig['phone'] = $a_ppps[$pppid]['phone'];
     $pconfig['apn'] = $a_ppps[$pppid]['apn'];
 } else {
     if ($a_ppps[$pppid]['type'] == "pppoe") {
         $pconfig['pppoe_username'] = $a_ppps[$pppid]['username'];
         $pconfig['pppoe_password'] = base64_decode($a_ppps[$pppid]['password']);
         $pconfig['provider'] = $a_ppps[$pppid]['provider'];
         $pconfig['pppoe_dialondemand'] = isset($a_ppps[$pppid]['ondemand']);
         $pconfig['pppoe_idletimeout'] = $a_ppps[$pppid]['idletimeout'];
         /* ================================================ */
         /* = force a connection reset at a specific time? = */
         /* ================================================ */
         if (isset($a_ppps[$pppid]['pppoe-reset-type'])) {
             $pconfig['pppoe-reset-type'] = $a_ppps[$pppid]['pppoe-reset-type'];
             $itemhash = getMPDCRONSettings($a_ppps[$pppid]['if']);
             if ($itemhash) {
                 $cronitem = $itemhash['ITEM'];
             }
             if (isset($cronitem)) {
                 $resetTime = "{$cronitem['minute']} {$cronitem['hour']} {$cronitem['mday']} {$cronitem['month']} {$cronitem['wday']}";
             } else {
                 $resetTime = NULL;
             }
             //log_error("ResetTime:".$resetTime);
             if ($a_ppps[$pppid]['pppoe-reset-type'] == "custom") {
                 if ($cronitem) {
                     $pconfig['pppoe_pr_custom'] = true;
                     $pconfig['pppoe_resetminute'] = $cronitem['minute'];
                     $pconfig['pppoe_resethour'] = $cronitem['hour'];
                     if ($cronitem['mday'] != "*" && $cronitem['month'] != "*") {
开发者ID:simudream,项目名称:pfsense,代码行数:31,代码来源:interfaces.php


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