diff --git a/.gitmodules b/.gitmodules index dd220b8..4ad3741 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "app/web/phpOMS"] path = app/web/phpOMS url = https://github.com/Karaka-Management/phpOMS.git +[submodule "app/web/Resources"] + path = app/web/Resources + url = https://github.com/Karaka-Management/Resources.git diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/CL.command.1.tlog b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/CL.command.1.tlog deleted file mode 100644 index d6f125d..0000000 Binary files a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/CL.command.1.tlog and /dev/null differ diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/CL.read.1.tlog b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/CL.read.1.tlog deleted file mode 100644 index a861872..0000000 Binary files a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/CL.read.1.tlog and /dev/null differ diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/CL.write.1.tlog b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/CL.write.1.tlog deleted file mode 100644 index b4f2c7c..0000000 Binary files a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/CL.write.1.tlog and /dev/null differ diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/OnlineResourceWatcherServerApp.lastbuildstate b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/OnlineResourceWatcherServerApp.lastbuildstate deleted file mode 100644 index 210bf42..0000000 --- a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/OnlineResourceWatcherServerApp.lastbuildstate +++ /dev/null @@ -1,2 +0,0 @@ -PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.33.31629:TargetPlatformVersion=10.0.19041.0: -Debug|x64|C:\Users\deich\git\OnlineResourceWatcherApp\app\server\| diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/link.command.1.tlog b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/link.command.1.tlog deleted file mode 100644 index 670da9f..0000000 Binary files a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/link.command.1.tlog and /dev/null differ diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/link.read.1.tlog b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/link.read.1.tlog deleted file mode 100644 index d020dd1..0000000 Binary files a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/link.read.1.tlog and /dev/null differ diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/link.write.1.tlog b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/link.write.1.tlog deleted file mode 100644 index 6fd4100..0000000 Binary files a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/link.write.1.tlog and /dev/null differ diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/rc.command.1.tlog b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/rc.command.1.tlog deleted file mode 100644 index 90104ca..0000000 Binary files a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/rc.command.1.tlog and /dev/null differ diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/rc.read.1.tlog b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/rc.read.1.tlog deleted file mode 100644 index 41d71f3..0000000 Binary files a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/rc.read.1.tlog and /dev/null differ diff --git a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/rc.write.1.tlog b/app/server/x64/Debug/OnlineRe.e4833a04.tlog/rc.write.1.tlog deleted file mode 100644 index bc0ecaf..0000000 Binary files a/app/server/x64/Debug/OnlineRe.e4833a04.tlog/rc.write.1.tlog and /dev/null differ diff --git a/app/server/x64/Debug/OnlineResourceWatcherServerApp.Build.CppClean.log b/app/server/x64/Debug/OnlineResourceWatcherServerApp.Build.CppClean.log deleted file mode 100644 index 1bfe40f..0000000 --- a/app/server/x64/Debug/OnlineResourceWatcherServerApp.Build.CppClean.log +++ /dev/null @@ -1,3 +0,0 @@ -c:\users\deich\git\onlineresourcewatcherapp\app\server\x64\debug\vc143.idb -c:\users\deich\git\onlineresourcewatcherapp\app\server\x64\debug\vc143.pdb -c:\users\deich\git\onlineresourcewatcherapp\app\server\x64\debug\onlinere.e4833a04.tlog\cl.command.1.tlog diff --git a/app/server/x64/Debug/OnlineResourceWatcherServerApp.exe b/app/server/x64/Debug/OnlineResourceWatcherServerApp.exe deleted file mode 100644 index 432d4c0..0000000 Binary files a/app/server/x64/Debug/OnlineResourceWatcherServerApp.exe and /dev/null differ diff --git a/app/server/x64/Debug/OnlineResourceWatcherServerApp.exe.recipe b/app/server/x64/Debug/OnlineResourceWatcherServerApp.exe.recipe deleted file mode 100644 index bef72ee..0000000 --- a/app/server/x64/Debug/OnlineResourceWatcherServerApp.exe.recipe +++ /dev/null @@ -1,11 +0,0 @@ - - - - - C:\Users\deich\git\OnlineResourceWatcherApp\app\server\x64\Debug\OnlineResourceWatcherServerApp.exe - - - - - - \ No newline at end of file diff --git a/app/server/x64/Debug/OnlineResourceWatcherServerApp.ilk b/app/server/x64/Debug/OnlineResourceWatcherServerApp.ilk deleted file mode 100644 index 1d6e80c..0000000 Binary files a/app/server/x64/Debug/OnlineResourceWatcherServerApp.ilk and /dev/null differ diff --git a/app/server/x64/Debug/OnlineResourceWatcherServerApp.log b/app/server/x64/Debug/OnlineResourceWatcherServerApp.log deleted file mode 100644 index d5d4387..0000000 --- a/app/server/x64/Debug/OnlineResourceWatcherServerApp.log +++ /dev/null @@ -1 +0,0 @@ - OnlineResourceWatcherServerApp.vcxproj -> C:\Users\deich\git\OnlineResourceWatcherApp\app\server\x64\Debug\OnlineResourceWatcherServerApp.exe diff --git a/app/server/x64/Debug/OnlineResourceWatcherServerApp.pdb b/app/server/x64/Debug/OnlineResourceWatcherServerApp.pdb deleted file mode 100644 index 77bece1..0000000 Binary files a/app/server/x64/Debug/OnlineResourceWatcherServerApp.pdb and /dev/null differ diff --git a/app/server/x64/Debug/OnlineResourceWatcherServerApp.res b/app/server/x64/Debug/OnlineResourceWatcherServerApp.res deleted file mode 100644 index 92c639f..0000000 Binary files a/app/server/x64/Debug/OnlineResourceWatcherServerApp.res and /dev/null differ diff --git a/app/server/x64/Debug/OnlineResourceWatcherServerApp.vcxproj.FileListAbsolute.txt b/app/server/x64/Debug/OnlineResourceWatcherServerApp.vcxproj.FileListAbsolute.txt deleted file mode 100644 index 43049e9..0000000 --- a/app/server/x64/Debug/OnlineResourceWatcherServerApp.vcxproj.FileListAbsolute.txt +++ /dev/null @@ -1 +0,0 @@ -C:\Users\deich\git\OnlineResourceWatcherApp\app\server\x64\Debug\OnlineResourceWatcherServerApp.exe diff --git a/app/server/x64/Debug/_IsIncrementalBuild b/app/server/x64/Debug/_IsIncrementalBuild deleted file mode 100644 index 0c7c421..0000000 --- a/app/server/x64/Debug/_IsIncrementalBuild +++ /dev/null @@ -1 +0,0 @@ -x64\Debug\\_IsIncrementalBuild diff --git a/app/server/x64/Debug/main.obj b/app/server/x64/Debug/main.obj deleted file mode 100644 index afb0f9c..0000000 Binary files a/app/server/x64/Debug/main.obj and /dev/null differ diff --git a/app/server/x64/Debug/vc143.idb b/app/server/x64/Debug/vc143.idb deleted file mode 100644 index 17bb839..0000000 Binary files a/app/server/x64/Debug/vc143.idb and /dev/null differ diff --git a/app/server/x64/Debug/vc143.pdb b/app/server/x64/Debug/vc143.pdb deleted file mode 100644 index 1623629..0000000 Binary files a/app/server/x64/Debug/vc143.pdb and /dev/null differ diff --git a/app/web/Application.php b/app/web/Application.php new file mode 100644 index 0000000..b32f694 --- /dev/null +++ b/app/web/Application.php @@ -0,0 +1,10 @@ +run(); + +if (\ob_get_level() > 0) { + \ob_end_flush(); +} diff --git a/app/web/Install/index.tpl.php b/app/web/Install/index.tpl.php new file mode 100644 index 0000000..0ddac94 --- /dev/null +++ b/app/web/Install/index.tpl.php @@ -0,0 +1,407 @@ + + + + + + + + + +
+
+
+ +

