Used technologies: PHP, Perl, mySQL.
Used engines: FCKEditor (GPL License), forum SMF (GPL License).
Mechanism of work:
Ok, we have the hoster with Perl 5.0 and PHP 5.0 minimum support. Perl scripts are in ”/cgi-bin” directory of the general catalog with index.php. In this example I created the third level domain http://test1.yetidi.net.
The forum patched to extract the users login and passwords from it. SMF used own encrypt algorithm to work with passwords. But the patch extract the passwords from the forum and write them into the mySQL table in plain text format.
My patch useful with the SMF 1.1.6. If you'll use the newest version of SMF, you should to change these files yourself accordingly.
So, step by step:
How to check the patch works ok:
Note: user with the password will work with Articles only after the successful login into the forum. Or you can add username / password to “smf_logs” for visitors manually. When my scripts work – they fetch the user member group from “smf_members” and “smf_membergroups” tables.
According to your mySQL settings you should change next files:
Ok, now you can upload “papers/*” with all subdirectories.
To check if it work go to “http://your_site/papers/” you'll see login page.
Notes:
These tables are used in Auth() module:
CREATE TABLE `AresTestAuthTable_Temp` ( `ID` smallint(6) NOT NULL auto_increment, `name` varchar(25) NOT NULL, `password` varchar(25) NOT NULL, PRIMARY KEY (`ID`), UNIQUE KEY `ID` (`ID`) ) ENGINE=MyISAM AUTO_INCREMENT=43 DEFAULT CHARSET=cp1251
CREATE TABLE `smf_logs` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251
The main table with articles:
CREATE TABLE `papers` ( `paper_id` int(11) NOT NULL auto_increment, `paper_type` varchar(255) NOT NULL, `paper_date` date NOT NULL default '1000-01-01', `paper_article_number` varchar(8) NOT NULL default '', `paper_category` varchar(255) NOT NULL default '', `paper_title` varchar(255) NOT NULL default '', `paper_authors` varchar(255) NOT NULL default '', `paper_source` varchar(255) NOT NULL default '', `paper_link` varchar(255) NOT NULL default '', `paper_summary` text NOT NULL, `paper_comments` text NOT NULL, `service_type` tinytext NOT NULL, `plain_summary` text NOT NULL, `plain_comments` text NOT NULL, `publish_date` date NOT NULL, `article_type` text NOT NULL, `review_date` date NOT NULL, `reviewer` varchar(30) NOT NULL, `approved` int(11) NOT NULL default '0', PRIMARY KEY (`paper_id`) ) ENGINE=MyISAM AUTO_INCREMENT=365 DEFAULT CHARSET=utf8