Backup
55 |Create Backup
60 |├── LICENCE ├── README.md ├── SECURITY.md ├── admin ├── .htaccess ├── about.php ├── addnew.php ├── authenticate.php ├── backup.php ├── build │ ├── config │ │ ├── index.php │ │ ├── postcss.config.js │ │ └── rollup.config.js │ ├── img │ │ ├── avatar.png │ │ ├── index.php │ │ ├── login-admin.png │ │ └── tutorial.jpg │ ├── index.php │ ├── js │ │ ├── .jscsrc │ │ ├── AdminLTE.js │ │ ├── CardRefresh.js │ │ ├── CardWidget.js │ │ ├── ControlSidebar.js │ │ ├── DirectChat.js │ │ ├── Dropdown.js │ │ ├── Layout.js │ │ ├── PushMenu.js │ │ ├── SiteSearch.js │ │ ├── Toasts.js │ │ ├── TodoList.js │ │ ├── Treeview.js │ │ └── index.php │ └── scss │ │ ├── .csslintrc │ │ ├── AdminLTE-components.scss │ │ ├── AdminLTE-core.scss │ │ ├── AdminLTE-extra-components.scss │ │ ├── AdminLTE-pages.scss │ │ ├── AdminLTE-plugins.scss │ │ ├── AdminLTE-raw.scss │ │ ├── AdminLTE.scss │ │ ├── _alerts.scss │ │ ├── _bootstrap-variables.scss │ │ ├── _brand.scss │ │ ├── _buttons.scss │ │ ├── _callout.scss │ │ ├── _cards.scss │ │ ├── _carousel.scss │ │ ├── _colors.scss │ │ ├── _control-sidebar.scss │ │ ├── _direct-chat.scss │ │ ├── _dropdown.scss │ │ ├── _elevation.scss │ │ ├── _forms.scss │ │ ├── _info-box.scss │ │ ├── _layout.scss │ │ ├── _main-header.scss │ │ ├── _main-sidebar.scss │ │ ├── _miscellaneous.scss │ │ ├── _mixins.scss │ │ ├── _modals.scss │ │ ├── _navs.scss │ │ ├── _print.scss │ │ ├── _products.scss │ │ ├── _progress-bars.scss │ │ ├── _sidebar-mini.scss │ │ ├── _small-box.scss │ │ ├── _social-widgets.scss │ │ ├── _table.scss │ │ ├── _text.scss │ │ ├── _timeline.scss │ │ ├── _toasts.scss │ │ ├── _users-list.scss │ │ ├── _variables.scss │ │ ├── index.php │ │ ├── mixins │ │ ├── _accent.scss │ │ ├── _backgrounds.scss │ │ ├── _cards.scss │ │ ├── _custom-forms.scss │ │ ├── _direct-chat.scss │ │ ├── _miscellaneous.scss │ │ ├── _navbar.scss │ │ ├── _sidebar.scss │ │ └── _toasts.scss │ │ ├── pages │ │ ├── _404_500_errors.scss │ │ ├── _e-commerce.scss │ │ ├── _invoice.scss │ │ ├── _lockscreen.scss │ │ ├── _login_and_register.scss │ │ ├── _mailbox.scss │ │ ├── _profile.scss │ │ └── _projects.scss │ │ ├── parts │ │ ├── _components.scss │ │ ├── _core.scss │ │ ├── _extra-components.scss │ │ ├── _miscellaneous.scss │ │ ├── _pages.scss │ │ └── _plugins.scss │ │ └── plugins │ │ ├── _bootstrap-slider.scss │ │ ├── _bootstrap-switch.scss │ │ ├── _fullcalendar.scss │ │ ├── _icheck-bootstrap.scss │ │ ├── _jqvmap.scss │ │ ├── _mapael.scss │ │ ├── _miscellaneous.scss │ │ ├── _mixins.scss │ │ ├── _pace.scss │ │ ├── _select2.scss │ │ ├── _sweetalert2.scss │ │ └── _toastr.scss ├── configuration.php ├── delete.php ├── dist │ ├── css │ │ ├── adminlte.css │ │ ├── adminlte.css.map │ │ ├── adminlte.min.css │ │ ├── adminlte.min.css.map │ │ ├── alt │ │ │ ├── adminlte.components.css │ │ │ ├── adminlte.components.css.map │ │ │ ├── adminlte.components.min.css │ │ │ ├── adminlte.components.min.css.map │ │ │ ├── adminlte.core.css │ │ │ ├── adminlte.core.css.map │ │ │ ├── adminlte.core.min.css │ │ │ ├── adminlte.core.min.css.map │ │ │ ├── adminlte.extra-components.css │ │ │ ├── adminlte.extra-components.css.map │ │ │ ├── adminlte.extra-components.min.css │ │ │ ├── adminlte.extra-components.min.css.map │ │ │ ├── adminlte.pages.css │ │ │ ├── adminlte.pages.css.map │ │ │ ├── adminlte.pages.min.css │ │ │ ├── adminlte.pages.min.css.map │ │ │ ├── adminlte.plugins.css │ │ │ ├── adminlte.plugins.css.map │ │ │ ├── adminlte.plugins.min.css │ │ │ ├── adminlte.plugins.min.css.map │ │ │ └── index.php │ │ └── index.php │ ├── img │ │ ├── icons.png │ │ └── index.php │ ├── index.php │ └── js │ │ ├── adminlte.js │ │ ├── adminlte.js.map │ │ ├── adminlte.min.js │ │ ├── adminlte.min.js.map │ │ ├── demo.js │ │ └── index.php ├── edit.php ├── gettingstarted.php ├── includes │ ├── export.php │ └── import.php ├── index.php ├── login.php ├── logout.php ├── passwordchange.php ├── plugins │ ├── bootstrap │ │ └── js │ │ │ ├── bootstrap.bundle.js │ │ │ ├── bootstrap.bundle.js.map │ │ │ ├── bootstrap.bundle.min.js │ │ │ ├── bootstrap.bundle.min.js.map │ │ │ ├── bootstrap.js │ │ │ ├── bootstrap.js.map │ │ │ ├── bootstrap.min.js │ │ │ └── bootstrap.min.js.map │ ├── datatables-bs4 │ │ ├── css │ │ │ ├── dataTables.bootstrap4.css │ │ │ └── dataTables.bootstrap4.min.css │ │ └── js │ │ │ ├── dataTables.bootstrap4.js │ │ │ └── dataTables.bootstrap4.min.js │ ├── datatables-responsive │ │ ├── css │ │ │ ├── responsive.bootstrap4.css │ │ │ └── responsive.bootstrap4.min.css │ │ └── js │ │ │ ├── dataTables.responsive.js │ │ │ ├── dataTables.responsive.min.js │ │ │ ├── responsive.bootstrap4.js │ │ │ └── responsive.bootstrap4.min.js │ ├── datatables │ │ ├── jquery.dataTables.js │ │ └── jquery.dataTables.min.js │ ├── flot │ │ ├── jquery.flot.js │ │ └── plugins │ │ │ ├── jquery.flot.axislabels.js │ │ │ ├── jquery.flot.browser.js │ │ │ ├── jquery.flot.categories.js │ │ │ ├── jquery.flot.composeImages.js │ │ │ ├── jquery.flot.crosshair.js │ │ │ ├── jquery.flot.drawSeries.js │ │ │ ├── jquery.flot.errorbars.js │ │ │ ├── jquery.flot.fillbetween.js │ │ │ ├── jquery.flot.flatdata.js │ │ │ ├── jquery.flot.hover.js │ │ │ ├── jquery.flot.image.js │ │ │ ├── jquery.flot.legend.js │ │ │ ├── jquery.flot.logaxis.js │ │ │ ├── jquery.flot.navigate.js │ │ │ ├── jquery.flot.pie.js │ │ │ ├── jquery.flot.resize.js │ │ │ ├── jquery.flot.saturated.js │ │ │ ├── jquery.flot.selection.js │ │ │ ├── jquery.flot.stack.js │ │ │ ├── jquery.flot.symbol.js │ │ │ ├── jquery.flot.threshold.js │ │ │ ├── jquery.flot.time.js │ │ │ ├── jquery.flot.touch.js │ │ │ ├── jquery.flot.touchNavigate.js │ │ │ └── jquery.flot.uiConstants.js │ ├── index.php │ └── jquery │ │ ├── core.js │ │ ├── jquery.js │ │ ├── jquery.min.js │ │ ├── jquery.min.map │ │ ├── jquery.slim.js │ │ ├── jquery.slim.min.js │ │ └── jquery.slim.min.map ├── profile.php ├── support.php ├── templates │ ├── footer.tpl.php │ └── header.tpl.php ├── tutorials.php └── vpcustomization.php ├── assets ├── css │ ├── bootstrap-grid.min.css │ ├── bootstrap-reboot.min.css │ ├── bootstrap.min.css │ ├── dropdown-style.css │ ├── index.php │ ├── mbr-additional.css │ ├── mobirise-icons.css │ ├── socicon-styles.css │ ├── style.css │ ├── styles-socicon.css │ └── tether.min.css ├── img │ ├── 404.png │ ├── index.php │ └── mbr-1920x1276.jpg ├── index.php └── js │ ├── bootstrap.min.js │ ├── formoid.min.js │ ├── index.php │ ├── jarallax.min.js │ ├── jquery.min.js │ ├── jquery.touch-swipe.min.js │ ├── nav-dropdown.js │ ├── navbar-dropdown.js │ ├── popper.min.js │ ├── script.js │ ├── smooth-scroll.js │ └── tether.min.js ├── includes └── check.php ├── index.php ├── install.php ├── maintenance.php ├── tutorials.php └── videos ├── README.md └── index.php /LICENCE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Dimitris T.(https://github.com/dimitrist19) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
Please fill both the username and password field
'; 15 | die(); 16 | } 17 | 18 | // Prepare our SQL, preparing the SQL statement will prevent SQL injection. 19 | 20 | if ($stmt = $conn->prepare('SELECT id, password FROM users WHERE username = ?')) { 21 | 22 | // Bind parameters (s = string, i = int, b = blob, etc), in our case the username is a string so we use "s" 23 | 24 | $stmt->bind_param('s', $_POST['username']); 25 | 26 | $stmt->execute(); 27 | 28 | // Store the result so we can check if the account exists in the database. 29 | 30 | $stmt->store_result(); 31 | 32 | if ($stmt->num_rows > 0) { 33 | 34 | $stmt->bind_result($id, $password); 35 | 36 | $stmt->fetch(); 37 | 38 | // Account exists, now we verify the password. 39 | // Note: remember to use password_hash in your registration file to store the hashed passwords. 40 | 41 | if (password_verify($_POST['password'], $password)) { //(password_verify) 42 | // Verification success! User has loggedin! 43 | // Create sessions so we know the user is logged in, they basically act like cookies but remember the data on the server. 44 | session_regenerate_id(); 45 | 46 | $_SESSION['loggedin'] = true; 47 | 48 | $_SESSION['name'] = $_POST['username']; 49 | 50 | $_SESSION['id'] = $id; 51 | 52 | header('Location: index.php'); 53 | } else { 54 | 55 | $message = 'Incorrect password!
'; 56 | } 57 | } else { 58 | 59 | $message = 'Incorrect username!
'; 60 | } 61 | } 62 | 63 | $stmt->close(); 64 | } 65 | //} 66 | -------------------------------------------------------------------------------- /admin/backup.php: -------------------------------------------------------------------------------- 1 | 13 | 17 | Restore Completed!'; 22 | } else if (isset($_GET['error'])) { 23 | echo 'Something went wrong! Please try again or ask for help.
'; 24 | } 25 | } 26 | ?> 27 | 28 |Create Backup
60 |