Welcome

+
+

Karaka is a WebApp written in PHP and JavaScript supporting various database + and caching technologies. Many modules/extensions provide functionality for businesses, + education facilities, healthcare facilities and organizations in general.

+ +

In the following pages you'll be guided through the installation process for the WebApp. + Most of the customization can be done after installation such as configuring localization, + installing additional modules, creating organization etc.

+ +

In case you don't want to use this web installation tool you can also use the console + installation tool. Just navigate in your shell to the install directory and then into + Console the subdirectory. There you simply run the install script and are good to go.

+ +

In case you encounter any problems during the installation process please feel free to + ask for help on our website or contact our support email at + test.email@karaka.de

+ +

+
+
+
+
+
+ +

License & User Agreement

+
+

Upon clicking Agree you agree with the following license agreement.

+ +
+

The OMS License 1.0

+ +

Copyright (c) All Rights Reserved

+ +

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE.

+
+ +

+
+
+
+
+
+ +

Pre-installation check

+
+

The following checks show if your environment supports the necessary requirements of the WebApp.

+ +

Right next to the check status you can see the type of the requirement. Anything crictial will + prevent you from installing the WebApp and must be fixed. Medium indicates that some important features + are not available but the WebApp can be still installed. Optional means that only minor features are not + available.

+ +

