From fb25146ff103e7486697c137492ad56a18b3cdeb Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 31 Aug 2024 21:10:15 -0400 Subject: [PATCH] updates? --- mocha-php/src/mocha-php/.htaccess | 5 + mocha-php/src/mocha-php/Configuration.inc.php | 19 ++ mocha-php/src/mocha-php/images/logo.svg | 16 ++ .../mocha-php/include/Configuration.inc.php | 28 ++ .../src/mocha-php/include/mochacommon.inc.php | 5 + mocha-php/src/mocha-php/scripts/setup.js | 26 ++ mocha-php/src/mocha-php/setup.php | 247 ++++++++++++++++++ .../mocha-php/themes/avondale/uwt-button.less | 5 +- .../mocha-php/themes/avondale/uwt-header.less | 4 + .../mocha-php/themes/avondale/uwt-page.less | 4 + 10 files changed, 358 insertions(+), 1 deletion(-) create mode 100644 mocha-php/src/mocha-php/Configuration.inc.php create mode 100644 mocha-php/src/mocha-php/images/logo.svg create mode 100644 mocha-php/src/mocha-php/include/Configuration.inc.php create mode 100644 mocha-php/src/mocha-php/scripts/setup.js create mode 100644 mocha-php/src/mocha-php/setup.php diff --git a/mocha-php/src/mocha-php/.htaccess b/mocha-php/src/mocha-php/.htaccess index 8e013bc..77a1431 100644 --- a/mocha-php/src/mocha-php/.htaccess +++ b/mocha-php/src/mocha-php/.htaccess @@ -3,6 +3,11 @@ RewriteEngine On # Do not remove this line, otherwise mod_rewrite rules will stop working # RewriteBase / + +RewriteCond %{REQUEST_FILENAME}.php -f + +RewriteRule ^setup$ setup.php [PT,L,QSA] + RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d diff --git a/mocha-php/src/mocha-php/Configuration.inc.php b/mocha-php/src/mocha-php/Configuration.inc.php new file mode 100644 index 0000000..233dbfb --- /dev/null +++ b/mocha-php/src/mocha-php/Configuration.inc.php @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/mocha-php/src/mocha-php/images/logo.svg b/mocha-php/src/mocha-php/images/logo.svg new file mode 100644 index 0000000..eda3a6d --- /dev/null +++ b/mocha-php/src/mocha-php/images/logo.svg @@ -0,0 +1,16 @@ + + + + + + +
+
+ " /> +
+
+
+

Mocha Setup

+

Please fill out the information below to complete the initial configuration of your Mocha application server

+ +

User does not have access to include/Configuration.inc.php ; please grant this user permission and then ">retry

+ +

Could not find the 'data' folder at the same level of setup.php; please put it there

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ +
+
+ +
+
+ + + \ No newline at end of file diff --git a/mocha-php/src/mocha-php/themes/avondale/uwt-button.less b/mocha-php/src/mocha-php/themes/avondale/uwt-button.less index 28a393b..603a77a 100644 --- a/mocha-php/src/mocha-php/themes/avondale/uwt-button.less +++ b/mocha-php/src/mocha-php/themes/avondale/uwt-button.less @@ -1,7 +1,10 @@ //(~'@{ButtonSelector}') a.uwt-button, button, input[type=button], input[type=submit], input[type=reset], div.uwt-button > a { - + &[disabled] + { + opacity: 0.5; + } .ButtonColor(@backcolor, @forecolor) { background-color: @backcolor; diff --git a/mocha-php/src/mocha-php/themes/avondale/uwt-header.less b/mocha-php/src/mocha-php/themes/avondale/uwt-header.less index 2ec02bb..e43d049 100644 --- a/mocha-php/src/mocha-php/themes/avondale/uwt-header.less +++ b/mocha-php/src/mocha-php/themes/avondale/uwt-header.less @@ -6,6 +6,10 @@ body &> div.uwt-header, &> form > div.uwt-header { background-color: #fff; + &.uwt-color-inverse + { + background-color: #2d353c; + } &> div.uwt-header-item { diff --git a/mocha-php/src/mocha-php/themes/avondale/uwt-page.less b/mocha-php/src/mocha-php/themes/avondale/uwt-page.less index 06f42a3..be934b5 100644 --- a/mocha-php/src/mocha-php/themes/avondale/uwt-page.less +++ b/mocha-php/src/mocha-php/themes/avondale/uwt-page.less @@ -4,6 +4,10 @@ div.uwt-page-footer, div.uwt-page > div.uwt-footer border-top: 1px solid #d5dbe0; background: #ffffff; padding: 16px; + &.uwt-color-inverse + { + background: #2d353c; + } } body:not(.uwt-hide-header) > div.uwt-page, body:not(.uwt-hide-header) > form > div.uwt-page