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

PHP get_services函数代码示例

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

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



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

示例1: call_user_func

return call_user_func(function () {
    $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
    $publicDir = __DIR__ . '/';
    $uri = urldecode($uri);
    $uri = str_replace('/static', '', $uri);
    $requested = $publicDir . '/' . $uri;
    if (isset($_GET['p'])) {
        $uri = $_GET['p'];
    } else {
        $uri = '/';
    }
    if ($uri === '/') {
        echo json_encode(array('result' => array()));
    } else {
        if (strpos($uri, '/services') !== false) {
            echo get_services($_GET);
        } else {
            if (strpos($uri, '/change_service') !== false) {
                echo edit_service($_POST);
            } else {
                if (strpos($uri, '/tasks') !== false) {
                    echo get_tasks($_GET);
                } else {
                    if (strpos($uri, '/change_tasks') !== false) {
                        echo edit_task($_POST);
                    } else {
                        if (strpos($uri, '/discussions') !== false) {
                            echo get_discussions($_GET);
                        } else {
                            if (strpos($uri, '/projects') !== false) {
                                echo get_projects($_GET);
开发者ID:Ike-Clinton,项目名称:domeclone,代码行数:31,代码来源:index.php


示例2: while

            <div class="col-md-8 col-sm-6 dmbs-main">

                <?php 
// theloop
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
                    <h2 class="title-services"><?php 
        the_title();
        ?>
</h2>
                    <div class="services-landing-page">
                        <?php 
        print get_services();
        ?>
                    </div>
                <?php 
    }
    ?>
                <?php 
} else {
    ?>

                    <?php 
    get_404_template();
    ?>

                <?php 
}
开发者ID:TakenCdosG,项目名称:shurefuneral,代码行数:30,代码来源:services-landing-page.php


示例3: relayd_configure

        case 'relayd':
            relayd_configure(true);
            break;
        case 'squid':
            configd_run("proxy restart");
            break;
        case 'suricata':
            configd_run("ids restart");
            break;
        default:
            log_error(sprintf(gettext("Could not restart unknown service `%s'"), $name));
            break;
    }
    return sprintf(gettext("%s has been restarted."), htmlspecialchars($name));
}
$services = get_services();
if (count($services) > 0) {
    uasort($services, "service_name_compare");
}
include "head.inc";
?>

<body>
<?php 
include "fbegin.inc";
?>
  <section class="page-content-main">
    <div class="container-fluid">
      <div class="row">
        <?php 
if (isset($savemsg)) {
开发者ID:8191,项目名称:opnsense-core,代码行数:31,代码来源:status_services.php


示例4: array

##|*DESCR=Allow access to the 'Add Service Watchdog Services' page.
##|*MATCH=services_servicewatchdog.php-add*
##|-PRIV
require "guiconfig.inc";
require_once "service-utils.inc";
require_once "servicewatchdog.inc";
if (!is_array($config['installedpackages']['servicewatchdog']['item'])) {
    $config['installedpackages']['servicewatchdog']['item'] = array();
}
$a_pwservices =& $config['installedpackages']['servicewatchdog']['item'];
// Pre-load "cron" into this array to blacklist it from being offered as a choice.
$a_pwservice_names = array("cron");
foreach ($a_pwservices as $svc) {
    $a_pwservice_names[] = $svc['name'];
}
$system_services = get_services();
unset($input_errors);
if ($_POST) {
    if (!is_numeric($_POST['svcid'])) {
        return;
    }
    if (!isset($system_services[$_POST['svcid']])) {
        $input_errors[] = gettext("The supplied service appears to be invalid.");
    }
    if (!$input_errors) {
        $a_pwservices[] = $system_services[$_POST['svcid']];
        servicewatchdog_cron_job();
        write_config();
        header("Location: services_servicewatchdog.php");
        return;
    }
开发者ID:ronnel25,项目名称:pfsense-packages,代码行数:31,代码来源:services_servicewatchdog_add.php


示例5: get_service_by_id

function get_service_by_id($service_id)
{
    $services = get_services();
    foreach ($services as $service) {
        if ($service[SR_TABLE_FIELDNAME::SERVICE_ID] == $service_id) {
            return $service;
        }
    }
    return null;
}
开发者ID:ahelsing,项目名称:geni-portal,代码行数:10,代码来源:sr_client.php


示例6: get_link_list

    require 'scraperwiki.php';
}
require 'scraperwiki/simple_html_dom.php';
$url = "http://wiki.open311.org/GeoReport_v2/Servers";
$link_list = get_link_list($url);
//$alldata = $link_list;
$alldata = array();
$count = 1;
foreach ($link_list as $link) {
    //if(!strpos($link['services'], '.gov')) {
    //    continue;
    //}
    if ($run_environment == 'prod') {
        get_services($link);
    } else {
        $alldata[] = get_services($link);
    }
    $count++;
    if ($run_environment == 'dev' && $count > $max_records) {
        break;
    }
}
// if testing
if ($run_environment == 'dev') {
    header('Content-type: application/json');
    print json_encode($alldata);
}
function get_link_list($url)
{
    global $run_environment;
    global $max_records;
开发者ID:flyeven,项目名称:scraperwiki-scraper-vault,代码行数:31,代码来源:open311_services.php


示例7: lookup_attribute

function lookup_attribute($am_url, $attr_name)
{
    $services = get_services();
    $am_service = null;
    foreach ($services as $service) {
        if (array_key_exists(SR_ARGUMENT::SERVICE_URL, $service) && $service[SR_ARGUMENT::SERVICE_URL] == $am_url) {
            $am_service = $service;
            break;
        }
    }
    if ($am_service) {
        return lookup_service_attribute($am_service, $attr_name);
    } else {
        return null;
    }
}
开发者ID:ahelsing,项目名称:geni-portal,代码行数:16,代码来源:am_client.php


示例8: draw_shipper_config

function draw_shipper_config()
{
    global $_TABLES, $_CONF, $LANG_ECOM;
    $id = COM_applyFilter($_GET['id']);
    //General information about shipper
    $res = DB_query("SELECT * FROM {$_TABLES['ecom_shipper']} WHERE id = {$id}");
    $row = DB_fetchArray($res);
    $T = new Template($_CONF['path'] . 'plugins/ecommerce/templates/admin');
    $T->set_file(array('shipper_config' => 'shipper_config.thtml', 'shipper_config_row' => 'shipper_config_row.thtml'));
    $T->set_var('site_url', $PHP_SELF);
    $T->set_var('shipper_name', $row['name']);
    $T->set_var('user_name', $row['user_name']);
    $T->set_var('password', $row['password']);
    $T->set_var('msg_8', $LANG_ECOM[8]);
    $T->set_var('msg_9', $LANG_ECOM[9]);
    $T->set_var('msg_107', $LANG_ECOM[107]);
    //Shipper for national only
    $service_res = DB_query("SELECT * FROM {$_TABLES['ecom_shipper_service']} WHERE ecom_shipper_id = {$id} AND ecom_shipper_service_international = false");
    $services_national = get_services($service_res, $T, 'national');
    $T->set_var('msg_108', $LANG_ECOM[108]);
    // Services for international only
    $service_res = DB_query("SELECT * FROM {$_TABLES['ecom_shipper_service']} WHERE ecom_shipper_id = {$id} AND ecom_shipper_service_international = true");
    $services_international = get_services($service_res, $T, 'international');
    $T->set_var('msg_109', $LANG_ECOM[109]);
    $T->parse('output', 'shipper_config');
    echo $T->finish($T->get_var('output'));
}
开发者ID:glFusion,项目名称:ecommerce,代码行数:27,代码来源:shipping.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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