Exemplo n.º 1
0
Arquivo: ss.php Projeto: sembrono/mz
    echo "<font color='red'>输入不完整!<a href='javascript:history.back();'>返回重新填写</a></font>";
    exit;
}
if ($nr == '语录' || $nr == '随机' || empty($nr)) {
    $content = randstr();
} elseif ($nr == '笑话') {
    $content = jokei_txt();
} elseif ($nr == '时间') {
    $content = date("Y-m-d H:i:s");
} elseif ($nr == '表情') {
    $content = "[em]e" . rand(100, 204) . "[/em]";
} else {
    $content = $nr;
}
if ($img == '随机') {
    $imgurl = randimg();
} elseif ($img == '搞笑') {
    $imgurl = budejie();
} else {
    $imgurl = $img;
}
include_once "qzone.class.php";
$qzone = new qzone($qq, $sid, $skey);
if ($method == 3) {
    $qzone->shuo(1, $content, $imgurl, $ua);
} else {
    $qzone->shuo(0, $content, $imgurl, $ua);
}
//结果输出
foreach ($qzone->msg as $result) {
    echo $result . '<br/>';
Exemplo n.º 2
0
Arquivo: ajxf.php Projeto: philum/cms
function desk_css()
{
    $prmd = $_SESSION['prmd'];
    if ($_SESSION['negcss']) {
        $prmd .= '_neg';
    }
    $clr = $_SESSION['clrs'][$prmd];
    req('styl');
    $g = prma('desktop');
    //sesmk('desklr');
    if ($g) {
        req('spe');
        $g = goodroot($g);
    }
    if (is_dir($g)) {
        $ret = 'background:url(' . randimg($g) . ') no-repeat center fixed; background-size:cover;';
    } elseif (is_image($g)) {
        $ret = 'background:url(' . goodroot($g) . ') no-repeat center fixed; background-size:cover;';
    } elseif (strpos($g, ',') === false && $g) {
        $ret = 'background-color:' . affect_rgba($g, $clr) . ';';
        $klr = $g;
    } else {
        $g = affect_rgba($g, $clr);
        $gh = $g ? $g : '#' . $clr[4] . ',#' . $clr[2];
        $klr = medium_clr($gh);
        if (!$g) {
            $g = 'to bottom, ' . hexrgb($clr[4], 0.4) . ', ' . hexrgb($clr[1], 1) . '';
        }
        $ret = 'height:100%; 
	background:linear-gradient(' . $g . ') no-repeat fixed;';
    }
    return css_code('body {' . $ret . '}
	#desktop a, #desktop .philum {color:#' . invert_color($klr, 1) . ';}
	#page {padding:0; margin:0 40px 0 0; border:0; box-shadow:none;}');
}