Ejemplo n.º 1
0
<?php

include_once "include/common.inc.php";
//header("Content-type: text/html; charset=utf-8");
foreach (API_Config() as $k => $v) {
    ${$k} = $v;
}
$type = Char_Cv('type', 'get');
Robot($type == 'onez' ? 1 : 0);
$channelid = Char_Cv('channelid', 'get');
Channel($channelid);
if ($Channel['allowguest'] == 1 || $username) {
    if ($Channel['ifonly'] == 1) {
        header("location:group.php?only=1&channel=" . $Channel['id']);
        exit;
    }
}
$botid = Char_Cv('botid', 'get');
$client = Char_Cv('client', 'get');
$onezdivcount = 28;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="themes/<?php 
echo $Channel['theme'] ? $Channel['theme'] : $setting['theme'];
?>
/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
Ejemplo n.º 2
0
            exit('Channel Error!');
        }
        $uid = Char_Cv('uid');
        $user = API_Info($userid);
        if ($Channel['username'] != $username) {
            exit('-1');
        }
        if (!$db) {
            include_once ONEZ_ROOT . './include/db_mysql.class.php';
            db_local();
            $db = new onez_db();
            $masters = explode(',', $Channel['masters']);
            if (!in_array($username, $masters)) {
                $masters[] = $username;
                $masters = implode(',', $masters);
                $db->update("channel", array('masters' => $masters), "id='{$ChannelId}'");
                Channel($ChannelId, 1);
            }
        }
        AddMsg_Public("5\t{$uid}", $ChannelId);
        exit('1');
        break;
    case 'addfriend':
        $uid = Char_Cv('uid');
        $A = explode(',', API_LsFriend());
        if (in_array($uid, $A)) {
            exit('-1');
        }
        echo API_AddFriend($uid);
        break;
}