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

PHP getInfo函数代码示例

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

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



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

示例1: exibeVetor

function exibeVetor($array)
{
    echo "<div class='list-group'>";
    $caminho = "";
    $classe = "";
    $apelido = "";
    $descricao = "";
    $irPara = "";
    for ($i = 0; $i < count($array); $i++) {
        $projeto = getInfo($array[$i]['caminho']);
        if ($projeto != null) {
            $caminho = $array[$i]['caminho'];
            $classe = property_exists($projeto, "classe") ? $projeto->classe : $array[$i]['classe'];
            $apelido = property_exists($projeto, "nome") ? $projeto->nome : ucwords(str_replace("_", " ", $array[$i]['projeto']));
            $descricao = property_exists($projeto, "descricao") ? $projeto->descricao : $caminho;
            $irPara = property_exists($projeto, "redirecionarPara") ? $projeto->redirecionarPara : $caminho;
        } else {
            $caminho = $array[$i]['caminho'];
            $classe = $array[$i]['classe'];
            $apelido = ucwords(str_replace("_", " ", str_replace("-", " ", $array[$i]['projeto'])));
            $descricao = $caminho;
            $irPara = $caminho;
        }
        echo "<a href='{$irPara}' class='list-group-item'>";
        echo "<h4 class='list-group-item-heading'><span class='glyphicon {$classe}'></span>&nbsp;{$apelido}</h4>";
        echo "<p class='list-group-item-text'>" . $descricao . "</p>";
        echo "</a>";
    }
    echo "</div>";
}
开发者ID:arthurHosang,项目名称:file_explorer,代码行数:30,代码来源:lista_complta.php


示例2: ajaxGetItem

 public function ajaxGetItem()
 {
     if (!isset($_REQUEST['url'])) {
         $this->ajaxReturn(0, '未传入商品链接');
     }
     $info = getInfo($_REQUEST['url']);
     $info['shop_type'] = 'B';
     $info['orig_id'] = '';
     $info['coupon_rate'] = intval($info['price'] / $info['coupon_price']) * 1000;
     $this->ajaxReturn(1, '', $info);
 }
开发者ID:leamiko,项目名称:9k9,代码行数:11,代码来源:baomingAction.class.php


示例3: main

function main()
{
    require_once "../../config.php";
    $q = isset($_GET["q"]) ? $_GET["q"] : '';
    $site = isset($_GET["site"]) ? $_GET["site"] : '';
    $column2 = "class=\"header filesize\"><a href=#>Size ";
    $column3 = "Category";
    if ($site == 1) {
        $results = nzbsu($q, $saburl, $sabapikey, $nzbsuapi, $nzbsudl);
    } elseif ($site == 2) {
        $results = nzbmatrix($q, $nzbusername, $nzbapi, $saburl, $sabapikey);
    } elseif ($site == 3) {
        $column2 = "><a href=#>Rating ";
        $column3 = "Year";
        $results = tmdb($q, $cp_url);
    } elseif (!empty($_GET['id'])) {
        if (intval($_GET['id']) != 0) {
            getInfo($_GET['id'], $cp_url);
            return false;
        } else {
            getCP($id, $cp_url);
            return false;
        }
    } else {
        $_GET['type'] = $preferredCategories;
        switch ($preferredSearch) {
            case '0':
                //$_GET['type'] = '';
                //$results = nzbmatrix($q, $nzbusername, $nzbapi,$saburl,$sabapikey);
                //$results .= nzbsu($q, $saburl,$sabapikey, $nzbsuapi, $nzbsudl);
                $results = "<h1>Need to choose default Site and Category</h1>";
                break;
            case '1':
                $results = nzbmatrix($q, $nzbusername, $nzbapi, $saburl, $sabapikey);
                break;
            case '2':
                $results = nzbsu($q, $saburl, $sabapikey, $nzbsuapi, $nzbsudl);
                break;
            case '3':
                $column2 = "><a href=#>Rating ";
                $column3 = "Year";
                $results = tmdb($q, $cp_url);
                break;
        }
    }
    $tablebody = "<div id='wSearch'>\n\t\t\t\t\t<table id='search-Table' class='tablesorter' width='100%' style='table-layout:fixed;' cellspacing='0'>\n\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th style='width:5%;'></th>\n\t\t\t\t\t\t\t\t<th style='width:60%;' onclick=\"setTimeout('updateRows()',10);\"><a href=#>Name <img src=\"./media/arrow.png\"/></a></th>\n\t\t\t\t\t\t\t\t<th style='width:15%;'onclick=\"setTimeout('updateRows()',10);\"{$column2}<img src=\"./media/arrow.png\"/></a></th>\n\t\t\t\t\t\t\t\t<th style='width:20%;' onclick=\"setTimeout('updateRows()',10);\"><a href=#>{$column3} <img src=\"./media/arrow.png\"/></a></th>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t<tbody>";
    echo !empty($results) ? $tablebody . $results . "</tbody></table></div>" : "<h1>Nothing found!</h1>";
}
开发者ID:rodneyshupe,项目名称:mediafrontpage,代码行数:48,代码来源:query.php


