mio Publish time 14-5-2009 10:54:49

UCHOME1[1].5个人网盘插件

UCHOME1.5个人网盘插件


插件作者 zjjy
适用版本 UCHOME1.5
语言编码 GBK  
版权所属 Comsenz Inc.

插件名称 UCHOME1.5个人网盘插件

1、升级数据库-- 表的结构 `uchome_udisk`



CREATE TABLE `uchome_udisk` (

  `albumid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,

  `albumname` varchar(50) NOT NULL DEFAULT '',

  `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',

  `username` varchar(15) NOT NULL DEFAULT '',

  `dateline` int(10) unsigned NOT NULL DEFAULT '0',

  `updatetime` int(10) unsigned NOT NULL DEFAULT '0',

  `picnum` smallint(6) unsigned NOT NULL DEFAULT '0',

  `pic` varchar(60) NOT NULL DEFAULT '',

  `picflag` tinyint(1) NOT NULL DEFAULT '0',

  `friend` tinyint(1) NOT NULL DEFAULT '0',

  `password` varchar(10) NOT NULL DEFAULT '',

  `target_ids` text NOT NULL,

  PRIMARY KEY (`albumid`),

  KEY `uid` (`uid`,`updatetime`),

  KEY `friend` (`friend`,`updatetime`),

  KEY `updatetime` (`updatetime`)

) ENGINE=MyISAM DEFAULT CHARSET=gbk;



-- --------------------------------------------------------



-- 表的结构 `uchome_files`



CREATE TABLE `uchome_files` (

  `picid` mediumint(8) NOT NULL AUTO_INCREMENT,

  `albumid` mediumint(8) unsigned NOT NULL DEFAULT '0',

  `uid` mediumint(8) unsigned NOT NULL DEFAULT '0',

  `dateline` int(10) unsigned NOT NULL DEFAULT '0',

  `postip` char(20) NOT NULL DEFAULT '',

  `filename` char(100) NOT NULL DEFAULT '',

  `title` char(150) NOT NULL DEFAULT '',

  `type` char(20) NOT NULL DEFAULT '',

  `size` int(10) unsigned NOT NULL DEFAULT '0',

  `unit` varchar(20) NOT NULL,

  `fileext` varchar(20) NOT NULL,

  `filepath` char(60) NOT NULL DEFAULT '',

  `thumb` tinyint(1) NOT NULL DEFAULT '0',

  `remote` tinyint(1) NOT NULL DEFAULT '0',

  PRIMARY KEY (`picid`),

  KEY `albumid` (`albumid`,`dateline`)

) ENGINE=MyISAM DEFAULT CHARSET=gbk;
复制代码2、上传附件内文件到UCH目录:
注:附件内所有文件为新文件,正常情况下应该没有覆盖提示;

3、修改以下几个UCH文件:
(1)template/default/header.htm
在:<li><img src="image/app/share.gif"><a href="space.php?do=share">分享</a></li>
后添加:<li><img src="image/app/udisk.gif"><a href="space.php?do=udisk">网盘</a><em><a href="cp.php?ac=uploadudisk">上传</a></em></li>
(2)template/default/network_header.htm
在合适位置添加:<li$actives><a href="network.php?ac=udisk"><span>网盘</span></a></li>
  (3)language/lang_cp.php
在结尾添加:,

'create_a_new_udisk' => '创建了新目录',

'only_allows_upload_udiskfile_types' => '只允许上传gif, jpg, png, rar, txt, doc, xls, ppt, htm, html, mht, zip, bmp的文件',

'mobile_picture_temporary_failure_udisk' => '无法转移临时文件到服务器指定目录',

'upload_a_new_file' => '上传了一个新文件{udisk}'
  (4)cp.php
原代码:$acs = array('space', 'doing', 'upload', 'comment', 'blog', 'album', 'relatekw', 'common', 'class',

        'swfupload', 'thread', 'mtag', 'poke', 'friend',

        'avatar', 'profile', 'theme', 'import', 'feed', 'privacy', 'pm', 'share', 'advance', 'invite','sendmail',

        'userapp', 'task', 'credit', 'password', 'domain');
  修改为:$acs = array('space', 'doing', 'upload', 'comment', 'blog', 'album', 'relatekw', 'common', 'class',

        'swfupload', 'thread', 'mtag', 'poke', 'friend',

        'avatar', 'profile', 'theme', 'import', 'feed', 'privacy', 'pm', 'share', 'advance', 'invite','sendmail',

        'userapp', 'task', 'credit', 'password', 'domain', 'udisk', 'uploadudisk', 'udiskrecode');
  (5)network.php
原代码:$acs = array('space', 'doing', 'blog', 'album', 'mtag', 'thread', 'share');
  修改为:$acs = array('space', 'doing', 'blog', 'album', 'mtag', 'thread', 'share', 'udisk');
  (6)space.php
原代码:$dos = array('feed', 'doing', 'mood', 'blog', 'album', 'thread', 'mtag', 'friend', 'wall', 'tag', 'notice', 'share', 'home', 'pm');
   修改为:$dos = array('feed', 'doing', 'mood', 'blog', 'album', 'thread', 'mtag', 'friend', 'wall', 'tag', 'notice', 'share', 'home', 'pm', 'udisk');
Pages: [1]
View full version: UCHOME1[1].5个人网盘插件