Lokasi:
/
home
/
u109751622
/
domains
/
tallypointgorakhpur.com
/
public_html
/
Ubah: README.md
# Website Management (PHP + MySQL + Bootstrap) A ready-to-run website CMS with public pages and an admin panel. ## Public Pages - Home (`/index.php` — from **pages.home**) - About Us (`/about.php` — from **pages.about**) - Courses (`/courses.php` — from **courses** table) - Notice (`/notice.php` — from **notices** table) - Student Verification (`/verify.php` — checks **students.roll_no**) - Gallery (`/gallery.php` — from **gallery** table, images in `/assets/images`) - Contact (`/contact.php` — from **pages.contact**) ## Admin - `/admin/login.php` (username: `admin`, password: `admin123` after running `seed_admin.php`) - Manage: Pages, Courses, Notices, Students, Gallery (CRUD) ## Setup 1. Create a MySQL database and user, or use the defaults in `config.php`. 2. Import `schema.sql` into your database. 3. Run `seed_admin.php` once in your browser to create the default admin: - Visit: `http://YOURHOST/admin/seed_admin.php` (it will show a success message and can be safely deleted). - Credentials: **admin / admin123** (please change after logging in). 4. Put this folder on a PHP server (Apache/Nginx). Ensure `assets/images` is writable for image uploads. ## Notes - Bootstrap is loaded via CDN. - Basic prepared statements are used for safer queries. - For production, configure environment variables `DB_HOST`, `DB_USER`, `DB_PASS`, `DB_NAME` or edit `config.php`.
Batal