All non critical elements can be fixed after installation if you find yourself in need of one of the + features. All critical elements must be fixed before you can continue with the installation.

+ +

For help please check our Installation Guide.

+ + + + + + + + + + + + + + + + + + + + + + + +
Status + Type + Requirement + Your Environment +
+ Critcal + PHP version >= 8.0.0 + +
+ + Critcal + File permissions (write permissions required!) + +
+ Critcal + /Install + +
+ Critcal + /Modules + +
+ Critcal + /Modules + +
+ Critcal + /Web + +
+ Critcal + /Console + +
+ Critcal + PDO database extension for PHP + +
+ Medium + IMAP extension for PHP + +
+ Medium + cUrl extension for PHP + +
+ Medium + FTP extension for PHP + +
+ Medium + Dom extension for PHP + +
+ Medium + Xml extension for PHP + +
+ Medium + BCMath extension for PHP + +
+ Optional + Multibyte extension (mbstring) for PHP for international characters (e.g. chinese, russian) + +
+ Optional + Zip extension for PHP + +
+ Optional + Zlib extension for PHP + +
+ Optional + Gd extension for PHP + +
+ +

Tip: Many PHP extension just need to be activated in your php.ini file located + at . Reload the installation in your browser after making any adjustments.

+ +

+
+
+
+
+
+ +

Database

+
+

Please create a database this WebApp can use and configure every field.

+ +
+
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • Please make sure that you have created this database. Please also make sure that this database is empty! +
  • +
+
+ +

Users

+ +

This WebApp uses different database users for different tasks. This way permissions can be + managed in a batter way which also helps to improve the security. You can use always the same + user and give that user the necessary permissions, this however is not advised. Please make + sure every user only has the necessary permissions assigned.

+ +

Schema

+ +

The schema user is responsible for modifying the database structure and is only used during + the installation and potentially during updates if the database needs to be modified.

+ +
    +
  • +
  • +
  • +
  • +
+ +

Create

+ +

The create user is only used by the API for creating new database entries.

+ +
    +
  • +
  • +
  • +
  • +
+ +

Select

+ +

The select user is used by every part of the WebApp to read database entries.

+ +
    +
  • +
  • +
  • +
  • +
+ +

Update

+ +

The update user is only used by the API for updating existing database entries.

+ +
    +
  • +
  • +
  • +
  • +
+ +

Delete

+ +

The delete user is only used by the API for deleting existing database entries.

+ +
    +
  • +
  • +
  • +
  • +
+ +

+
+
+
+
+
+ +

Configuration

+
+

The following configuration options are general WebApp settings.

+
    +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
  • +
+

+ +
+
+
+
+
+ +

Installation

+
+

Please wait until the installation finishes. You will be redirected to the backend + afterwards.

