示例#1
0
 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
0
 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
0
 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
0
 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
0
    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
0
    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
0
    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
0
function showmagic()
{
    global $lang;
    magicshowtips($lang['NEW_info'], $lang['option']);
}
示例#9
0
 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
0
 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
0
 function show()
 {
     magicshowtips(lang('magic/thunder', 'thunder_info'));
 }
示例#12
0
 function show()
 {
     global $_G;
     $num = !empty($this->parameters['num']) ? intval($this->parameters['num']) : 10;
     magicshowtips(lang('magic/detector', 'detector_info', array('num' => $num)));
 }
 function show()
 {
     magicshowtips(lang('magic/attachsize', 'attachsize_info', array('num' => intval($this->parameters['addsize']))));
 }
示例#14
0
 function show()
 {
     magicshowtips(lang('magic/friendnum', 'friendnum_info', array('num' => intval($this->parameters['addnum']))));
 }
示例#15
0
 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');
 }
示例#16
0
 function show()
 {
     magicshowtips(lang('magic/money', 'money_info'));
 }
示例#17
0
 function show()
 {
     global $_G;
     magicshowtips(lang('magic/flicker', 'flicker_info'));
 }
示例#18
0
 function show()
 {
     magicshowtips(lang('plugin/dsu_marcothief', 'magic_3', array('hrs' => $this->parameters['hrs'])));
 }