Skip to content

A simple blog system for learning use written in raw PHP.

Notifications You must be signed in to change notification settings

cddwx525/crudeblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

A simple blog system written in raw PHP, just for learning use.

crudeblog screenshot

Stautus

Done

  • single article and its comment display
  • article list display
    • whole list
    • list by category
  • categories are always displayed in sidepanel
  • anoymous comment to a article
  • admin user log in, log out
  • write and add article with category
  • edit and update previous article
  • delete article
  • markdown convert(store in markdown, convert to html when dispalying)

Undone

  • head meta information display
  • export article as text
  • batch operation with articles
  • delete comment
  • add keywords and description to article
  • add picture in article
  • change query string to ascii

Program structure

TODO: explain the files.

css
    1.css
include
    footer.php
    header_admin.php
    header.php
    side_admin.php
    side.php
    site_define.php
    sql_connect.php
    sql_result_array.php
admin
    add.php
    article_list.php
    article.php
    comment.php
    delete_confirm.php
    delete.php
    index.php
    login.php
    logout.php
    update.php
    write.php
article_list.php
article.php
comment.php
index.php

Quick start

Put files

Put all files in htdocs directory in your website root document directory.

Create database

Create a database, then create tables according DATABASE.sql in git root directory.

Set variables

Edit file include/site_define.php

// Database
define('HOST', '');
define('USER', '');
define('PASSWORD', '');
define('DB', '');

// Blog name, default is 'crudeblog'
define('BLOGNAME', 'crudeblog');

// User name and password
define('ADMIN', '');
define('ADMIN_PASS', '');

Use

Use web browser visit your site, the index page for guset is display.

About

A simple blog system for learning use written in raw PHP.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages