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


PHP convertip函数代码示例

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


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

示例1: loadInfo

function loadInfo($filename)
{
    $logFile = dirname(__FILE__) . '/' . DATA_PATH . '/' . $filename . '.php';
    if (!file_exists($logFile)) {
        return false;
    }
    $info = @file_get_contents($logFile);
    if (strncmp($info, '<?php exit();?>', 15) != 0) {
        return false;
    }
    $info = substr($info, 15);
    if (ENABLE_ENCRYPT) {
        $info = decrypt($info, ENCRYPT_PASS);
    } else {
        $info = base64_decode($info);
    }
    if (!preg_match('/^[A-Za-z0-9\\x00-\\x80~!@#$%&_+-=:";\'<>,\\/"\\[\\]\\\\^\\.\\|\\?\\*\\+\\(\\)\\{\\}\\s]+$/', $info)) {
        return false;
    }
    $info = json_decode($info, true);
    $isChange = false;
    if (!isset($info['location'])) {
        $info['location'] = convertip($info['user_IP'], IPDATA_PATH);
        $isChange = true;
    }
    if ($isChange) {
        saveInfo(json_encode($info), $filename);
    }
    return $info;
}
开发者ID:chensword,项目名称:BlueLotus_XSSReceiver,代码行数:30,代码来源:dio.php

示例2: global_footer

 function global_footer()
 {
     global $_G;
     if (!$this->allow) {
         return;
     }
     require_once DISCUZ_ROOT . './source/plugin/smstong/smstong.func.php';
     $data = DB::fetch_first("SELECT mobile FROM " . DB::table("common_member_profile") . " WHERE uid = {$_G['uid']}");
     if ($_G['cache']['plugin']['smstong']['reportmsgnotify'] && $_G['gp_mod'] == 'report' && $_G['gp_reportsubmit']) {
         $content = $_G['cache']['plugin']['smstong']['reportmsgnotifymsg'];
         $rp = array('$username', '$tid', '$message');
         $sm = array($_G['username'], $_G['gp_rid'], $_G['gp_message']);
         $content = str_replace($rp, $sm, $content);
         $arraymobile = explode(',', $_G['cache']['plugin']['smstong']['reportmsgnotifymobile']);
         foreach ($arraymobile as $mobile) {
             $ret = sendsms($_G['cache']['plugin']['smstong']['smsusername'], $_G['cache']['plugin']['smstong']['smspassword'], $mobile, $content);
         }
     } elseif ($_G['cache']['plugin']['smstong']['loggingmsgnotify'] && ismobile($data['mobile']) && $_G['cookie']['loginmark'] != $_G['cookie']['lastvisit']) {
         dsetcookie('loginmark', $_G['cookie']['lastvisit']);
         require_once DISCUZ_ROOT . './source/function/function_misc.php';
         $content = $_G['cache']['plugin']['smstong']['loggingmsgnotifymsg'];
         $rp = array('$username', '$logtime', '$ipaddress', '$location');
         $sm = array($_G['username'], date('Y-m-d H:i:s', TIMESTAMP), $_G['clientip'], str_replace('-', '', str_replace(' ', '', convertip($_G['clientip']))));
         $content = str_replace($rp, $sm, $content);
         $ret = sendsms($_G['cache']['plugin']['smstong']['smsusername'], $_G['cache']['plugin']['smstong']['smspassword'], $data['mobile'], $content);
     }
 }
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:27,代码来源:smstong.class.php

