// -----------------------------------------------------------------------
// This file is part of AROUNDMe
// 
// Copyright (C) 2003-2007 Barnraiser
// http://www.barnraiser.org/
// info@barnraiser.org
// 
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program; see the file COPYING.txt.  If not, see
// <http://www.gnu.org/licenses/>
// -----------------------------------------------------------------------


>> PRE-INSTALL
   Please check you have PHP5.x installed with curl and gd library.


>> WHO SHOULD INSTALL
   An understanding of domain name setup, FTP, changing directory
   privileges and web servers is required.


>> EASY INSTALL
   Please read the terms of the license prior to install.

   1. Set up your OpenID subdomain (see SUBDOMAIN.txt) and copy the files to the directory in your web server.

   2. Type your OpenID url into a browser. The installer will start. Follow the instructions.

   3. You are done:)


>> MANUAL INSTALL
   Please read the terms of the license prior to install.

   1. Set up your OpenID subdomain (see SUBDOMAIN.txt) and copy the files to the directory in your web server.

   2. Change the name of the data directory to avoid accidental overwriting 
      upon upgrade (command: mv data tom_data).

   3. Edit the aroundme_pi/core/config/aroundme_core.config.php and change the
      following variables:

   3.1 $core_config['release']['install_date'] - Enter the date that you installed AMPi (MM-DD-YYYY).
   3.2 $core_config['openid_account'] - Enter your OpenId account with 
       http:// at the start and no trailing slash. It is the URL that you have chosen an example being 
       http://your_name.example.org 
   3.3 $core_config['openid_md5'] - md5 version of your password (see 'making 
       a password' below).
   3.4 $core_config['node']['php_session_name'] - Enter a random string (A-Z) of
       approximately 8 characters.

   3.5 $mail_config['host'] - Enter your outbound mail server (typically a SMTP server).
   3.6 $mail_config['email_address'] - Enter your email address.
   3.7 $core_config['network']['dir'] - Entry the local path to the install
       directory (normally /var/www/aroundme_pi/).	The directory includes 'documents', 
       'aroundme_pi' and 'data' directories. Note: this MUST include the trailing slash.

   4. CHMOD all files and directories to permission level 770 (chmod -R 770 *). Note: Apache must be able 
      to read and write to each directory. If it can't then chmod aroundme_pi.

   5. Go to http://<your_openid> to see your new webspace. 

SETUP
   1. In the OpenID connect box on your start page type in your OpenID account.
      You will be take to a password page. Enter your original (not the 
      MD5'ed version) password.
   2. Select the 'identity' main menu option. Fill in your OpenID information 
      and press save.
   3. Upload an avatar.
   4. Select the 'Webspace' main menu option- Enter the title and a short 
      description of your webspace. Press save.
   5. Select the 'Webspace' main menu option, then 'OpenID' from the 'Plugins and blocks' options. Under 'Displayed identity items' set any information you do not want displayed to everyone, then press 'create card.
   6. Press 'home' from the main menu option.
   7. You are done:)



>> MAKING A PASSWORD
   Make a new file and in it paste:

   <?php
   echo md5('your_password_here');
   ?>

   Save the file, then view it in a browser. You will see a string displayed. Copy and paste that into the $core_config['openid_md5'] field. Delete the file.

