Example #1
0
<?php

require_once "include/bittorrent.php";
dbconn();
require_once get_langfile_path("", false, $CURLANGDIR);
cur_user_check();
registration_check("cardreg");
failedloginscheck("Signup");
$emailnotice = $restrictemaildomain == 'yes' ? $lang_signup['text_email_note'] . allowedemails() : "";
$smarty->assign("{$emailnotice}", ${$emailnotice});
$select = 'signupcard';
$smarty->assign("select", $select);
$smarty->assign("show", 'yes');
$signuplist = $smarty->fetch(MTPTTEMPLATES . '/signuplist.html');
$smarty->assign("signuplist", $signuplist);
$smarty->display(MTPTTEMPLATES . '/signupcard.html');
stdfoot();
Example #2
0
<?php

require "include/bittorrent.php";
dbconn();
require_once get_langfile_path();
loggedinorreturn();
if (get_user_class() < UC_UPLOADER) {
    permissiondenied();
}
$year = 0 + $_GET['year'];
if (!$year || $year < 2000) {
    $year = date('Y');
}
$month = 0 + $_GET['month'];
if (!$month || $month <= 0 || $month > 12) {
    $month = date('m');
}
$order = $_GET['order'];
if (!in_array($order, array('username', 'torrent_size', 'torrent_count'))) {
    $order = 'username';
}
if ($order == 'username') {
    $order .= ' ASC';
} else {
    $order .= ' DESC';
}
stdhead($lang_uploaders['head_uploaders']);
begin_main_frame();
?>
<div style="width: 940px">
<?php 
Example #3
0
<?php