示例3: chlogin

 function chlogin()
 {
     $adminname = getgpc("adminname");
     $adminpwd = getgpc("adminpwd");
     $chres = fetch_one_array("select * from " . dbtable("admin_user") . " where username='" . $adminname . "'");
     //dump($chres);
     if ($chres) {
         $md5salt = $this->config->item("md5salt");
         if ($chres["password"] == md5($md5salt . $adminpwd)) {
             //正常登录
             $_SESSION['chadmin'] = 1;
             $_SESSION['admin_id'] = $chres['id'];
             $_SESSION['admin_utype'] = $chres['utype'];
             $_SESSION['admin_username'] = $chres['username'];
             $query_group = $this->db->select('admin_group.name')->from('admin_group')->join('admin_user', 'admin_user.groupid = admin_group.id')->where(array('admin_user.id' => $chres['id']))->get();
             $_SESSION['group_name'] = $query_group->row_array()['name'];
             $ip = convertip();
             $updata = array('uid' => $chres['id'], 'username' => $chres['username'], 'time' => date("Y-m-d H:i:s"), 'ip' => $ip['ip'], 'ipaddr' => $ip['addr']);
             $this->db->insert('admin_user_loginlog', $updata);
             alert("登录成功", "/admin.php");
             exit;
         }
     }
     alert("账号或者密码错误", "/admin.php?mod=login");
 }
开发者ID:visonforcoding,项目名称:cidev,代码行数:25,代码来源:login.php

示例4: get_resideprovince_by_ip

 public function get_resideprovince_by_ip($ip)
 {
     require_once libfile('function/misc');
     $location = cutstr(str_replace('- ', '', convertip($ip)), 4, '');
     if (!empty($location)) {
         $district = DB::fetch_first('SELECT * FROM %t WHERE level=1 AND (usetype&2>0) AND name LIKE %s', array($this->_table, $location . '%'));
         if (!empty($district)) {
             return $district['name'];
         }
     }
     return NULL;
 }
开发者ID:hacktea8,项目名称:d_z_s_t_u_d_e_n_t,代码行数:12,代码来源:table_district.php

示例5: get_client_info

function get_client_info()
{
    global $_G;
    require_once libfile('function/misc');
    if (strtoupper(convertip($_G['clientip'])) == '- LAN') {
        return FALSE;
    }
    $re['siteurl'] = $_G['siteurl'];
    $re['domain'] = get_domain($re['siteurl']);
    if (!$re['domain']) {
        return FALSE;
    }
    $re['sitename'] = $_G['setting']['bbname'];
    $re['dxc_version'] = PICK_VERSION;
    $re['dxc_release'] = V_D;
    $re['discuz_version'] = DISCUZ_VERSION;
    $re['discuz_release'] = DISCUZ_RELEASE;
    return $re;
}
开发者ID:edmundwong,项目名称:V604,代码行数:19,代码来源:function.copyright.php

示例6: load_xss_record

function load_xss_record($filename)
{
    if (strpos($filename, "..") === false && strpos($filename, "/") === false && strpos($filename, "\\") === false) {
        $logFile = dirname(__FILE__) . '/' . DATA_PATH . '/' . $filename . '.php';
        if (!file_exists($logFile)) {
            return false;
        }
        $info = @file_get_contents($logFile);
        if ($info === false) {
            return false;
        }
        if (strncmp($info, '<?php exit();?>', 15) != 0) {
            return false;
        }
        $info = substr($info, 15);
        $info = decrypt($info);
        //只会出现在加密密码错误的时候
        if (!preg_match('/^[A-Za-z0-9\\x00-\\x80~!@#$%&_+-=:";\'<>,\\/"\\[\\]\\\\^\\.\\|\\?\\*\\+\\(\\)\\{\\}\\s]+$/', $info)) {
            return false;
        }
        $info = json_decode($info, true);
        //只会出现在加密密码错误的时候
        if ($info === false) {
            return false;
        }
        $isChange = false;
        if (!isset($info['location'])) {
            $info['location'] = stripStr(convertip($info['user_IP'], IPDATA_PATH));
            $isChange = true;
        }
        //只会出现在加密密码错误的时候
        if (!isset($info['request_time'])) {
            return false;
        }
        if ($isChange) {
            save_xss_record(json_encode($info), $filename);
        }
        return $info;
    } else {
        return false;
    }
}
开发者ID:AndreaOm,项目名称:BlueLotus_XSSReceiver,代码行数:42,代码来源:dio.php

示例7: dirList

