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

PHP get_values函数代码示例

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

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



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

示例1: render_symptom

function render_symptom($dbc, $db_name, $id)
{
    echo '<p>症状:</p>';
    $diseases = array();
    $values = array_merge(get_values($dbc, PREFIX . $id, "症状加(调整)"), get_values($dbc, PREFIX . $id, "症状减(调整)"));
    foreach ($values as $value) {
        if (array_key_exists($value, $diseases)) {
            $diseases[$value] = $diseases[$value] + 1;
        } else {
            $diseases[$value] = 1;
        }
    }
    arsort($diseases);
    //$diseases = array_slice(array_keys($diseases), 0, 5);
    $diseases = array_keys($diseases);
    echo '<ul>';
    foreach ($diseases as $value) {
        //echo '<li class="list-group-item">';
        echo '<li>';
        echo render_value($dbc, $db_name, $value, true);
        echo '&nbsp;<a class="btn btn-xs btn-primary" href="qa.php?db_name=' . $db_name . '&keywords=' . get_entity_name($dbc, $value) . '&question_type=症状" ><span class="glyphicon glyphicon-search"></span></a>';
        echo '<p/></li>';
    }
    echo '</ul>';
}
开发者ID:sdgdsffdsfff,项目名称:LOD,代码行数:25,代码来源:qa_syndrome_plus.php


示例2: export_values

/**
 * Exporting values as a string
 * @package Skip\Forms
 * @since 1.0
 * @ignore
 */
function export_values($option_groups)
{
    foreach ($option_groups as $option_group) {
        $values = serialize((array) get_values($option_group));
        $serialized_val .= $values;
    }
    return $serialized_val;
}
开发者ID:antoniorequenalorente,项目名称:Fanpage-import,代码行数:14,代码来源:export.php


示例3: get_herb_plus

function get_herb_plus($dbc, $db_name, $value)
{
    $herb_links = array();
    $herbs = array_merge(get_values($dbc, $value, '中药加(调整)'));
    foreach ($herbs as $herb) {
        $herb_links[] = render_value($dbc, $db_name, $herb, false);
    }
    $herb_title = '';
    if (count($herb_links) != 0) {
        $herb_title = '加' . implode(',&nbsp;', $herb_links);
    }
    return $herb_title;
}
开发者ID:sdgdsffdsfff,项目名称:LOD,代码行数:13,代码来源:qa_helper.php


示例4: render_treatment

function render_treatment($dbc, $db_name, $id)
{
    echo '<p>系统为您推荐如下的方剂:</p>';
    $formulas = array();
    $values = array_merge(get_subjects($dbc, PREFIX . $id, "治疗"), get_values($dbc, PREFIX . $id, "被...治疗"));
    foreach ($values as $value) {
        if (array_key_exists($value, $formulas)) {
            $formulas[$value] = $formulas[$value] + 1;
        } else {
            $formulas[$value] = 1;
        }
    }
    arsort($formulas);
    //$formulas = array_slice(array_keys($formulas), 0, 5);
    $formulas = array_keys($formulas);
    echo '<ol>';
    foreach ($formulas as $value) {
        //echo '<li class="list-group-item">';
        echo '<li>';
        echo render_value($dbc, $db_name, $value, true);
        echo '<p/></li>';
    }
    echo '</ol>';
}
开发者ID:sdgdsffdsfff,项目名称:LOD,代码行数:24,代码来源:qa_disease.php


