diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03b3201 --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +# ignore os/app generated files +Thumbs.db +.DS_Store +*.esproj +*.project +*.sublime-project +*.sublime-workspace + +# ignore user .htaccess +/.htaccess + +# ignore user sitemap +/sitemap.xml + +# ignore user defines +/monstra/boot/defines.php + +# ignore debug and custom themes +/public/themes/* +/admin/themes/* +!/public/themes/default +!/admin/themes/default + +# ignore user plugins +/plugins/* +!/plugins/box +!/plugins/captcha +!/plugins/markitup +!/plugins/sandbox + +# ignore user files and folders +/backups/* +/public/* +/storage/* +/tmp/* \ No newline at end of file diff --git a/README.md b/README.md index d8e8703..d9a1478 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,39 @@ -Monstra CMS -============= +# Monstra CMS -Monstra - Fast and small content management system written in PHP! +Fast and small content management system written in PHP! + + +## System Requirements +- UNIX/Linux host +- PHP 5.2.0 or higher +- SimpleXML Module +- Apache Mod Rewrite +- Multibyte String + + +## Steps to Install +1. [Download the latest version.](http://monstra.org/download) +2. Unzip the contents to a new folder on your local computer. +3. Upload that whole folder with an FTP client to your host. +4. You may also need to recursively CHMOD the folder /storage/, /tmp/, /backups/ and /public/ to 755(or 777) if your host doesn't set it implicitly. +5. Also you may also need to recursively CHMOD the /install.php, /.htaccess and /sitemap.xml to 755(or 777) if your host doesn't set it implicitly. +6. Type http://example.org/install.php in the browser. + + +## Contributing +1. Help on the [Forum.](http://forum.monstra.org) +2. Donate to keep Monstra free. We will add you to Monstra [Sponsors Page.](http://monstra.org/about/sponsors) +3. Develop a new plugin. +4. Create a new theme. +5. Find and [report issues.](https://github.com/Awilum/monstra-cms/issues) +6. Link back to [Monstra](http://monstra.org). + + +## Links +- [Site](http://monstra.org) +- [Forum](http://forum.monstra.org) +- [Documentation](http://monstra.org/documentation) +- [Github Repository](https://github.com/Awilum/monstra-cms) -Site: http://monstra.org -Forum: http://forum.monstra.org Copyright (C) 2012 Romanenko Sergey / Awilum [awilum@msn.com] \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index d963fb2..70d6be6 100644 --- a/admin/index.php +++ b/admin/index.php @@ -35,9 +35,6 @@ // Admin login if (Request::post('login_submit')) { - // Sleep MONSTRA_LOGIN_SLEEP seconds for blocking Brute Force Attacks - sleep(MONSTRA_LOGIN_SLEEP); - $user = $users->select("[login='" . trim(Request::post('login')) . "']", null); if (count($user) !== 0) { if ($user['login'] == Request::post('login')) { diff --git a/admin/themes/default/css/default.css b/admin/themes/default/css/default.css index 1f27d41..1c62640 100644 --- a/admin/themes/default/css/default.css +++ b/admin/themes/default/css/default.css @@ -91,6 +91,18 @@ h6 { text-transform: uppercase; } +input[type=text]:focus, +input[type=email]:focus, +input[type=url]:focus, +input[type=phone]:focus, +input[type=password]:focus, +select:focus, +textarea:focus { + border-color: #999; + box-shadow: none; +} + + /************************************** 2. HEADER *************************************/ @@ -113,8 +125,8 @@ h6 { .monstra-header h3 a, .monstra-header .brand { float: left; display: block; - padding-top:6px; - padding-left:1px; + padding-top:15px; + padding-left:10px; margin-left: 0px; color: #fdfdfd; font-family: arial; @@ -240,21 +252,22 @@ h6 { /************************************* 5. AUTHORIZATION *************************************/ - -.authorization-block { - margin: 0 auto; - float: none!important; -} - -.authorization-block-footer { - margin: 0 auto; - float: none!important; - margin-top:10px; - margin-bottom:10px; -} - .login-body { - background:#F2F2F2; + background-color: #f5f5f5; +} + +.form-signin { + max-width: 290px; + padding: 19px 29px 29px; + margin: 0 auto 20px; + background-color: #fff; + border: 1px solid #e5e5e5; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + -webkit-box-shadow: 0 1px 5px rgba(0,0,0,.15); + -moz-box-shadow: 0 1px 5px rgba(0,0,0,.15); + box-shadow: 0 1px 5px rgba(0,0,0,.15); } /************************************* @@ -450,4 +463,16 @@ td, th { .error-none {display:none;} .error-field {border:1px solid red!important;} .container-fluid {padding-left:0px;} -img {max-width:none;} \ No newline at end of file +img {max-width:none;} + +a.btn-expand{ + color: #333; + text-decoration: none; + padding-left:4px; + padding-right:4px; +} + +footer a , footer{ + color:#333; + font-size:10px; +} \ No newline at end of file diff --git a/admin/themes/default/index.template.php b/admin/themes/default/index.template.php index 71ec085..2e80f5e 100644 --- a/admin/themes/default/index.template.php +++ b/admin/themes/default/index.template.php @@ -33,7 +33,7 @@