Code Monkey home page Code Monkey logo

cuicui's Introduction

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.

cuicui's People

Contributors

stymaar avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.