當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Showmsg函數代碼示例

本文整理匯總了PHP中Showmsg函數的典型用法代碼示例。如果您正苦於以下問題:PHP Showmsg函數的具體用法?PHP Showmsg怎麽用?PHP Showmsg使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了Showmsg函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: creditcheck

 function creditcheck($user, $groupid)
 {
     if ($this->foruminfo['allowvisit']) {
         return;
     }
     $check = 1;
     $this->forumset['rvrcneed'] = intval($this->forumset['rvrcneed']);
     $this->forumset['moneyneed'] = intval($this->forumset['moneyneed']);
     $this->forumset['creditneed'] = intval($this->forumset['creditneed']);
     $this->forumset['postnumneed'] = intval($this->forumset['postnumneed']);
     if ($this->forumset['rvrcneed'] && intval($user['rvrc'] / 10) < $this->forumset['rvrcneed']) {
         $check = 0;
     } elseif ($this->forumset['moneyneed'] && $user['money'] < $this->forumset['moneyneed']) {
         $check = 0;
     } elseif ($this->forumset['creditneed'] && $user['credit'] < $this->forumset['creditneed']) {
         $check = 0;
     } elseif ($this->forumset['postnumneed'] && $user['postnum'] < $this->forumset['postnumneed']) {
         $check = 0;
     }
     if (!$check) {
         if ($groupid == 'guest') {
             Showmsg('forum_guestlimit');
         } else {
             $GLOBALS['forumset'] = $this->forumset;
             Showmsg('forum_creditlimit');
         }
     }
 }
開發者ID:adi00,項目名稱:wumaproject,代碼行數:28,代碼來源:forum.class.php

示例2: CheckUserTool

function CheckUserTool($uid, $tooldb)
{
    global $db, $groupid, $credit;
    if (!$tooldb['state']) {
        Showmsg('tool_close');
    }
    $condition = unserialize($tooldb['conditions']);
    if ($condition['group'] && strpos($condition['group'], ",{$groupid},") === false) {
        Showmsg('tool_grouplimit');
    }
    $userService = L::loadClass('UserService', 'user');
    /* @var $userService PW_UserService */
    $userdb = $userService->get($uid, false, true);
    require_once R_P . 'require/credit.php';
    $creditdb = $credit->get($uid, 'CUSTOM');
    foreach ($condition['credit'] as $key => $value) {
        if ($value) {
            if (is_numeric($key)) {
                $creditdb[$key] < $value && Showmsg('tool_creditlimit');
            } elseif ($userdb[$key] < $value) {
                Showmsg('tool_creditlimit');
            }
        }
    }
}
開發者ID:sherlockhouse,項目名稱:aliyun,代碼行數:25,代碼來源:tool.php

示例3: _delete

 function _delete()
 {
     if (!$this->stopic_service->isAllowDeleteCategory($this->categoryid)) {
         Showmsg("對不起,分類下還有專題或者是係統默認分類,不能刪除", $this->jump);
     }
     intval($this->categoryid) > 0 && $this->stopic_service->deleteCategory($this->categoryid);
 }
開發者ID:adi00,項目名稱:wumaproject,代碼行數:7,代碼來源:cgman.php

示例4: Mailconfig

 function Mailconfig($smtp = array())
 {
     $this->S_method = $smtp['method'];
     if (!($this->smtp['ifopen'] = $smtp['ifopen'])) {
         Showmsg('mail_close');
     }
     if ($this->S_method == 1) {
         //不用設置
     } elseif ($this->S_method == 2) {
         $this->smtp['host'] = $smtp['host'];
         $this->smtp['port'] = $smtp['port'];
         $this->smtp['auth'] = $smtp['auth'];
         $this->smtp['from'] = $smtp['from'];
         $this->smtp['user'] = $smtp['user'];
         $this->smtp['pass'] = $smtp['pass'];
     } elseif ($this->S_method == 3) {
         $this->smtp['port'] = $smtp['port'];
         $this->smtp['auth'] = $smtp['auth'];
         $this->smtp['from'] = $smtp['from'];
         $this->smtp['smtphelo'] = $smtp['smtphelo'];
         $this->smtp['smtpmxmailname'] = $smtp['smtpmxmailname'];
         $this->smtp['mxdns'] = $smtp['mxdns'];
         $this->smtp['mxdnsbak'] = $smtp['mxdnsbak'];
         //hacker
     } else {
         //hacker
     }
 }
開發者ID:jechiy,項目名稱:PHPWind,代碼行數:28,代碼來源:sendemail.php