require "include/bittorrent.php";
dbconn();
require_once get_langfile_path("takeinvite.php", "", "");
loggedinorreturn();
parked();
stdhead("修改邮箱");
function bark($msg)
{
    stdmsg('失败!', $msg);
    stdfoot();
    exit;
}
if (!(strstr($CURUSER['email'], '@yahoo.cn') || strstr($CURUSER['email'], '@yahoo.com.cn'))) {
    bark('您的邮箱不是中国雅虎邮箱,暂时不支持修改邮箱服务.如果有特殊情况需要修改邮箱请联系管理组,并且详细说明原因。');
} else {
    if ($_SERVER["REQUEST_METHOD"] == "POST") {
        $email = $_POST['email'];
        //$email=safe_email($email);
        $password = $_POST['password'];
        if (!$email) {
            bark($lang_takeinvite['std_must_enter_email']);
        }
        if (!check_email($email)) {
            bark($lang_takeinvite['std_invalid_email_address']);
        }
        if (EmailBanned($email)) {
            bark($lang_takeinvite['std_email_address_banned']);
        }
        if (!EmailAllowed($email)) {
Example #4
0
<?php

require_once "include/benc.php";
require_once "include/bittorrent.php";
ini_set("upload_max_filesize", $max_torrent_size);
dbconn();
require_once get_langfile_path();
require get_langfile_path("", true);
loggedinorreturn();
function bark($msg)
{
    global $lang_takeupload;
    genbark($msg, $lang_takeupload['std_upload_failed']);
    die;
}
if ($CURUSER["uploadpos"] == 'no') {
    die;
}
foreach (explode(":", "descr:type:name") as $v) {
    if (!isset($_POST[$v])) {
        bark($lang_takeupload['std_missing_form_data']);
    }
}
if (!isset($_FILES["file"])) {
    bark($lang_takeupload['std_missing_form_data']);
}
$f = $_FILES["file"];
$fname = unesc($f["name"]);
if (empty($fname)) {
    bark($lang_takeupload['std_empty_filename']);
}
Example #5
0
<?php
require_once("include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
require "./memcache.php";
if (isset($_GET['checknew']))
{
	//file_put_contents("testshout/".$CURUSER["username"],date("H:i:s",time()));
	echo file_get_contents("shoutbox_new.html");
	die;
}
if (isset($_GET['del']))
{
	if (is_valid_id($_GET['del']))
	{
		if((get_user_class() >= $sbmanage_class))
		{
			sql_query("DELETE FROM shoutbox WHERE id=".mysql_real_escape_string($_GET['del']));
			write_log($CURUSER['username'] ."删掉了一条群聊发言",'normal');
		}
	}
}
$where=$_GET["type"];
?>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="<?php echo get_font_css_uri()?>" type="text/css">
<link rel="stylesheet" href="<?php echo get_css_uri()."theme.css"?>" type="text/css">
<link rel="stylesheet" href="styles/curtain_imageresizer.css" type="text/css">
<script src="curtain_imageresizer.js" type="text/javascript"></script><style type="text/css">body {overflow-y:scroll; overflow-x: hidden}</style>
<?php
Example #6
0
<?php

require_once "include/bittorrent.php";
header("Content-Type: text/html; charset=utf-8");
if (!mkglobal("username:password")) {
    die;
}
dbconn();
require_once get_langfile_path("", false, get_langfolder_cookie());
cur_user_check();
function bark($text = "")
{
    global $lang_takelogin;
    $text = $text == "" ? $lang_takelogin['std_login_fail_note'] : $text;
    stderr($lang_takelogin['std_login_fail'], $text, false);
}
if ($iv == "yes") {
    check_code($_POST['imagehash'], $_POST['imagestring'], 'login.php', true);
}
if (get_magic_quotes_gpc()) {
    $username = stripslashes($username);
}
$res = sql_query("SELECT id, passhash, secret, enabled, status FROM users WHERE username = " . "'" . mysql_real_escape_string($username) . "'");
$row = mysql_fetch_array($res);
if (!$row) {
    failedlogins();
}
if ($row['status'] == 'pending') {
    failedlogins($lang_takelogin['std_user_account_unconfirmed']);
}
if ($row["passhash"] != md5($row["secret"] . $password . $row["secret"])) {
Example #7
0
function get_user_class_name($class, $compact = false, $b_colored = false, $I18N = false)
{
    static $en_lang_functions;
    static $current_user_lang_functions;
    if (!$en_lang_functions) {
        require get_langfile_path("functions.php", false, "en");
        $en_lang_functions = $lang_functions;
    }
    if (!$I18N) {
        $this_lang_functions = $en_lang_functions;
    } else {
        if (!$current_user_lang_functions) {
            require get_langfile_path("functions.php");
            $current_user_lang_functions = $lang_functions;
        }
        $this_lang_functions = $current_user_lang_functions;
    }
    $class_name = "";
    switch ($class) {
        case UC_PEASANT:
            $class_name = $this_lang_functions['text_peasant'];
            break;
        case UC_USER:
            $class_name = $this_lang_functions['text_user'];
            break;
        case UC_POWER_USER:
            $class_name = $this_lang_functions['text_power_user'];
            break;
        case UC_ELITE_USER:
            $class_name = $this_lang_functions['text_elite_user'];
            break;
        case UC_CRAZY_USER:
            $class_name = $this_lang_functions['text_crazy_user'];
            break;
        case UC_INSANE_USER:
            $class_name = $this_lang_functions['text_insane_user'];
            break;
        case UC_VETERAN_USER:
            $class_name = $this_lang_functions['text_veteran_user'];
            break;
        case UC_EXTREME_USER:
            $class_name = $this_lang_functions['text_extreme_user'];
            break;
        case UC_ULTIMATE_USER:
            $class_name = $this_lang_functions['text_ultimate_user'];
            break;
        case UC_NEXUS_MASTER:
            $class_name = $this_lang_functions['text_nexus_master'];
            break;
        case UC_VIP:
            $class_name = $this_lang_functions['text_vip'];
            break;
        case UC_UPLOADER:
            $class_name = $this_lang_functions['text_uploader'];
            break;
        case UC_RETIREE:
            $class_name = $this_lang_functions['text_retiree'];
            break;
        case UC_FORUM_MODERATOR:
            $class_name = $this_lang_functions['text_forum_moderator'];
            break;
        case UC_MODERATOR:
            $class_name = $this_lang_functions['text_moderators'];
            break;
        case UC_ADMINISTRATOR:
            $class_name = $this_lang_functions['text_administrators'];
            break;
        case UC_SYSOP:
            $class_name = $this_lang_functions['text_sysops'];
            break;
        case UC_STAFFLEADER:
            $class_name = $this_lang_functions['text_staff_leader'];
            break;
    }
    switch ($class) {
        case UC_PEASANT:
            $class_name_color = $en_lang_functions['text_peasant'];
            break;
        case UC_USER:
            $class_name_color = $en_lang_functions['text_user'];
            break;
        case UC_POWER_USER:
            $class_name_color = $en_lang_functions['text_power_user'];
            break;
        case UC_ELITE_USER:
            $class_name_color = $en_lang_functions['text_elite_user'];
            break;
        case UC_CRAZY_USER:
            $class_name_color = $en_lang_functions['text_crazy_user'];
            break;
        case UC_INSANE_USER:
            $class_name_color = $en_lang_functions['text_insane_user'];
            break;
        case UC_VETERAN_USER:
            $class_name_color = $en_lang_functions['text_veteran_user'];
            break;
        case UC_EXTREME_USER:
            $class_name_color = $en_lang_functions['text_extreme_user'];
            break;
        case UC_ULTIMATE_USER:
            $class_name_color = $en_lang_functions['text_ultimate_user'];
            break;
        case UC_NEXUS_MASTER:
            $class_name_color = $en_lang_functions['text_nexus_master'];
            break;
        case UC_VIP:
            $class_name_color = $en_lang_functions['text_vip'];
            break;
        case UC_UPLOADER:
            $class_name_color = $en_lang_functions['text_uploader'];
            break;
        case UC_RETIREE:
            $class_name_color = $en_lang_functions['text_retiree'];
            break;
        case UC_FORUM_MODERATOR:
            $class_name_color = $en_lang_functions['text_forum_moderator'];
            break;
        case UC_MODERATOR:
            $class_name_color = $en_lang_functions['text_moderators'];
            break;
        case UC_ADMINISTRATOR:
            $class_name_color = $en_lang_functions['text_administrators'];
            break;
        case UC_SYSOP:
            $class_name_color = $en_lang_functions['text_sysops'];
            break;
        case UC_STAFFLEADER:
            $class_name_color = $en_lang_functions['text_staff_leader'];
            break;
    }
    $class_name = $compact == true ? str_replace(" ", "", $class_name) : $class_name;
    if ($class_name) {
        return $b_colored == true ? "<b class='" . str_replace(" ", "", $class_name_color) . "_Name'>" . $class_name . "</b>" : $class_name;
    }
}
Example #8
0
<?php

require_once "include/bittorrent.php";
dbconn(true);
require_once get_langfile_path("torrents.php");
loggedinorreturn();
parked();
if (isset($searchstr)) {
    stdhead($lang_torrents['head_search_results_for'] . $searchstr_ori);
} elseif ($sectiontype == $browsecatmode) {
    stdhead($lang_torrents['head_torrents']);
} else {
    stdhead($lang_torrents['head_music']);
}
print "<table width=\"940\" class=\"main\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td  class=\"embedded\">";
$rss = "http://pt.ghtt.net/torrentrss.php?rows=50&linktype=dl&passkey={$CURUSER['passkey']}&inclbookmarked=1";
if (isset($_GET['do']) && $_GET['do'] == 'clear') {
    $sql = "SELECT * FROM `weixin` WHERE `ptid` = {$CURUSER['id']}";
    $res = sql_query($sql);
    if (mysql_num_rows($res) > 0) {
        $sql = "DELETE FROM `bookmarks` WHERE `userid` = {$CURUSER['id']}";
        sql_query($sql);
        $Cache->delete_value('user_' . $user_ptid . '_bookmark_array');
        if (mysql_affected_rows() > 0) {
            echo "<script> alert ('清理成功')</script>";
        } else {
            echo "<script> alert ('清理失败...')</script>";
        }
    }
}
?>
Example #9
0
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.php.net/license/3_0.txt.                                  |
// | If you did not receive a copy of the PHP license and are unable to   |
// | obtain it through the world-wide-web, please send a note to          |
// | license@php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Authors: Original Author <author@example.com>                        |
// |          Your Name <you@example.com>                                 |
// +----------------------------------------------------------------------+
//
// $Id:$
require_once "include/bittorrent.php";
dbconn(true);
require_once get_langfile_path("torrents.php");
require_once get_langfile_path("edit.php");
loggedinorreturn();
parked();
function logmenu($selected = "candidate")
{
    global $lang_log;
    global $showfunbox_main;
    begin_main_frame();
    print "<div id=\"lognav\"><ul id=\"logmenu\" class=\"menu\">";
    print "<li" . ($selected == "recycle" ? " class=selected" : "") . "><a href=\"?status=recycle\">回收站</a></li>";
    print "<li" . ($selected == "candidate" ? " class=selected" : "") . "><a href=\"?status=candidate\">候选区</a></li>";
    print "</ul></div>";
    end_main_frame();
}
if ($showextinfo['imdb'] == 'yes') {
    require_once "imdb/imdb.class.php";