Skip to content

StyMaar/cuicui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cuicui

Cuicui is a tiny micro-blog engine.

Features

What's in this repo

The main index.php => the list of messages posted, with pagination (with GET param) cc-admin/index.php => the create/edit page (with optional GET param) cc-admin/upload.php => the update script (with file and post param) cc-admin/delete.php => the delete script (with GET param) cc-admin/edit.php => the «edit» page (with GET param) cc-admin/do_edit.php => the edit script (with POST param) article.php => display a single message and the related comments (with GET param)

Authentication

There is no custom credential mechanism for Cuicui, it's supposed to use the default authentication mecanism of the web server you're using.

For Apache, it uses a pair of .htaccess and .htpasswd files that you need to add to the cc-admin/ directory :

.htaccess

AuthName "welcome !"
AuthType Basic
AuthUserFile "ABSOLUTE_PATH_TO_YOUR_.HTPASSWD_FILE_ON_THE_SERVER"
Require valid-user

.htpasswd

USERNAME:PASSWORD_HASH

To find ABSOLUTE_PATH_TO_YOUR_.HTPASSWD_FILE_ON_THE_SERVER on the server you're installing Cuicui, and to calculate the PASSWORD_HASH, there is a small helper in cc-admin/tool.php.

Installation (on Apache)

  1. Clone this repository.
  2. Edit cc-admin/tool.php with your password.
  3. Upload the repo on your server
  4. Go to yourdomain.tld/cc-admin/tool.php, you'll find the path and password hash.
  5. create a .htaccess and a .htpasswd with the path and hash you just found
  6. upload them to your website, and remove cc-admin/tool.php from the server.

About

a tiny micro-bloging engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published