diff --git a/admin/index.php b/admin/index.php index fcd897d..8affdba 100644 --- a/admin/index.php +++ b/admin/index.php @@ -31,17 +31,9 @@ function __autoload_my_classes( $classname ) spl_autoload_register( '__autoload_my_classes' ); require_once '../config.php'; require_once '../libraries/medoo/medoo.php'; -require_once '../libraries/rb.php'; require_once '../libraries/phpmailer/class.phpmailer.php'; require_once '../libraries/phpmailer/class.smtp.php'; -define( 'REDBEAN_MODEL_PREFIX', '' ); -\R::setup( 'mysql:host=' . $database['host'] . ';dbname=' . $database['name'], $database['user'], $database['password'] ); -\R::ext( 'xdispense', function ( $type ) -{ - return R::getRedBean() -> dispense( $type ); -} ); - date_default_timezone_set( 'Europe/Warsaw' ); $mdb = new medoo( [ diff --git a/admin/templates/components/form-edit.php b/admin/templates/components/form-edit.php index 1ed2713..d9b04c0 100644 --- a/admin/templates/components/form-edit.php +++ b/admin/templates/components/form-edit.php @@ -78,7 +78,8 @@ $_SESSION['can_use_rfm'] = true; action="action) ?>" enctype="multipart/form-data"> - + + hiddenFields as $name => $value): ?> diff --git a/admin/templates/site/unlogged-layout.php b/admin/templates/site/unlogged-layout.php index fbd1eb6..f1cebd2 100644 --- a/admin/templates/site/unlogged-layout.php +++ b/admin/templates/site/unlogged-layout.php @@ -37,12 +37,13 @@ ?>
- +
+