本文整理汇总了PHP中magicshowtips函数的典型用法代码示例。如果您正苦于以下问题:PHP magicshowtips函数的具体用法?PHP magicshowtips怎么用?PHP magicshowtips使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了magicshowtips函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show
function show()
{
$id = intval($_GET['id']);
$idtype = $_GET['idtype'];
magic_check_idtype($id, $idtype);
magicshowtips(lang('magic/call', 'call_info'));
$op = 'use';
include template('home/magic_call');
}
示例2: show
function show()
{
global $_G;
$id = intval($_GET['id']);
$idtype = $_GET['idtype'];
magic_check_idtype($id, $idtype);
magicshowtips(lang('magic/updateline', 'updateline_info'));
echo '<p><input type="hidden" name="id" value="' . $id . '" /><input type="hidden" name="idtype" value="' . $idtype . '" /></p>';
}
示例3: show
function show()
{
$id = intval($_GET['id']);
$idtype = $_GET['idtype'];
$blog = magic_check_idtype($id, $idtype);
magicshowtips(lang('magic/downdateline', 'downdateline_info'));
$time = dgmdate($blog['dateline'], 'Y-m-d H:i');
$op = 'use';
include template('home/magic_downdateline');
}
示例4: show
function show()
{
global $_G;
$num = !empty($this->parameters['num']) ? intval($this->parameters['num']) : 10;
magicshowtips(lang('magic/gift', 'gift_info', array('num' => $num)));
$extcredits = array();
foreach ($_G['setting']['extcredits'] as $id => $credit) {
$extcredits['extcredits' . $id] = $credit['title'];
}
$op = 'show';
include template('home/magic_gift');
}
示例5: show
function show()
{
global $_G;
magicshowtips(lang('magic/doodle', 'doodle_info'));
echo <<<SCRIPT
<p>
\t<input type="hidden" name="showid" value="{$_GET['showid']}" />
\t<input type="hidden" name="mtarget" value="{$_GET['target']}" />
\t<input type="hidden" name="from" value="{$_GET['from']}" />
</p>
SCRIPT;
}
示例6: show
function show()
{
global $_G;
$id = intval($_GET['id']);
$idtype = $_GET['idtype'];
$blog = magic_check_idtype($id, $idtype);
if (DB::result(DB::query('SELECT COUNT(*) FROM ' . DB::table('common_magiclog') . " WHERE action='2' AND uid = '{$_G['uid']}' AND targetid = '{$id}' AND idtype = '{$idtype}' AND magicid = '{$this->magic[magicid]}'"), 0)) {
showmessage("magicuse_object_once_limit");
}
$num = !empty($_G['setting']['feedhotmin']) ? intval($_G['setting']['feedhotmin']) : 3;
magicshowtips(lang('magic/hot', 'hot_info', array('num' => $num)));
echo <<<HTML
<p>
\t<input type="hidden" name="id" value="'.{$id}.'" />
\t<input type="hidden" name="idtype" value="'.{$idtype}.'" />
</p>
HTML;
}
示例7: show
function show()
{
global $_G;
$id = intval($_GET['id']);
$idtype = $_GET['idtype'];
$blog = magic_check_idtype($id, $idtype);
if (C::t('common_magiclog')->count_by_action_uid_targetid_idtype_magicid(2, $_G['uid'], $id, $idtype, $this->magic['magicid'])) {
showmessage('magicuse_object_once_limit');
}
$num = !empty($_G['setting']['feedhotmin']) ? intval($_G['setting']['feedhotmin']) : 3;
magicshowtips(lang('magic/hot', 'hot_info', array('num' => $num)));
echo <<<HTML
<p>
\t<input type="hidden" name="id" value="'.{$id}.'" />
\t<input type="hidden" name="idtype" value="'.{$idtype}.'" />
</p>
HTML;
}
示例8: showmagic
function showmagic()
{
global $lang;
magicshowtips($lang['NEW_info'], $lang['option']);
}
示例9: buy
function buy()
{
global $_G;
if (!empty($_GET['id'])) {
$thread = getpostinfo($_GET['id'], 'tid', array('fid'));
$this->_check($thread['fid']);
}
$this->parameters['expiration'] = $this->parameters['expiration'] ? intval($this->parameters['expiration']) : 1;
magicshowtips(lang('magic/jack', 'jack_info', array('expiration' => $this->parameters['expiration'])));
}
示例10: show
function show()
{
global $_G;
$id = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
$idtype = !empty($_GET['idtype']) ? dhtmlspecialchars($_GET['idtype']) : '';
if ($idtype == 'pid') {
list($id, $_G['tid']) = explode(':', $id);
if ($id && $_G['tid']) {
$post = getpostinfo($id, 'pid', array('p.fid', 'p.authorid'));
$this->_check($post);
}
}
magicshowtype('top');
magicshowtips(lang('magic/namepost', 'namepost_desc'));
magicshowtips(lang('magic/namepost', 'namepost_num', array('magicnum' => $this->magic['num'])));
magicshowsetting('', 'id', $id, 'hidden');
magicshowsetting('', 'idtype', $idtype, 'hidden');
if ($idtype == 'pid') {
magicshowsetting('', 'ptid', $_G['tid'], 'hidden');
}
magicshowtype('bottom');
}
示例11: show
function show()
{
magicshowtips(lang('magic/thunder', 'thunder_info'));
}
示例12: show
function show()
{
global $_G;
$num = !empty($this->parameters['num']) ? intval($this->parameters['num']) : 10;
magicshowtips(lang('magic/detector', 'detector_info', array('num' => $num)));
}
示例13: show
function show()
{
magicshowtips(lang('magic/attachsize', 'attachsize_info', array('num' => intval($this->parameters['addsize']))));
}
示例14: show
function show()
{
global $_G;
$num = !empty($this->parameters['num']) ? intval($this->parameters['num']) : 10;
magicshowtips(lang('magic/visit', 'visit_info', array('num' => $num)));
$op = 'use';
include template('home/magic_visit');
}
示例15: show
function show()
{
global $_G;
magicshowtips(lang('magic/flicker', 'flicker_info'));
}