示例4: catch_url

function catch_url($k)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "http://www.xiami.com/search?key=" . $k);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $output = curl_exec($ch);
    curl_close($ch);
    $regs = array();
    //<a target="_blank" href="http://www.xiami.com/song/1773101670?spm=a1z1s.3521865.23309997.1.cT77HE" title="Palpitation!" data-spm-anchor-id="a1z1s.3521865.23309997.1">Palpitation!</a>
    preg_match_all("/href=\"http:\\/\\/www.xiami.com\\/song\\/(\\d+)/is", $output, $regs);
    $ids = $regs[1];
    $index = 0;
    foreach ($ids as $item) {
        $xml_url = "http://www.xiami.com/widget/xml-single/uid/0/sid/" . $item;
        $info = getInfo($xml_url);
        $location = getLocation($info->location);
        ?>

<audio controls="controls">
  <source src="<?php 
        echo $location;
        ?>
" type="audio/mpeg" />
Your browser does not support the audio element.
</audio>
<span><?php 
        echo $info->song_name;
        ?>
</span><img src="<?php 
        echo $info->album_cover;
        ?>
"/></br>
<input type="hidden" value="<?php 
        echo $location;
        ?>
"/>
<span style="display:none;">src:<?php 
        echo $location;
        ?>
</span><br/>
<?php 
        echo '<span><input type="button" onclick="mpg(' . $index . ')" value="mpg it"/></span><br/>';
        $index += 1;
    }
}
开发者ID:surevision,项目名称:node_mpg123_pi,代码行数:46,代码来源:xmu.php


示例5: sendNotification

function sendNotification($userEmail, $messageSubject, $messageContent)
{
    $userName = getInfo($userEmail, 'portalName');
    $emailFor = $userEmail;
    $emailSubject = $messageSubject;
    $emailMessage = '
		<html>
		<body>
		<h4>Hi ' . $userName . ',</h4>
		<p>' . $messageContent . '</p>
		</body>
		</html>
	';
    $emailHeaders = 'MIME-Version: 1.0' . "\r\n";
    $emailHeaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $emailHeaders .= 'From: [email protected]';
    mail($emailFor, $emailSubject, $emailMessage, $emailHeaders);
}
开发者ID:NoahK200,项目名称:Web-Projects,代码行数:18,代码来源:mail.php


示例6: main

function main()
{
    if (isset($_REQUEST['type'])) {
        $type = $_REQUEST['type'];
        if ($type == "info") {
            return getInfo();
        } else {
            if ($type == "video") {
                return getVideo();
            } else {
                if ($type == "danmaku") {
                    return getDanmaku();
                }
            }
        }
    }
    make_error(400, "Invaild type");
}
开发者ID:zyzsdy,项目名称:Blodh,代码行数:18,代码来源:blodhapi.php


示例7: getInfo

function getInfo($org, $id)
{
    $ans = array();
    if ($id == $org['id']) {
        $ans = array("funcion" => $org['funcion'], "titulo" => $org['titulo'], "glosa" => $org['glosa'], "url" => $org['url']);
        return $ans;
    }
    $hijos = $org['hijos'];
    if ($hijos != array()) {
        foreach ($hijos as $X) {
            $seq = getInfo($X, $id);
            if ($seq != array()) {
                $ans = $seq;
                break;
            }
        }
    }
    return $ans;
}
开发者ID:e-gob,项目名称:GobiernoTransparente,代码行数:19,代码来源:common-org.php


