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


PHP Repository::get_repository_linked方法代码示例

本文整理汇总了PHP中Repository::get_repository_linked方法的典型用法代码示例。如果您正苦于以下问题:PHP Repository::get_repository_linked方法的具体用法?PHP Repository::get_repository_linked怎么用?PHP Repository::get_repository_linked使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Repository的用法示例。


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

示例1: ossim_db

* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
****************************************************************************/
/**
* Class and Function List:
* Function list:
* Classes list:
*/
require_once 'classes/Security.inc';
require_once "classes/Repository.inc";
require_once "ossim_db.inc";
$db = new ossim_db();
$conn = $db->connect();
$repository_list = Repository::get_repository_linked($conn, GET('keyname'), GET('type'));
if (count($repository_list) > 0) {
    ?>
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html>
	<head>
		<title> <?php 
    echo gettext("OSSIM Framework");
    ?>
 </title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
		<meta http-equiv="Pragma" CONTENT="no-cache"/>
		<link rel="stylesheet" type="text/css" href="../style/style.css"/>
		<style type='text/css'>
			body { margin: 0px;}
		</style>
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:repository_list.php

示例2: ossim_db

$docs = 0;
if ($plugin_id != '' && $plugin_sid != '') {
    $db_kdb = new ossim_db();
    $conn_kdb = $db_kdb->connect();
    //Taxonomy
    $ptype = Product_type::get_product_type_by_plugin($conn_kdb, $plugin_id);
    $cat = Category::get_category_subcategory_by_plugin($conn_kdb, $plugin_id, $plugin_sid);
    $keyname = (empty($ptype['id']) ? 0 : $ptype['id']) . "##" . (empty($cat['cid']) ? 0 : $cat['cid']) . "##" . (empty($cat['scid']) ? 0 : $cat['scid']);
    $repository_list['taxonomy'] = Repository::get_repository_linked($conn_kdb, $keyname, 'taxonomy');
    //Directive
    if ($plugin_id == '1505') {
        $repository_list['directive'] = Repository::get_linked_by_directive($conn_kdb, $plugin_sid);
    }
    //Plugin SID
    $keyname = "{$plugin_sid}##{$plugin_id}";
    $repository_list['plugin_sid'] = Repository::get_repository_linked($conn_kdb, $keyname, 'plugin_sid');
    $docs = count($repository_list['directive']) + count($repository_list['plugin_sid']) + count($repository_list['taxonomy']);
    $db_kdb->close($conn_kdb);
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title> <?php 
echo _('AlienVault ' . (Session::is_pro() ? 'USM' : 'OSSIM'));
?>
 </title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="Pragma" content="no-cache"/>
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:kdb.php

示例3: GET

*
*/
require_once 'av_init.php';
Session::logcheck("configuration-menu", "Osvdb");
$type = GET('type');
$keyname = GET('keyname');
$nosize = GET('nosize') ? GET('nosize') : 0;
ossim_valid($type, OSS_INPUT, 'Illegal:' . _("Link Type"));
ossim_valid($keyname, OSS_HEX, 'Illegal:' . _("Keyname"));
ossim_valid($nosize, OSS_DIGIT, OSS_NULLABE, 'Illegal:' . _("nosize parameter"));
if (ossim_error()) {
    die(ossim_error());
}
$db = new ossim_db();
$conn = $db->connect();
$repository_list = Repository::get_repository_linked($conn, $keyname, $type);
$vars = array();
switch ($type) {
    case 'host':
        try {
            $host = Asset_host::get_object($conn, $keyname);
        } catch (Exception $e) {
            $host = NULL;
        }
        if (is_object($host)) {
            $vars['_HOST_NAME'] = $host->get_name();
            $vars['_HOST_IP'] = $host->get_ips();
            $vars['_HOST_FQDN'] = $host->get_fqdns();
            $vars['_HOST_DESC'] = $host->get_descr();
        }
        break;
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:repository_list.php


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