Giter Club home page Giter Club logo

wigit's Introduction

โš ๏ธ The implementation of this project is very naive (using processes etc.), and has not gone through any security review. I would be surprised if it still works, and if it does, I wouldn't trust it if I were you. Leaving it here for historical purpose only.

About

WiGit is a simple Wiki written in PHP, using Git as a backend for tracking changes. Besides Git, this wiki makes use of Textile for marking up text.

Features

  • Very simple and light
  • Easily customizable using themes
  • Extensive syntax for marking up text (using Textile)
  • Full history tracking support
  • Basic support for users/authors, by using the HTTP authentication headers to extract the user.
  • Support for pretty URLs (using URL rewriting)

Requirements

  • Webserver
  • PHP4
  • Git

Installation

  • Put the WiGit dir in some place where the webserver can find it
  • Make sure there's a 'data' subdir, and that it is writable by the webserver
  • Copy config.php.sample to config.php, and edit config.php to reflect your local settings
  • Surf to the wigit URL, and you should start by editing the front page

For URL rewriting, change the SCRIPT_URL to be the base URL prefix (as is shown in the config file), and add the necessary URL rewrite rules for your webserver. E.g.,

  • For Apache, add the following to .htaccess in your wigit install dir:

      <IfModule mod_rewrite.c>
      	RewriteEngine On
      	RewriteBase /wigit/
      	RewriteCond %{REQUEST_FILENAME} !-f
      	RewriteRule (.*) /wigit/index.php?r=/$1 [L] 
      </IfModule>
    
  • For lighttpd, add the following to your config file:

      url.rewrite-once = (
      		"^/wigit/themes/(.*)" => "$0",
      		"^/wigit(.*)" => "/wigit/index.php?r=$1",
      	)
    

(where /wigit is replaced by your own base url)

For user support, configure your webserver to require authentication for the wigit install dir. E.g.

  • For Apache, add the following to .htaccess in your wigit install dir:

      AuthType Basic
      AuthName "My WiGit"
      AuthUserFile /path/to/passwords/file
      Require valid-user
    
  • For lighttpd, add the following to your config file:

      auth.backend = "htdigest"
      auth.backend.htdigest.userfile = "/path/to/htdigest/file"
      auth.require = (
      			"/wigit" => (
      					"method" => "digest",
      					"realm" => "My WiGit",
      					"require" => "valid-user",
      				)
      		)
    

wigit's People

Contributors

gerhard-tinned avatar marco-at-citec avatar remko avatar texttheater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wigit's Issues

incompatible with php 5.3?

Thank you for this app.

Running the script with php 5.3 ( PHP Version 5.3.2-1ubuntu4.2 ), I got the following error:

  Deprecated: Function ereg() is deprecated in /var/www/wigit/index.php on line 144

  Deprecated: Function ereg() is deprecated in /var/www/wigit/index.php on line 148

  Warning: Cannot modify header information - headers already sent by (output started at /var/www/wigit/index.php:144) in /var/www/wigit/index.php on line 321

How do I go about it?

When a html link is added, the link is wrong rendered

when a link is written like ...

<a href="https://github.com/remko/wigit" title="WiGit">The WiGit page</a>

The the link address is shown followed by the text after the closing quotes like this.

https://github.com/remko/wigit" title="WiGit">The WiGit page

Is there a issue with Textile that collides with HTML rendering?

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.