diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b90269..539bc17 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,11 @@ Monstra 2.4.0, 2014-xx-xx ------------------------ - Mobile Ready! Monstra fully responsive for mobile devices, tablets, and normal computer screens. -- Update Twitter Bootstrap to 3.0.3 +- Update Twitter Bootstrap to 3.1.0 - Admin: New Modern User Interface - Site: New default theme - W3 layout fixes +- Idiorm Updated to 1.4.1 - Filesmanager plugin: added ability to create & rename directories. - Responsive Chocolat Lightbox instead of TB Lightbox - Blog Plugin as a part of Monstra CMS diff --git a/admin/index.php b/admin/index.php index 81add39..cdbda28 100644 --- a/admin/index.php +++ b/admin/index.php @@ -82,6 +82,9 @@ if (Request::post('login_submit')) { } } } + + Notification::set('error', $login_error); + } // Errors @@ -117,13 +120,13 @@ if (Request::post('reset_password_submit')) { $mail->AddReplyTo(Option::get('system_email')); $mail->AddAddress($user['email'], $user['login']); $mail->Subject = __('Your login details for :site_name', 'users', array(':site_name' => $site_name)); - $mail->MsgHTML(View::factory('box/users/views/emails/layout_email') + $mail->MsgHTML(View::factory('box/emails/views/emails/email_layout') ->assign('site_url', $site_url) ->assign('site_name', $site_name) ->assign('user_id', $user['id']) ->assign('user_login', $user['login']) ->assign('new_hash', $new_hash) - ->assign('view', 'reset_password_email') + ->assign('email_template', 'reset-password') ->render()); $mail->Send(); diff --git a/admin/themes/default/css/default.css b/admin/themes/default/css/default.css index e280b51..34de9d4 100644 --- a/admin/themes/default/css/default.css +++ b/admin/themes/default/css/default.css @@ -49,14 +49,20 @@ a.btn-expand { padding-right:4px; } +.login-footer, +.login-footer a { + color:#777; + font-size:12px; +} + footer { margin-top: 40px; } footer, footer a { - color:#333; - font-size:10px; + color:#777; + font-size:12px; } footer span { @@ -92,6 +98,20 @@ footer span { padding-left: 0; } +/* Admin Form */ +.form-signin { + width: 400px; +} + +.form-signin { + margin-top: 40px; +} + +.form-signin .administration-area, +.form-signin .reset-password-area { + margin-top: 40px; +} + /* Dropdown Menu */ .dropdown-menu .divider { background-color: #555454; @@ -108,6 +128,10 @@ footer span { } /* Navbar */ +.navbar-inverse .navbar-nav > li > a { + color: #eee; +} + .navbar-inverse { background: #222; } @@ -182,10 +206,15 @@ a.navbar-brand { .badge, .label, .input-group-addon, +.alert, +.tooltip, +.tooltip-inner, code { border-radius: 0px; } .badge, +.tooltip, +.tooltip-inner, .label { font-weight: normal; text-shadow: none; diff --git a/admin/themes/default/login.template.php b/admin/themes/default/login.template.php index 9b64fab..de0b0ce 100644 --- a/admin/themes/default/login.template.php +++ b/admin/themes/default/login.template.php @@ -59,13 +59,18 @@ + +
-
monstra
-
-
+
monstra
+
-


@@ -75,19 +80,15 @@
-
-
+
-
-
+
-