function dirList()
{
    $list = array();
    $files = glob(DATA_PATH . '/*.php');
    arsort($files);
    foreach ($files as $file) {
        $filename = basename($file, ".php");
        $info = loadInfo($filename);
        $isChange = false;
        //如果没有设置location,就查询qqwry.dat判断location
        if (!isset($info['location'])) {
            $info['location'] = convertip($info['user_IP'], IPDATA_PATH);
            $isChange = true;
        }
        if ($isChange) {
            saveInfo(json_encode($info), $filename);
        }
        $list[] = $info;
    }
    return $list;
}
开发者ID:chensword,项目名称:BlueLotus_XSSReceiver,代码行数:21,代码来源:api.php

示例8: tin_new_friend

function tin_new_friend()
{
    global $pagenow;
    if (tin_get_http_response_code('http://cdn.zhiyanblog.com/tinection/version.json') == '200') {
        if ('themes.php' == $pagenow && isset($_GET['activated'])) {
            $url = get_bloginfo('url');
            $name = get_bloginfo('name');
            $email = get_bloginfo('admin_email');
            $theme = wp_get_theme();
            $ip = $_SERVER['REMOTE_ADDR'];
            $ipaddr = convertip($ip);
            $data = array('url' => $url, 'name' => $name, 'email' => $email, 'version' => $theme->get('Version'), 'ip' => $ip, 'ipaddr' => $ipaddr);
            tin_socket_post('http://cdn.zhiyanblog.com/tinection/r.php', $data);
        }
    }
}
开发者ID:jackycgq,项目名称:tinection-pro,代码行数:16,代码来源:functions.php

