Permalink
Browse files

User registration done: register/confirm/reconfirm/rest_password

++fixes
  • Loading branch information...
1 parent 1325892 commit 9995511c1d037e5c80aa18ca038da89b721f2d7a @lefedor committed Apr 21, 2010
Showing with 1,130 additions and 19,406 deletions.
  1. +6 −5 DOCS/INSTALL
  2. +1 −4 DOCS/TODO
  3. +22 −12 DOCS/db_dump/demo.sql
  4. +201 −127 LICENSES/ArtisticLicense
  5. +2 −2 NCMS/cgi-bin/MjNCMS/Content.pm
  6. +11 −1 NCMS/cgi-bin/MjNCMS/Date.pm
  7. +28 −10 NCMS/cgi-bin/MjNCMS/Mail.pm
  8. +2 −2 NCMS/cgi-bin/MjNCMS/Menus.pm
  9. +8 −4 NCMS/cgi-bin/MjNCMS/Plugin/{MjncmsInit.pm → MjncmsInit.pm.example}
  10. +0 −1 NCMS/cgi-bin/MjNCMS/Service.pm
  11. +2 −2 NCMS/cgi-bin/MjNCMS/Translations.pm
  12. +129 −29 NCMS/cgi-bin/MjNCMS/User.pm
  13. +563 −25 NCMS/cgi-bin/MjNCMS/Usercontroller.pm
  14. +13 −7 NCMS/cgi-bin/mj_daemon.pl.example
  15. +7 −0 NCMS/public_html/tt_tpls/mjncms/mail/signature.html.tpl
  16. +7 −0 NCMS/public_html/tt_tpls/mjncms/mail/signature.txt.tpl
  17. +2 −2 NCMS/public_html/tt_tpls/mjncms/user/mail/confirm.html.tpl
  18. +1 −1 NCMS/public_html/tt_tpls/mjncms/user/mail/confirm.txt.tpl
  19. +10 −0 NCMS/public_html/tt_tpls/mjncms/user/mail/forgot.html.tpl
  20. +10 −0 NCMS/public_html/tt_tpls/mjncms/user/mail/forgot.txt.tpl
  21. +9 −0 NCMS/public_html/tt_tpls/mjncms/user/mail/new_pass.html.tpl
  22. +9 −0 NCMS/public_html/tt_tpls/mjncms/user/mail/new_pass.txt.tpl
  23. +42 −0 NCMS/public_html/tt_tpls/mjncms/user/user_forgot.tpl
  24. +1 −1 NCMS/public_html/tt_tpls/mjncms/user/user_login.tpl
  25. +2 −0 NCMS/public_html/tt_tpls/mjncms/user/user_profile.tpl
  26. +42 −0 NCMS/public_html/tt_tpls/mjncms/user/user_reconfirm.tpl
  27. +0 −409 NCMS/tmp/tt_ctpls/public_html/tt_tpls/_common/common_awpslist_fmt.tpl.ttc
  28. +0 −142 NCMS/tmp/tt_ctpls/public_html/tt_tpls/_common/common_blocks_fmt.tpl.ttc
  29. +0 −491 NCMS/tmp/tt_ctpls/public_html/tt_tpls/_common/common_catlist_fmt.tpl.ttc
  30. +0 −390 NCMS/tmp/tt_ctpls/public_html/tt_tpls/_common/common_langlist_fmt.tpl.ttc
  31. +0 −483 NCMS/tmp/tt_ctpls/public_html/tt_tpls/_common/common_roleslist_fmt.tpl.ttc
  32. +0 −408 NCMS/tmp/tt_ctpls/public_html/tt_tpls/_common/common_sugrpslist_fmt.tpl.ttc
  33. +0 −521 NCMS/tmp/tt_ctpls/public_html/tt_tpls/_common/common_userlist_fmt.tpl.ttc
  34. +0 −124 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_auth.tpl.ttc
  35. +0 −461 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_awproles.tpl.ttc
  36. +0 −227 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_awproles_awp_edit.tpl.ttc
  37. +0 −108 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_awproles_role_add.tpl.ttc
  38. +0 −543 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_awproles_setperm_awp.tpl.ttc
  39. +0 −625 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_awproles_setperm_role.tpl.ttc
  40. +0 −447 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_content_blocks.tpl.ttc
  41. +0 −296 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_content_blocks_add.tpl.ttc
  42. +0 −432 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_content_blocks_edit.tpl.ttc
  43. +0 −618 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_content_cats.tpl.ttc
  44. +0 −64 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_content_filemanager.tpl.ttc
  45. +0 −621 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_content_page_add.tpl.ttc
  46. +0 −838 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_content_page_edit.tpl.ttc
  47. +0 −506 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_content_pages.tpl.ttc
  48. +0 −999 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_content_short_urls.tpl.ttc
  49. +0 −899 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_index.html.tpl.ttc
  50. +0 −70 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_index.tpl.ttc
  51. +0 −426 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_menus.tpl.ttc
  52. +0 −348 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_menus_add.tpl.ttc
  53. +0 −1,094 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_menus_edit.tpl.ttc
  54. +0 −474 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_menus_managetrans.tpl.ttc
  55. +0 −300 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_navleft.tpl.ttc
  56. +0 −59 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_no_access_perm.tpl.ttc
  57. +0 −347 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_permissions.tpl.ttc
  58. +0 −108 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_permissions_add.tpl.ttc
  59. +0 −246 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_permissions_edit.tpl.ttc
  60. +0 −367 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_translations_poollist.tpl.ttc
  61. +0 −900 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_users.tpl.ttc
  62. +0 −479 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_users_add.tpl.ttc
  63. +0 −666 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/admin/admin_users_edit.tpl.ttc
  64. +0 −56 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/common/common_logout.tpl.ttc
  65. +0 −286 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/content/content_category.tpl.ttc
  66. +0 −174 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/content/content_page.tpl.ttc
  67. +0 −97 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/content/content_shortlink_add.tpl.ttc
  68. +0 −169 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/content/content_shortlink_add_result.tpl.ttc
  69. +0 −31 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/not_found.html.tpl.ttc
  70. +0 −278 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/site_index.html.tpl.ttc
  71. +0 −162 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/user/mail/confirm.html.tpl.ttc
  72. +0 −55 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/user/mail/confirm.txt.tpl.ttc
  73. +0 −249 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/user/user_confirm.tpl.ttc
  74. +0 −62 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/user/user_confirm_req.tpl.ttc
  75. +0 −137 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/user/user_confirm_result.tpl.ttc
  76. +0 −96 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/user/user_login.tpl.ttc
  77. +0 −316 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/user/user_profile.tpl.ttc
  78. +0 −235 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/user/user_register.tpl.ttc
  79. +0 −232 NCMS/tmp/tt_ctpls/public_html/tt_tpls/mjncms/wrapper_index.tpl.ttc
