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


PHP PrintEot函数代码示例

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


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

示例1: areaFooter

function areaFooter()
{
    global $db_advertdb;
    if (!defined('AREA_PAGE') && ($db_advertdb['Site.PopupNotice'] || $db_advertdb['Site.FloatLeft'] || $db_advertdb['Site.FloatRight'] || $db_advertdb['Site.FloatRand'])) {
        require PrintEot('advert');
    }
    $output = cookTemplate();
    echo ObContents($output);
    unset($output);
    N_flush();
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:11,代码来源:core.php

示例2: wap_footer

function wap_footer()
{
    global $wind_version, $db_obstart, $windid, $db_charset, $db_wapcharset, $prog, $chs;
    require_once PrintEot('wap_footer');
    $output = ob_get_contents();
    ob_end_clean();
    $db_obstart && function_exists('ob_gzhandler') ? ob_start('ob_gzhandler') : ob_start();
    if ($db_charset != 'utf8') {
        $chs = new Chinese();
        $output = $chs->Convert($output, $db_charset, $db_wapcharset ? 'UTF8' : 'UNICODE');
    }
    $output = str_replace(array('<!--<!---->', '<!---->'), '', $output);
    echo $output;
    flush();
    exit;
}
开发者ID:adi00,项目名称:wumaproject,代码行数:16,代码来源:wap_mod.php

示例3: getAdminTemplate

 function getAdminTemplate($uid)
 {
     pwCache::getData(D_P . 'data/bbscache/customfield.php');
     global $customfield;
     if (!S::isArray($customfield)) {
         return false;
     }
     require PrintEot('customerfield_admin');
     $template = new customerFieldAdminTemplate();
     $template->pwCustomerField = $this->customerField;
     $html = '';
     $this->customerFieldData = L::loadClass('CustomerFieldData', 'user');
     foreach ($customfield as $v) {
         $customFieldValue = $this->customerFieldData->getCustomerData($v, $uid);
         $html .= $template->buildHtml($v, $customFieldValue);
     }
     return $html;
 }
开发者ID:jechiy,项目名称:PHPWind,代码行数:18,代码来源:customerfieldservice.class.php

示例4: exit

<?php

!defined('P_W') && exit('Forbidden');
InitGP(array('keyword'));
require_once R_P . "lib/adminsearch.class.php";
$searchpurview = new AdminSearch($keyword);
$result = $searchpurview->search();
include PrintEot('search');
exit;
开发者ID:adi00,项目名称:wumaproject,代码行数:9,代码来源:search.php

示例5: adminmsg

            adminmsg('user_not_exists');
        }
        $uid = $userdb['uid'];
    }
    if ($uid) {
        $sql .= " AND fs.uid=" . S::sqlEscape($uid);
    }
    if ($fid) {
        $sql .= " AND fs.fid=" . S::sqlEscape($fid);
    }
    $page < 1 && ($page = 1);
    $limit = S::sqlLimit(($page - 1) * $db_perpage, $db_perpage);
    $rt = $db->get_one("SELECT COUNT(*) AS sum FROM pw_forumsell fs {$sql}");
    $pages = numofpage($rt['sum'], $page, ceil($rt['sum'] / $db_perpage), "{$basename}&uid={$uid}&fid={$fid}&");
    $buydb = array();
    $query = $db->query("SELECT fs.*,m.username,m.uid FROM pw_forumsell fs LEFT JOIN pw_members m USING(uid) {$sql} ORDER BY fs.overdate DESC {$limit}");
    while ($rt = $db->fetch_array($query)) {
        $rt['buydate'] = get_date($rt['buydate']);
        $rt['overtime'] = get_date($rt['overdate']);
        $buydb[] = $rt;
    }
    include PrintEot('forumsell');
    exit;
} elseif ($_POST['action'] == 'del') {
    S::gp(array('selid'));
    if (!($selid = checkselid($selid))) {
        adminmsg('operate_error');
    }
    $db->update("DELETE FROM pw_forumsell WHERE id IN({$selid})");
    adminmsg('operate_success');
}
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:forumsell.php