示例9: on_register

 function on_register()
 {
     global $_G;
     $_GET['username'] = $_GET['' . $this->setting['reginput']['username']];
     $_GET['password'] = $_GET['' . $this->setting['reginput']['password']];
     $_GET['password2'] = $_GET['' . $this->setting['reginput']['password2']];
     $_GET['email'] = $_GET['' . $this->setting['reginput']['email']];
     if ($_G['uid']) {
         $ucsynlogin = $this->setting['allowsynlogin'] ? uc_user_synlogin($_G['uid']) : '';
         $url_forward = dreferer();
         if (strpos($url_forward, $this->setting['regname']) !== false) {
             $url_forward = 'forum.php';
         }
         showmessage('login_succeed', $url_forward ? $url_forward : './', array('username' => $_G['member']['username'], 'usergroup' => $_G['group']['grouptitle'], 'uid' => $_G['uid']), array('extrajs' => $ucsynlogin));
     } elseif (!$this->setting['regclosed'] && (!$this->setting['regstatus'] || !$this->setting['ucactivation'])) {
         if ($_GET['action'] == 'activation' || $_GET['activationauth']) {
             if (!$this->setting['ucactivation'] && !$this->setting['closedallowactivation']) {
                 showmessage('register_disable_activation');
             }
         } elseif (!$this->setting['regstatus']) {
             if ($this->setting['regconnect']) {
                 dheader('location:connect.php?mod=login&op=init&referer=forum.php&statfrom=login_simple');
             }
             showmessage(!$this->setting['regclosemessage'] ? 'register_disable' : str_replace(array("\r", "\n"), '', $this->setting['regclosemessage']));
         }
     }
     $bbrules =& $this->setting['bbrules'];
     $bbrulesforce =& $this->setting['bbrulesforce'];
     $bbrulestxt =& $this->setting['bbrulestxt'];
     $welcomemsg =& $this->setting['welcomemsg'];
     $welcomemsgtitle =& $this->setting['welcomemsgtitle'];
     $welcomemsgtxt =& $this->setting['welcomemsgtxt'];
     $regname = $this->setting['regname'];
     if ($this->setting['regverify']) {
         if ($this->setting['areaverifywhite']) {
             $location = $whitearea = '';
             $location = trim(convertip($_G['clientip'], "./"));
             if ($location) {
                 $whitearea = preg_quote(trim($this->setting['areaverifywhite']), '/');
                 $whitearea = str_replace(array("\\*"), array('.*'), $whitearea);
                 $whitearea = '.*' . $whitearea . '.*';
                 $whitearea = '/^(' . str_replace(array("\r\n", ' '), array('.*|.*', ''), $whitearea) . ')$/i';
                 if (@preg_match($whitearea, $location)) {
                     $this->setting['regverify'] = 0;
                 }
             }
         }
         if ($_G['cache']['ipctrl']['ipverifywhite']) {
             foreach (explode("\n", $_G['cache']['ipctrl']['ipverifywhite']) as $ctrlip) {
                 if (preg_match("/^(" . preg_quote($ctrlip = trim($ctrlip), '/') . ")/", $_G['clientip'])) {
                     $this->setting['regverify'] = 0;
                     break;
                 }
             }
         }
     }
     $invitestatus = false;
     if ($this->setting['regstatus'] == 2) {
         if ($this->setting['inviteconfig']['inviteareawhite']) {
             $location = $whitearea = '';
             $location = trim(convertip($_G['clientip'], "./"));
             if ($location) {
                 $whitearea = preg_quote(trim($this->setting['inviteconfig']['inviteareawhite']), '/');
                 $whitearea = str_replace(array("\\*"), array('.*'), $whitearea);
                 $whitearea = '.*' . $whitearea . '.*';
                 $whitearea = '/^(' . str_replace(array("\r\n", ' '), array('.*|.*', ''), $whitearea) . ')$/i';
                 if (@preg_match($whitearea, $location)) {
                     $invitestatus = true;
                 }
             }
         }
         if ($this->setting['inviteconfig']['inviteipwhite']) {
             foreach (explode("\n", $this->setting['inviteconfig']['inviteipwhite']) as $ctrlip) {
                 if (preg_match("/^(" . preg_quote($ctrlip = trim($ctrlip), '/') . ")/", $_G['clientip'])) {
                     $invitestatus = true;
                     break;
                 }
             }
         }
     }
     $groupinfo = array();
     if ($this->setting['regverify']) {
         $groupinfo['groupid'] = 8;
     } else {
         $groupinfo['groupid'] = $this->setting['newusergroupid'];
     }
     $seccodecheck = $this->setting['seccodestatus'] & 1;
     $secqaacheck = $this->setting['secqaa']['status'] & 1;
     $fromuid = !empty($_G['cookie']['promotion']) && $this->setting['creditspolicy']['promotion_register'] ? intval($_G['cookie']['promotion']) : 0;
     $username = isset($_GET['username']) ? $_GET['username'] : '';
     $bbrulehash = $bbrules ? substr(md5(FORMHASH), 0, 8) : '';
     $auth = $_GET['auth'];
     if (!$invitestatus) {
         $invite = getinvite();
     }
     $sendurl = $this->setting['sendregisterurl'] ? true : false;
     if ($sendurl) {
         if (!empty($_GET['hash'])) {
             $_GET['hash'] = preg_replace("/[^\\[A-Za-z0-9_\\]%]/", '', $_GET['hash']);
             $hash = explode("\t", authcode($_GET['hash'], 'DECODE', $_G['config']['security']['authkey']));
//.........这里部分代码省略.........
开发者ID:torrent520,项目名称:torrent520.github.io,代码行数:101,代码来源:class_member.php

示例10: libfile

 $censor =& discuz_censor::instance();
 $censor->highlight = '#FF0000';
 require_once libfile('function/misc');
 while ($comment = DB::fetch($query)) {
     $comment['dateline'] = dgmdate($comment['dateline']);
     $short_desc = cutstr($comment['message'], 75);
     if ($showcensor) {
         $censor->check($short_desc);
         $censor->check($comment['message']);
     }
     $comment_censor_words = $censor->words_found;
     if (count($comment_censor_words) > 3) {
         $comment_censor_words = array_slice($comment_censor_words, 0, 3);
     }
     $comment['censorwords'] = implode(', ', $comment_censor_words);
     $comment['ip'] = $comment['ip'] . ' - ' . convertip($comment['ip']);
     $comment['modkey'] = modauthkey($comment['id']);
     $comment['modcommentkey'] = modauthkey($comment['cid']);
     if (count($comment_censor_words)) {
         $comment_censor_text = "<span style=\"color: red;\">({$comment['censorwords']})</span>";
     } else {
         $comment_censor_text = lang('admincp', 'no_censor_word');
     }
     $viewurl = '';
     $commenttype = '';
     $editurl = "home.php?mod=spacecp&ac=comment&op=edit&cid={$comment['cid']}&modcommentkey={$comment['modcommentkey']}";
     switch ($comment['idtype']) {
         case 'uid':
             $commenttype = lang('admincp', 'comment_uid');
             $viewurl = "home.php?mod=space&uid={$comment['uid']}&do=wall#comment_anchor_{$comment['cid']}";
             break;
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:moderate_comment.php

示例11: fun_comment_quote

function fun_comment_quote($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    global $commentcount_quote, $wpdb, $post;
    if (!$commentcount_quote) {
        $cnt = $wpdb->get_var("SELECT COUNT(comment_ID) FROM {$wpdb->comments} WHERE comment_post_ID = {$post->ID} AND (comment_type = 'trackback' OR comment_type = 'pingback') AND comment_approved = '1' AND !comment_parent");
        $page = get_query_var('cpage');
        $cpp = get_option('comments_per_page');
        if (ceil($cnt / $cpp) == 1 || $page > 1 && $page == ceil($cnt / $cpp)) {
            $commentcount_quote = $cnt + 1;
        } else {
            $commentcount_quote = $cpp * $page + 1;
        }
    }
    ?>
<li <?php 
    comment_class();
    ?>
 id="comment-<?php 
    comment_ID();
    ?>
">
   <div id="div-comment-<?php 
    comment_ID();
    ?>
" class="comment-body">
      <?php 
    $add_below = 'div-comment';
    ?>
		<div class="comment-author"><?php 
    $uid = get_user_by_email($comment->comment_author_email)->ID;
    echo fun_get_avatar($uid, 40, fun_get_avatar_type($uid));
    ?>
<div style="float:right">
	<span class="datetime">
 		<?php 
    comment_date('Y-m-d');
    comment_time();
    ?>
 	</span>
 </div>
 <span class="comment_author_link"><?php 
    if ($comment->user_id != 0) {
        echo '<a href="' . get_author_posts_url($comment->user_id) . '" class="name">' . $comment->comment_author . '</a>';
    } else {
        comment_author_link();
    }
    ?>
</span><span class="comment_author_ip"><?php 
    _e('[ 来自 ', 'tinection');
    ?>
<span><?php 
    echo convertip(get_comment_author_ip());
    ?>
</span>&nbsp;]
</span>
 </div>
		<?php 
    if ($comment->comment_approved == '0') {
        ?>
			<span style="color:#C00; font-style:inherit; margin-top:5px; line-height:25px;"><?php 
        $cpid = $comment->comment_parent;
        if ($cpid != 0) {
            echo '@';
        }
        comment_author_link($cpid);
        _e('您的评论正在等待审核中...', 'tinection');
        ?>
</span>
			<br />			
		<?php 
    }
    ?>
		<?php 
    if ($comment->comment_approved == '1') {
        ?>
		<?php 
        comment_text();
        ?>
		<?php 
    }
    ?>
        </div>
		<div class="clear"></div>
  
<?php 
}
开发者ID:xiapistudio,项目名称:tinection-xps,代码行数:87,代码来源:comment.php

示例12: exectime

require_once QISHI_ROOT_PATH . 'include/help.class.php';
require_once QISHI_ROOT_PATH . 'include/common.fun.php';
require_once QISHI_ROOT_PATH . 'include/74cms_version.php';
$QSstarttime = exectime();
if (!empty($_GET)) {
    $_GET = help::addslashes_deep($_GET);
}
if (!empty($_POST)) {
    $_POST = help::addslashes_deep($_POST);
}
$_COOKIE = help::addslashes_deep($_COOKIE);
$_REQUEST = help::addslashes_deep($_REQUEST);
date_default_timezone_set("PRC");
$timestamp = time();
$online_ip = getip();
$ip_address = convertip($online_ip);
$_NAV = get_cache('nav');
$_PAGE = get_cache('page');
$_CFG = get_cache('config');
$_SUBSITE = get_cache('subsite');
$_M_SUBSITE = get_cache('m_subsite');
$_CFG['statistics'] = htmlspecialchars_decode($_CFG['statistics']);
$_PLUG = get_cache('plug');
if ($_CFG['uc_open'] == "1") {
    require_once QISHI_ROOT_PATH . 'data/cache_uc_config.php';
}
$QS_cookiedomain = get_cookiedomain();
$_CFG['main_domain'] = $_CFG['site_domain'] . $_CFG['site_dir'];
$_CFG['wap_domain'] = $_CFG['wap_domain'] == "" ? $_CFG['site_domain'] . $_CFG['site_dir'] . "m" : $_CFG['wap_domain'];
$_CFG['m_main_domain'] = $_CFG['wap_domain'];
$_CFG['version'] = QISHI_VERSION;
开发者ID:winiceo,项目名称:fenzhan,代码行数:31,代码来源:common.inc.php

示例13: writetocache

                $hd_token = $client->oauth->getAccessToken('token', $hd_token);
                writetocache('dzapp_haodai_setting', getcachevars(array('hd_token' => $hd_token)));
            } else {
                showmessage('dzapp_haodai:callback_error_user');
            }
        }
    } elseif (isset($hd_token['expires']) && TIMESTAMP < $hd_token['expires'] - 3600) {
    } else {
        showmessage('dzapp_haodai:callback_error_user');
    }
}
if ($_G['cookie']['HD_CITY'] && $zones[$_G['cookie']['HD_CITY']]) {
    $city = $_G['cookie']['HD_CITY'];
} else {
    require_once libfile('function/misc');
    $location = convertip($_G['clientip']);
    $charset = strtoupper(CHARSET);
    foreach ($zones as $key => $value) {
        if ($charset == 'UTF-8') {
            $value = substr($value, 0, strlen($value) - 3);
        } elseif ($charset == 'GBK') {
            $value = substr($value, 0, strlen($value) - 2);
        } elseif ($charset == 'BIG5') {
            $city = '';
            break;
        }
        if (stripos($location, $value) !== FALSE) {
            $city = $key;
            break;
        }
    }
开发者ID:samyex6,项目名称:discuz3.2-lite,代码行数:31,代码来源:dzapp_haodai.inc.php

示例14: dgmdate

    $space['lastvisit'] = dgmdate($space['lastvisit']);
}
if ($space['lastactivity']) {
    $space['lastactivitydb'] = $space['lastactivity'];
    $space['lastactivity'] = dgmdate($space['lastactivity']);
}
if ($space['lastpost']) {
    $space['lastpost'] = dgmdate($space['lastpost']);
}
if ($space['lastsendmail']) {
    $space['lastsendmail'] = dgmdate($space['lastsendmail']);
}
if ($_G['uid'] == $space['uid'] || $_G['group']['allowviewip']) {
    require_once libfile('function/misc');
    $space['regip_loc'] = convertip($space['regip']);
    $space['lastip_loc'] = convertip($space['lastip']);
}
$space['buyerrank'] = 0;
if ($space['buyercredit']) {
    foreach ($_G['setting']['ec_credit']['rank'] as $level => $credit) {
        if ($space['buyercredit'] <= $credit) {
            $space['buyerrank'] = $level;
            break;
        }
    }
}
$space['sellerrank'] = 0;
if ($space['sellercredit']) {
    foreach ($_G['setting']['ec_credit']['rank'] as $level => $credit) {
        if ($space['sellercredit'] <= $credit) {
            $space['sellerrank'] = $level;
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:space_profile.php

示例15: foreach

                foreach ($_G['cache']['fields_register'] as $field) {
                    if (!$field['available'] || in_array($field['fieldid'], array('uid', 'constellation', 'zodiac', 'birthmonth', 'birthyear', 'birthprovince', 'birthdist', 'birthcommunity', 'resideprovince', 'residedist', 'residecommunity'))) {
                        continue;
                    }
                    $member[$field['fieldid']] = !empty($member[$field['fieldid']]) ? $member[$field['fieldid']] : $fields[$field['fieldid']];
                    if ($member[$field['fieldid']]) {
                        $fieldstr = profile_show($field['fieldid'], $member);
                        $str .= $field['title'] . ':' . $fieldstr . "<br/>";
                    }
                }
                $str = !empty($str) ? '<br/>' . $str : '';
                $member['regdate'] = dgmdate($member['regdate']);
                $member['submitdate'] = dgmdate($member['submitdate']);
                $member['moddate'] = $member['moddate'] ? dgmdate($member['moddate']) : $lang['none'];
                $member['admin'] = $member['admin'] ? "<a href=\"home.php?mod=space&username=" . rawurlencode($member['admin']) . "\" target=\"_blank\">{$member['admin']}</a>" : $lang['none'];
                $members .= "<tr class=\"hover\" id=\"mod_uid_{$member[uid]}\"><td class=\"rowform\" style=\"width:80px;\"><ul class=\"nofloat\"><li><input id=\"mod_uid_{$member[uid]}_1\" class=\"radio\" type=\"radio\" name=\"modtype[{$member['uid']}]\" value=\"invalidate\" onclick=\"set_bg('invalidate', {$member['uid']});\"><label for=\"mod_uid_{$member[uid]}_1\">{$lang['invalidate']}</label></li><li><input id=\"mod_uid_{$member[uid]}_2\" class=\"radio\" type=\"radio\" name=\"modtype[{$member['uid']}]\" value=\"validate\" onclick=\"set_bg('validate', {$member['uid']});\"><label for=\"mod_uid_{$member[uid]}_2\">{$lang['validate']}</label></li>\n" . "<li><input id=\"mod_uid_{$member[uid]}_3\" class=\"radio\" type=\"radio\" name=\"modtype[{$member['uid']}]\" value=\"delete\" onclick=\"set_bg('delete', {$member['uid']});\"><label for=\"mod_uid_{$member[uid]}_3\">{$lang['delete']}</label></li><li><input id=\"mod_uid_{$member[uid]}_4\" class=\"radio\" type=\"radio\" name=\"modtype[{$member['uid']}]\" value=\"ignore\" onclick=\"set_bg('ignore', {$member['uid']});\"><label for=\"mod_uid_{$member[uid]}_4\">{$lang['ignore']}</label></li></ul></td><td><b><a href=\"home.php?mod=space&uid={$member['uid']}\" target=\"_blank\">{$member['username']}</a></b>\n" . "<br />{$lang['members_edit_regdate']} {$member['regdate']}<br />{$lang['members_edit_regip']} {$member['regip']} " . convertip($member['regip']) . "<br />Email: {$member['email']}{$str}</td>\n" . "<td align=\"center\"><textarea rows=\"4\" name=\"userremark[{$member['uid']}]\" style=\"width: 95%; word-break: break-all\">{$member['message']}</textarea></td>\n" . "<td>{$lang['moderate_members_submit_times']}: {$member['submittimes']}<br />{$lang['moderate_members_submit_time']}: {$member['submitdate']}<br />{$lang['moderate_members_admin']}: {$member['admin']}<br />\n" . "{$lang['moderate_members_mod_time']}: {$member['moddate']}</td><td><textarea rows=\"4\" id=\"remark[{$member['uid']}]\" name=\"remark[{$member['uid']}]\" style=\"width: 95%; word-break: break-all\">{$member['remark']}</textarea></td></tr>\n";
            }
            if ($vuids) {
                C::t('common_member_validate')->delete($vuids);
            }
        }
        shownav('user', 'nav_modmembers');
        showsubmenu('nav_moderate_users', array(array('nav_moderate_users_mod', 'moderate&operation=members&do=mod', 1), array('clean', 'moderate&operation=members&do=del', 0)));
        showtips('moderate_members_tips');
        $moderate_members_bad_reason = cplang('moderate_members_bad_reason');
        $moderate_members_succeed = cplang('moderate_members_succeed');
        echo <<<EOT
<script type="text/javascript">
function set_bg(operation, uid) {
\tif(operation == 'invalidate') {
\t\t\$('mod_uid_' + uid).className = "mod_invalidate";
开发者ID:softhui,项目名称:discuz,代码行数:31,代码来源:moderate_member.php


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