Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 云平台下载的修复文件是无效的

[复制链接]
怎么啦 发表于 2011-7-23 11:06:55 | 显示全部楼层 |阅读模式
谁能给一个啊
 楼主| 怎么啦 发表于 2011-7-24 22:59:51 | 显示全部楼层
回复

使用道具 举报

dongdong0925 发表于 2011-7-25 09:08:46 | 显示全部楼层
每个站点的相应文件都是不一样的,请使用您网站后台给出的下载地址下载
回复

使用道具 举报

 楼主| 怎么啦 发表于 2011-7-26 09:45:03 | 显示全部楼层


插件一点打开就是右边的文字,上传后连接······




回复

使用道具 举报

 楼主| 怎么啦 发表于 2011-7-26 09:46:53 | 显示全部楼层
dongdong0925 发表于 2011-7-25 09:08
每个站点的相应文件都是不一样的,请使用您网站后台给出的下载地址下载

就是插件打开后无实质内容的感觉
回复

使用道具 举报

dongdong0925 发表于 2011-7-26 09:49:30 | 显示全部楼层
怎么啦 发表于 2011-7-26 09:46
就是插件打开后无实质内容的感觉

请不要打开直接上传,另外请检查上传后该文件的权限
回复

使用道具 举报

 楼主| 怎么啦 发表于 2011-7-26 09:56:45 | 显示全部楼层
dongdong0925 发表于 2011-7-26 09:49
请不要打开直接上传,另外请检查上传后该文件的权限

下载的插件打开后是这样的···········


<?php
/**
* 鐢ㄤ簬DISCUZ X绔欓暱娉ㄥ唽鐨勫伐鍏? *
* $Id: discuzx_utility.php 4451 2011-05-09 06:53:34Z yexinhao $
*/

require './source/class/class_core.php';

$cachelist = array();
$discuz = & discuz_core::instance();

$discuz->cachelist = $cachelist;
$discuz->init_cron = false;
$discuz->init_setting = true;
$discuz->init_user = false;
$discuz->init_session = false;

$discuz->init();

require_once libfile('function/home');

if ($_POST) {
        $fromCloud = $_G['gp_fromCloud'];
        if ($fromCloud) {
                if (is_file(DISCUZ_ROOT . './data/discuzx_utility.lock')) {
                        echo "LOCK";
                } else {
                        echo "OK";
                }
                exit;
        }

        $siteUrl = $_G['gp_siteUrl'];

        $action = $_G['gp_action'];
        if ($action == 'restore') {
                $my_siteid = $_G['gp_my_siteid'];
                $my_sitekey = $_G['gp_my_sitekeys'][$my_siteid];
                $cloud_status = intval($_G['gp_cloud_status'][$my_siteid]);

                if (!$my_siteid || !$my_sitekey) {
                        echo "鏃犳晥鐨刴y_siteid鎴杕y_sitekey";
                        exit;
                }

                DB::query("REPLACE INTO " . DB::table('common_setting') . " (skey, svalue) VALUES ('my_siteid', '{$my_siteid}'), ('my_sitekey', '{$my_sitekey}'), ('cloud_status', $cloud_status)");
                require_once libfile('function/cache');
                updatecache('setting');
                my_show_message("Discuz!浜戝钩鍙扮珯鐐逛俊鎭?仮澶嶆垚鍔?(璇风珛鍗冲埌绠$悊鍚庡彴浜戝钩鍙板悓姝ョ珯鐐逛俊鎭?");
        }
} else {
        if ($_G['gp_q'] == 'forgot') {
                $sites = my_site_restore();
                my_forgot($sites);

        } else {
                my_index();
        }
}

function my_header() {
        header("Content-type: text/html; charset=utf-8");
        echo <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title>DISCUZ X绔欑偣娉ㄥ唽宸ュ叿 | 鎵惧洖(鎭㈠?)绔欑偣淇℃伅銆佸垹闄ょ珯鐐逛俊鎭?/title>
                <style type="text/css">
                        body {
                                width: 70%;
                        }
                        .msg, .warning {
                                padding: 10px;
                                border: 1px solid #06c;
                                background-color: #c6dff9;
                        }

                        .warning {
                                border-color: #ffd700;
                                background-color: #ffc;
                        }
                        .op {
                                line-height: 2em;
                        }
                        .op a {
                                font-size: 1.2em;
                        }
                </style>
        </head>
        <body class="sidebars">\n
EOT;
}

function my_footer() {
        global $_G;
        echo <<<EOT
                        <hr />
                        <div class="warn">
                                <h3>娉ㄦ剰浜嬮」</h3>
                                <ul>
                                        <li>璇峰嬁闅忔剰鍏?紑璇ユ枃浠跺湴鍧
回复

使用道具 举报

dongdong0925 发表于 2011-7-26 10:02:45 | 显示全部楼层
怎么啦 发表于 2011-7-26 09:56
下载的插件打开后是这样的···········

不需要打开,直接上传,上传后检查该文件权限是否正确
回复

使用道具 举报

 楼主| 怎么啦 发表于 2011-7-26 10:29:21 | 显示全部楼层
dongdong0925 发表于 2011-7-26 10:02
不需要打开,直接上传,上传后检查该文件权限是否正确



点“打开”就是上面复制的文件了
回复

使用道具 举报

 楼主| 怎么啦 发表于 2011-7-26 10:30:10 | 显示全部楼层
上传后连接地址无效
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-10-5 13:23 , Processed in 0.111027 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表