+
+
+
+
+ diff --git a/app/web/Templates/index.tpl.php b/app/web/Install/oem/Routes.php similarity index 100% rename from app/web/Templates/index.tpl.php rename to app/web/Install/oem/Routes.php diff --git a/app/web/Resources b/app/web/Resources new file mode 160000 index 0000000..8caf616 --- /dev/null +++ b/app/web/Resources @@ -0,0 +1 @@ +Subproject commit 8caf616b7d25355ab14768c242a1b5d57bfc2f94 diff --git a/app/web/Routes.php b/app/web/Routes.php new file mode 100644 index 0000000..ceb5533 --- /dev/null +++ b/app/web/Routes.php @@ -0,0 +1,15 @@ + 'FrontController:aboutView', + '.*?/imprint' => 'FrontController:imprintView', + '.*?/terms' => 'FrontController:termsView', + '.*?/privacy' => 'FrontController:privacyView', + '.*?/contact' => 'FrontController:contactView', + + '^/*$' => 'FrontController:frontView', + '.*?/login' => 'FrontController:loginView', + + '.*?/api/download' => 'ApiController:downloadView', +]; diff --git a/app/web/Templates/login.tpl.php b/app/web/content/about.de.md similarity index 100% rename from app/web/Templates/login.tpl.php rename to app/web/content/about.de.md diff --git a/app/web/Templates/pages/bill-list.tpl.php b/app/web/content/about.en.md similarity index 100% rename from app/web/Templates/pages/bill-list.tpl.php rename to app/web/content/about.en.md diff --git a/app/web/Templates/pages/bill-profile.tpl.php b/app/web/content/terms.de.md similarity index 100% rename from app/web/Templates/pages/bill-profile.tpl.php rename to app/web/content/terms.de.md diff --git a/app/web/Templates/pages/dashboard.tpl.php b/app/web/content/terms.en.md similarity index 100% rename from app/web/Templates/pages/dashboard.tpl.php rename to app/web/content/terms.en.md diff --git a/app/web/css/clean.css b/app/web/css/clean.css index e69de29..36dc5c6 100644 --- a/app/web/css/clean.css +++ b/app/web/css/clean.css @@ -0,0 +1,55 @@ +html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td, nav, section, iframe, label { + margin: 0; + padding: 0; +} + +a, img, button { + outline: none; +} + +a { + color: inherit; + text-decoration: none; +} + +h1, h2, h3, h4, h5, h6 { + font-weight: 300; +} + +ul { + list-style: none; +} + +th { + font-weight: 300; +} + +input, select, textarea, .textarea, button { + box-sizing: border-box; + box-shadow: none; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border-radius: 0; +} + +input:focus, select:focus, textarea:focus, .textarea:focus, button:focus { + outline: none; +} + +input[type=checkbox] { + margin-right: 5px; +} + +button::-moz-focus-inner { + border: 0; +} + +table { + border-collapse: separate; + border-spacing: 0; +} + +i { + font-style: normal; +} \ No newline at end of file diff --git a/app/web/css/small.css b/app/web/css/small.css index e69de29..6017bdb 100644 --- a/app/web/css/small.css +++ b/app/web/css/small.css @@ -0,0 +1,14 @@ +html, body { + padding: 0; + margin: 0; + height: 100%; + max-height: 100%; + font-weight: 100; + font-family: 'Roboto', sans-serif; +} + +body { + background: #fff; + display: flex; + flex-direction: column; +} \ No newline at end of file diff --git a/app/web/css/vars.css b/app/web/css/vars.css index e69de29..9011429 100644 --- a/app/web/css/vars.css +++ b/app/web/css/vars.css @@ -0,0 +1,3 @@ +:root { + --main-bg-color: brown; + } diff --git a/app/web/humans.txt b/app/web/humans.txt new file mode 100644 index 0000000..408b74d --- /dev/null +++ b/app/web/humans.txt @@ -0,0 +1,8 @@ +/* TEAM */ +Location: Frankfurt, Germany +Main developers: Dennis Eichhorn + +/* SITE */ +Last update: 2022 +Standards: PHP 8.1, HTML5, CSS3, JavaScript +Software: Sublime Text, Github, Git, Visual Studio Code diff --git a/app/web/index.php b/app/web/index.php index e69de29..c179a85 100644 --- a/app/web/index.php +++ b/app/web/index.php @@ -0,0 +1,13 @@ +run(); + +if (\ob_get_level() > 0) { + \ob_end_flush(); +} diff --git a/app/web/Templates/pages/global-bill-list.tpl.php b/app/web/lang/de.lang.php similarity index 100% rename from app/web/Templates/pages/global-bill-list.tpl.php rename to app/web/lang/de.lang.php diff --git a/app/web/Templates/pages/global-dashboard.tpl.php b/app/web/lang/en.lang.php similarity index 100% rename from app/web/Templates/pages/global-dashboard.tpl.php rename to app/web/lang/en.lang.php diff --git a/app/web/robots.txt b/app/web/robots.txt new file mode 100644 index 0000000..96b5de4 --- /dev/null +++ b/app/web/robots.txt @@ -0,0 +1,5 @@ +User-Agent: * +Disallow: +Disallow: /Controllers +Disallow: /Install +Disallow: /phpOMS diff --git a/app/web/Templates/pages/global-org-list.tpl.php b/app/web/tpl/backend/bill-list.tpl.php similarity index 100% rename from app/web/Templates/pages/global-org-list.tpl.php rename to app/web/tpl/backend/bill-list.tpl.php diff --git a/app/web/Templates/pages/global-user-list.tpl.php b/app/web/tpl/backend/bill-profile.tpl.php similarity index 100% rename from app/web/Templates/pages/global-user-list.tpl.php rename to app/web/tpl/backend/bill-profile.tpl.php diff --git a/app/web/Templates/pages/org-settings.tpl.php b/app/web/tpl/backend/dashboard.tpl.php similarity index 100% rename from app/web/Templates/pages/org-settings.tpl.php rename to app/web/tpl/backend/dashboard.tpl.php diff --git a/app/web/Templates/pages/org-user-list.tpl.php b/app/web/tpl/backend/global-bill-list.tpl.php similarity index 100% rename from app/web/Templates/pages/org-user-list.tpl.php rename to app/web/tpl/backend/global-bill-list.tpl.php diff --git a/app/web/Templates/pages/password-forgot.tpl.php b/app/web/tpl/backend/global-dashboard.tpl.php similarity index 100% rename from app/web/Templates/pages/password-forgot.tpl.php rename to app/web/tpl/backend/global-dashboard.tpl.php diff --git a/app/web/Templates/pages/password-reset.tpl.php b/app/web/tpl/backend/global-org-list.tpl.php similarity index 100% rename from app/web/Templates/pages/password-reset.tpl.php rename to app/web/tpl/backend/global-org-list.tpl.php diff --git a/app/web/Templates/pages/register.tpl.php b/app/web/tpl/backend/global-user-list.tpl.php similarity index 100% rename from app/web/Templates/pages/register.tpl.php rename to app/web/tpl/backend/global-user-list.tpl.php diff --git a/app/web/Templates/pages/resource-list.tpl.php b/app/web/tpl/backend/org-settings.tpl.php similarity index 100% rename from app/web/Templates/pages/resource-list.tpl.php rename to app/web/tpl/backend/org-settings.tpl.php diff --git a/app/web/Templates/pages/resource-profile.tpl.php b/app/web/tpl/backend/org-user-list.tpl.php similarity index 100% rename from app/web/Templates/pages/resource-profile.tpl.php rename to app/web/tpl/backend/org-user-list.tpl.php diff --git a/app/web/tpl/backend/password-forgot.tpl.php b/app/web/tpl/backend/password-forgot.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/backend/password-reset.tpl.php b/app/web/tpl/backend/password-reset.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/backend/register.tpl.php b/app/web/tpl/backend/register.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/backend/resource-list.tpl.php b/app/web/tpl/backend/resource-list.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/backend/resource-profile.tpl.php b/app/web/tpl/backend/resource-profile.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/index.tpl.php b/app/web/tpl/index.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/landing/landing.de.tpl.php b/app/web/tpl/landing/landing.de.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/landing/landing.en.tpl.php b/app/web/tpl/landing/landing.en.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/landing/pricing.de.tpl.php b/app/web/tpl/landing/pricing.de.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/landing/pricing.en.tpl.php b/app/web/tpl/landing/pricing.en.tpl.php new file mode 100644 index 0000000..e69de29 diff --git a/app/web/tpl/login.tpl.php b/app/web/tpl/login.tpl.php new file mode 100644 index 0000000..e69de29