Exemplo n.º 1
0
	[55625.COM!] (C)2001-2013 55625.COM Inc.
	BY QQ:114512039  Lovenr
*/
if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
require_once libfile('function/discuzcode');
global $_G;
include_once 'language.' . currentlang() . '.php';
if (!isset($_G['cache']['plugin'])) {
    loadcache('plugin');
}
@extract($_G['cache']['plugin']['dz55625_haodian']);
$appl = $_G['siteurl'] . "plugin.php?id=dz55625_haodian:mobile_haodian" . ($_G['mobile'] ? "&mobile=2" : "");
$uc = $_G['setting']['ucenterurl'];
$listclass = parconfig($listclass);
$mobile_action = addslashes($_G['gp_mod']) ? addslashes($_G['gp_mod']) : "mobile_list";
if ($mobile_action == "mobile_list") {
    $mobile_list_status = addslashes($_G['gp_mobile_list_status']) ? addslashes($_G['gp_mobile_list_status']) : 0;
    $sql_temp = "";
    if ($mobile_list_status == 1) {
        $sql_temp = " and click='1'";
    } elseif ($mobile_list_status == 2) {
        $sql_temp = " and top='1'";
    } elseif ($mobile_list_status == 3) {
        $sql_temp = " and sad > 0";
    }
    $file = DISCUZ_ROOT . "./source/plugin/dz55625_haodian/config.php";
    $mobile_conf = @(include $file);
    $mobile_conf || ($mobile_conf = array());
    if (!$mobile_conf['magic_lantern']) {
Exemplo n.º 2
0
<?php

/*
	[55625.COM!] (C)2001-2012 55625.COM Inc.
	BY QQ:114512039  Lovenr
*/
if (!defined('IN_DISCUZ')) {
    exit('Access Denied');
}
loadcache('plugin');
include_once 'language.' . currentlang() . '.php';
include_once 'haodian_vik.inc.php';
@extract($_G['cache']['plugin']['dz55625_haodian']);
$listclass = parconfig($listclass);
$diquclass = parconfig($diquclass);
$his = $_G['siteurl'];
$p = $_GET['p'];
$p = $p ? $p : 'index';
$dhname = $ename;
$uid = intval($_G['uid']);
$sql = "SELECT * FROM " . DB::table('forum_alliance_ar') . " WHERE uid='{$uid}' AND click='1'";
$query = DB::query($sql);
$uservip = mysql_num_rows($query);
$his = parse_url($his);
$his = strtolower($his['host']);
$domain = array('com', 'cn', 'cc', 'org', 'net', 'me', 'co');
$stu = $his;
$dd = implode('|', $domain);
$stu = preg_replace('/(\\.(' . $dd . '))*\\.(' . $dd . ')$/iU', '', $stu);
$stu = explode('.', $stu);
$stu = array_pop($stu);