示例5: init

 function init($id)
 {
     $this->_hid = $id;
     require_once R_P . 'mode/house/require/core.php';
     $houseService = house::loadClass('house');
     $housefieldsService = House::loadService('HouseFieldsService');
     $house = $houseService->getHouseInfoByHid($id);
     empty($house) && Showmsg('data_error');
     $title = $content = sprintf("[url=%s] %s [/url]", $this->_url . "&q=info&hid=" . $this->_hid, $house['name']);
     $position = '';
     if ($house['area']) {
         $areaField = $housefieldsService->getCompsiteFieldsByType('area');
         //所屬區域
         $area = $areaField[$house['area']];
         $area = sprintf("[url=%s] %s [/url]", $this->_url . "&q=list&area=" . $house['area'], $area);
         $postion .= $area;
     }
     if ($house['plate']) {
         $plateField = $housefieldsService->getCompsiteFieldsByType('plate');
         //所在商圈
         $plate = $plateField[$house['plate']];
         $plate = sprintf("[url=%s] %s [/url]", $this->_url . "&q=list&plate=" . $house['plate'], $plate);
         $postion .= $plate;
     }
     $postion .= $house['address'];
     $mailSubject = getLangInfo('app', 'house_recommend');
     $mailContent = getLangInfo('app', 'ajax_sendweibo_houseinfo', array('title' => $title, 'postion' => $postion));
     $this->_content = $content;
     $this->_mailSubject = $mailSubject;
     $this->_mailContent = $mailContent;
 }
開發者ID:jechiy,項目名稱:PHPWind,代碼行數:31,代碼來源:house.weibo.php

示例6: getGroupByCyid

function getGroupByCyid($cyid)
{
    global $winduid, $db;
    $colony = $db->get_one("SELECT c.*,cm.id AS ifcyer,cm.ifadmin,cm.lastvisit FROM pw_colonys c LEFT JOIN pw_cmembers cm ON c.id=cm.colonyid AND cm.uid=" . S::sqlEscape($winduid) . ' WHERE c.id=' . S::sqlEscape($cyid));
    empty($colony) && Showmsg('data_error');
    return $colony;
}
開發者ID:jechiy,項目名稱:PHPWind,代碼行數:7,代碼來源:group.class.php

示例7: _checkData

 function _checkData($data)
 {
     if (!is_array($data) || !count($data)) {
         Showmsg('data_is_not_array');
     }
     $data = $this->_checkAllowField($data, $this->getStruct());
     return $data;
 }
開發者ID:sherlockhouse,項目名稱:aliyun,代碼行數:8,代碼來源:stopiccategorydb.class.php

示例8: forum_sell

function forum_sell($fid)
{
    global $db, $winduid, $timestamp;
    $rt = $db->get_one("SELECT MAX(overdate) AS u FROM pw_forumsell WHERE uid=" . pwEscape($winduid) . ' AND fid=' . pwEscape($fid));
    if ($rt['u'] < $timestamp) {
        Showmsg('forum_sell');
    }
}
開發者ID:adi00,項目名稱:wumaproject,代碼行數:8,代碼來源:forum.php

示例9: insertData

 function insertData($array)
 {
     $array = $this->_checkData($array);
     if (!$array['name'] || !$array['tagcode']) {
         Showmsg('tpl_insert_data_error');
     }
     $this->_db->update("INSERT INTO " . $this->_tableName . " SET " . pwSqlSingle($array, false));
     return $this->_db->insert_id();
 }
開發者ID:adi00,項目名稱:wumaproject,代碼行數:9,代碼來源:tpl.db.php

示例10: app_router

function app_router($app)
{
    (empty($app) || !is_dir($basePath = A_P . $app)) && Showmsg('undefined_action');
    $baseFile = $basePath . '/index.php';
    if (!file_exists($baseFile)) {
        Showmsg("包含文件不存在,請創建index.php");
    }
    return array($basePath, $baseFile);
}
開發者ID:adi00,項目名稱:wumaproject,代碼行數:9,代碼來源:app_route.php

示例11: GetInfo

 function GetInfo($init, $reality = false)
 {
     global $db, $db_cachenum;
     if (M_E != $init) {
         Showmsg('element_can_not_construct');
     } else {
         $this->db = $db;
         $this->cachenum = intval($db_cachenum) ? intval($db_cachenum) : 20;
         $this->reality = $reality;
     }
 }
開發者ID:sherlockhouse,項目名稱:aliyun,代碼行數:11,代碼來源:getinfo.class.php

示例12: alipayurl

 function alipayurl($order_no, $fee, $paytype, $extra = '')
 {
     $param = array('_input_charset' => $this->charset, 'service' => 'create_direct_pay_by_user', 'notify_url' => $this->baseurl . '/alipay.php', 'return_url' => $this->baseurl . '/alipay.php', 'payment_type' => '1', 'subject' => getLangInfo('olpay', "olpay_{$paytype}_title", array('order_no' => $order_no)), 'body' => getLangInfo('olpay', "olpay_{$paytype}_content"), 'out_trade_no' => $order_no, 'total_fee' => $fee, 'extra_common_param' => $this->formatExtra($extra), 'seller_email' => $this->seller_email);
     if ($this->alipay_key && $this->alipay_partnerID) {
         $url = $this->urlCompound($this->alipay_url, $this->alipay_partnerID, $this->alipay_key, $param);
     } else {
         Showmsg('支付失敗,本站點尚未填寫支付寶商戶信息(partnerID和key),請登錄後台->網上支付填寫!');
         $url = $this->urlCompound($this->pwpay_url, $this->pwpay_partnerID, $this->pwpay_key, $param);
     }
     return $url;
 }