-
@@ -110,24 +111,28 @@ } ?>
- +
-
- +
-
- © 2012 - 2014 Monstra + + diff --git a/install.php b/install.php index 584255f..5fd57e5 100644 --- a/install.php +++ b/install.php @@ -39,12 +39,17 @@ // Select Monstra language if (Request::get('language')) { + if (Request::get('action') && Request::get('action') == 'install') { + $action = '?action=install'; + } else { + $action = ''; + } if (in_array(Request::get('language'), $languages_array)) { if (Option::update('language', Request::get('language'))) { - Request::redirect($site_url); + Request::redirect($site_url.$action); } } else { - Request::redirect($site_url); + Request::redirect($site_url.$action); } } @@ -105,6 +110,8 @@ // Installation done :) header("location: index.php?install=done"); + } else { + Notification::setNow('errors', $errors); } } ?> @@ -119,6 +126,7 @@ + - - + + + Monstra
+ - <?php echo $lang_code?> + <?php echo $lang_code?>
-
-
+
+ +
    + 0)) { + foreach (Notification::get('errors') as $error) { + ?> +
  • + +
+ +
+ @@ -402,66 +448,66 @@
+ +
-

- -
+
    '.__('PHP 5.2 or greater is required', 'system').''; + echo '
  • '.__('PHP 5.2 or greater is required', 'system').'
  • '; } else { - echo '
  • '.__('PHP Version', 'system').' '.PHP_VERSION.'
  • '; + echo '
  • '.__('PHP Version', 'system').' '.PHP_VERSION.'
  • '; } if (in_array('SimpleXML', $php_modules)) { - echo '
  • '.__('Module SimpleXML is installed', 'system').'
  • '; + echo '
  • '.__('Module SimpleXML is installed', 'system').'
  • '; } else { - echo '
  • '.__('SimpleXML module is required', 'system').'
  • '; + echo '
  • '.__('SimpleXML module is required', 'system').'
  • '; } if (in_array('dom', $php_modules)) { - echo '
  • '.__('Module DOM is installed', 'system').'
  • '; + echo '
  • '.__('Module DOM is installed', 'system').'
  • '; } else { - echo '
  • '.__('Module DOM is required', 'system').'
  • '; + echo '
  • '.__('Module DOM is required', 'system').'
  • '; } if (function_exists('apache_get_modules')) { if ( ! in_array('mod_rewrite',apache_get_modules())) { - echo '
  • '.__('Apache Mod Rewrite is required', 'system').'
  • '; + echo '
  • '.__('Apache Mod Rewrite is required', 'system').'
  • '; } else { - echo '
  • '.__('Module Mod Rewrite is installed', 'system').'
  • '; + echo '
  • '.__('Module Mod Rewrite is installed', 'system').'
  • '; } } else { - echo '
  • '.__('Module Mod Rewrite is installed', 'system').'
  • '; + echo '
  • '.__('Module Mod Rewrite is installed', 'system').'
  • '; } foreach ($dir_array as $dir) { if (is_writable($dir.'/')) { - echo '
  • '.__('Directory: :dir writable', 'system', array(':dir' => $dir)).'
  • '; + echo '
  • '.__('Directory: :dir writable', 'system', array(':dir' => $dir)).'
  • '; } else { - echo '
  • '.__('Directory: :dir not writable', 'system', array(':dir' => $dir)).'
  • '; + echo '
  • '.__('Directory: :dir not writable', 'system', array(':dir' => $dir)).'
  • '; } } if (is_writable(__FILE__)) { - echo '
  • '.__('Install script writable', 'system').'
  • '; + echo '
  • '.__('Install script writable', 'system').'
  • '; } else { - echo '
  • '.__('Install script not writable', 'system').'
  • '; + echo '
  • '.__('Install script not writable', 'system').'
  • '; } if (is_writable('sitemap.xml')) { - echo '
  • '.__('Sitemap file writable', 'system').'
  • '; + echo '
  • '.__('Sitemap file writable', 'system').'
  • '; } else { - echo '
  • '.__('Sitemap file not writable', 'system').'
  • '; + echo '
  • '.__('Sitemap file not writable', 'system').'
  • '; } if (is_writable('.htaccess')) { - echo '
  • '.__('Main .htaccess file writable', 'system').'
  • '; + echo '
  • '.__('Main .htaccess file writable', 'system').'
  • '; } else { - echo '
  • '.__('Main .htaccess file not writable', 'system').'
  • '; + echo '
  • '.__('Main .htaccess file not writable', 'system').'
  • '; } if (isset($errors['sitename'])) echo '
  • '.$errors['sitename'].'
  • '; @@ -472,16 +518,24 @@ if (isset($errors['email_valid'])) echo '
  • '.$errors['email_valid'].'
  • '; ?>
+ Continue
-