Location: PHPKode > scripts > alarisMenu > alarismenu/readme.txt
# Install procedure for alarisMenu 2002. #
# For more info write to hide@address.com  #
#¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤#
#                                        #
# If you have any php/MySql programming  #
# jobs for me please send an email !!    #
#                                        #
#¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤#

# Follow these steps. #

1.  Just run the MySql script below in your phpMyAdmin and that part is done :-)
2.1 Edit the 'settings.inc.php' file configuring the appropriate to fit your needs. Edit your style sheets accordingly!
2.2 When including the 'db_fns.php' in the 'settings.inc.php' file the path of the file must be absolute otherwise a open_basedir error might occur.
2.3 Change the time a submenu will be displayed in the "alarisJava.js" file if you wish. (default: 5 sec.)
3.  Input the following link to the JavaScript file remembering the full path: <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="the-full-path-here/alarisJava.js"></SCRIPT> 
4.  Type <? include("alarisMenu.php"); ?> to include the menu on the correct spot.
5.1 Login using the back-end administration system by accessing the 'login.php' file in the 'alarisAdmin' folder.
5.2 For the first time login use 'test' as username AND password.
5.3 Remember to create a new unique user and delete the default guest user!!
5.4 Now, you're set to go - just type in the links using the admin system.
6.  Look at the example file "test.php" to get the hang of it.
7.  If you experience any problems please let me know.
8.  Be aware that changing filenames in the admin system may cause malfunction of the system.

# This is the MySql used to create the tables. #
# Create table 'alaris_menu' #

CREATE TABLE `alaris_menu` (
`parent_id` INT( 11 ) NOT NULL AUTO_INCREMENT,
`title` VARCHAR( 25 ) NOT NULL ,
`width` VARCHAR( 4 ) DEFAULT '70' NOT NULL ,
`url` VARCHAR( 200 ) NOT NULL ,
`target` VARCHAR( 10 ) NOT NULL ,
UNIQUE (
`parent_id` 
)
);

# Create table 'alaris_sub_menu' #

CREATE TABLE alaris_sub_menu (
  sub_id int(11) NOT NULL AUTO_INCREMENT,
  parent_id int(11) NOT NULL default '0',
  title_sub varchar(30) NOT NULL default '',
  url_sub varchar(200) NOT NULL default '',
  target_sub varchar(10) NOT NULL default '',
  PRIMARY KEY  (sub_id)
) TYPE=MyISAM;


# Create table 'alaris_users' #

CREATE TABLE alaris_users (
  user_id int(4) NOT NULL AUTO_INCREMENT,
  firstname varchar(30) NOT NULL default '',
  lastname varchar(30) NOT NULL default '',
  username varchar(12) NOT NULL default '',
  password varchar(12) NOT NULL default '',
  PRIMARY KEY  (user_id)
) TYPE=MyISAM;


#
# Data dump for the table `alaris_menu`
#

INSERT INTO alaris_menu VALUES ('', 'menu1', '70', 'http://www.alaris.dk', '_new');
INSERT INTO alaris_menu VALUES ('', 'menu2', '70', 'http://www.hotscripts.com', '');
INSERT INTO alaris_menu VALUES ('', 'menu3', '70', 'type_your_url', '');
INSERT INTO alaris_menu VALUES ('', 'menu4', '70', 'type_your_url', '');
INSERT INTO alaris_menu VALUES ('', 'menu5', '70', 'type_your_url', '');

#
# Data dump for the table `alaris_sub_menu`
#

INSERT INTO alaris_sub_menu VALUES ('',1, 'submenu1_parent1', '', '');
INSERT INTO alaris_sub_menu VALUES ('',1, 'submenu2_parent1', '', '');
INSERT INTO alaris_sub_menu VALUES ('',1, 'submenu3_parent1', '', '');
INSERT INTO alaris_sub_menu VALUES ('',1, 'submenu4_parent1', '', '');
INSERT INTO alaris_sub_menu VALUES ('',2, 'submenu1_parent2', '', '');
INSERT INTO alaris_sub_menu VALUES ('',2, 'submenu2_parent2', '', '');
INSERT INTO alaris_sub_menu VALUES ('',3, 'submenu1_parent3', '', '');
INSERT INTO alaris_sub_menu VALUES ('',3, 'submenu2_parent3', '', '');
INSERT INTO alaris_sub_menu VALUES ('',4, 'submenu1_parent4', '', '');
INSERT INTO alaris_sub_menu VALUES ('',5, 'submenu1_parent5', '', '');

#
# Data dump for the table `alaris_users`
#

INSERT INTO alaris_users VALUES ('', 'guest', 'admin', 'test', 'test');



# ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ #
# New features in version 2.0 - released Jan 3, 2003    #
# ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ #

1. This version comes with a back-end system for updating
   and creating menus and users.
2. The back-end system will work with alarisMenu version
   2.0 and above if nothing else is specified.
Return current item: alarisMenu