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

PHP getGroups函数代码示例

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

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



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

示例1: _moduleContent

function _moduleContent(&$smarty, $module_name)
{
    include_once "libs/paloSantoGrid.class.php";
    include_once "libs/paloSantoForm.class.php";
    include_once "libs/paloSantoOrganization.class.php";
    //folder path for custom templates
    $local_templates_dir = getWebDirModule($module_name);
    //conexion resource
    $pDB = new paloDB($arrConf['elastix_dsn']["elastix"]);
    global $arrCredentials;
    $action = getAction();
    $content = "";
    switch ($action) {
        case "new_user":
            $content = viewFormUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "view":
            $content = viewFormUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "edit":
            $content = viewFormUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "save_new":
            $content = saveNewUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "save_edit":
            $content = saveEditUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "delete":
            $content = deleteUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "getGroups":
            $content = getGroups($pDB, $arrCredentials);
            break;
        case "getImage":
            $content = getImage($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "reloadAasterisk":
            $content = reloadAasterisk($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
        case "reconstruct_mailbox":
            $content = reconstruct_mailbox($pDB, $arrConf, $arrCredentials);
            break;
            /*case "changes_email_quota":
              $content = changes_email_quota($smarty, $module_name, $pDB, $arrConf, $arrCredentials);
              break;*/
        /*case "changes_email_quota":
          $content = changes_email_quota($smarty, $module_name, $pDB, $arrConf, $arrCredentials);
          break;*/
        default:
            // report
            $content = reportUser($smarty, $module_name, $local_templates_dir, $pDB, $arrConf, $arrCredentials);
            break;
    }
    return $content;
}
开发者ID:lordbasex,项目名称:elastix-gui,代码行数:56,代码来源:index.php


示例2: action_selectgroup

 /**
  * Allow a user to chose the membergroups to send the announcement to.
  * Lets the user select the membergroups that will receive the topic announcement.
  * Accessed by action=announce;sa=selectgroup
  * @uses Announce template announce sub template
  */
 public function action_selectgroup()
 {
     global $context, $topic, $board_info;
     require_once SUBSDIR . '/Membergroups.subs.php';
     require_once SUBSDIR . '/Topic.subs.php';
     // Build a list of groups that can see this board
     $groups = array_merge($board_info['groups'], array(1));
     foreach ($groups as $id => $group) {
         $groups[$id] = (int) $group;
     }
     // Prepare for a group selection list in the template
     $context['groups'] = getGroups($groups);
     // Get the subject of the topic we're about to announce.
     $topic_info = getTopicInfo($topic, 'message');
     $context['topic_subject'] = $topic_info['subject'];
     censorText($context['announce_topic']['subject']);
     // Prepare for the template
     $context['move'] = isset($_REQUEST['move']) ? 1 : 0;
     $context['go_back'] = isset($_REQUEST['goback']) ? 1 : 0;
     $context['sub_template'] = 'announce';
 }
开发者ID:KeiroD,项目名称:Elkarte,代码行数:27,代码来源:Announce.controller.php


示例3: vk_parse_wall

function vk_parse_wall()
{
    $postCount = 150;
    // Сколько постов парсить
    $groups = getGroups();
    // Получаем группы
    $gCount = count($groups);
    // Получаем количество групп
    for ($l = 0; $l < $gCount; $l++) {
        $postsOnGroup = $postCount / $gCount;
        // Узнаем сколько постов парсить из каждоый группы
        $page = file_get_contents(trim($groups[$l]['url']));
        // Получаем страничку
        $mcount = countPostsInGroup($page);
        // Количество постов в группе
        if ($groups[$l]['parsed_count'] < $mcount - 100) {
            $offset = $mcount - $groups[$l]['parsed_count'];
            for ($k = $postsOnGroup; $k > 0; $k = $k - 10) {
                $thisPage = file_get_contents(trim('' . $groups[$l]['url'] . '?offset=' . $offset . ''));
                preg_match_all('/class="cc">(.*)class="links[\\n]*/Us', $thisPage, $firstContent);
                $countCc = count($firstContent);
                echo $countCc;
                for ($h = 0; $h < $countCc; $h++) {
                    preg_match_all('/class="like i"><i><\\/i><b>(.*)<\\/b>[\\n]*/Us', $firstContent[1][$h], $content1);
                    if ($content1[1][0] > 30) {
                        preg_match_all('/<div class="text">(.*)<\\/div>[\\n]*/Us', $firstContent[1][$h], $content);
                        if (isset($content[1][0])) {
                            echo $content[1][0];
                            echo ' - ';
                            echo $content1[1][0];
                            echo ' - ' . $groups[$l]['url'] . '?offset=' . $offset . '';
                            echo '<br />';
                        }
                    }
                }
                $offset = $offset - 10;
            }
        }
    }
}
开发者ID:DenisMalofeyev,项目名称:vk,代码行数:40,代码来源:par.php


示例4: _t

                <td><?php 
    echo _t("Widget");
    ?>
</td>
                <td><select name="module"><?php 
    echo makefileopts($widgets, $db->widget_module);
    ?>
</select></td>
            </tr>
            <tr>
                <td><?php 
    echo _t("Visible for");
    ?>
</td>
                <td><select name="group"><?php 
    echo getGroups($db->widget_group);
    ?>
</select> <?php 
    echo _t("and above");
    ?>
</td>
            </tr>
            <tr>
                <td><input type="submit" name="install" value="<?php 
    echo _t("Save");
    ?>
"></td>
            </tr>
        </table>
    </form>
开发者ID:n4v,项目名称:openTracker,代码行数:30,代码来源:edit.php


示例5: getGroups

//birthday
//image
?>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php 
require_once '../Templates/session-start.req-inc.php';
include '../Functions/dbconnect.php';
include '../Functions/Add-functions.php';
include '../Functions/utils-function.php';
include '../Functions/upload-function.php';
$results = getGroups();
if (isPostRequest()) {
    $address_group_id = filter_input(INPUT_POST, 'address_group_id');
    $fullname = filter_input(INPUT_POST, 'fullname');
    $email = filter_input(INPUT_POST, 'email');
    $address = filter_input(INPUT_POST, 'address');
    $phone = filter_input(INPUT_POST, 'phone');
    $website = filter_input(INPUT_POST, 'website');
    $birthday = filter_input(INPUT_POST, 'birthday');
    $isAdded = addToBook();
    if ($isAdded === false) {
        $message = 'Data was not added, please make sure you have entered all required data and that the data is valid<br>';
    } else {
        $message = 'Data was added<br>';
    }
}
开发者ID:Dayakes,项目名称:PHPWinterCLass2016,代码行数:31,代码来源:AddAddress.html.php


示例6: elseif

} else {
    $password = '';
}
if (isset($_POST['confirm'])) {
    $confirm = $_POST['confirm'];
} else {
    $confirm = '';
}
if (isset($_POST['user_group_id'])) {
    $user_group_id = $_POST['user_group_id'];
} elseif (!empty($user_info)) {
    $user_group_id = $user_info['group_id'];
} else {
    $user_group_id = '';
}
$user_groups = getGroups();
if (isset($_POST['status'])) {
    $status = $_POST['status'];
} elseif (!empty($user_info)) {
    $status = $user_info['status'];
} else {
    $status = 0;
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $action = $_POST['action'];
    $user_id = $_POST['user_id'];
    $username = $_POST['username'];
    $email = $_POST['email'];
    $password = $_POST['password'];
    $confirm = $_POST['confirm'];
    $user_group = $_POST['user_group_id'];
开发者ID:nvcDeb,项目名称:CoinCod,代码行数:31,代码来源:user_form.php


示例7: _t

                </td>
                <td>
                    <?php 
    echo $this->addon;
    ?>
                </td>
            </tr>
            <tr>
                <td>
                    <?php 
    echo _t("Visible for");
    ?>
                </td>
                <td>
                    <select name="group"><?php 
    echo getGroups($db->addon_group);
    ?>
</select> <?php 
    echo _t("and above");
    ?>
                </td>
            </tr>
            <tr>
                <td>
                    <input type="submit" name="save" value="<?php 
    echo _t("Save");
    ?>
">
                </td>
            </tr>
        </table>
开发者ID:thefkboss,项目名称:openTracker,代码行数:31,代码来源:edit.php


示例8: db_connect

<?php

// Get list of all users or one in particualr if the id is given
include_once '../include/headers.php';
include_once '../include/dbutils.php';
include_once '../include/main.php';
include_once 'domain/groups.php';
db_connect();
$expand = isset($_GET['expand']) ? $_GET['expand'] : null;
if (isset($_GET['id'])) {
    $value = getGroup($_GET['id'], $expand);
} else {
    $value = getGroups($expand);
}
//return JSON array
exit(json_encode($value));
开发者ID:eznibe,项目名称:north-telas,代码行数:16,代码来源:groups_GET.php


示例9: while

if ($upcomingGroupEvents->have_posts()) {
    while ($upcomingGroupEvents->have_posts()) {
        $upcomingGroupEvents->the_post();
        ?>

			<?php 
        if ($counter == 0) {
            echo "<li class='col-sm-4 active'>";
        } else {
            echo "<li class='col-sm-4'>";
        }
        ?>
			<span class='state-indicator'></span>
			<h3>
				<?php 
        $groups = getGroups($post->ID);
        ?>
				<?php 
        echo $groups->post_title . ":";
        ?>
				<br>
				<a href="<?php 
        echo the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>
			</h3>
			<small>
				<?php 
开发者ID:aigamn,项目名称:aigamn2016,代码行数:31,代码来源:home-groupevents.php


示例10: array

require_once 'Helper/PHPExcel/IOFactory.php';
$relations = array();
$definitions = array();
$additionalData = array();
$file = __DIR__ . '/data/US Data v1.1.xlsx';
if (!file_exists($file)) {
    exit("File ' . {$file} . ' first not found.\n");
}
$objPHPExcel = PHPExcel_IOFactory::load($file);
$relations = getSheetData($objPHPExcel, 0);
$definitions = getSheetData($objPHPExcel, 1);
$additionalData = getSheetData($objPHPExcel, 2);
$returns = array();
if (count($relations) > 0 && count($definitions) > 0 && count($additionalData)) {
    $groups = getGroups($relations);
    $nodes = getNodes($relations, $definitions, $groups);
    /*echo '<pre>';
      var_dump($nodes);
      echo '</pre>';
      die;*/
    $links = getLinks($relations, $nodes);
    $additionalNodesData = getAdditionalNodesData($additionalData, $nodes);
    $returns = array('nodes' => $nodes, 'links' => $links, 'groups' => $groups, 'additionalNodesData' => $additionalNodesData);
    echo json_encode($returns);
}
// helper functions
function getSheetData($objPHPExcel, $number = 0)
{
    $result = array();
    $objPHPExcel->setActiveSheetIndex($number);
开发者ID:evo9,项目名称:social_graph2,代码行数:30,代码来源:excel_parser.php


示例11: getForumCategory

                <td><input type="text" name="name" value="<?php 
    echo $db->name;
    ?>
" size="40"></td>
            </tr>
            <tr>
                <td>Category</td>
                <td><select name="category"><?php 
    echo getForumCategory($db->category);
    ?>
</select></td>
            </tr>
            <tr>
                <td>Group</td>
                <td><select name="group"><?php 
    echo getGroups($db->group);
    ?>
</select></td>
            </tr>
            <tr>
                <td valign="top">Description</td>
                <td><textarea name="description" rows="5" cols="31"><?php 
    echo $db->description;
    ?>
</textarea></td>
            </tr>
            <tr>
                <td><input type="submit" value="Save forum" name="save" /></td>
            </tr>
        </table>
    </form>
开发者ID:thefkboss,项目名称:openTracker,代码行数:31,代码来源:edit-forum.php


示例12: getGroups

    ?>
)</option><?php 
    echo getGroups($db->upgradeto);
    ?>
</select></td>
            </tr>
            <tr>
                <td width="100px"><?php 
    echo _t("Downgrade to");
    ?>
:</td>
                <td><select name="downgradeto"><option value="0">(<?php 
    echo _t("Choose");
    ?>
)</option><?php 
    echo getGroups($db->downgradeto);
    ?>
</select></td>
            </tr>
            <tr>
                <td><?php 
    echo _t("Minimum Upload");
    ?>
:</td>
                <td><input name="minupload" type="text" value="<?php 
    echo $db->minupload;
    ?>
" size="25"></td>
            </tr>
            <tr>
                <td><?php 
开发者ID:thefkboss,项目名称:openTracker,代码行数:31,代码来源:edit.php


示例13: setCurrentGroupId

function setCurrentGroupId()
{
    global $cmd;
    if (!isset($_GET['groupid']) && !isset($_SESSION['groupid'])) {
        if (php_uname("s") != "Darwin") {
            $profiles = $cmd->bmonitor->getAllGroupsHost();
        } else {
            $groups = getGroups();
            foreach ($groups as $p) {
                $profiles[] = array('name' => $p['name'], 'groupid' => $p['groupid']);
            }
        }
        foreach ($profiles as $p => $value) {
            $_SESSION['profile'] = $value['name'];
            $_SESSION['groupid'] = $value['groupid'];
        }
    } else {
        if (isset($_GET['groupid'])) {
            $_SESSION['profile'] = $_GET['profile'];
            $_SESSION['groupid'] = $_GET['groupid'];
        }
    }
}
开发者ID:rafaelurrutia,项目名称:bmonitor-y-bi,代码行数:23,代码来源:api.php


示例14: getTasks

    getTasks();
} elseif ($_POST["action"] == "add_user") {
    $response['action'] = 'get_users';
    userAdd();
    getUsers();
} elseif ($_POST["action"] == "remove_users") {
    $response['action'] = 'get_users';
    usersRemove();
    getUsers();
} elseif ($_POST["action"] == "get_complete_tasks") {
    $response['action'] = 'get_complete_tasks';
    getCompleteTasks();
} elseif ($_POST["action"] == "get_groups") {
    $response['action'] = 'get_groups';
    getGroups();
} elseif ($_POST["action"] == "add_group") {
    $response['action'] = 'get_tasks';
    groupAdd();
    getGroups();
    getTasks();
} elseif ($_POST["action"] == "group_remove") {
    $response['action'] = 'get_tasks';
    groupRemove();
    getGroups();
    getTasks();
}
/*
if(defined('JSON_NUMERIC_CHECK'))
	echo json_encode($response, JSON_NUMERIC_CHECK);
else*/
echo json_encode($response);
开发者ID:ColleagueOnTheProject1,项目名称:tcs,代码行数:31,代码来源:action.php


示例15: getGroupName

    </div><!--/.navbar-header -->
    <p class="weekSelector-text">Your Picks for <?php 
echo "{$this_season_year} {$this_season_type} Week {$this_week}";
?>
</p>
    <div id="navbar2" class="navbar-collapse collapse weekSelector">
     <ul class="nav navbar-nav weekSelector">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php 
echo getGroupName($db, $this_group_id);
?>
 <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li class="dropdown-header">Groups</li>
            <?php 
$groups = getGroups($db, $this_user_id);
foreach ($groups as $group) {
    echo '<li><a href="' . $THIS_PAGE . '?group_id=' . $group['group_id'] . '&season_year=' . $this_season_year . '&season_type=' . $this_season_type . '&week=' . $this_week . '">' . $group['group_name'] . '</a></li>';
}
?>
      
          </ul>
        </li>
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><?php 
echo $this_season_year;
?>
 <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li class="dropdown-header">Season Years</li>
            <?php 
开发者ID:jeffmoreland,项目名称:football,代码行数:31,代码来源:selector.php


示例16: array

 if ($ldapSet['ldapServer'][0] != 1) {
     echo "<h4>Enable LDAP in settings first !</h4>\n";
     echo "<input type='submit' name='back' value='Ok'>\n";
     $action = '';
     break;
 }
 $found = array();
 $res = getLdapUsers($found);
 if ($res == 0) {
     echo "<h4>No entries found - test LDAP settings !</h4>\n";
     echo "<input type='submit' name='back' value='Ok'>\n";
     $action = '';
     break;
 } else {
     $groups = array();
     getGroups($groups);
 }
 checkLdapUsers($found);
 // check if importable
 echo "<div class='sValue'>Import to group <select name='ldapgroup'>\n";
 foreach ($groups as $id => $name) {
     echo "<option value={$id}>{$name}</option>\n";
 }
 echo "</select></div><br><br>\n";
 //echo '<div class="resultBox">'."\n";
 echo "<table>\n                  <tr><th>UID</th><th>Full Name</th><th>Email</th></tr>\n";
 foreach ($found as $u => $n) {
     if (!isset($found[$u]['flag'])) {
         // put all info into encoded string
         $v = urlencode($u . '|' . $found[$u]['rn'] . '|' . $found[$u]['ml']);
         echo "<tr><td><input type='checkbox' name='ldapsel[]' value={$v}>";
开发者ID:sanluca,项目名称:py-acqua-hw,代码行数:31,代码来源:ldaptools.php


示例17: array

 case 40:
     //发文件消息
     $filePath = "./resource/up/a.rar";
     $from = 'admin';
     $target_type = "users";
     $target = array("zhangsan", "lisi");
     $filename = "a.rar";
     $length = 10;
     //时长
     $ext['a'] = "a";
     $ext['b'] = "b";
     var_dump(sendFile($filePath, $from = "admin", $target_type, $target, $filename, $length, $ext));
     break;
 case 41:
     //获取app中的所有群组-----不分页(默认返回10个)
     var_dump(getGroups());
     break;
 case 42:
     ////获取app中的所有群组--------分页
     $cursor = readCursor("groupfile.txt");
     var_dump($cursor);
     var_dump(getGroupsForPage(2, $cursor));
     break;
 case 43:
     //获取一个或多个群组的详情
     $group_ids = array("1445830526109", "1445833238210");
     var_dump(getGroupDetail($group_ids));
     break;
 case 44:
     //创建一个群组
     $options['groupname'] = "group001";
开发者ID:lzstg,项目名称:emchat,代码行数:31,代码来源:easemobtest.php


示例18: subset

 /** @return Fixture */
 public function subset()
 {
     //COPY:ALL
     return new SubsetFixture($this->app . getGroups());
     //COPY:ALL
 }
开发者ID:metaclass-nl,项目名称:fit-shelf,代码行数:7,代码来源:Discounts.php


示例19: show_login

// Jetzt können wir also die Funktion "password_verify" in jedem Fall verwenden:
if (!password_verify(trim($_POST['passwort']), $hashedPassword)) {
    show_login(trim($_POST['username']), 'Passwort falsch');
    exit;
}
// else:
// Registrierung der Daten in der Session und
// Weiterleitung zur geschützten Startseite
session_start();
session_unset();
session_regenerate_id(true);
if (isset($_POST['register_ip']) && $_POST['register_ip']) {
    $_SESSION['ip'] = $_SERVER['REMOTE_ADDR'];
}
$_SESSION['username'] = $_POST['username'];
$_SESSION['groups'] = getGroups($_POST['username']);
$_SESSION['last_action'] = date('U');
$target = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/index.php';
header('Location: ' . $target, true, $_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.1' ? 303 : 302);
exit;
// benötigte Funktionen
function getHashedPassword($username)
{
    $arRows = file(PASSWORD_FILE);
    unset($csv);
    // Speicher sparen
    foreach ($arRows as $row) {
        $row = trim($row);
        // Manche geben gerne Leerzeichen ein...
        if ($row && '#' != $row[0] && strpos($row, ':')) {
            //Ausschließen von Kommentaren und Leerzeilen sowie Zeilen ohne Trenner
开发者ID:r0the,项目名称:paedawan,代码行数:31,代码来源:login.php


示例20: catalog_models

     $query_insert_models = "  INSERT INTO catalog_models (`id`, `name`, `group`)\r\n                                      VALUES" . $models_sql . "ON DUPLICATE KEY UPDATE\r\n                                          `id` = VALUES(`id`), `name` = VALUES(`name`), `group` = VALUES(`group`)";
     $query_insert_modifications = "  INSERT INTO catalog_modifications (`id`, `model`, `name`, `start_year`, `end_year`)\r\n                                      VALUES" . $modifications_sql . "ON DUPLICATE KEY UPDATE\r\n                                          `id` = VALUES(`id`), `model` = VALUES(`model`), `name` = VALUES(`name`), `start_year` = VALUES(`start_year`), `end_year` = VALUES(`end_year`)";
     $db->query($query_insert_categories);
     $db->query($query_insert_marks);
     $db->query($query_insert_groups);
     $db->query($query_insert_models);
     $db->query($query_insert_modifications);
 }
 if ($_model) {
     $c["list"] = getModifications($_model);
     $c["link"] = "modification";
 } elseif ($_group) {
     $c["list"] = getModels($_group);
     $c["link"] = "model";
 } elseif ($_mark) {
     $c["list"] = getGroups($_mark, $_cat);
     $c["link"] = "group";
 } elseif ($_cat) {
     $cat_children = getCategories($_cat);
     if (count($cat_children) > 0) {
         $c["list"] = $cat_children;
         $c["link"] = "cat";
     } else {
         $c["list"] = getMarks();
         $c["link"] = "mark";
     }
 } else {
     $c["list"] = $categories;
     $c["link"] = "cat";
 }
 $c["uri"] = $_SERVER['REQUEST_URI'];
开发者ID:progervlad,项目名称:utils,代码行数:31,代码来源:index.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getGroupslist函数代码示例发布时间:2022-05-15
下一篇:
PHP getGroupOrder函数代码示例发布时间: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