Exemplo n.º 1
0
function showmagic()
{
    global $tid, $lang;
    magicshowtype($lang['option'], 'top');
    magicshowsetting($lang['target_tid'], 'tid', $tid, 'text');
    magicshowtype('', 'bottom');
}
function showmagic()
{
    global $username, $lang;
    magicshowtype($lang['option'], 'top');
    magicshowsetting($lang['target_username'], 'username', $username, 'text');
    magicshowtype('', 'bottom');
}
Exemplo n.º 3
0
function showmagic()
{
    global $tid, $lang;
    require_once DISCUZ_ROOT . './include/forum.func.php';
    magicshowtype($lang['option'], 'top');
    magicshowsetting($lang['target_tid'], 'tid', $tid, 'text');
    magicshowsetting($lang['MVK_target'], '', '', '<select name="moveto">' . forumselect() . '</select>');
    magicshowtype('', 'bottom');
}
Exemplo n.º 4
0
 function show()
 {
     global $_G;
     $tid = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
     if ($tid) {
         $thread = getpostinfo($_GET['id'], 'tid', array('fid'));
         $this->_check($thread['fid']);
     }
     magicshowtype('top');
     magicshowsetting(lang('magic/bump', 'bump_info'), 'tid', $tid, 'text');
     magicshowtype('bottom');
 }
Exemplo n.º 5
0
 function show()
 {
     global $_G;
     $user = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
     if ($user) {
         $member = getuserinfo($user);
         $this->_check($member['groupid']);
     }
     magicshowtype('top');
     magicshowsetting(lang('magic/checkonline', 'checkonline_targetuser'), 'username', $user, 'text');
     magicshowtype('bottom');
 }
Exemplo n.º 6
0
 function show()
 {
     global $_G;
     $user = !empty($_G['gp_id']) ? htmlspecialchars($_G['gp_id']) : '';
     if ($user) {
         $member = getuserinfo($user, array('groupid'));
         $this->_check($member['groupid']);
     }
     magicshowtype('top');
     magicshowsetting(lang('magic/showip', 'showip_targetuser'), 'username', $user, 'text');
     magicshowtype('bottom');
 }
Exemplo n.º 7
0
 function show()
 {
     global $_G;
     $tid = !empty($_G['gp_id']) ? htmlspecialchars($_G['gp_id']) : '';
     if ($tid) {
         $thread = getpostinfo($_G['gp_id'], 'tid', array('fid', 'authorid'));
         $this->_check($thread);
     }
     $this->parameters['expiration'] = $this->parameters['expiration'] ? intval($this->parameters['expiration']) : 24;
     magicshowtype('top');
     magicshowsetting(lang('magic/sofa', 'sofa_info', array('expiration' => $this->parameters['expiration'])), 'tid', $tid, 'text');
     magicshowtype('bottom');
 }
Exemplo n.º 8
0
 function show()
 {
     global $_G;
     $pid = !empty($_G['gp_id']) ? htmlspecialchars($_G['gp_id']) : '';
     list($pid, $_G['tid']) = explode(':', $pid);
     if ($tid) {
         $post = getpostinfo($_G['gp_id'], 'pid', array('p.fid', 'p.authorid'));
         $this->_check($post);
     }
     magicshowtype('top');
     magicshowsetting(lang('magic/repent', 'repent_info'), 'pid', $pid, 'text');
     magicshowsetting('', 'ptid', $_G['tid'], 'hidden');
     magicshowtype('bottom');
 }
Exemplo n.º 9
0
 function show()
 {
     global $_G;
     $tid = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
     if ($tid) {
         $thread = getpostinfo($_GET['id'], 'tid', array('fid'));
         $this->_check($thread['fid']);
     }
     $this->parameters['expiration'] = $this->parameters['expiration'] ? intval($this->parameters['expiration']) : 1;
     magicshowtype('top');
     magicshowtips(lang('magic/jack', 'jack_info', array('expiration' => $this->parameters['expiration'], 'magicnum' => $this->magic['num'])));
     magicshowsetting(lang('magic/jack', 'jack_num'), 'magicnum', '1', 'text');
     magicshowsetting('', 'tid', $tid, 'hidden');
     magicshowtype('bottom');
 }
