本文整理汇总了PHP中getInfo函数的典型用法代码示例。如果您正苦于以下问题:PHP getInfo函数的具体用法?PHP getInfo怎么用?PHP getInfo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getInfo函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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> {$apelido}</h4>";
echo "<p class='list-group-item-text'>" . $descricao . "</p>";
echo "</a>";
}
echo "</div>";
}
示例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);
}
示例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>";
}
示例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;
}
}
示例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: Updates@TKNDMobile.com';
mail($emailFor, $emailSubject, $emailMessage, $emailHeaders);
}
示例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");
}
示例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;
}
示例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'])) {
示例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");
示例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>
示例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 />";
示例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");
}
示例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");
示例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>";
}
示例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");