示例5: get_entity_of_type

    $id = get_entity_of_type($dbc, $name, $question_type);
    if ($id != '') {
        array_push($ids, $id);
    }
}
if (!empty($ids)) {
    echo '<p>您输入的症状集合为:';
    foreach ($ids as $id) {
        echo '&nbsp;' . render_value($dbc, $db_name, PREFIX . $id, false);
    }
    echo '</p>';
    echo '<hr>';
    echo '<p>&nbsp;系统为您推荐如下的证候:</p>';
    $formulas = array();
    foreach ($ids as $id) {
        $values = array_merge(get_subjects($dbc, PREFIX . $id, "由...组成"), get_values($dbc, PREFIX . $id, "组成"));
        foreach ($values as $value) {
            if (array_key_exists($value, $formulas)) {
                $formulas[$value] = $formulas[$value] + 1;
            } else {
                $formulas[$value] = 1;
            }
        }
    }
    arsort($formulas);
    //print_r($syndromes);
    $formulas = array_slice(array_keys($formulas), 0, 5);
    //echo '<ul class="list-group">';
    echo '<ol >';
    foreach ($formulas as $value) {
        //echo '<li class="list-group-item">';
开发者ID:sdgdsffdsfff,项目名称:LOD,代码行数:31,代码来源:qa_symptom.php


示例6: get_map_values

function get_map_values($conn, $map, $name, $type, $host_types)
{
    $r_value_max = -1;
    $v_value_max = -1;
    $a_value_max = -1;
    $r_value_aux = -1;
    $v_value_aux = -1;
    $a_value_aux = -1;
    $sensor = '';
    $ips = $name;
    $in_assets = 0;
    list($map_array, $obj_map) = get_map_objects($conn, $map);
    foreach ($obj_map as $object) {
        list($name, $sensor, $type, $ips, $in_assets) = get_assets($conn, $object['type_name'], $object['type'], $host_types);
        list($r_value_aux, $v_value_aux, $a_value_aux) = get_values($conn, $host_types, $object['type'], $name, TRUE);
        if ($r_value_aux > $r_value_max) {
            $r_value_max = $r_value_aux;
        }
        if ($v_value_aux > $v_value_max) {
            $v_value_max = $v_value_aux;
        }
        if ($a_value_aux > $a_value_max) {
            $a_value_max = $a_value_aux;
        }
    }
    $r_value = get_value_by_digit($r_value_max);
    $v_value = get_value_by_digit($v_value_max);
    $a_value = get_value_by_digit($a_value_max);
    return array($r_value, $v_value, $a_value, $name, $sensor, $type, $ips, $in_assets);
}
开发者ID:jackpf,项目名称:ossim-arc,代码行数:30,代码来源:riskmaps_functions.php


示例7: get_values

<?php

$poll_values = get_values($current_poll);
$category = ucwords(str_replace("_", " ", $current_poll));
$column_names = get_column_names($current_poll);
echo "<h2 class=\"center top-spacer_20\">" . format_poll_header($current_poll, $category) . "</h2>\n\n    <form action=\"yearendpoll.php\" method=\"post\" name=\"year_end_" . $current_poll . "\" class=\"form-default\">\n    <fieldset>\n<div class=\"control-group\">\n<div class=\"controls\">\n";
for ($i = 1; $i <= mysql_num_rows($poll_values); $i++) {
    $info = mysql_fetch_assoc($poll_values);
    echo "<label for=\"" . $info['id'] . "\" class=\"half\"><input type=\"checkbox\" name=\"year_end_votes[]\" id=\"" . $info['id'] . "\" value=\"" . $info['id'] . "\">";
    for ($c = 1; $c <= count($column_names) - 2; $c++) {
        echo "<span>" . $info[$column_names[$c]];
        if ($column_names[$c + 1] != 'votes') {
            echo " - ";
        }
    }
    echo "\n</span>\n</label>\n";
}
echo "</div>\n<div class=\"control-group top-spacer_20\">\n\n    <div class=\"controls\">\n\n    <input type=\"checkbox\" id=\"song_write_in\"> <input type=\"text\" disabled=\"disabled\" class=\"input-xl\" id=\"write_in_value\" name=\"write_in_value\">\n\n    <div class=\"form-other\">Other (please specify)</div>\n</div>\n</div>\n\n    </div>\n<div class=\"form-actions\">\n<button class=\"btn-info disabled\" type=\"submit\" disabled=\"disabled\" id=\"vote\">Pick " . max_picks_for($current_poll) . " more!</button>\n\n    <input type=\"hidden\" name=\"poll\" value=" . $current_poll . ">\n</div>\n\n    </form>\n</div>\n</fieldset>";
开发者ID:ynotradio,项目名称:site,代码行数:18,代码来源:_year_end_poll_vote.php


示例8: session_start

<?php

session_start();
// Initialize Session data
ob_start();
// Turn on output buffering
include_once "ewcfg8.php";
include_once "ewmysql8.php";
include_once "phpfn8.php";
include_once "userfn8.php";
if ($_POST['a_addopt']) {
    $fields = get_fields();
    $values = get_values();
    insert_data($fields, $values);
}
function get_fields()
{
    $fields = array();
    foreach ($_POST as $field => $value) {
        $field = str_replace("x_", "", $field);
        array_push($fields, $field);
    }
    return $fields;
}
function get_values()
{
    $values = array();
    foreach ($_POST as $field => $value) {
        array_push($values, $value);
    }
    return $values;
开发者ID:Razinsky,项目名称:echaude-com,代码行数:31,代码来源:dialogFunctions.php


示例9: overall_header

    overall_header($lang['int_integration'], $lang['int_integration'], 'main');
    $admin_tmpl['integration'] = true;
} elseif (isset($_GET['action']) && $_GET['action'] == 'wizard') {
    $auth = user_auth('12');
    overall_header($lang['wiz_wizard'], $lang['wiz_wizard'], 'main');
    $admin_tmpl['wizard'] = true;
    $mn_users = load_basic_data('users');
    $mn_categories = load_basic_data('categories');
    $t_groups = array();
    $t_groups = load_basic_data('templates_groups');
    if (file_exists(MN_ROOT . $file['posts'])) {
        $p_file = file(MN_ROOT . $file['posts']);
        array_shift($p_file);
        $authors = array();
        foreach ($p_file as $p_line) {
            $post = get_values('posts', $p_line, false);
            $authors[] = $post['author'];
        }
        $authors = array_unique($authors);
    } else {
        $authors = array();
    }
} elseif (isset($_POST['action']) && $_POST['action'] == 'wizard') {
    $auth = user_auth('12');
    $wizard_code = '';
    if (!empty($_POST['count']) && is_numeric($_POST['count'])) {
        $wizard_code .= '$mn_count = ' . $_POST['count'] . ';' . "\n  ";
    }
    if (isset($_POST['categories']) && !empty($_POST['categories'])) {
        sort($_POST['categories']);
        $categories = trim(implode(',', $_POST['categories']), ',');
开发者ID:deanbrabec,项目名称:news_slider,代码行数:31,代码来源:mn-tools.php


示例10: get_snapshot


//.........这里部分代码省略.........
        $tagss_fields = explode(";", $tags_fields);
        sort($tagss_fields);
        $fields = array_unique(array_merge($metadatas_fields, $usess_fields, $tagss_fields));
        if (!in_array("hasRepurposingContext", $fields)) {
            $fields[] = "hasRepurposingContext";
        }
        //in order to return the "repurposedFrom" part as well, used for Replinks
        $finalresults = array();
        foreach ($fields as $field) {
            if ($field == "seeAlso" || $field == "type") {
                continue;
            }
            //the first one is included by default, the second causes error
            $address = $address_base . "mdc:{$field}";
            //I can't put all the fields together right now, since it will return only the resources that have all those fields, so I do a query field after field and then I make the union of the results
            $rdf_info = connectToSesame($address);
            $medParser = new MeducatorParser($rdf_info, true);
            $results = $medParser->results;
            foreach ($results as $key => $result) {
                if (array_key_exists($key, $finalresults)) {
                    $finalresults[$key] = array_merge($finalresults[$key], $result);
                } else {
                    $finalresults[$key] = $result;
                }
            }
        }
        //$b=print_r($finalresults,true);
        //file_put_contents("bbbb",$b);
        if (count($finalresults) > 0) {
            //we have to create a LearningResource object for each result and insert metadata into it
            foreach ($finalresults as $id => $data) {
                $seeAlso = $data["seeAlso"];
                if (is_array($seeAlso)) {
                    $values = array_unique(get_values($seeAlso, "seeAlso"));
                    foreach ($values as $value) {
                        if (strrchr($value, "#") != FALSE) {
                            $guid = substr(strrchr($value, "#"), 1);
                            break;
                        }
                    }
                } else {
                    $guid = substr(strrchr($seeAlso, "#"), 1);
                }
                $entity = get_entity($guid);
                //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                if (empty($entity)) {
                    continue;
                }
                //this is a temporary check from the database since we still need it in order not to have problem with the normal search that still takes info from it
                //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                $lr[$guid] = new LearningResource();
                $lr[$guid]->setName($entity->get('name'));
                $lr[$guid]->setUsername($entity->get('username'));
                $lr[$guid]->setGUID($guid);
                //we extract the important part from each field and insert in the $lr[$guid] object
                foreach ($fields as $field) {
                    $notused = array("type", "hasRepurposingContext");
                    if (in_array($field, $notused)) {
                        continue;
                    }
                    //"type" is more difficult to handle, anyway we don't need it; "hasRepurposingContext" is used later for Replinks
                    $value = "";
                    if (!is_array($data[$field])) {
                        $value = $data[$field];
                    } elseif (isset($data[$field]["name"])) {
                        $value = $data[$field]["name"];
开发者ID:portokallidis,项目名称:Metamorphosis-Meducator,代码行数:67,代码来源:procedures_retrieve.php


示例11: file

} else {
    $admin_tmpl['form_add_posts'] = false;
    $admin_tmpl['form_posts_list'] = true;
    if (file_exists(MN_ROOT . $file['posts'])) {
        # read posts file
        $p_file = file(MN_ROOT . $file['posts']);
        $posts_result = '';
        $timestamps_all = array();
        array_shift($p_file);
        $p_file = mn_natcasesort($p_file);
        $p_file = array_reverse($p_file, true);
        $categories = load_basic_data('categories');
        $users = load_basic_data('users');
        # put posts to arrays - one array for IDs, one for timestamps
        foreach ($p_file as $p_line) {
            $temp_var = get_values('posts', $p_line, false);
            if ($auth != 1 && $temp_var['author'] != $_SESSION['mn_user_id']) {
                continue;
            }
            $temp_var['tags_array'] = !empty($temp_var['tags']) ? explode(',', trim($temp_var['tags'])) : array();
            $timestamps_all[$temp_var['timestamp']] = date('Y-m', $temp_var['timestamp']);
            if (isset($_GET['c']) && !empty($_GET['c']) && $temp_var['cat'] != $_GET['c']) {
                continue;
            }
            if (isset($_GET['d']) && !empty($_GET['d']) && date('Y-m', $temp_var['timestamp']) != $_GET['d']) {
                continue;
            }
            if (isset($_GET['a']) && !empty($_GET['a']) && $temp_var['author'] != $_GET['a']) {
                continue;
            }
            if (isset($_GET['s']) && !empty($_GET['s']) && $temp_var['status'] != $_GET['s']) {
开发者ID:deanbrabec,项目名称:news_slider,代码行数:31,代码来源:mn-posts.php


示例12: load_basic_data

$admin_tmpl['cats_main'] = true;
$categories = load_basic_data('categories');
if (file_exists($file['categories_order'])) {
    $categories_order = unserialize(file_get_contents($file['categories_order']));
} else {
    $categories_order = array();
    $i = 1;
    foreach ($categories as $id => $cname) {
        $categories_order[$i] = $id;
        $i++;
    }
    mn_put_contents($file['categories_order'], serialize($categories_order));
}
$posts_count = get_posts_count();
if (isset($_REQUEST['action']) && isset($_REQUEST['id'])) {
    $var = get_values('categories', $_REQUEST['id']);
}
if (isset($_GET['action']) && $_GET['action'] == 'ajaxcall') {
    if (isset($_GET['cat_name']) && !empty($_GET['cat_name']) && !in_array($_GET['cat_name'], $categories)) {
        if (file_exists($file['categories'])) {
            $cats_file = file($file['categories']);
            $cats_file_lines = '';
            foreach ($cats_file as $single_line) {
                $cat_data = explode(DELIMITER, $single_line);
                if (substr($cat_data[0], 0, 2) == '<?') {
                    $auto_increment_id = trim($cat_data[1]);
                } else {
                    $cats_file_lines .= $single_line;
                }
            }
        } else {
开发者ID:deanbrabec,项目名称:news_slider,代码行数:31,代码来源:mn-categories.php


示例13: dirname

include_once dirname(__FILE__) . "/../../config/environment.php";
require_library('ResourceDataObjectElementsSetting');
$timestart = time_elapsed();
$resource_id = 20;
$resource_path = "http://www.pensoft.net/J_FILES/EoLData/ZooKeys.xml";
$result = $GLOBALS['db_connection']->select("SELECT accesspoint_url FROM resources WHERE id={$resource_id}");
if ($result && ($row = $result->fetch_row())) {
    $resource_path_from_registry = $row[0];
    if ($resource_path != $resource_path_from_registry && $resource_path_from_registry != '') {
        $resource_path = $resource_path_from_registry;
    }
}
echo "\n processing resource: {$resource_path} \n";
if ($local_path = Functions::save_remote_file_to_local($resource_path, array('download_wait_time' => 1000000, 'timeout' => 600, 'download_attempts' => 5))) {
    $func = new ResourceDataObjectElementsSetting($resource_id, $local_path);
    $dataObjects = get_values($local_path);
    $xml = remove_elements($local_path);
    $func->save_resource_document($xml);
    $resource_path = CONTENT_RESOURCE_LOCAL_PATH . $resource_id . ".xml";
    $xml = fill_up_values($resource_path, $dataObjects);
    $func->save_resource_document($xml);
    Functions::set_resource_status_to_force_harvest($resource_id);
    // remove tmp file
    unlink($local_path);
    debug("\n temporary file removed: [{$local_path}]");
}
$elapsed_time_sec = time_elapsed() - $timestart;
echo "\n";
echo "elapsed time = {$elapsed_time_sec} seconds             \n";
echo "elapsed time = " . $elapsed_time_sec / 60 . " minutes  \n";
echo "elapsed time = " . $elapsed_time_sec / 60 / 60 . " hours \n";
开发者ID:eliagbayani,项目名称:maps_test,代码行数:31,代码来源:20.php


示例14: substr

        $temperatures_connect = $temperatures_connect . ',' . $temperatures[$i];
        $ozones_connect = $ozones_connect . ',' . $ozones[$i];
        $no2s_connect = $no2s_connect . ',' . $no2s[$i];
        $humiditys_connect = $humiditys_connect . ',' . $humiditys[$i];
        $carbon_monoxide_connect = $carbon_monoxide_connect . ',' . $carbon_monoxide[$i];
    }
    //delete the first sign, here a comma.
    $names_connect = substr($names_connect, 1);
    $dates_connect = substr($dates_connect, 1);
    $times_connect = substr($times_connect, 1);
    $temperatures_connect = substr($temperatures_connect, 1);
    $ozones_connect = substr($ozones_connect, 1);
    $no2s_connect = substr($no2s_connect, 1);
    $humiditys_connect = substr($humiditys_connect, 1);
    $carbon_monoxide_connect = substr($carbon_monoxide_connect, 1);
    //echo $names_connect;
    //$all_values is an array containing a string for every parameter as mentioned above.
    $all_values = array();
    array_push($all_values, $names_connect);
    array_push($all_values, $dates_connect);
    array_push($all_values, $times_connect);
    array_push($all_values, $temperatures_connect);
    array_push($all_values, $ozones_connect);
    array_push($all_values, $no2s_connect);
    array_push($all_values, $humiditys_connect);
    array_push($all_values, $carbon_monoxide_connect);
    return $all_values;
}
$dies = get_id_coord();
$test = get_values($dies);
开发者ID:nvh3010,项目名称:Semvis-Air,代码行数:30,代码来源:pg_value_functions.php


示例15: friendly_url

        $galleries_file_content .= $auto_increment_id . DELIMITER . $_GET['gallery_name'] . DELIMITER . friendly_url($_GET['gallery_name']) . "\n";
        if (mn_put_contents($file['galleries'], $galleries_file_content)) {
            echo '<li><input type="checkbox" name="galleries[]" id="gallery-' . $auto_increment_id . '" class="input-gallery" value="' . $auto_increment_id . '" checked="checked" /> <label for="gallery-' . $auto_increment_id . '">' . substr($_GET['gallery_name'], 0, 20) . '</label></li>';
            die;
        } else {
            echo 'Error MN#44: cannot write to mn-galleries.php file!';
        }
        die;
    } else {
        echo '';
    }
    die;
}
$auth = user_auth('5');
if (isset($_REQUEST['action']) && isset($_REQUEST['id'])) {
    $var = get_values('galleries', $_REQUEST['id']);
}
if (isset($_POST['action']) && $_POST['action'] == 'add') {
    if (!empty($_POST['gallery_name'])) {
        if (file_exists($file['galleries'])) {
            $galleries_file = file($file['galleries']);
            $galleries_file_lines = '';
            foreach ($galleries_file as $single_line) {
                $gallery_data = explode(DELIMITER, $single_line);
                if (substr($gallery_data[0], 0, 2) == '<?') {
                    $auto_increment_id = trim($gallery_data[1]);
                } else {
                    $galleries_file_lines .= $single_line;
                }
            }
        } else {
开发者ID:deanbrabec,项目名称:news_slider,代码行数:31,代码来源:mn-galleries.php


示例16: mb_strtolower

        <span class="help"><?php 
    echo $lang['users_avatar_help'];
    ?>
        <span class="simurl" onclick="document.getElementById('avatar-info').style.display = 'none'; document.getElementById('avatar-controls').style.display = 'block'; return false;">(<?php 
    echo mb_strtolower($lang['uni_cancel'], 'UTF-8');
    ?>
)</span></span>
      </div>
    </form>
  </body>
</html>

<?php 
    die;
} else {
    $var = get_values('users', $_SESSION['mn_user_id']);
    $bday = explode('-', $var['birthdate']);
    $var['bday_day'] = @$bday[2];
    $var['bday_month'] = @$bday[1];
    $var['bday_year'] = @$bday[0];
    if (isset($_GET['back']) && $_GET['back'] == 'edited') {
        overall_header($lang['users_profile'], $lang['users_msg_profile_edited'], 'ok');
    } else {
        overall_header($lang['users_profile'], $lang['users_profile'] . ': ' . $_SESSION['mn_user_name'], 'main');
    }
}
?>

  <form action="./mn-profile.php" method="post" id="profile-edit" class="profile-form">
  
    <fieldset>
开发者ID:deanbrabec,项目名称:news_slider,代码行数:31,代码来源:mn-profile.php


示例17: elseif

                 $c_aprocess++;
             } elseif ($c_data[3] == 0) {
                 continue;
             }
             $comments[] .= $c_line;
         }
     }
 }
 if (!empty($comments)) {
     $comments = mn_natcasesort($comments);
     $comments = array_reverse($comments);
     $comments_count = count($comments);
     $j_max = isset($widget_counts[1]) && is_numeric($widget_counts[1]) ? $widget_counts[1] : 5;
     $j_max = $comments_count < $j_max ? $comments_count : $j_max;
     for ($j = 0; $j < $j_max; $j++) {
         $c = get_values('comments', $comments[$j], false);
         $cp = get_post_data($c['post_id']);
         $c['timestamp'] = $c['timestamp'] + $conf['time_adj'] * 3600;
         if (mb_strlen($cp['title']) > 16) {
             $tooltip = ' title="' . $cp['title'] . '"';
             $cp['title'] = mb_substr($cp['title'], 0, 15, 'utf-8') . '&hellip;';
         } else {
             $cp['title'];
             $tooltip = '';
         }
         if (isset($widget_counts[1]) && $widget_counts[1] == 'new' && ($c['timestamp'] < $_SESSION['mn_last_login'] || empty($_SESSION['mn_last_login']))) {
             continue;
         } else {
             $ua_info = get_useragent_info($c['user_agent']);
             $comments_result .= '<tr id="c' . $c['comment_id'] . '"><td class="c_author"><a href="./?p=' . $c['post_id'] . '#c-' . $c['comment_id'] . '">#</a> <strong>' . $c['author_name'] . '</strong><br />&nbsp;<span class="info hide comment_status"><a href="./?p=' . $c['post_id'] . '"' . $tooltip . '>' . $cp['title'] . '</a></span></td><td class="edit"><img src="./stuff/img/icons/information-gray.png" alt="" class="tooltip" title="<strong>' . $lang['uni_date'] . ':</strong> ' . date('d.m.Y H:i', $c['timestamp']) . '<br /><strong>' . $lang['comm_ip_address'] . ':</strong> ' . $c['ip_address'] . '<br /><strong>' . $lang['comm_host'] . ':</strong> ' . $c['host'] . '<br /><strong>' . $lang['comm_user_browser'] . ':</strong> ' . $ua_info['browser'] . '<br /><strong>' . $lang['comm_user_os'] . ':</strong> ' . $ua_info['os'] . '" /><p><a href="./mn-comments.php?action=edit&amp;post=' . $c['post_id'] . '&amp;id=' . $c['comment_id'] . '" class="tooltip" title="' . $lang['uni_edit'] . '"><img src="./stuff/img/icons/edit-gray.png" alt="" /></a></p></td><td class="edit"><a href="./mn-comments.php?action=reply&amp;post=' . $c['post_id'] . '&amp;id=' . $c['comment_id'] . '" class="fancy tooltip" title="' . $lang['comm_reply'] . '"><img src="./stuff/img/icons/reply-gray.png" alt="" /></a><p><a href="./mn-comments.php?a=m&amp;s=0&amp;f=' . $c['post_id'] . '&amp;c=' . $c['comment_id'] . '&amp;t=' . $_SESSION['mn_token'] . '&amp;from=index" class="ajaxcall tooltip" title="' . $lang['uni_delete'] . '"><img src="./stuff/img/icons/cross-gray.png" alt="" /></a></p></td><td><div class="comment-text">' . comment_format($c['comment_text']) . '</div></td></tr>';
         }
开发者ID:deanbrabec,项目名称:news_slider,代码行数:31,代码来源:index.php


示例18: clone_object

function clone_object($object)
{
    $values = get_values($object);
    return build_object(get_class($object), $values);
}
开发者ID:postalservice14,项目名称:yadm,代码行数:5,代码来源:functions.php


示例19: array

                } else {
                    $error_message = $lang['users_msg_email_check'];
                }
            } else {
                $error_message = $lang['users_msg_forbidden_chars'];
            }
        } else {
            $error_message = $lang['users_msg_values_length'];
        }
    } else {
        $error_message = $lang['users_msg_empty_values'];
    }
    $var = array('user_id' => $_POST['id'], 'username' => $_POST['username'], 'email' => $_POST['email'], 'group' => $_POST['group'], 'status' => $_POST['status'], 'nickname' => $_POST['nickname'], 'gender' => $_POST['gender'], 'bday_day' => $_POST['bday_day'], 'bday_month' => $_POST['bday_month'], 'bday_year' => $_POST['bday_year'], 'location' => $_POST['location'], 'www' => $_POST['www'], 'icq' => $_POST['icq'], 'msn' => $_POST['msn'], 'skype' => $_POST['skype'], 'jabber' => $_POST['jabber'], 'about' => check_text($_POST['about']));
    overall_header($lang['users_add_new_user'] . ' &raquo; ' . $var['username'], $error_message, 'error');
} elseif (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['id']) && $_GET['id'] != 1) {
    $var = get_values('users', $_GET['id']);
    $posts_count = get_posts_count('users');
    $admin_tmpl['user_delete'] = true;
    $admin_tmpl['form_users'] = false;
} elseif (isset($_POST['action']) && $_POST['action'] == 'delete' && isset($_POST['id']) && $_POST['id'] != 1) {
    $u_file = file($file['users']);
    $u_content = '';
    foreach ($u_file as $u_line) {
        $u_data = explode(DELIMITER, $u_line);
        if ($u_data[0] == $_POST['id']) {
            continue;
        } else {
            $u_content .= $u_line;
        }
    }
    if (mn_put_contents($file['users'], $u_content)) {
开发者ID:deanbrabec,项目名称:news_slider,代码行数:31,代码来源:mn-users.php


示例20: print_indicator_content

function print_indicator_content($conn, $rs, $linked = 1)
{
    $host_types = array("host", "server", "sensor");
    // Linked to another map: loop by this map indicators
    if (preg_match("/view\\.php\\?map\\=(\\d+)/", $rs->fields['url'], $found)) {
        list($RiskValue, $VulnValue, $AvailValue, $v_ip, $a_ip, $name, $sensor, $type, $ips, $what, $in_assets) = get_map_values($conn, $found[1], $rs->fields["type_name"], $rs->fields["type"], $host_types);
    } else {
        // Asset Values
        list($name, $sensor, $type, $ips, $what, $in_assets) = get_assets($conn, $rs->fields["type_name"], $rs->fields["type"], $host_types);
        list($RiskValue, $VulnValue, $AvailValue, $v_ip, $a_ip, $r_ip) = get_values($conn, $host_types, $type, $name, $ips, false);
    }
    $gtype = $type == "net" ? "net" : "host";
    $ips = $type == "net" ? $ips : $name;
    $r_url = "../control_panel/show_image.php?ip=" . urlencode($type == "host_group" ? $r_ip : $name) . "&range=week&what=compromise&start=N-1Y&end=N&type={$gtype}&zoom=1&hmenu=Risk&smenu=Metrics";
    $v_url = "../vulnmeter/index.php?value=" . urlencode($type == "host_group" ? $v_ip : $ips) . "&type=hn&hmenu=Vulnerabilities&smenu=Vulnerabilities";
    $a_url = "../nagios/index.php?sensor=" . urlencode($sensor) . "&hmenu=Availability&smenu=Availability&nagios_link=" . urlencode("/cgi-bin/status.cgi?host=all");
    $size = $rs->fields["size"] > 0 ? $rs->fields["size"] : '';
    $icon = $rs->fields["icon"];
    if (preg_match("/\\#/", $icon)) {
        $aux = explode("#", $icon);
        $icon = $aux[0];
        $bgcolor = $aux[1];
    } else {
        $bgcolor = "transparent";
    }
    if ($linked == 0) {
        $url = "javascript:;";
    } else {
        if ($rs->fields["url"] == "REPORT") {
            $url = "../report/index.php?host=" . $ips;
        } else {
            $url = $rs->fields["url"] != '' ? $rs->fields["url"] : "javascript:;";
        }
    }
    if (!$in_assets) {
        $icon = "../pixmaps/marker--exclamation.png";
        $size = "16";
    }
    $name = mb_detect_encoding($rs->fields["name"] . " ", 'UTF-8,ISO-8859-1') == 'UTF-8' ? $rs->fields["name"] : mb_convert_encoding($rs->fields["name"], 'UTF-8', 'ISO-8859-1');
    ?>
		
		<table width="100%" border='0' cellspacing='0' cellpadding='1' style="background-color:<?php 
    echo $bgcolor;
    ?>
">
		<tr>
			<td colspan='2' align='center'>
				<a href="<?php 
    echo $url;
    ?>
" class="ne"><i><?php 
    echo $name;
    ?>
</i></a>
			</td>
		</tr>
		
		<tr>
			<td>
				<a href="<?php 
    echo $url;
    ?>
"><img src="<?php 
    echo $icon;
    ?>
" width="<?php 
    echo $size;
    ?>
" border='0'/></a>
			</td>
			<td>
				<table border='0' cellspacing='0' cellpadding='1'>
					<tr>
						<td><a class="ne11" target="main" href="<?php 
    echo $r_url;
    ?>
">R</a></td>
						<td><a class="ne11" target="main" href="<?php 
    echo $v_url;
    ?>
">V</a></td>
						<td><a class="ne11" target="main" href="<?php 
    echo $a_url;
    ?>
">A</a></td>
					</tr>
					<tr>
						<td><img src="images/<?php 
    echo $RiskValue;
    ?>
.gif" border='0'/></td>
						<td><img src="images/<?php 
    echo $VulnValue;
    ?>
.gif" border='0'/></td>
						<td><img src="images/<?php 
    echo $AvailValue;
    ?>
.gif" border='0'/></td>
					</tr>
//.........这里部分代码省略.........
开发者ID:jhbsz,项目名称:ossimTest,代码行数:101,代码来源:riskmaps_functions.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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