Exemplo n.º 10
0
function showmagic()
{
    global $tid, $lang;
    magicshowtype($lang['option'], 'top');
    magicshowsetting($lang['target_tid'], 'tid', $tid, 'text');
    magicshowsetting($lang['CCK_color'], '', '', '<table border="0" cellspacing="0" cellpadding="0"><tr>
	<td><input type="radio" class="radio" name="highlight_color" value="1" checked="checked" /></td><td width="20" bgcolor="red">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="2" /></td><td width="20" bgcolor="orange">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="3" /></td><td width="20" bgcolor="yellow">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="4" /></td><td width="20" bgcolor="green">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="5" /></td><td width="20" bgcolor="cyan">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="6" /></td><td width="20" bgcolor="blue">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="7" /></td><td width="20" bgcolor="purple">&nbsp;</td>
	<td> &nbsp; <input type="radio" class="radio" name="highlight_color" value="8" /></td><td width="20" bgcolor="gray">&nbsp;</td>
	</tr></table>');
    magicshowtype('', 'bottom');
}
Exemplo n.º 11
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');
 }
Exemplo n.º 12
0
    function show()
    {
        global $_G;
        $id = !empty($_GET['id']) ? dhtmlspecialchars($_GET['id']) : '';
        $idtype = !empty($_GET['idtype']) ? $_GET['idtype'] : '';
        if (!in_array($idtype, $this->idtypearray)) {
            showmessage(lang('magic/highlight', 'highlight_info_notype'), dreferer(), array(), array('showdialog' => 1, 'locationtime' => true));
        }
        if ($id) {
            $info = getpostinfo($_GET['id'], $idtype);
            if ($idtype == 'tid') {
                $this->_check($info['fid']);
                $this->parameters['expiration'] = $this->parameters['expiration'] && $idtype == 'tid' ? intval($this->parameters['expiration']) : 24;
            }
        }
        magicshowtype('top');
        $lang = lang('magic/highlight');
        magicshowsetting(lang('magic/highlight', 'highlight_info_' . $idtype, array('expiration' => $this->parameters['expiration'])), 'id', $id, 'hidden');
        echo <<<EOF
\t<p class="mtm mbn">{$lang['highlight_color']}</p>
\t<div class="hasd mbm cl">
\t\t<input type="hidden" id="highlight_color" name="highlight_color" />
\t\t<input type="hidden" id="highlight_idtype" name="idtype" value="{$idtype}"/>
\t\t<input type="text" id="highlight_color_show" class="crl readonly="readonly"" />
\t\t<a href="javascript:;" id="highlight_color_ctrl" class="dpbtn" onclick="showHighLightColor('highlight_color')">^</a>
\t</div>
\t<script type="text/javascript" reload="1">
\t\tfunction showHighLightColor(hlid) {
\t\t\tvar showid = hlid + '_show';
\t\t\tif(!\$(showid + '_menu')) {
\t\t\t\tvar str = '';
\t\t\t\tvar coloroptions = {'0' : '#000', '1' : '#EE1B2E', '2' : '#EE5023', '3' : '#996600', '4' : '#3C9D40', '5' : '#2897C5', '6' : '#2B65B7', '7' : '#8F2A90', '8' : '#EC1282'};
\t\t\t\tvar menu = document.createElement('div');
\t\t\t\tmenu.id = showid + '_menu';
\t\t\t\tmenu.className = 'cmen';
\t\t\t\tmenu.style.display = 'none';
\t\t\t\tfor(var i in coloroptions) {
\t\t\t\t\tstr += '<a href="javascript:;" onclick="\$(\\'' + hlid + '\\').value=' + i + ';\$(\\'' + showid + '\\').style.backgroundColor=\\'' + coloroptions[i] + '\\';hideMenu(\\'' + menu.id + '\\')" style="background:' + coloroptions[i] + ';color:' + coloroptions[i] + ';">' + coloroptions[i] + '</a>';
\t\t\t\t}
\t\t\t\tmenu.innerHTML = str;
\t\t\t\t\$('append_parent').appendChild(menu);
\t\t\t}
\t\t\tshowMenu({'ctrlid':hlid + '_ctrl','evt':'click','showid':showid});
\t\t}
\t</script>
EOF;
        magicshowtype('bottom');
    }