Show
Ignore:
Timestamp:
09/03/05 22:42:52 (7 years ago)
Author:
alexx
Message:
  • Auth: Remove MySQL PASSWORD hashing method to hash password, replace by MD5 hashing, add code to make a smooth transition between hashing method
  • XML engine: Fix a trivial recent bug in dotnode-xml.php
  • Robots: fix a bug in crontab script robots/launch_robots.sh (add cd dirname $0)
  • CSS: Add max_width to image in blog (work on Mozilla/*, Opera but not good on Safari (no proportional resizing), of course, that doesn't work on IE)
  • DB: changing DB structure !!!
    ALTER TABLE `user` ADD `passwd_md5` CHAR( 32 ) NOT NULL AFTER `passwd` ;
    ALTER TABLE `user` CHANGE `passwd` `passwd` VARCHAR( 42 ) NULL ;
    ALTER TABLE `dntp_translator` ADD `passwd_md5` CHAR( 32 ) NOT NULL AFTER `passwd` ;
    ALTER TABLE `dntp_translator` CHANGE `passwd` `passwd` VARCHAR( 42 ) NULL ;
    
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dotnode-struct.sql

    r24 r33  
    1 -- MySQL dump 9.11 
     1-- MySQL dump 10.9 
    22-- 
    33-- Host: localhost    Database: dotnode_alexx 
    44-- ------------------------------------------------------ 
    5 -- Server version       4.0.24_Debian-10-log 
     5-- Server version       4.1.11-Debian_4sarge1-log 
     6/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 
     7/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 
     8/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO,MYSQL40' */; 
     9/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 
    610 
    711-- 
     
    913-- 
    1014 
     15DROP TABLE IF EXISTS `access`; 
    1116CREATE TABLE `access` ( 
    1217  `id` varchar(34) NOT NULL default '', 
     
    2126-- 
    2227 
     28DROP TABLE IF EXISTS `album`; 
    2329CREATE TABLE `album` ( 
    2430  `id` varchar(34) NOT NULL default '', 
     
    3642-- 
    3743 
     44DROP TABLE IF EXISTS `blog`; 
    3845CREATE TABLE `blog` ( 
    3946  `id` varchar(34) NOT NULL default '', 
     
    5360-- 
    5461 
     62DROP TABLE IF EXISTS `blog_categorie`; 
    5563CREATE TABLE `blog_categorie` ( 
    5664  `id` varchar(34) NOT NULL default '', 
     
    6674-- 
    6775 
     76DROP TABLE IF EXISTS `blog_comment`; 
    6877CREATE TABLE `blog_comment` ( 
    6978  `id` varchar(34) NOT NULL default '', 
     
    8190-- 
    8291 
     92DROP TABLE IF EXISTS `bookmarks`; 
    8393CREATE TABLE `bookmarks` ( 
    8494  `id` varchar(34) NOT NULL default '', 
     
    96106-- 
    97107 
     108DROP TABLE IF EXISTS `bookmarks_cat`; 
    98109CREATE TABLE `bookmarks_cat` ( 
    99110  `id` varchar(32) NOT NULL default '', 
     
    110121-- 
    111122 
     123DROP TABLE IF EXISTS `cache_user`; 
    112124CREATE TABLE `cache_user` ( 
    113125  `id` varchar(34) NOT NULL default '', 
     
    153165-- 
    154166 
     167DROP TABLE IF EXISTS `community`; 
    155168CREATE TABLE `community` ( 
    156169  `id` varchar(34) NOT NULL default '', 
     
    179192-- 
    180193 
     194DROP TABLE IF EXISTS `community_cat`; 
    181195CREATE TABLE `community_cat` ( 
    182196  `id_cat` int(10) unsigned NOT NULL auto_increment, 
     
    192206-- 
    193207 
     208DROP TABLE IF EXISTS `community_event`; 
    194209CREATE TABLE `community_event` ( 
    195210  `id_event` int(10) unsigned NOT NULL auto_increment, 
     
    211226-- 
    212227 
     228DROP TABLE IF EXISTS `community_keyword`; 
    213229CREATE TABLE `community_keyword` ( 
    214230  `key_sndx` varchar(16) NOT NULL default '', 
     
    224240-- 
    225241 
     242DROP TABLE IF EXISTS `community_post`; 
    226243CREATE TABLE `community_post` ( 
    227244  `id_post` int(10) unsigned NOT NULL auto_increment, 
     
    241258-- 
    242259 
     260DROP TABLE IF EXISTS `community_topic`; 
    243261CREATE TABLE `community_topic` ( 
    244262  `id_topic` int(10) unsigned NOT NULL auto_increment, 
     
    260278-- 
    261279 
     280DROP TABLE IF EXISTS `dntp_msgid`; 
    262281CREATE TABLE `dntp_msgid` ( 
    263282  `id` int(10) unsigned NOT NULL auto_increment, 
     
    278297-- 
    279298 
     299DROP TABLE IF EXISTS `dntp_msgstr`; 
    280300CREATE TABLE `dntp_msgstr` ( 
    281301  `id_msgstr` int(10) unsigned NOT NULL auto_increment, 
     
    298318-- 
    299319 
     320DROP TABLE IF EXISTS `dntp_translator`; 
    300321CREATE TABLE `dntp_translator` ( 
    301322  `id_translator` int(10) unsigned NOT NULL auto_increment, 
    302323  `id_dotnode` varchar(34) NOT NULL default '', 
    303324  `login` varchar(64) NOT NULL default '', 
    304   `passwd` varchar(32) NOT NULL default '', 
     325  `passwd` varchar(42) default NULL, 
     326  `passwd_md5` varchar(32) NOT NULL default '', 
    305327  `comment` text NOT NULL, 
    306328  `status` enum('waiting','ok','ko') NOT NULL default 'waiting', 
     
    311333  UNIQUE KEY `name` (`login`), 
    312334  KEY `lang` (`lang`) 
    313 ) TYPE=MyISAM; 
     335) TYPE=MyISAM COMMENT='2'; 
    314336 
    315337-- 
     
    317339-- 
    318340 
     341DROP TABLE IF EXISTS `dntp_translator_msgstr`; 
    319342CREATE TABLE `dntp_translator_msgstr` ( 
    320343  `id` int(10) unsigned NOT NULL default '0', 
     
    327350-- 
    328351 
     352DROP TABLE IF EXISTS `global_data`; 
    329353CREATE TABLE `global_data` ( 
    330354  `name` varchar(32) NOT NULL default '', 
     
    337361-- 
    338362 
     363DROP TABLE IF EXISTS `invitation`; 
    339364CREATE TABLE `invitation` ( 
    340365  `id` varchar(34) NOT NULL default '', 
     
    348373-- 
    349374 
     375DROP TABLE IF EXISTS `invitation_email`; 
    350376CREATE TABLE `invitation_email` ( 
    351377  `id` varchar(34) NOT NULL default '', 
     
    370396-- 
    371397 
     398DROP TABLE IF EXISTS `message`; 
    372399CREATE TABLE `message` ( 
    373400  `id` varchar(34) default NULL, 
     
    394421-- 
    395422 
     423DROP TABLE IF EXISTS `metalbum`; 
    396424CREATE TABLE `metalbum` ( 
    397425  `id` varchar(32) NOT NULL default '', 
     
    406434-- 
    407435 
     436DROP TABLE IF EXISTS `relation`; 
    408437CREATE TABLE `relation` ( 
    409438  `id` varchar(34) NOT NULL default '', 
     
    425454-- 
    426455 
     456DROP TABLE IF EXISTS `rss_blog`; 
    427457CREATE TABLE `rss_blog` ( 
    428458  `id` varchar(34) NOT NULL default '', 
     
    439469-- 
    440470 
     471DROP TABLE IF EXISTS `rss_blog_ticket`; 
    441472CREATE TABLE `rss_blog_ticket` ( 
    442473  `id` varchar(34) NOT NULL default '', 
     
    457488-- 
    458489 
     490DROP TABLE IF EXISTS `session`; 
    459491CREATE TABLE `session` ( 
    460492  `id` varchar(32) binary NOT NULL default '', 
     
    469501-- 
    470502 
     503DROP TABLE IF EXISTS `settings`; 
    471504CREATE TABLE `settings` ( 
    472505  `id` varchar(34) NOT NULL default '', 
     
    489522-- 
    490523 
     524DROP TABLE IF EXISTS `todo`; 
    491525CREATE TABLE `todo` ( 
    492526  `id_todo` int(10) unsigned NOT NULL auto_increment, 
     
    508542-- 
    509543 
     544DROP TABLE IF EXISTS `user`; 
    510545CREATE TABLE `user` ( 
    511546  `id` varchar(34) NOT NULL default '', 
    512547  `login` varchar(24) NOT NULL default '', 
    513   `passwd` varchar(32) NOT NULL default '', 
     548  `passwd` varchar(42) binary default NULL, 
     549  `passwd_md5` varchar(32) binary NOT NULL default '', 
    514550  `fname` varchar(32) NOT NULL default '', 
    515551  `lname` varchar(32) NOT NULL default '', 
     
    530566  KEY `photo` (`photo`), 
    531567  KEY `nick` (`nick`) 
    532 ) TYPE=MyISAM; 
     568) TYPE=MyISAM COMMENT='2'; 
    533569 
    534570-- 
     
    536572-- 
    537573 
     574DROP TABLE IF EXISTS `user_comm`; 
    538575CREATE TABLE `user_comm` ( 
    539576  `id` varchar(34) NOT NULL default '', 
     
    550587-- 
    551588 
     589DROP TABLE IF EXISTS `user_contact`; 
    552590CREATE TABLE `user_contact` ( 
    553591  `id` varchar(34) NOT NULL default '', 
     
    577615-- 
    578616 
     617DROP TABLE IF EXISTS `user_general`; 
    579618CREATE TABLE `user_general` ( 
    580619  `id` varchar(34) NOT NULL default '', 
     
    605644-- 
    606645 
     646DROP TABLE IF EXISTS `user_interests`; 
    607647CREATE TABLE `user_interests` ( 
    608648  `id` varchar(34) NOT NULL default '', 
     
    622662-- 
    623663 
     664DROP TABLE IF EXISTS `user_personal`; 
    624665CREATE TABLE `user_personal` ( 
    625666  `id` varchar(34) NOT NULL default '', 
     
    644685-- 
    645686 
     687DROP TABLE IF EXISTS `user_professional`; 
    646688CREATE TABLE `user_professional` ( 
    647689  `id` varchar(34) NOT NULL default '', 
     
    662704-- 
    663705 
     706DROP TABLE IF EXISTS `user_schools`; 
    664707CREATE TABLE `user_schools` ( 
    665708  `id` varchar(34) NOT NULL default '', 
     
    675718) TYPE=MyISAM; 
    676719 
     720/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 
     721/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 
     722/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 
     723/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 
     724