示例8: header

<?php

require 'config.php';
header('Content-Type: application/json,charset=utf-8');
$action = $_REQUEST['action'];
if ($action == 'getquota') {
    getquota($_REQUEST['rank']);
} else {
    if ($action == 'getinfo') {
        getInfo($_REQUEST['fbid']);
    } else {
        if ($action == 'getall') {
            getAll();
        } else {
            if ($action == 'random') {
                random($_REQUEST['rank'], $_REQUEST['fbid']);
            }
        }
    }
}
/*$json=json_decode($jsonstr);
//print_r($json);
foreach ($json as $user) {
  $result = $conn->query("update member set response='{$user->rsvp_status}' where fbid='{$user->id}'");
    //mysqli_stmt_execute($stmt);
}*/
function getInfo($fbid)
{
    //echo $conn;
    global $conn;
    if (isset($_REQUEST['token'])) {
开发者ID:uttapong,项目名称:tobdongcolor,代码行数:31,代码来源:lib.php


示例9: pageft

include_once "action/smarty_inc.php";
include_once "action/lang.class.php";
include_once "action/mysql.class.php";
include_once "action/public_info.php";
if ($currlang == "en") {
    include_once "action/page.class.en.php";
} else {
    include_once "action/page.class.php";
}
$where = " where remark='Honour' and seq is null ";
//分页
$pagesize = 12;
//一页显示多少条
$queryTotal = $db->query("select id from cp " . $where);
$total = $db->db_num_rows();
pageft($total, $pagesize);
if ($firstcount < 0) {
    $firstcount = 0;
}
//显示分页的内容
$smarty->assign("page", $pagenav);
//产品
$certRow = getRows("cp " . $where . "order by create_date desc limit {$firstcount}, {$displaypg} ", $db, "id,cp_info_type_" . $currlang . " as cert_name,path");
$smarty->assign("certRows", $certRow);
//联系我们ContactUs
$contactusInfo = getInfo("cp where remark='ContactUs'", $db, "cp_info_value_" . $currlang . " as info");
$smarty->assign("contactUsInfo", html_entity_decode($contactusInfo[info]));
$aboutUsInfoAll = getInfo("cp where remark='AboutUs'", $db, "cp_info_value_" . $currlang . " as info");
$smarty->assign("AboutUsInfoAll", html_entity_decode($aboutUsInfoAll[info]));
$smarty->display("cert.html");
开发者ID:soross,项目名称:myteashop,代码行数:30,代码来源:cert.php


示例10: setInfo

    if (!empty($_REQUEST['beachthumbs'])) {
        setInfo("beachthumbs", $_REQUEST['beachthumbs']);
    }
    if (!empty($_REQUEST['watermark'])) {
        setInfo("watermark", $_REQUEST['watermark']);
    }
    if (!empty($_REQUEST['contacttext'])) {
        setInfo("contact", $_REQUEST['contacttext']);
    }
    echo '<form action="admin.php" method="post" name="admin">';
    echo '<br /><table cellspacing="0" cellpadding="0" border="0" align="center">';
    echo '<tr><td>';
    echo '<table cellspacing="8" cellpadding="0" border="0" align="center">';
    echo '<tr><td colspan="2" align="center" style="font-size: 36px; font-family: Arial;">Admin</td></tr>';
    echo '<tr><td align="right">Thumbnails per page (Wedding Gallery)</td><td><input type="text" name="weddingthumbs" value="' . getInfo("weddingthumbs") . '"></td></tr>';
    echo '<tr><td align="right">Thumbnails per page (Creative Gallery)</td><td><input type="text" name="creativethumbs" value="' . getInfo("creativethumbs") . '"></td></tr>';
    echo '<tr><td align="right">Thumbnails per page (Beach Gallery)</td><td><input type="text" name="beachthumbs" value="' . getInfo("beachthumbs") . '"></td></tr>';
    echo '<tr><td align="right">Watermark Text</td><td><input type="text" name="watermark" value="' . getInfo("watermark") . '"></td></tr>';
    echo '<tr><td colspan="2" align="center">Contact Info</td></tr>';
    echo '<tr><td colspan="2" align="center"><textarea cols="40" rows="8" name="contacttext">' . getInfo("contact") . '</textarea></td></tr>';
    echo '<tr><td colspan="2" align="center"><input type="submit" value="Save Changes!"></td></tr>';
    echo '<tr><td colspan="2" align="center" style="color: #FF0000">If you want to add or delete pictures, click one of the navigation links on top.</td></tr>';
    echo '</table>';
    echo '</td></tr>';
    echo '</table>';
    echo '</form>';
}
?>

</body>
</html>
开发者ID:TheWandererLee,项目名称:Git-Projects,代码行数:31,代码来源:admin.php


示例11: getInfo

			<td>(channel ids can be found in URLs, e.g. https://www.youtube.com/channel/<b>UCiDJtJKMICpb9B1qf7qjEOA</b>)</td>
		</tr>
		<tr>
			<td colspan="3"><hr /></td>
		</tr>
		<tr>
			<td colspan="3"><input type="submit" /></td>
		</tr>
	</form>
</table>


<?php 
if (isset($_GET["hash"])) {
    $hash = $_GET["hash"];
    getInfo();
}
function getInfo()
{
    global $hash, $apikey;
    $restquery = "https://www.googleapis.com/youtube/v3/channels?part=brandingSettings,status,id,snippet,contentDetails,contentOwnerDetails,statistics,topicDetails,invideoPromotion&id=" . $hash . "&key=" . $apikey;
    // example
    //$hash = "LLP2X3cVGXP0r56gOGhiRDlA";
    //$restquery = "https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&playlistId=".$hash."&maxResults=50&key=".$apikey;
    $reply = doAPIRequest($restquery);
    /*
    echo '<pre>';
    print_r($reply->items[0]);
    echo '</pre>';
    */
    echo "<hr /><br />";
开发者ID:mnjstwins,项目名称:YouTube-Data-Tools,代码行数:31,代码来源:mod_channel_info.php


示例12: getInfo

<?php

if (!isset($_GET[certid]) || empty($_GET[certid])) {
    echo "<script>window.history.back();</script>";
    exit;
} else {
    include_once "action/smarty_inc.php";
    include_once "action/lang.class.php";
    include_once "action/mysql.class.php";
    include_once "action/public_info.php";
    //ÁªÏµÎÒÃÇContactUs
    $contactusInfo = getInfo("cp where remark='ContactUs'", $db, "cp_info_value_" . $currlang . " as info");
    $smarty->assign("contactUsInfo", html_entity_decode($contactusInfo[info]));
    $aboutUsInfoAll = getInfo("cp where remark='AboutUs'", $db, "cp_info_value_" . $currlang . " as info");
    $smarty->assign("AboutUsInfoAll", html_entity_decode($aboutUsInfoAll[info]));
    $certInfo = getInfo("cp where id='" . $_GET[certid] . "'", $db, "id,cp_info_type_" . $currlang . " as cert_name,cp_info_value_" . $currlang . " as cert_desc,path");
    $smarty->assign("certinfo", $certInfo);
    $smarty->display("certinfo.html");
}
开发者ID:soross,项目名称:myteashop,代码行数:19,代码来源:certinfo.php


示例13: getRows

<?php

include_once "action/smarty_inc.php";
include_once "action/lang.class.php";
include_once "action/mysql.class.php";
include_once "action/public_info.php";
//左边导航
$nav_left = getRows('cp where seq is not null ', $db, "cp_info_type_" . $currlang . " as type");
$smarty->assign("NavLeft", $nav_left);
//联系我们ContactUs
$contactusInfo = getInfo("cp where remark='ContactUs'", $db, "cp_info_value_" . $currlang . " as info");
$smarty->assign("contactUsInfo", html_entity_decode($contactusInfo[info]));
//信息
$historyInfoAll = getInfo("cp where remark='History'", $db, "cp_info_value_" . $currlang . " as info");
$smarty->assign("HistoryInfoAll", html_entity_decode($historyInfoAll[info]));
$smarty->display("history.html");
开发者ID:soross,项目名称:myteashop,代码行数:16,代码来源:history.php


示例14: writeResult

function writeResult($rn)
{
    print "<table border=1 cellspacing=0 cellpadding=5>";
    print "<caption>room{$rn}</caption>";
    print "<tr>";
    print "<th>item</th>";
    print "<th>price</th>";
    print "<th>winner</th>";
    print "<th>point</th>";
    print "</tr>";
    $usernum = getInfo("user_number");
    $lognum = getLognumber();
    #if(strlen(file_get_contents("log/$lognum/room$rn/result")) > 5) {
    #	return ;
    #}
    $wininfo = getWinnerInfo("log/{$lognum}/room{$rn}/transition", $rn);
    $lines = "";
    $vinfo = getValueInfo($lognum);
    #var_dump($vinfo);
    foreach ($wininfo as $info) {
        $pay = $info[3];
        $point = $vinfo[$info[0]][$info[1]] - $pay;
        print "(value:)" . $vinfo[$info[0]][$info[1]] . "-(pay:)" . $pay . "=" . $point . "<br>";
        print "<tr>";
        print "<td>{$info['1']}</td>";
        print "<td>{$info['2']}";
        print "<td>{$info['0']}</td>";
        print "<td>{$point}</td>";
        print "</tr>";
        $line = $info[1] . ",price=" . $info[2] . ",user=" . $info[0] . ",point=" . $point . "\n";
        $lines = $lines . $line;
        #push(@data,$item.",price=".$price.",user=".$username.",point=".$point);
    }
    if (strlen(file_get_contents("log/{$lognum}/room{$rn}/result")) < 5) {
        file_put_contents("log/{$lognum}/room{$rn}/result", $lines);
    }
    print "</table><br><br>";
}
开发者ID:zer0004,项目名称:auction_vcg,代码行数:38,代码来源:refresh.php


示例15: getRows

<?php

include_once "action/smarty_inc.php";
include_once "action/lang.class.php";
include_once "action/mysql.class.php";
include_once "action/public_info.php";
include_once "action/page.class.php";
//栏目类型--课程
$lmlist = getRows("boya_type where pid='2' order by seq", $db, " id,type_name as name,url,seq as typeid  ");
$smarty->assign("lmlist", $lmlist);
//联系我们
$infocn = getInfo(" boya_config where  comm_type='Contact'", $db);
$smarty->assign("infocn", $infocn);
$infocn_type = getInfo(" boya_type where  id='4'", $db);
$smarty->assign("infocn_type", $infocn_type);
$smarty->display("lxwm.html");
开发者ID:soross,项目名称:myteashop,代码行数:16,代码来源:lxwm.php


示例16: getInfo

<?php

include_once "action/smarty_inc.php";
include_once "action/lang.class.php";
include_once "action/mysql.class.php";
include_once "action/public_info.php";
//ÁªÏµÎÒÃÇContactUs
$contactusInfo = getInfo("cp where remark='ContactUs'", $db, "cp_info_value_" . $currlang . " as info");
$smarty->assign("contactUsInfo", html_entity_decode($contactusInfo[info]));
$wordInfoAll = getInfo("cp where remark='Word'", $db, "cp_info_value_" . $currlang . " as info");
$smarty->assign("WordInfoAll", html_entity_decode($wordInfoAll[info]));
$smarty->display("word.html");
开发者ID:soross,项目名称:myteashop,代码行数:12,代码来源:word.php


示例17: getRows

<?php

if (isset($_GET[task]) && "toUpdateryzz" == $_GET[task] && isset($_GET[ryzzid]) && !empty($_GET[ryzzid])) {
    require_once "action/checkAamsLogin.php";
    require_once "action/smarty_inc.php";
    require_once "action/mysql.class.php";
    $rows = getRows(" cp where remark='Honour' and seq is null ", $db);
    $smarty->assign("typeRows", $rows);
    $info = getInfo(" cp where remark='Honour' and seq is null and id='{$_GET['ryzzid']}'", $db);
    $smarty->assign("info", $info);
    $smarty->display("updateryzz.html");
} else {
    echo "<script>window.history.back();</script>";
    exit;
}
开发者ID:soross,项目名称:myteashop,代码行数:15,代码来源:updateryzz.php


示例18: empty

        $text = $day . '(' . $weekday . ')' . $peopleinfo;
        $text .= empty($row['roombalance']) ? '' : '(单房差:' . $row['roombalance'] . '元)';
        $monthli .= '<option value="' . $day . '" data-price="' . $adultprice . '" data-childprice="' . $childprice . '" data-oldprice="' . $oldprice . '" data-number="' . $row['number'] . '">' . $text . '</option>';
    }
    $out['monthli'] = $monthli;
    $out['jifen'] = $jifenarr;
    echo json_encode($out);
    exit;
}
//获取行程景点信息,暂用于百度地图信息
if ($dopost == 'getdayspots') {
    $sql = "select * from #@__line_dayspot where lineid='{$lineid}'";
    $arr = $dsql->getAll($sql);
    $out = array();
    foreach ($arr as $key => $row) {
        $spotinfo = getInfo('#@__spot', "where id='{$row['spotid']}' ", 'id,aid,content,litpic,title,lng,lat');
        $spotpic = getUploadFileUrl($spotinfo['litpic']);
        $linkurl = "/spots/show_" . $spotinfo['aid'] . ".html";
        $description = cutstr_html(strip_tags($spotinfo['content']), 100);
        //景点描述
        $outstr = "<div style='width:300px;'>";
        $outstr .= "<h4 style='margin:0 0 5px 0;padding:0.2em 0'><a href='" . $linkurl . "' target='_blank'>" . $spotinfo['title'] . "</a></h4>";
        $outstr .= "<img style='float:right;margin:4px' id='imgDemo' src='" . $spotpic . "' width='139' height='104' title='" . $spotinfo['title'] . "'/>";
        $outstr .= "<p style='margin:0;line-height:1.5;font-size:13px;text-indent:2em'>" . $description . "<a href='" . $linkurl . "' target='_blank'>[<font color='#01aec8'>查看详情</font>]</a></p>";
        $outstr .= "</div>";
        $out[$key][] = $spotinfo['lng'];
        $out[$key][] = $spotinfo['lat'];
        $out[$key][] = $outstr;
    }
    echo json_encode($out);
    exit;
开发者ID:lz1988,项目名称:stourwebcms,代码行数:31,代码来源:ajax.line.php


示例19: mysqli_connect

require_once ".auth.php";
//connect to database
$con = mysqli_connect($db['host'], $db['user'], $db['pass'], $db['name']);
// Check connection
if (mysqli_connect_errno()) {
    $error[] = "Failed to connect to MySQL";
    $debug[] = mysqli_connect_error();
}
$result2 = mysqli_query($con, "SELECT id,serverid FROM p2pool_instances");
while ($row2 = mysqli_fetch_array($result2)) {
    $p2pool_instance[$row2[1]][] = $row2[0];
}
$result3 = mysqli_query($con, "SELECT id,serverid FROM coind_instances");
while ($row3 = mysqli_fetch_array($result3)) {
    $coind_instance[$row3[1]][] = $row3[0];
}
$result = mysqli_query($con, "SELECT id,name,ip FROM servers");
$rows = 0;
echo "<table border=1><tr><td>#</td><td>Name</td><td>IP</td><td>uptime</td><td>Disk<br>Usage</td><td>Memory<br>Free</td><td>Load Avg.</td><td>Instances<td>FUNC.</td></tr>";
while ($row = mysqli_fetch_array($result)) {
    $server = getInfo($row['ip'], $sshkey_location);
    echo "<tr><td>" . $row['id'] . "</td><td>" . $row['name'] . "</td><td>" . $row['ip'] . "</td><td>" . $server['uptime'] . "</td><td>" . $server['disk_usage'] . "</td><td>" . $server['memory_free'] . "</td><td>" . $server['load'] . "</td><td>p2pool: " . count($p2pool_instance[$row['id']]) . "<br>coind: " . count($coind_instance[$row['id']]) . "</td><td>[<a href=servers.update.php?id=" . $row['id'] . ">Update</a>]</td></tr>";
    ++$rows;
}
if ($rows <= 0) {
    echo "<tr><td>0</td><td colspan=7><i>There are no servers currently being managed!</i></td><td><a href=servers.add.php>[ADD]</a></td></tr>";
} else {
    echo "<tr><td>+</td><td colspan=8><a href=servers.add.php>Add Server</a></td></tr>";
}
echo "</table>";
mysqli_close($con);
开发者ID:newmight2015,项目名称:p2pmine-manager,代码行数:31,代码来源:servers.php


示例20: passwd

function passwd($uid)
{
    $info = getInfo($uid);
    return $info['password'];
}
开发者ID:booko,项目名称:pasteque-server,代码行数:5,代码来源:module.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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