kaotickj / kdg_admin

PHP website framework. Requires PHP 7.4+ Some functions, such as the RSS Feed and Sitemap generators, require system specific configuration. GNU/GPL3 License. Sample code and content are provided for front end functionality. The current state is a mixture of procedural and object oriented programming that I have (slowly) been converting to OOP. It works well as-is, but will require that you inspect and understand the code to customize it for your needs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KDG ADMIN PHP Website Framework

PHP website framework. Requires PHP 7.4+ Some functions, such as the RSS Feed and Sitemap generators, require system specific configuration. GNU/GPL3 License. Sample code and content are provided for front end functionality. The current state is a mixture of procedural and object oriented programming that I have (slowly) been converting to OOP. It works well as-is, but will require that you inspect and understand the code to customize it for your needs.

Login:

Back End:

Front End:

Installation and Setup

  1. Place the contents of the "kdg_admin_master" folder in your webroot directory.
  2. Import "kdg_admin.sql".
  3. Modify "db_credentials" and "config.php" with your database connection credentials.
  4. Navigate to /admin/ where you should be required to login: user="administrator" password="P@ssword1234".
  5. After logging in, navigate to user management > add user (/admin/index.php?page=addUser) and create a new admin user account.
  6. Logout and login as the new user.
  7. Navigate to user management > view users (/admin/index.php?page=viewUsers) and delete the default admin user (administrator).
  8. In "initialize.php", edit line 30 $siteName = "KDG_ADMIN"; change "KDG_ADMIN" to an SEO optimized name for your site.
  9. In "initialize.php", edit line 31 $siteURL = "https://example.com/"; change "https://example.com" to your site URL.

Securing the Framework

In "functions.php", modify the is_ip_authorized() function at line 87 to allow your IP Address(es). Uncomment (remove the "#" in front of) the line #is_ip_authorized(); in "index.php" and "login.php". This will result in a 404 status for traffic from unauthorized sources visiting /admin/.

By default, the login attempt limit is set to 5. This can be changed by modifying line 16 in "login.php" if ($_SESSION['attempts'] >= 5){ from 5 to your desired limit. It is not advised to allow more than 3 - 5 attempts or to disable this fucnctionality as it mitigates brute force attacks. After the specified number of failed login attempts, the source will be banned via ../.htaccess deny and can be manually removed in case of accidental ban.

**For advanced security, download and use K S.W.A.T. PHP Security https://github.com/kaotickj/k-swat-php-security which has built-in support in this framework.

About

PHP website framework. Requires PHP 7.4+ Some functions, such as the RSS Feed and Sitemap generators, require system specific configuration. GNU/GPL3 License. Sample code and content are provided for front end functionality. The current state is a mixture of procedural and object oriented programming that I have (slowly) been converting to OOP. It works well as-is, but will require that you inspect and understand the code to customize it for your needs.

License:GNU General Public License v3.0


Languages

Language:PHP 46.8%Language:CSS 45.9%Language:JavaScript 7.2%Language:HTML 0.1%