示例6: explode

                $creditdb = explode('|', $value);
                $tmpCreditPop .= ($tmpCreditPop ? '<br/>' : '') . S::escapeChar(GetCreditLang('creditpop', $creditdb['0']));
                unset($creditdb['0']);
                foreach ($creditdb as $val) {
                    list($credit_1, $credit_2) = explode(':', $val);
                    $tmpCreditPop .= '<span class="st2">' . pwCreditNames($credit_1) . '&nbsp;<span class="f24">' . $credit_2 . '</span></span>';
                }
            }
            $credit_pop = $tmpCreditPop;
            $userService = L::loadClass('UserService', 'user');
            /* @var $userService PW_UserService */
            $userService->update($winduid, array(), array('creditpop' => ''));
        }
    }
    $db_ifcredit && $credit_pop && (require PrintEot('credit_pop'));
    require_once PrintEot('read_addfloor');
    //	$output = ob_get_contents();
    //	$output = str_replace(
    //	array("\r",'<!---->-->','<!--<!---->',"<!---->\n",'<!---->','<!-- -->',"<!--\n-->","\t\t",'        ',"\n\t","\n\n","<!--","-->"),
    //	array('','','','','','','','',"\n","\n","",""),
    //	$output
    //	);
    ajax_footer();
}
function viewread($read, $start_limit)
{
    global $db, $_G, $isGM, $pwSystem, $groupid, $attach_url, $winduid, $tablecolor, $tpc_author, $tpc_buy, $tpc_pid, $tpc_tag, $count, $orderby, $pageinverse, $timestamp, $db_onlinetime, $attachdir, $attachpath, $readcolorone, $readcolortwo, $lpic, $ltitle, $imgpath, $db_ipfrom, $db_showonline, $stylepath, $db_windpost, $db_windpic, $db_signwindcode, $fid, $tid, $pid, $db_md_ifopen, $_MEDALDB, $rewardtype, $db_shield, $db_iftag, $db_readtag, $viewpic;
    global $ping_logs;
    if ($read['istop'] == 'topped') {
        $read['lou'] = $read['floor'];
    } else {
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:addfloor.php

示例7: foreach

        if ($rightset[$key]) {
            if (is_array($value)) {
                foreach ($value as $k => $v) {
                    $output2 .= "<tr><td class=b onmouseover=\"this.className='left_over';\" onmouseout=\"this.className='b'\">" . $v . "</td></tr>";
                }
            } else {
                $output2 .= "<tr><td class=b onmouseover=\"this.className='left_over';\" onmouseout=\"this.className='b'\">" . $value . "</td></tr>";
            }
        }
    }
    if ($output2) {
        $output1 .= $output2 . "</td></tr></tbody></table></td></tr>";
    } else {
        unset($output1);
    }
    $leftinfo .= $output1;
    $i++;
}
function GetDeploy($name)
{
    global $_COOKIE;
    if (strpos($_COOKIE['deploy'], "\t" . $name . "\t") === false) {
        $type = 'fold';
    } else {
        $type = 'open';
        $style = 'display:none;';
    }
    return array($type, $style);
}
include PrintEot('adminleft');
exit;
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:left.php

