Пример #1
0
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.google.com
#
#	$Id: vip.php 121 2014-03-04 12:38:05Z along $
#
#	Copyright (C) 2008-2014 PHPDisk Team. All Rights Reserved.
#
*/
include "includes/commons.inc.php";
if (!$auth[buy_vip_a] && !$auth[buy_vip_p]) {
    exit(msg::umsg('Not_FMS', __('zcore_no_power')));
}
if (!$settings[open_vip]) {
    exit(msg::umsg('Not_VIP_MODE', __('zcore_no_power')));
}
$in_front = true;
$title = __('buy_vip') . ' - ' . $settings['site_title'];
include PHPDISK_ROOT . "./includes/header.inc.php";
/*
$vip_id = get_profile($pd_uid,'vip_id');
if($vip_id){
	$vip_end_time = get_profile($pd_uid,'vip_end_time');
	if($vip_end_time>$timestamp){
		$vip_end_time_txt = date('Y-m-d',get_profile($pd_uid,'vip_end_time'));
	}else{
		$vip_end_time_txt = date('Y-m-d',get_profile($pd_uid,'vip_end_time')).', <span class="txtred">('.__('vip_end_time_expire').')</span>';
	}
	$my_vip = __('my_vip_is').get_vip($vip_id,'subject').' , '.$vip_end_time_txt;
}else{
Пример #2
0
<?php

/**
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.google.com
#
#	$Id: public.php 121 2014-03-04 12:38:05Z along $
#
#	Copyright (C) 2008-2014 PHPDisk Team. All Rights Reserved.
#
*/
include "includes/commons.inc.php";
!$auth[is_fms] && exit(msg::umsg('Not_FMS', __('zcore_no_power')));
$in_front = true;
$cate_id = (int) gpc('cate_id', 'G', 0);
if ($cate_id) {
    $cate_name = $db->result_first("select cate_name from {$tpf}categories where cate_id='{$cate_id}'");
}
$nav_title = $cate_name ? $cate_name . '' : '';
$nav_title = $nav_title;
$title = $nav_title . ' - ' . $settings['site_title'];
$file_keywords = $nav_title . ',';
$C[cate_hot_file] = get_cate_file($cate_id, 'file_downs');
if ($auth[pd_a]) {
    $seo = get_seo('public', $cate_id);
    if ($seo[title]) {
        eval("\$title = \"{$seo['title']}\";");
    }
    eval("\$keywords = \"{$seo['keywords']}\";");
Пример #3
0
/**
#	Project: PHPDISK File Storage Solution
#	This is NOT a freeware, use is subject to license terms.
#
#	Site: http://www.google.com
#
#	$Id: vip.inc.php 121 2014-03-04 12:38:05Z along $
#
#	Copyright (C) 2008-2014 PHPDisk Team. All Rights Reserved.
#
*/
if (!defined('IN_PHPDISK') || !defined('IN_ADMINCP')) {
    exit('[PHPDisk] Access Denied');
}
!($auth[buy_vip_p] || $auth[buy_vip_a]) && exit(msg::umsg('Not_vip', __('zcore_no_power')));
admin_no_power($task, 0, $pd_uid);
switch ($action) {
    case 'add':
        if ($task == 'add') {
            form_auth(gpc('formhash', 'P', ''), formhash());
            $subject = trim(gpc('subject', 'P', ''));
            $content = trim(gpc('content', 'P', ''));
            $img = trim(gpc('img', 'P', ''));
            $price = trim(gpc('price', 'P', ''));
            $days = gpc('days', 'P', '');
            $pop_ads = (int) gpc('pop_ads', 'P', 0);
            $down_second = (int) gpc('down_second', 'P', 0);
            $downline_num = (int) gpc('downline_num', 'P', 0);
            $search_down = (int) gpc('search_down', 'P', 0);
            $img_link = (int) gpc('img_link', 'P', 0);
Пример #4
0
#	Copyright (C) 2008-2012 PHPDisk Team. All Rights Reserved.
#
*/
if (!defined('IN_PHPDISK') || !defined('IN_ADMINCP')) {
    exit('[PHPDisk] Access Denied');
}
if (!$auth[pd_a]) {
    exit(msg::umsg('no_power', __('zcore_no_power')));
}
$action = $action ? $action : 'set';
switch ($action) {
    case 'stat_day':
    case 'stat_hour':
    case 'stat_user':
        if (!$auth[pd_a]) {
            exit(msg::umsg('Not', __('zcore_no_power')));
        }
        $pp = gpc('pp', 'G', '');
        $v_ob = gpc('v_ob', 'G', '');
        $d_ob = gpc('d_ob', 'G', '');
        $v_ob = in_array($v_ob, array('asc', 'desc')) ? $v_ob : '';
        $d_ob = in_array($d_ob, array('asc', 'desc')) ? $d_ob : '';
        $v_order_by = $v_ob ? " views {$v_ob}" : '';
        $d_order_by = $d_ob ? " downs {$d_ob}" : '';
        $perpage = $pp ? (int) $pp : 50;
        if ($v_order_by) {
            $order_by = ' order by ' . $v_order_by;
        } elseif ($d_order_by) {
            $order_by = ' order by ' . $d_order_by;
        } else {
            $order_by = 'order by id desc';
Пример #5
0
 function auth_task_space_pwd()
 {
     echo msg::umsg('Task Error!', 'err-core-auth_task_space_pwd');
 }