本文整理汇总了PHP中getBody函数的典型用法代码示例。如果您正苦于以下问题:PHP getBody函数的具体用法?PHP getBody怎么用?PHP getBody使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getBody函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: editall
function editall()
{
global $db;
$t_id = be("arr", "ids");
$ids = explode(",", $t_id);
foreach ($ids as $id) {
$t_flag = be("post", "t_flag" . $id);
$t_sort = be("post", "disp_order" . $id);
if (isN($t_sort)) {
$t_sort = $db->getOne("SELECT MAX(disp_order) FROM {pre}vod_topic_items") + 1;
}
if (!isNum($t_sort)) {
echo "信息填写不完整!";
exit;
}
$db->Update("{pre}vod_topic_items", array("flag", "disp_order"), array($t_flag, $t_sort), "id=" . $id);
}
updateCacheFile();
$topic_id = getBody(getReferer(), 'topic_id=', '&');
if (isN($topic_id)) {
$topic_id = getBodys(getReferer(), 'topic_id=');
}
if (!isN($topic_id)) {
replaceTopRecommend($topic_id);
}
echo "修改完毕";
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:27,代码来源:admin_vod_topic_items.php
示例2: parseMovieInfoByContent
static function parseMovieInfoByContent($content, $p_code, $type)
{
$content = getBody($content, TVSouLiveParse::contentparmStart, TVSouLiveParse::contentparaend);
// var_dump($content);color='#CC9966'
$content = replaceStr($content, '#CC9966', '#6699CC');
$times = getArray($content, "<font color='#6699CC'>", "</font>");
$names = getArray($content, "<div id='e2' >", "</div>");
// var_dump($names);
// $names=filterScript($names,8191);
$timesArray = explode("{Array}", $times);
$namesArray = explode("{Array}", $names);
// var_dump($timesArray);
$prod_itmes = array();
$index = 0;
foreach ($timesArray as $timeItem) {
$name = $namesArray[$index];
$nameArray = explode('<ahref=', $name);
if (!isN($nameArray[0])) {
$itemName = $nameArray[0];
} else {
$itemName = filterScript($name, 8191);
}
$prod_itmes[$timeItem] = $itemName;
$index++;
}
// var_dump($prod_itmes);
if (count($prod_itmes) == 1) {
return false;
}
return $prod_itmes;
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:31,代码来源:TVSouLiveParse.php
示例3: parseIOSVideoUrl
public function parseIOSVideoUrl($url, $p_coding, $p_script)
{
$id = getBody($url, $this->p_videourlstart, $this->p_videourlend);
$id = base64_decode($id);
$url = replaceStr(WLContent::BASE_IOS_URL, "{ID}", $id);
$videoAddressUrl = $videoAddressUrl . MovieType::HIGH_CLEAR . MovieType::VIDEO_NAME_URL_SEP . $url;
return $videoAddressUrl;
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:8,代码来源:WLContent.php
示例4: getAndroidVideoUrl
private function getAndroidVideoUrl($obj, $p_coding, $p_script)
{
//var_dump($obj);
$videoAddressUrl = "";
if (!is_object($obj) || !is_object($obj->data)) {
return true;
}
/* mp4 && m3u8 */
if (property_exists($obj->data, 'mpl')) {
foreach ($obj->data->mpl as $mpl) {
/* mp4 */
switch ($mpl->vd) {
case 1:
$strBody = getPageWindow($mpl->m4u, 'utf-8');
$videoAddressUrl .= MovieType::VIDEO_SEP_VERSION . MovieType::Liu_Chang . MovieType::VIDEO_NAME_URL_SEP . getBody($strBody, 'data:{"l":"', '"');
break;
case 2:
$strBody = getPageWindow($mpl->m4u, 'utf-8');
$videoAddressUrl .= MovieType::VIDEO_SEP_VERSION . MovieType::HIGH_CLEAR . MovieType::VIDEO_NAME_URL_SEP . getBody($strBody, 'data:{"l":"', '"');
break;
}
}
/* m3u8 */
foreach ($obj->data->mpl as $mpl) {
switch ($mpl->vd) {
case 1:
$videoAddressUrl .= MovieType::VIDEO_SEP_VERSION . MovieType::Liu_Chang . MovieType::VIDEO_NAME_URL_SEP . $mpl->m3u;
break;
case 2:
$videoAddressUrl .= MovieType::VIDEO_SEP_VERSION . MovieType::HIGH_CLEAR . MovieType::VIDEO_NAME_URL_SEP . $mpl->m3u;
break;
}
}
}
/* m3u8 */
if (property_exists($obj->data, 'mtl')) {
foreach ($obj->data->mtl as $mtl) {
switch ($mtl->vd) {
case 1:
$videoAddressUrl .= MovieType::VIDEO_SEP_VERSION . MovieType::Liu_Chang . MovieType::VIDEO_NAME_URL_SEP . $mtl->m3u;
break;
case 2:
$videoAddressUrl .= MovieType::VIDEO_SEP_VERSION . MovieType::HIGH_CLEAR . MovieType::VIDEO_NAME_URL_SEP . $mtl->m3u;
break;
case 3:
$videoAddressUrl .= MovieType::VIDEO_SEP_VERSION . MovieType::TOP_CLEAR . MovieType::VIDEO_NAME_URL_SEP . $mtl->m3u;
break;
}
}
}
if (strpos($videoAddressUrl, "{mType}") !== false && strpos($videoAddressUrl, "{mType}") === 0) {
$videoAddressUrl = substr($videoAddressUrl, 7);
}
writetofile("iqiyi.log", "down url:" . $videoAddressUrl);
return $videoAddressUrl;
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:56,代码来源:IqiyiContent.php
示例5: parseIOSVideoUrlByContent
public function parseIOSVideoUrlByContent($content, $p_coding, $p_script)
{
$videoUrlParam = getBody($content, $this->p_videocodeApiUrlParamstart, $this->p_videocodeApiUrlParamend);
$videoUrlParam = replaceLine($videoUrlParam);
// var_dump($videoUrlParam);
$p_videoUrlApi = replaceStr($this->p_videocodeApiUrl, "{PROD_ID}", $videoUrlParam);
$videoUrlApiCode = getPageWindow($p_videoUrlApi, $this->p_code);
$videoAddressUrl = getBody($videoUrlApiCode, $this->p_videourlstart, $this->p_videourlend);
return $videoAddressUrl;
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:10,代码来源:PPTVContent.php
示例6: parseAndroidVideoUrlByContent
public function parseAndroidVideoUrlByContent($content, $p_coding, $p_script)
{
// writetofile("content.txt", $content);
$mediaid = getBody($content, $this->contentparmStart, $this->contentparaend);
$number = getBody($content, $this->contentparmStartNum, $this->contentparaendNum);
// writetofile("daa.txt", $vid);
$vid = $mediaid . '/' . $number;
// var_dump($vid) ;
return $this->getAndroidVideoUrl($vid);
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:10,代码来源:FengXingContent.php
示例7: parseAndroidVideoUrlByContent
public function parseAndroidVideoUrlByContent($content, $p_coding, $p_script)
{
$iosurl = base64_decode(getBody($content, '["iosurl"] ' . "= '", "'"));
$iosurl = strstr($iosurl, '.', true);
$type = trim(getBody($content, "videotype='", "'"));
if ($type = 'vod' || ($type = 'video')) {
$videosrc = MovieType::HIGH_CLEAR . MovieType::VIDEO_NAME_URL_SEP . 'http://mp4i.vodfile.m1905.com/movie' . $iosurl . '.mp4';
$videosrc .= MovieType::VIDEO_SEP_VERSION . MovieType::HIGH_CLEAR . MovieType::VIDEO_NAME_URL_SEP . 'http://m3u8i.vodfile.m1905.com/movie' . $iosurl . '.m3u8';
}
return $videosrc;
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:11,代码来源:M1905Content.php
示例8: parseAndroidVideoUrlByContent
public function parseAndroidVideoUrlByContent($content, $p_coding, $p_script)
{
//writetofile("content.txt", $content);
$vid = getBody($content, $this->contentparmStart, $this->contentparaend);
// writetofile("daa.txt", $vid);
// var_dump($vid) ;
if ($vid === false || $vid === '') {
return '';
}
return $this->getAndroidVideoUrl($vid);
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:11,代码来源:YouKuContent.php
示例9: getActivityHtml
function getActivityHtml($activity, $translation)
{
$result = "";
$result .= getHeader($translation);
$result .= "<tbody>";
foreach ($activity as $admin) {
$result .= getBody($admin);
}
$result .= "</tbody>";
$result .= "</table>";
return $result;
}
开发者ID:ezpz-cz,项目名称:web-pages,代码行数:12,代码来源:functions.php
示例10: getActivityHtml
function getActivityHtml($kills, $translation)
{
$result = "";
$result .= getHeader($translation);
$result .= "<tbody>";
$poradie = 0;
foreach ($kills as $kill) {
$poradie += 1;
$result .= getBody($kill, $poradie);
}
$result .= "</tbody>";
$result .= "</table>";
return $result;
}
开发者ID:ezpz-cz,项目名称:web-pages,代码行数:14,代码来源:functions.php
示例11: getAndroidVideoUrl
private function getAndroidVideoUrl($vid)
{
$videoAddressUrl = "";
if (isset($vid) && !is_null($vid)) {
$url = replaceStr(SohuContent::BASE_URL, "{id}", $vid);
$location = getPage($url, "utf-8");
$location = getBody($location, $this->contentparmStart2, $this->contentparaend2);
var_dump($location);
if (!isN($location)) {
$videoAddressUrl = $videoAddressUrl . MovieType::HIGH_CLEAR . MovieType::VIDEO_NAME_URL_SEP . $location;
}
}
return $videoAddressUrl;
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:14,代码来源:SohuContent.php
示例12: parseMovieInfoByContent
static function parseMovieInfoByContent($content, $p_code, $type)
{
$content = getBody($content, CnTVLiveParse::contentparmStart, CnTVLiveParse::contentparaend);
$items = getArray($content, "<dd>", "</dd>");
$itemArray = explode("{Array}", $items);
$prod_itmes = array();
foreach ($itemArray as $item) {
$item = filterScript($item, 8191);
$item = trim($item);
$item = replaceStr($item, '回看', '');
$date = substr($item, 0, 5);
$item = replaceStr($item, $date, '');
$prod_itmes[$date] = $item;
}
if (count($prod_itmes) == 1) {
return false;
}
return $prod_itmes;
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:19,代码来源:CnTVLiveParse.php
示例13: replaceFilters
function replaceFilters($strContent, $pid, $sobject, $f_sys)
{
//$f_sys=0视频, $flag=1文章
global $db;
$sql = "select * from {pre}cj_filters where f_flag=1 and f_sys=" . $f_sys . " and (f_pid=0 or f_pid='" . $pid . "') and (f_object=0 or f_object='" . $sobject . "')";
$rs = $db->query($sql);
if ($rs) {
while ($row = $db->fetch_array($rs)) {
if ($row["f_type"] == 1) {
$strContent = replaceStr($strContent, $row["f_content"], $row["f_rep"]);
} else {
$FilterStr = getBody($strContent, $row["f_strstart"], $row["f_strend"]);
if ($FilterStr != false) {
$strContent = replaceStr($strContent, $row["f_strstart"], "");
$strContent = replaceStr($strContent, $row["f_strend"], "");
$strContent = replaceStr($strContent, $FilterStr, $row["f_rep"]);
}
}
}
}
unset($rs);
return $strContent;
}
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:23,代码来源:collect_fun.php
示例14: count
$pdf->setFontSize(13);
$pdf->WriteHTMLCell(0, 5, 95, $y + 33, '<div style="text-transform:uppercase">' . $sequence['LIBELLEHTML'] . "</div>");
$pdf->setFontSize(8);
# Table header
$nbMatieres = count($groupe1) + count($groupe2) + count($groupe3);
$line_height = "11px";
if ($nbMatieres >= 14) {
$line_height = "9px";
}
$corps = '<table border="0.5" cellpadding="0.5" style="line-height: ' . $line_height . '"><thead>' . '<tr style="text-align:center;font-weight:bold; line-height: 15px;background-color:#444444;color:#FFF;">' . '<th border="0.5" width="' . $col[1] . '%" style="text-align:left"> Matières</th>' . '<th border="0.5" width="' . $col[2] . '%">DP</th>' . '<th border="0.5" width="' . $col[3] . '%">DH</th><th border="0.5" width="' . $col[4] . '%">Moy</th>' . '<th border="0.5" width="' . $col[5] . '%">Coef</th><th border="0.5" width="' . $col[6] . '%">Total</th>' . '<th border="0.5" width="' . $col[7] . '%">Rang</th>' . '<th border="0.5" width="' . $col[8] . '%">Moy.Cl</th>' . '<th border="0.5" width="' . $col[9] . '%">Min/Max</th>' . '<th border="0.5" width="' . $col[10] . '%">Appréciation</th></tr></thead><tbody>';
# FAIRE UNE BOUCLE SUR LES GROUPES DE MATIERES
$st1 = $sc1 = $st2 = $sc2 = 0;
$corps .= getBody($groupe1, $col, $eleve, $st1, $sc1);
$corps .= getBody($groupe2, $col, $eleve, $st2, $sc2);
$corps .= printGroupe($st1 + $st2, $sc1 + $sc2, $col, "Groupe 1 + Groupe 2");
$corps .= getBody($groupe3, $col, $eleve);
$corps .= "</tbody></table>";
$pdf->WriteHTMLCell(0, 5, 14, $y + 40, $corps);
# RESUME DU TRAVAIL ACCOMPLI
$pdf->setFontSize(7);
$corps = printTravail($rang, $travail, $eleve, $prev);
$pdf->WriteHTMLCell(0, 5, 25, $y + 173, $corps);
# Discripline
$corps = printDiscipline($discipline);
$pdf->WriteHTMLCell(0, 0, 25, $y + 188, $corps);
$pdf->setFont("helvetica", '', 8);
# Desinner la coube d'evolution
$moyennes = getMoyennesRecapitulatives($recapitulatifs, $eleve['IDELEVE']);
$moyennes[] = $rang['MOYGENERALE'];
genererCourbe($moyennes, $eleve);
$courbe = SITE_ROOT . "public/tmp/" . $eleve['IDELEVE'] . ".png";
开发者ID:jpainam,项目名称:cosba,代码行数:31,代码来源:individuelle.php
示例15: headAdminCollect
require_once "collect_fun.php";
require_once "api_collect_youku_cj.php";
headAdminCollect("优酷视频采集");
define("VIDEOS", "https://openapi.youku.com/v2/shows/videos.json?client_id=715115c589f8533a&show_id={id}&page=1&count={count}");
define("SHOWINFO", "https://openapi.youku.com/v2/shows/show.json?client_id=715115c589f8533a&show_id={id}");
$action = be("get", "action");
$contentparmStart = "showid_en=\"";
$contentparaend = "\";";
if (isset($action) && $action === 'collectSimpl') {
$type_id = be("all", "type_id");
$web_url = be("all", "web_url");
$site_url = be("all", "site_url");
$id = '';
if (!isN($web_url)) {
$content = getPage($web_url, 'utf-8');
$id = getBody($content, $contentparmStart, $contentparaend);
} else {
if (!isN($site_url) && preg_match('/id_z(\\w.+?).html/', $site_url)) {
$ids = preg_match_all('/id_z(\\w.+?).html/', $site_url, $match);
$id = $match[1][0];
} else {
errmsg("采集提示", "采集信息不能为空");
}
}
$content = getYoukuInfo($id, $type_id);
$pid = '';
$category = "电影";
switch ($type_id) {
case "1":
//电影
$pid = "177";
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:31,代码来源:collect_vod_youku.php
示例16: getBody
$newBody .= '--MfFXiAuoTsnnDAfX' . "\n";
$newBody .= 'Content-Type: application/pgp-encrypted' . "\n";
$newBody .= 'Content-Disposition: attachment' . "\n";
$newBody .= '' . "\n";
$newBody .= 'Version: 1' . "\n";
$newBody .= '' . "\n";
$newBody .= '--MfFXiAuoTsnnDAfX' . "\n";
$newBody .= 'Content-Type: application/octet-stream' . "\n";
$newBody .= 'Content-Disposition: inline; filename="msg.asc"' . "\n";
$newBody .= '' . "\n";
$newBody .= $gpg->encrypt($raw, true);
$newBody .= '' . "\n";
$newBody .= '--MfFXiAuoTsnnDAfX--' . "\n";
} else {
/* No key, don't touch. */
$newBody = getBody($raw);
}
}
$smtpOptions = array('host' => $config['relay']['host'], 'port' => $config['relay']['port']);
$smtp =& Mail::factory('smtp', $smtpOptions);
$smtp->send($recipient, $structure->headers, $newBody);
}
function randStr($length)
{
$chars = "abcdefghijklmnopqrstuvwxyz0123456789";
$str = '';
$size = strlen($chars);
for ($i = 0; $i < $length; $i++) {
$str .= $chars[rand(0, $size - 1)];
}
return $str;
开发者ID:xqus,项目名称:octoguard,代码行数:31,代码来源:gpg-mailgate.php
示例17: register
function register()
{
$salt = substr(uniqid(mt_rand(), true), 10, 10);
$password = $salt . hash('sha256', $salt . getBody()->password);
echo '{"password": "' . $password . '"}';
}
开发者ID:wesleyegbertsen,项目名称:TVManager,代码行数:6,代码来源:users.php
示例18: handleException
private function handleException($e)
{
// TODO: test coverage
if ($e instanceof ClientErrorResponseException) {
// will catch all 4xx errors
if ($e->getResponse()->getStatusCode() == 403) {
throw new AuthenticationException($this->apiKey, $this->apiSecret, null, $e);
} else {
throw new DomainException('The OpenTok API request failed: ' . json_decode($e->getResponse()->getBody(true))->message, null, $e);
}
} else {
if ($e instanceof ServerErrorResponseException) {
// will catch all 5xx errors
throw new UnexpectedValueException('The OpenTok API server responded with an error: ' . json_decode($e->getResponse() - getBody(true))->message, null, $e);
} else {
// TODO: check if this works because Exception is an interface not a class
throw new Exception('An unexpected error occurred');
}
}
}
开发者ID:zhoul-HS,项目名称:OpenTok-PHP-SDK,代码行数:20,代码来源:Client.php
示例19: parseMovieInfoByContent
static function parseMovieInfoByContent($content, $p_code, $type)
{
if ($type == '131') {
$contentSt = getBody($content, "window.aldJson = [", BaiduParse::contentparaend);
} else {
$contentSt = getBody($content, BaiduParse::contentparmStart, BaiduParse::contentparaend);
}
$content = json_decode($contentSt);
$info = new VideoInfo();
if (is_object($content)) {
$info->max_episode = property_exists($content, 'max_episode') ? $content->max_episode : "";
$info->curr_episode = property_exists($content, 'cur_episodes') ? $content->cur_episodes : "";
if (isN($info->curr_episode)) {
$info->curr_episode = property_exists($content, 'episode') ? $content->episode : "";
}
//
$info->title = property_exists($content, 'title') ? $content->title : "";
if (property_exists($content, 'season_num')) {
$info->season_num = $content->season_num;
}
if (!isN($content->season_num)) {
$content->season_num = BaiduParse::lang($num);
if (!isN($content->season_num)) {
$info->title = $info->title . ' 第' . $content->season_num . '季';
}
}
$info->language = property_exists($content, 'language') ? $content->language : "";
$info->update_freq = property_exists($content, 'update_freq') ? $content->update_freq : "";
$info->duration = property_exists($content, 'duration') ? $content->duration : "";
$info->big_poster = "";
//property_exists($content, 'big_poster')?$content->big_poster:""; //
$info->director = property_exists($content, 'director') ? BaiduParse::parseArrayToString($content->director) : "";
$info->area = property_exists($content, 'area') ? BaiduParse::parseArrayToString($content->area) : "";
$info->type = property_exists($content, 'type') ? BaiduParse::parseArrayToString($content->type) : "";
$info->actor = property_exists($content, 'actor') ? BaiduParse::parseArrayToString($content->actor) : "";
if (isN($info->actor)) {
$info->actor = property_exists($content, 'host') ? BaiduParse::parseArrayToString($content->host) : "";
}
if (isN($info->director)) {
$info->director = property_exists($content, 'station') ? BaiduParse::parseArrayToString($content->station) : "";
}
if (isN($info->actor)) {
//角色
$info->actor = property_exists($content, 'leader') ? BaiduParse::parseArrayToString($content->leader) : "";
}
if (isN($info->director)) {
//声优
$info->director = property_exists($content, 'dub') ? BaiduParse::parseArrayToString($content->dub) : "";
}
$info->alias = property_exists($content, 'alias') ? BaiduParse::parseArrayToString($content->alias) : "";
$info->brief = property_exists($content, 'brief') ? $content->brief : "";
if (!isN($info->alias)) {
$info->brief = $info->brief . ' ' . $info->alias;
}
if (!isN($info->update_freq)) {
$info->brief = $info->brief . ' 更新频率:' . $info->update_freq;
}
$info->id = property_exists($content, 'id') ? $content->id : "";
$info->pubdate = property_exists($content, 'al_date') ? $content->al_date : "";
if (isN($info->pubdate)) {
$info->pubdate = property_exists($content, 'pubtime') ? $content->pubtime : "";
}
if (isN($info->pubdate)) {
$info->pubdate = property_exists($content, 'years') ? BaiduParse::parseArrayToString($content->years) : "";
}
$info->sites = property_exists($content, 'sites') ? BaiduParse::parseSitesUrl($content->sites, $info->id, $type, property_exists($content, 'years') ? BaiduParse::parseArrayToString($content->years) : $info->pubdate, $p_code) : "";
} else {
$vedio_id = getBody($contentSt, "id: '", "'");
$info->id = $vedio_id;
if ($type === 1 || $type === '1') {
$url = 'http://v.baidu.com/movie_intro/?dtype=playUrl&service=json&id=' . $vedio_id;
} else {
if ($type === 2 || $type === '2') {
$url = 'http://v.baidu.com/tv_intro/?dtype=tvPlayUrl&service=json&id=' . $vedio_id;
} else {
if ($type === 3 || $type === '3') {
$url = 'http://v.baidu.com/show_intro/?dtype=tvshowPlayUrl&service=json&frp=browse&year=2014&id=' . $vedio_id;
} else {
if ($type === 131 || $type === '131') {
$url = 'http://v.baidu.com/comic_intro/?dtype=comicPlayUrl&service=json&id=' . $vedio_id;
}
}
}
}
writetofile("baiducontent.log", "request url:" . $url);
$playUrlsContent = getPage($url, 'gb2312');
writetofile("baiducontent.log", "request content:" . $playUrlsContent);
$content = json_decode($playUrlsContent);
if ($type === 1 || $type === '1') {
$info->sites = BaiduParse::parseArrayMovie($content);
} else {
if ($type === 2 || $type === '2') {
$info->sites = BaiduParse::parseArrayTV($content);
} else {
if ($type === 3 || $type === '3') {
$info->sites = BaiduParse::parseArrayTV($content);
} else {
if ($type === 131 || $type === '131') {
$info->sites = BaiduParse::parseArrayTV($content);
}
//.........这里部分代码省略.........
开发者ID:andyongithub,项目名称:joyplus-cms,代码行数:101,代码来源:BaiduParse.php
示例20: get_table_data
function get_table_data($access_level)
{
global $mySQLi, $posts, $myReturn;
$out['aoColumns'] = getHead($access_level);
$qry = "SELECT * FROM `{$posts}` WHERE `{$posts}`.`type`='post' AND `{$posts}`.`status`='open' ORDER BY created;";
$out['sql'] = $qry;
$result = $mySQLi->get_results($qry);
$out['access_level'] = $access_level;
$out['results'] = $result;
/* For debugging only. Passes security information for your MySQL connection
ob_start();
var_dump($mySQLi);
$out['mySQLi'] = ob_get_clean();
*/
if ($result !== false) {
$out['success'] = true;
$out['aaData'] = getBody($result, $access_level);
} else {
$out['success'] = false;
$out['tbody'] = '<tbody>';
$out['tbody'] .= '<tr><td colspan="' . (isset($access_level) && $access_level > 0 ? 6 : 7) . '">';
$out['tbody'] .= '(No records found)';
$out['tbody'] .= '</td></tr>';
}
// end if results found;
return $out;
}
开发者ID:mvbaxter,项目名称:gi-whiteboard,代码行数:27,代码来源:ajax_requests.php
注:本文中的getBody函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论