示例8: getFriends

 if (empty($_POST['step'])) {
     S::gp("id", null, 2);
     //* @include_once pwCache::getPath(D_P.'data/bbscache/o_config.php');
     pwCache::getData(D_P . 'data/bbscache/o_config.php');
     $friend = getFriends($winduid) ? getFriends($winduid) : array();
     foreach ($friend as $key => $value) {
         $frienddb[$value['ftid']][] = $value;
     }
     $query = $db->query("SELECT * FROM pw_friendtype WHERE uid=" . S::sqlEscape($winduid) . " ORDER BY ftid");
     $friendtype = array();
     while ($rt = $db->fetch_array($query)) {
         $friendtype[$rt['ftid']] = $rt;
     }
     $no_group_name = getLangInfo('other', 'no_group_name');
     $friendtype[0] = array('ftid' => 0, 'uid' => $winduid, 'name' => $no_group_name);
     require_once PrintEot('thread_member');
     footer();
 } elseif ($_POST['step'] == 1) {
     // 发送email邀请
     S::gp(array('emails', 'customdes'), 'P');
     strlen($emails) > 200 && Showmsg('mode_o_email_toolang');
     strlen($content) > 200 && Showmsg('mode_o_extra_toolang');
     if (strpos($emails, ',') !== false) {
         $emails = explode(',', $emails);
     } else {
         $emails = explode("\n", $emails);
     }
     count($emails) > 5 && Showmsg('mode_o_email_toolang');
     if ($emails) {
         foreach ($emails as $key => $email) {
             $emails[$key] = trim($email);
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:thread_member.php

示例9: get_date

            if ($rt['fid']) {
                $uids2[] = $rt['uid'];
            } else {
                $uids1[] = $rt['uid'];
            }
        } else {
            $rt['startdate'] && ($rt['date'] = get_date($rt['startdate']));
            $bandb[] = $rt;
        }
    }
    if ($ids) {
        $db->update("DELETE FROM pw_banuser WHERE id IN(" . pwImplode($ids) . ")");
        $uids1 && $db->update("UPDATE pw_members SET groupid='-1' WHERE uid IN(" . pwImplode($uids1) . ")");
        $uids2 && $db->update("UPDATE pw_members m LEFT JOIN pw_banuser b ON m.uid=b.uid AND b.fid>0 SET m.userstatus=m.userstatus&(~1) WHERE b.uid is NULL AND m.uid IN(" . pwImplode($uids2) . ")");
    }
    include PrintEot('viewban');
    exit;
} elseif ($_POST['action'] == 'freeban') {
    InitGP(array('free'), 'P');
    !$free && adminmsg('operate_error');
    $ids = pwImplode($free);
    $uids1 = $uids2 = array();
    $_cache = getDatastore();
    $query = $db->query("SELECT * FROM pw_banuser WHERE uid IN ({$ids})");
    while ($rt = $db->fetch_array($query)) {
        $_cache->delete('UID_' . $rt['uid']);
        if ($rt['fid']) {
            $uids2[] = $rt['uid'];
        } else {
            $uids1[] = $rt['uid'];
        }
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:viewban.php

示例10: explode

        }
    } else {
        $child['logo'] = '';
    }
    if ($child['forumadmin']) {
        $forumadmin = explode(",", $child['forumadmin']);
        foreach ($forumadmin as $key => $value) {
            if ($value) {
                if (!$db_adminshow) {
                    //if ($key==4) {$child['admin'].='...'; break;}
                    $child['admin'] .= "<a href=u.php?username=" . rawurlencode($value) . ">{$value}</a> ";
                } else {
                    $child['admin'] .= "<option value={$value}>{$value}</option>";
                }
            }
        }
        $db_adminshow && ($child['admin'] .= '</select>');
    }
    /*The app client*/
    if ($db_siteappkey && $db_apps_list['17']['status'] == 1) {
        $child['forumappinfo'] = $appclient->showForumappinfo($child['fid'], 'subforum_erect,subforum_across', '17');
    }
    /*The app client*/
    $forumdb[] = $child;
}
$db->free_result($query);
$forumdb && ($foruminfo['viewsub'] == 0 || $foruminfo['viewsub'] == 1) && ($thread_children = 'thread_children');
if ($foruminfo['viewsub'] == 3 || $foruminfo['viewsub'] == 1) {
    require_once PrintEot('thread_childmain');
    footer();
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:31,代码来源:thread_child.php

示例11: adminmsg

            $messageServer->manageMessageWithMessageIds($delid);
            adminmsg('operate_success', "{$url}");
        }
    } elseif ($action == 'msglog') {
        S::gp(array('smstype', 'keepunread', 'direct', 'page'));
        $page = intval($page) ? intval($page) : 1;
        $url = $basename . "&action=msglog&smstype={$smstype}&keepunread={$keepunread}&";
        if (empty($_POST['step'])) {
            $direct = 1;
            empty($smstype) && adminmsg('类型不能为空');
            list($searchCount, $searchList) = $messageServer->manageMessageWithCategory($smstype, $keepunread, $direct, $page, $db_perpage);
            $pages = numofpage($searchCount, $page, ceil($searchCount / $db_perpage), "{$url}");
            if ($direct) {
                adminmsg('operate_success');
            } else {
                include PrintEot('superdel');
                exit;
            }
        } elseif ($_POST['step'] == 2) {
            S::gp(array('delid'), 'P');
            empty($delid) && adminmsg("请选择要删除的消息");
            $messageServer->manageMessageWithMessageIds($delid);
            adminmsg('operate_success', "{$url}");
        }
    }
}
function _delModelTopic($modeldb)
{
    global $db;
    foreach ($modeldb as $key => $value) {
        $modelids = S::sqlImplode($value);
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:superdel.php

示例12: exit

<?php

!function_exists('adminmsg') && exit('Forbidden');
$basename = "{$admin_file}?adminjob=ipban&job=ipstates";
if ($action != 'submit' && $action != 'ipIndex') {
    ifcheck($db_ipstates, 'ipstates');
    include PrintEot('ipstates');
} elseif ($_POST['action'] == "submit") {
    S::gp(array('ipstates'), 'P');
    setConfig('db_ipstates', $ipstates);
    updatecache_c();
    $navConfigService = L::loadClass('navconfig', 'site');
    $navConfigService->controlShowByKey('sort_ipstate', $ipstates);
    adminmsg('operate_success');
} elseif ($action == "ipIndex") {
    $ipTable = L::loadClass('IPTable', 'utility');
    $ipTable->createIpIndex();
    adminmsg('operate_success');
}
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:19,代码来源:ipstates.php

示例13: elseif

            $title = $temp['group']['name'] . "({$rt['link']})";
        } elseif ($rt['type'] == 'diary') {
            $title = $temp['diary']['subject'] . "({$rt['link']})";
        } elseif ($rt['type'] == 'topic') {
            $title = $temp['topic']['subject'] . "({$rt['link']})";
        } else {
            $title = $rt['link'];
        }
        $descrip = $temp['descrip'];
        $username = $rt['username'];
        $atc_name = getLangInfo('app', $rt['type']);
        require_once PrintEot('m_ajax');
        ajax_footer();
    }
}
require_once PrintEot('m_collection');
pwOutPut();
function getVideo($link, $host)
{
    $matches = array();
    switch ($host) {
        case 'youku.com':
            preg_match("/v_show\\/id_(\\w+)\\.html/", $link, $matches);
            break;
        case 'youtube.com':
            preg_match("/v\\=([\\w\\-]+)/", $link, $matches);
            break;
        case 'sina.com.cn':
            preg_match("/\\/(\\d+)-(\\d+)\\.html/", $link, $matches);
            break;
        case 'sohu.com':
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:31,代码来源:my.php

示例14: list

    if (!$_checkService->getServerStatus()) {
        list($fsockopen, $parse_url, $isgethostbyname, $gethostbyname) = $_checkService->getFunctionsInfo();
        list($searchHost, $searchIP, $searchPort, $searchPing) = $_checkService->getSearchHostInfo();
        list($defendHost, $defendIp, $defendPort, $defendPing) = $_checkService->getDefendHostInfo();
    } else {
        $step = 3;
    }
} elseif ($step == 3) {
    if (!$_checkService->getServerStatus()) {
        Showmsg('环境检测末通过,请联系论坛空间提供商解决');
    }
} elseif ($step == 4) {
    CLOUDWIND_SECURITY_SERVICE::gp(array('siteurl', 'sitename', 'bossname', 'bossphone', 'search', 'defend'));
    if (!$siteurl || !$sitename || !$bossname || !$bossphone) {
        Showmsg('站点信息请填写完整', $basename . '&step=3');
    }
    if (!($marksite = $_checkService->markSite())) {
        Showmsg('云服务验证失败,请重试', $basename . '&step=3');
    }
    if (!CloudWind::yunApplyPlatform($siteurl, $sitename, $bossname, $bossphone, $marksite)) {
        $marksite = $_checkService->markSite(false);
        Showmsg('申请云服务失败,请检查网络或重试', $basename . '&step=3');
    }
    is_null($db_yun_model) && $_checkService->setYunMode(array());
    $_checkService->initServices($search, $defend);
    $step = 5;
} else {
    $yundescribe = $_checkService->getYunDescribe();
}
include PrintEot('yunbasic');
开发者ID:sherlockhouse,项目名称:aliyun,代码行数:30,代码来源:yunbasic.php

示例15: foreach

         //分类模型
         foreach ($topicmodeldb as $key => $value) {
             if ($value['ifable'] == 1) {
                 $modeldb[$value['cateid']][$key]['cateid'] = $value['cateid'];
                 $modeldb[$value['cateid']][$key]['modelid'] = $value['modelid'];
                 $modeldb[$value['cateid']][$key]['name'] = $value['name'];
             }
         }
         !$allowtype && ($posttypestyle = 'style="display:none"');
         !$modelid && ($topiccatestyle = 'style="display:none"');
         !$pcid && ($postcatestyle = 'style="display:none"');
         //团购活动
         @(include_once D_P . 'data/bbscache/postcate_config.php');
     }
     $ajaxurl = EncodeUrl($basename);
     include PrintEot('setforum');
     exit;
 } elseif ($_POST['step'] == 2) {
     $forum = $db->get_one("SELECT type,fup,forumadmin,logo FROM pw_forums WHERE fid=" . pwEscape($fid));
     InitGP(array('name', 'descrip', 'metadescrip'), 'P', 0);
     InitGP(array('vieworder', 'dirname', 'style', 'across', 'keywords'), 'P');
     $name = str_replace('<iframe', '&lt;iframe', $name);
     $descrip = str_replace('<iframe', '&lt;iframe', $descrip);
     $metadescrip = str_replace('<iframe', '&lt;iframe', $metadescrip);
     $keywords = Char_cv($keywords);
     strlen($descrip) > 250 && adminmsg('descrip_long');
     strlen($metadescrip) > 250 && adminmsg('descrip_long');
     if ($forum['type'] == 'category') {
         $db->update("UPDATE pw_forums SET " . pwSqlSingle(array('name' => $name, 'vieworder' => $vieworder, 'dirname' => $dirname, 'style' => $style, 'across' => $across, 'cms' => $cms)) . " WHERE fid=" . pwEscape($fid));
     } else {
         InitGP(array('forumsetdb', 'uploadset', 'rewarddb', 'cfup', 'ffup', 'showsub', 'ifhide', 'viewsub', 'allowhide', 'allowsell', 'copyctrl', 'f_check', 'password', 'allowvisit', 'allowread', 'allowpost', 'allowrp', 'allowupload', 'allowdownload', 'otherfid', 'otherforum', 'allowtime', 'allowtype', 'recycle', 'forumsell', 'sdate', 'cprice', 'rprice', 'logotype', 'logo_upload', 'logo_url', 'ifdellogo', 't_view_db', 'new_t_view_db', 't_logo_db', 'new_t_logo_db', 'new_t_sub_logo_db', 'new_t_sub_view_db', 't_type', 'modelid', 'pcid'), 'P');
开发者ID:adi00,项目名称:wumaproject,代码行数:31,代码来源:setforum.php


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