生成Rapidshare付费链接代码 『已经翻译过了』
Rapidshare Premium Link Generator1.Extract the archive files and upload to your server.
上传附件到你的空间里
2.Create database and Run SQL Query Below:
Код:
新建数据库 运行下面的语句
CREATE TABLE `accounts` (
`id` int(10) NOT NULL auto_increment,
`login` varchar(150) collate latin1_general_ci NOT NULL default '',
`password` varchar(150) collate latin1_general_ci NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
CREATE TABLE `logs` (
`fid` int(10) NOT NULL auto_increment,
`filename` varchar(200) collate latin1_general_ci NOT NULL default '',
`fdate` varchar(150) collate latin1_general_ci NOT NULL default '',
`ip` varchar(150) collate latin1_general_ci NOT NULL default '',
`furl` varchar(150) collate latin1_general_ci NOT NULL default '',
`filesize` varchar(150) collate latin1_general_ci NOT NULL default '',
PRIMARY KEY (`f_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ;
特别注意 mysql5不支持f_id的特殊字符 请修改为 fid 把附件里的部分文件也改下
3.Edit file config.php on your favourite editor,I prefer use notepad.
编辑 config.php文件 修改成为你的 然后保存
Код:
<?php
$INFO['sql_driver'] = 'mysql';
$INFO['sql_host'] = 'localhost';
$INFO['sql_database'] = 'your dbname'; // db name
$INFO['sql_user'] = 'your dbuser''; // username db
$INFO['sql_pass'] = 'your dbpasword';// passwsord db
$INFO['base_url'] = 'http://www.yourdomain.com/index.php'; //The link to this script
$INFO['premium_act'] = '1'; //You should change this number according to the account id number found it the database.
$INFO['serverload'] = '50'; //Disable download when server load equal this value.
$INFO['dl_limit_perday']= '3'; //How many link can a user download per day 0 = unlimited;
?>
4.Save and upload config.php to your server.
6.Assuming you still on phpMyAdmin,run this SQL Query to insert your rapidshare premium account.
Код:
在PHPMYADMIN里运行下列语句 把登录用户名改为你的
INSERT INTO `accounts` ( `login` , `password` ) VALUES ( 'your rapidshare login account' , 'your rapidshare password account');
5.Point your url on browser and enjoy.
6.If you have time just make your template is more great.
OK了其它的自己看 http://www.labs.net.cn/thread-27534-1-1.html
怎么二個呀
页:
[1]