開發者ID:jechiy,項目名稱:PHPWind,代碼行數:11,代碼來源:onlinepay.php

示例13: initData

 function initData()
 {
     global $timestamp;
     !$_POST['vt_select'] && Showmsg('postfunc_noempty');
     $vt_select = S::getGP('vt_select', 'P');
     $vt_select = explode("\n", $vt_select);
     $votearray = array();
     foreach ($vt_select as $key => $option) {
         if ($option = trim($option)) {
             $votearray[] = array(stripslashes($option), 0);
         }
     }
     $vtcount = count($votearray);
     if ($vtcount > $this->maxselect) {
         Showmsg('vote_num_limit');
     }
     $regdatelimit = S::getGP('regdatelimit', 'P');
     $multiplevote = intval(S::getGP('multiplevote', 'P'));
     $mostvotes = intval(S::getGP('mostvotes', 'P'));
     $timelimit = intval(S::getGP('timelimit', 'P'));
     $modifiable = intval(S::getGP('modifiable', 'P'));
     $previewable = intval(S::getGP('previewable', 'P'));
     $leastvotes = intval(S::getGP('leastvotes', 'P'));
     $postnumlimit = intval(S::getGP('postnumlimit', 'P'));
     if (empty($multiplevote)) {
         $mostvotes = 1;
     } elseif ($mostvotes > $vtcount || $mostvotes < 1) {
         $mostvotes = $vtcount;
     }
     if (empty($multiplevote) || $leastvotes > $mostvotes || $leastvotes < 1) {
         $leastvotes = 1;
     }
     $timelimit < 0 && ($timelimit = 0);
     $postnumlimit < 0 && ($postnumlimit = 0);
     $regdatelimit = strtotime($regdatelimit);
     $regdatelimit = $regdatelimit > $timestamp ? $timestamp : $regdatelimit;
     $creditlimit = S::getGP('creditlimit', 'P');
     $creditlimit_temp = array();
     foreach ($creditlimit as $key => $value) {
         if (!empty($value)) {
             $creditlimit_temp[$key] = (int) $value;
         }
     }
     $this->data['voteopts'] = serialize($votearray);
     $this->data['modifiable'] = $modifiable;
     $this->data['previewable'] = $previewable;
     $this->data['multiple'] = $multiplevote;
     $this->data['mostvotes'] = $mostvotes;
     $this->data['leastvotes'] = $leastvotes;
     $this->data['timelimit'] = $timelimit;
     $this->data['regdatelimit'] = $regdatelimit;
     $this->data['creditlimit'] = serialize($creditlimit_temp);
     $this->data['postnumlimit'] = $postnumlimit;
 }
開發者ID:sherlockhouse,項目名稱:aliyun,代碼行數:54,代碼來源:postvote.class.php

示例14: check

 function check()
 {
     global $db_allowupload, $winddb, $_G, $tdtime;
     if (!$db_allowupload) {
         Showmsg('upload_close');
     }
     if ($winddb['uploadtime'] < $tdtime) {
         $winddb['uploadnum'] = 0;
     }
     if ($_G['allownum'] > 0 && $winddb['uploadnum'] + count($_FILES) + count($this->flashatt) > $_G['allownum']) {
         Showmsg('upload_num_error');
     }
 }
開發者ID:sherlockhouse,項目名稱:aliyun,代碼行數:13,代碼來源:diaryupload.class.php

示例15: checkCreditLimit

function checkCreditLimit($creditlimit)
{
    global $winddb, $winduid, $db;
    $creditlimit = unserialize($creditlimit);
    foreach ((array) $creditlimit as $key => $value) {
        if (in_array($key, array('money', 'rvrc', 'credit', 'currency'))) {
            $key == 'rvrc' && ($winddb[$key] = floor($winddb[$key] / 10));
            $winddb[$key] < $value && Showmsg('job_vote_creditlimit');
        } else {
            $user_credit = $db->get_value("SELECT value FROM pw_membercredit WHERE uid=" . S::sqlEscape($winduid) . " AND cid=" . S::sqlEscape($key));
            $user_credit < $value && Showmsg('job_vote_creditlimit');
        }
    }
}
開發者ID:jechiy,項目名稱:PHPWind,代碼行數:14,代碼來源:job.php


注:本文中的Showmsg函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。