View
@@ -5,12 +5,13 @@
http://github.com/lefedor/mojo/commit/2a0d5fa8d75467a489d5d66426b9e8e974fa14d5
3. Rename mj_daemon.pl.example to mj_daemon.pl
4. Rename MjNCMS::Config.pm.example to MjNCMS::Config.pm
-5. Setup data @ config, basically just DB settings, random strings for crypt/md5 checks, recaptcha private/public keys
+5. Rename MjNCMS::Plugin::MjncmsInit.pm.example to MjNCMS::MjncmsInit.pm
+6. Setup data @ config, basically just DB settings, random strings for crypt/md5 checks, recaptcha private/public keys
(there are filled keys for host 'mojotest', so u can start up host with same name for *just testing* reasons)
-6. Start MjNCMS daemon: by typing `perl mjn_daemon.pl`
+7. Start MjNCMS daemon: by typing `perl mjn_daemon.pl`
(FCGI start, default options at mj_daemon.pl, near "Mojolicious->start" [fcgi_prefork --listen mojotest:3042 by default])
I've tested MjNCMS with nginx, nginx config example is nginx.conf just here, @ DOCS.
-7. OR! Start MjNCMS with your command line params, like `perl mjn_daemon.pl daemon` (localhost:3000 demo server)
+8. OR! Start MjNCMS with your command line params, like `perl mjn_daemon.pl daemon` (localhost:3000 demo server)
check 'help' command output.
-8. go to demo site. default admin path is /mjadmin/, default login/pass is austin/powers
-9. Profit!
+9. go to demo site. default admin path is /mjadmin/, default login/pass is austin/powers
+10. Profit!
View
@@ -1,10 +1,6 @@
#Things in mind, volunteers/suggestions are welcome:
HOT:
- User reg/login/confirm @ content-side
- with lame predefined role
- profile page
- change email/pass form
MEMD use @ pages, @categories, @blocks
Paging @ category list - adv ..slug/[index|page_(2..n)].htm
Paging @ pages display - adv ..[slug|slug_page_(2..n)].html
@@ -75,5 +71,6 @@
Update all JS dialogs and evrything as Mootools locales, not hash like now,
which was about temporary solution, before locales extension man was read )
Update FileManager.js to use locales
+ Add namespace not visible from TT to prevent call some functions from templates. Like some of {'USR'}->new_salt/change_email. (more secure then)
..not complete...
View
@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Host: localhost
--- Generation Time: Apr 19, 2010 at 04:05 PM
+-- Generation Time: Apr 22, 2010 at 12:25 AM
-- Server version: 5.0.51
-- PHP Version: 5.3.1-5
@@ -87,7 +87,7 @@ CREATE TABLE IF NOT EXISTS `mjsmf_members` (
KEY `lastLogin` (`lastLogin`),
KEY `lngfile` (`lngfile`(30)),
KEY `ID_POST_GROUP` (`ID_POST_GROUP`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=38 ;
--
-- Dumping data for table `mjsmf_members`
@@ -97,7 +97,9 @@ INSERT INTO `mjsmf_members` (`ID_MEMBER`, `memberName`, `dateRegistered`, `posts
(0, 'guest', 0, 0, 0, '', 0, 'Guest', 0, 0, '', '', '', '9474d8c82a7bdef16bb503f7dbd1b02f5aaf601f', '', 'I''m guest', 0, '0001-01-01', '', '', '', '', '', '', '', 1, 0, '', '', 0, '', 0, 0, 0, '', 1, 1, 0, 2, '', '', '', '', 0, 0, 'oyaebu', 0, '', '', 0, 0, '!QAZa'),
(1, 'austin', 0, 0, 0, '', 0, 'Austin Powers', 0, 0, '', '', '', 'affed750772acc7816bdfb3740357b6e40c9e18f', 'austin@powers.ap', '', 0, '1939-11-12', '', '', '', '', '', '', '', 0, 1, '', '', 3, '', 0, 0, 0, '', 1, 1, 0, 2, '', '', '', '', 0, 1, '', 0, '', '', 0, 0, 'AuSt!'),
(20, 'Morbo', 1271615794, 0, 0, '', 0, 'Morbo', 0, 0, '', '', '', 'ecafe79de815678b999f15a90b4e1cc32a35c09f', 'morbo@powers.app', '', 0, '0001-01-01', '', '', '', '', '', '', '', 1, 1, '', '', 0, '', 0, 0, 0, '', 1, 1, 0, 2, '', '', '', '', 0, 0, '395bd7cd21', 0, '', '', 0, 0, '5a71'),
-(21, 'pepyaka', 1271627335, 0, 0, '', 0, 'pepyaka', 0, 0, '', '', '', '39c17d4c979a0312c04c074e4cde55ad96601d2f', 'pepyaka21@powers.apw', '', 0, '0001-01-01', '', '', '', '', '', '', '', 1, 1, '', '', 0, '', 0, 0, 0, '', 1, 1, 0, 2, '', '', '', '', 0, 1, '', 0, '', '', 0, 0, 'b7f7');
+(21, 'pepyaka', 1271627335, 0, 0, '', 0, 'pepyaka', 0, 0, '', '', '', '39c17d4c979a0312c04c074e4cde55ad96601d2f', 'pepyaka21@powers.apw', '', 0, '0001-01-01', '', '', '', '', '', '', '', 1, 1, '', '', 0, '', 0, 0, 0, '', 1, 1, 0, 2, '', '', '', '', 0, 1, '', 0, '', '', 0, 0, 'b7f7'),
+(22, 'chupakabra', 1271687788, 0, 0, '', 0, 'chupakabra', 0, 0, '', '', '', '8976fe787e7a12ef44d2237c94abee426125aa3c', 'chupakabra@powers.app', '', 0, '0001-01-01', '', '', '', '', '', '', '', 1, 1, '', '', 0, '', 0, 0, 0, '', 1, 1, 0, 2, '', '', '', '', 0, 1, '', 0, '', '', 0, 0, 'e2af'),
+(37, 'Fry', 1271880017, 0, 0, '', 0, 'Fry', 0, 0, '', '', '', 'ccd720c03d4e26501f09c8c9a573fbc86898c74e', 'ffl-public@yandex.ru', '', 0, '0001-01-01', '', '', '', '', '', '', '', 1, 1, '', '', 0, '', 0, 0, 0, '', 1, 1, 0, 2, '', '', '', '', 0, 0, 'e6a22296d4', 0, '', '', 0, 0, '494d');
-- --------------------------------------------------------
@@ -129,7 +131,11 @@ INSERT INTO `mjsmf_sessions` (`session_id`, `last_update`, `data`) VALUES
('f1b76994a7fb9002ad35b5d77f0f91a1', 1271409820, 'rand_code|s:32:"2058676fc8c3afeefc3c6ab774cd1b67";USER_AGENT|s:103:"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100308 Iceweasel/3.5.8 (like Firefox/3.5.8)";'),
('4f5b80a66385d1267dfd5224cf72eead', 1271490299, 'rand_code|s:32:"07b3030d1d51cdac8c8d53be10bc16b1";USER_AGENT|s:103:"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100308 Iceweasel/3.5.8 (like Firefox/3.5.8)";'),
('8dd646045c2f0d2acac397ecff2103a6', 1271571671, 'rand_code|s:32:"31181c61db465da7ac91b5bf25fcb798";USER_AGENT|s:103:"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100308 Iceweasel/3.5.8 (like Firefox/3.5.8)";'),
-('d5dee676a0f02fdd4a5fb020b83f06a8', 1271668450, 'rand_code|s:32:"8a0322a4f4845231fd3241b2bc292b31";USER_AGENT|s:79:"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100308 Iceape/2.0.3";');
+('d5dee676a0f02fdd4a5fb020b83f06a8', 1271668450, 'rand_code|s:32:"8a0322a4f4845231fd3241b2bc292b31";USER_AGENT|s:79:"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100308 Iceape/2.0.3";'),
+('020c416d56fc9facbce6bc3ec05ff8fb', 1271687691, 'rand_code|s:32:"0af7678245fd9e847b7fd40d241de6da";USER_AGENT|s:103:"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100308 Iceweasel/3.5.8 (like Firefox/3.5.8)";'),
+('bb7b92305f6279d6b9aebae1bedc4392', 1271709968, 'rand_code|s:32:"f718429cbc6ded2b57212cbcbe1eba38";USER_AGENT|s:107:"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.366.2 Safari/533.4";'),
+('be667308e54455a1eb7326dcfa6e807b', 1271710216, 'rand_code|s:32:"b3b3c921c82bc2b949f6518d1d75af2a";USER_AGENT|s:71:"Mozilla/5.0 (compatible; Konqueror/4.3; Linux) KHTML/4.3.4 (like Gecko)";'),
+('dd89f87ffc64922daa25a81a7277bea7', 1271710353, 'rand_code|s:32:"32a34f42ab302248da5179ef944a24d2";USER_AGENT|s:63:"Opera/9.80 (X11; Linux i686; U; ru) Presto/2.2.15 Version/10.10";');
-- --------------------------------------------------------
@@ -464,7 +470,7 @@ INSERT INTO `mj_pages` (`page_id`, `is_published`, `cat_id`, `lang`, `slug`, `in
(1, 1, 0, 'en', 'justpage', '<p>\n <img alt="" ilo-full-src="http://mojotest:82/userfiles/mjncms/1/avopingvo.jpg" src="/userfiles/mjncms/1/avopingvo.jpg" style="width: 96px; height: 96px;" /></p>\n<p>\n This is justpage intro. hi! cool!</p>\n<p>\n &nbsp;</p>\n<p>\n', '<p>\n This is justpagebody</p>\n', 'just single page', '', '', 1, 0, '', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-12 14:14:38', '2010-04-14 22:38:35', '2010-04-12 02:13:00', '2010-04-12 02:13:00', NULL),
(2, 1, 8, 'en', 'd1cp1', '<p>\n iintro</p>\n', '<p>\n bbody</p>\n', 'demo1 cat page 1', '', '', 1, 0, '', 1, 'comment', 0, '', 0, 0, 1, 1, 0, '2010-04-12 14:15:14', '2010-04-12 14:15:14', '2010-04-12 03:14:00', '2010-04-12 03:14:00', NULL),
(3, 1, 8, 'en', 'd1cp2', '<p>\n introoo</p>\n', '<p>\n bodyyy</p>\n', 'demo1 cat page 2', '', '', 1, 0, '', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-12 14:15:44', '2010-04-12 14:18:35', '2010-04-12 04:15:00', '2010-04-12 04:15:00', NULL),
-(4, 1, 0, 'en', 'index', '<p>\n Index page</p>\n', '<p>\n bla</p>\n<p>\n bla</p>\n<p>\n &nbsp;</p>\n<p>\n be careful this demo runs on lowerclocked NAS :)</p>\n<p>\n &nbsp;</p>\n<p>\n bla</p>\n<p>\n Index so index....</p>\n<p>\n &nbsp;</p>\n<p>\n btw, <a href="/mjadmin">admin side</a></p>', 'Main index page', 'MjNCMS project - PERL Mojolicious CMS demo site index page', 'MjNCMS, Mojolicious, Mojo, CMS', 1, 1, 'MjNCMS project demo site index page', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-15 19:45:55', '2010-04-18 10:36:08', '2010-04-15 11:45:00', '2010-04-15 11:45:00', NULL);
+(4, 1, 0, 'en', 'index', '<p>\n Index page</p>\n', '<p some="thing">\n bla</p>\n<p>\n bla</p>\n<p>\n &nbsp;</p>\n<p>\n be careful this demo runs on lowerclocked NAS :)</p>\n<p>\n &nbsp;</p>\n<p>\n bla</p>\n<p>\n Index so index....</p>\n<p>\n &nbsp;</p>\n<p>\n btw, <a href="/mjadmin">admin side</a></p>\n', 'Main index page', 'MjNCMS project - PERL Mojolicious CMS demo site index page', 'MjNCMS, Mojolicious, Mojo, CMS', 1, 1, 'MjNCMS project demo site index page', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-15 19:45:55', '2010-04-19 22:33:50', '2010-04-15 12:45:00', '2010-04-15 12:45:00', NULL);
-- --------------------------------------------------------
@@ -522,7 +528,7 @@ CREATE TABLE IF NOT EXISTS `mj_pages_archive` (
`dt_publishstart` datetime NOT NULL,
`dt_publishend` datetime NOT NULL,
PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Archive posts table' AUTO_INCREMENT=20 ;
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Archive posts table' AUTO_INCREMENT=21 ;
--
-- Dumping data for table `mj_pages_archive`
@@ -547,7 +553,8 @@ INSERT INTO `mj_pages_archive` (`id`, `page_id`, `is_published`, `cat_id`, `lang
(16, 1, 1, 0, 'en', 'justpage', '<p>\n <img alt="" ilo-full-src="http://mojotest:82/userfiles/mjcms/1/avopingvo.jpg" src="/userfiles/mjcms/1/avopingvo.jpg" style="width: 96px; height: 96px;" /></p>\n<p>\n This is justpage intro. hi! cool!</p>\n<p>\n &nbsp;</p>\n<p>\n А вот хуй!</p>\n', '<p>\n This is justpagebody</p>\n', 'just single page', '', '', 1, 0, '', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-12 14:14:38', '2010-04-14 22:38:35', '2010-04-12 01:13:00', '2010-04-12 01:13:00', '0000-00-00 00:00:00'),
(17, 4, 1, 0, 'en', 'index', '<p>\n Index page</p>\n', '<p>\n bla</p>\n<p>\n bla</p>\n<p>\n bla</p>\n<p>\n Index so index....</p>\n', 'Main index page', '', '', 1, 0, '', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-15 19:45:55', '2010-04-15 20:40:43', '2010-04-15 08:45:00', '2010-04-15 08:45:00', '0000-00-00 00:00:00'),
(18, 4, 1, 0, 'en', 'index', '<p>\n Index page</p>\n', '<p>\n bla</p>\n<p>\n bla</p>\n<p>\n bla</p>\n<p>\n Index so index....</p>\n', 'Main index page', 'MjNCMS project demo site index page', 'MjNCMS, Mojolicious, Mojo', 1, 0, '', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-15 19:45:55', '2010-04-18 01:16:18', '2010-04-15 09:45:00', '2010-04-15 09:45:00', '0000-00-00 00:00:00'),
-(19, 4, 1, 0, 'en', 'index', '<p>\n Index page</p>\n', '<p>\n bla</p>\n<p>\n bla</p>\n<p>\n &nbsp;</p>\n<p>\n be careful this demo runs on lowerclocked NAS :)</p>\n<p>\n &nbsp;</p>\n<p>\n bla</p>\n<p>\n Index so index....</p>\n<p>\n &nbsp;</p>\n<p>\n btw, <a href="/mjadmin">admin side</a></p>\n<p>\n &nbsp;</p>', 'Main index page', 'MjNCMS project demo site index page', 'MjNCMS, Mojolicious, Mojo', 1, 0, '', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-15 19:45:55', '2010-04-18 10:36:08', '2010-04-15 10:45:00', '2010-04-15 10:45:00', '0000-00-00 00:00:00');
+(19, 4, 1, 0, 'en', 'index', '<p>\n Index page</p>\n', '<p>\n bla</p>\n<p>\n bla</p>\n<p>\n &nbsp;</p>\n<p>\n be careful this demo runs on lowerclocked NAS :)</p>\n<p>\n &nbsp;</p>\n<p>\n bla</p>\n<p>\n Index so index....</p>\n<p>\n &nbsp;</p>\n<p>\n btw, <a href="/mjadmin">admin side</a></p>\n<p>\n &nbsp;</p>', 'Main index page', 'MjNCMS project demo site index page', 'MjNCMS, Mojolicious, Mojo', 1, 0, '', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-15 19:45:55', '2010-04-18 10:36:08', '2010-04-15 10:45:00', '2010-04-15 10:45:00', '0000-00-00 00:00:00'),
+(20, 4, 1, 0, 'en', 'index', '<p>\n Index page</p>\n', '<p>\n bla</p>\n<p>\n bla</p>\n<p>\n &nbsp;</p>\n<p>\n be careful this demo runs on lowerclocked NAS :)</p>\n<p>\n &nbsp;</p>\n<p>\n bla</p>\n<p>\n Index so index....</p>\n<p>\n &nbsp;</p>\n<p>\n btw, <a href="/mjadmin">admin side</a></p>', 'Main index page', 'MjNCMS project - PERL Mojolicious CMS demo site index page', 'MjNCMS, Mojolicious, Mojo, CMS', 1, 1, 'MjNCMS project demo site index page', 1, 'comment', 0, '', 0, 0, 1, 1, 1, '2010-04-15 19:45:55', '2010-04-19 22:33:50', '2010-04-15 11:45:00', '2010-04-15 11:45:00', '0000-00-00 00:00:00');
-- --------------------------------------------------------
@@ -815,6 +822,7 @@ CREATE TABLE IF NOT EXISTS `mj_users` (
`role_id` smallint(5) unsigned NOT NULL default '0',
`name` tinytext NOT NULL,
`site_lng` char(4) default NULL,
+ `salt` char(16) default NULL,
`ins` datetime NOT NULL default '0000-00-00 00:00:00',
`upd` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`whoedit` mediumint(8) unsigned default NULL,
@@ -828,11 +836,13 @@ CREATE TABLE IF NOT EXISTS `mj_users` (
-- Dumping data for table `mj_users`
--
-INSERT INTO `mj_users` (`member_id`, `replace_member_id`, `is_cms_active`, `role_id`, `name`, `site_lng`, `ins`, `upd`, `whoedit`, `startpage`) VALUES
-(0, NULL, 1, 0, 'Guest', NULL, '2010-02-09 00:00:00', '2010-03-22 21:07:38', NULL, '/'),
-(1, 1, 1, 1, 'Austin Powers', 'en', '2010-02-09 00:00:00', '2010-04-19 00:14:28', 1, '/mjadmin/pages'),
-(20, NULL, 1, 5, 'Morbo', 'en', '0000-00-00 00:00:00', '2010-04-18 22:36:34', 1, '/'),
-(21, NULL, 1, 2, 'pepyaka222', 'en', '0000-00-00 00:00:00', '2010-04-19 15:59:47', 0, '/');
+INSERT INTO `mj_users` (`member_id`, `replace_member_id`, `is_cms_active`, `role_id`, `name`, `site_lng`, `salt`, `ins`, `upd`, `whoedit`, `startpage`) VALUES
+(0, NULL, 1, 0, 'Guest', NULL, '', '2010-02-09 00:00:00', '2010-03-22 21:07:38', NULL, '/'),
+(1, 1, 1, 1, 'Austin Powers', 'en', '', '2010-02-09 00:00:00', '2010-04-19 00:14:28', 1, '/mjadmin/pages'),
+(20, NULL, 1, 5, 'Morbo', 'en', '', '0000-00-00 00:00:00', '2010-04-18 22:36:34', 1, '/'),
+(21, NULL, 1, 2, 'pepyaka222', 'en', '', '0000-00-00 00:00:00', '2010-04-19 15:59:47', 0, '/'),
+(22, NULL, 1, 2, 'chupakabra', 'ru', '', '0000-00-00 00:00:00', '2010-04-19 18:37:20', 0, '/'),
+(37, NULL, 0, 2, 'Fry', 'ru', 'aed9e1cf5984603e', '0000-00-00 00:00:00', '2010-04-22 00:00:17', 0, '/');
-- --------------------------------------------------------
Oops, something went wrong.

0 comments on commit 9995511

Please sign in to comment.