Code Monkey home page Code Monkey logo

gallery_to_koken's Introduction

Gallery to Koken

Disclaimer

This repo is now archieved.

I am no longer a user of Koken and have migrated my Gallery to Yapawa, a gallery site that I developped.

Thank you Koken Team for your awesome tool that allowed me to host my pictures during many years.


Simple PHP scripts to migrate from Gallery (http://galleryproject.org) to Koken (http://koken.me).

This repo holds 2 files. One for Gallery1 and one for Gallery3.

Both scripts are intended to be used in command line (php -f g1_to_koken.php). The PHP scripts creates an SQL file and a bash script. Running the Bash script copies the images and runs the SQL againsts the Koken database.

A third file is created, it holds the RewriteMap for Apache2.

Setup

Copy the files to the root folder of your Gallery installation.

Configuration

Change the constants and variables at the beginning of common.php to reflect your installation.

A file named foreign_chars.php can be used to configure cleanup of slugs. It must return an array with pairs of characters to replace being the key and the replacement being the value. For example:

<?php

// list characters that should be replaced
return array(
	//'ä' => 'a'
);

Place the file into the same folder as the migration script.

Usage

  • From the terminal, execute the php script matching your Gallery version:

    • For Gallery 1 use php -f g1_to_koken.php)
    • For Gallery 3 use php -f g3_to_koken.php)
  • Run the Bash script located at /tmp/koken.sh

gallery_to_koken's People

Contributors

danielmuller avatar kdambekalns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.