https://ark.lparchaeology.com/wiki/api.php?action=feedcontributions&user=Henriette&feedformat=atomARK - User contributions [en]2024-03-28T18:49:53ZUser contributionsMediaWiki 1.27.1https://ark.lparchaeology.com/wiki/index.php?title=Basic_Installation&diff=775Basic Installation2009-06-16T07:15:42Z<p>Henriette: /* Download and install */</p>
<hr />
<div>Preconfigured ARK setups are available from the ARK team. If you are unfamiliar with the setup and adminisration of webservers along with the security risks to your system and data this entails, please consider contacting us to aquire a fully running ARK. For those of you who have already got a server and want to go though the installation proceedure, we have provided the following notes:<br />
<br />
===Dependencies===<br />
<br />
ARK requires the following open source software packages to be installed on your server:<br />
<br />
#Apache 2<br />
#PHP 5<br />
#MySQL 5<br />
#PEAR Liveuser<br />
<br />
In order to benefit from the spatial integration offered by ARK, you will also need the following packages:<br />
<br />
#PHP Mapscript<br />
<br />
====Apache PHP MySQL====<br />
<br />
On most Linux distributions these packages will be installed by default. ARK is not particularly fussy about the version numbers of these packages and should run ok on PHP4 and MySQL4, although this may require some minor modifications. It is important to ensure that you have the gd and dbase php extensions enabled.<br />
<br />
You will need to make sure that you set the short_open_tag option to On in your [http://uk2.php.net/ini.core php.ini].<br />
<br />
For Mac OSX and Windows, these packages are available as binary distributions. ARK is known to run on [http://www.mamp.info/en/index.php MAMP], the binary distribution for Mac and [http://www.wampserver.com/en/ WAMP] or [http://www.maptools.org/ms4w/index.phtml MS4W], the binary distributions for Windows.<br />
<br />
The MS4W distribution also contains Mapserver and if this is installed only MySQL needs to be added.<br />
<br />
ARK runs on top of these packages and does not provide any set up of them or additional security to them. If you are using your server exposed to the internet, it is essential that you follow good standard security practice for the configuration of your packages. This setup is outside of the scope of this documentation and you are advised to undertake your research carefully.<br />
<br />
====PEAR LiveUser====<br />
<br />
The PEAR Liveuser is used to ensure effective security for the ARK system. ARK makes use of PEAR LiveUser, LiveUser_Admin, MDB2, and MDB2_driver_mysql, DB, and Event_Dispatcher. All of these packages will need to be installed in order for ARK user authentication to function.<br />
<br />
For details on how to install and configure live user, and the associated packages required, please see the [http://pear.php.net/package/LiveUser/ PEAR] website. '''PLEASE NOTE that ALL the PEAR SQL tables are already included with the basic ARK database, and do not need to be added to the database again during PEAR setup. ALSO the required PEAR depencies are included with the v0.6 files in the 'examples' directory.'''<br />
<br />
====MS4W====<br />
MS4W [http://www.maptools.org/ms4w/] is a no fuss installer for setting up MapServer on Microsoft Windows platforms. It includes a Apache HTTP version, PHP, Mapserver and loads of nice tools.<br />
<br />
MS4W is super simple to install on a server. Either download [http://www.maptools.org/ms4w/index.phtml?page=downloads.html] the base package which consists of a folder which unpacks to the C-drive of the server or try out the new installer. <br />
<br />
If you are using the base package you need to start the Apache server by running C:\ms4w\apache-install.bat. If the installation is succesful you should get the main page by pointing you browser to http://localhost/ or http://127.0.0.1/.<br />
<br />
If this does not work it is very likely that your port 80 is already in use. Go to C:\ms4w\Apache\conf\httpd.conf and on line 120 change LISTEN 80 to LISTEN 8080 or another port which is not in use.<br />
<br />
====Mapscript====<br />
<br />
Mapscript runs on all three major operating systems. The installation instructions vary depending on many factors. Detailed installation instructions are available on the [http://mapserver.gis.umn.edu/ Mapserver] website.<br />
<br />
===Installing ARK===<br />
<br />
Ark is installed by unpacking the source code into the document root of the webserver where you intend to host it. The second phase of installation is then the initial setup and creation of the empty database.<br />
<br />
====Download source====<br />
<br />
Download the latest source code from http://ark.lparchaeology.com/downloads and unpack it into the document root of your server. If you are unsure of the correct location of the document root, you could try reading the manual of your apache distribution.<br />
<br />
====Install a database====<br />
<br />
In order for ark to work, you need to install an ARK database on your MySQL server. Preconfigured sample databases are available for download from the download area of the ARK site. At present you must install the sql dump on the server manually using your tool of choice. We think that [http://www.phpmyadmin.net/home_page/index.php phpMyAdmin] is a good way to do this.<br />
<br />
#Download your chosen database dump file<br />
#Point your browser at the phpMyAdmin installation on your web-server<br />
#Make an empty database, by going to the Databases screen and filling in the Create new database box. Make the Collation utf8_unicode_ci and that should deal with most character sets.<br />
#Once the database is created, switch to it and choose Import<br />
#Using the Browse button, point it at the file that you have downloaded (it should be a tar.gz) - make the character set utf8<br />
#Click Go and wait a little while, and the database structure should be loaded up fine.<br />
#You will need to set up a user and give it at least SELECT, INSERT, UPDATE and DELETE privileges to the new db.<br />
<br />
===Update the DB Settings===<br />
<br />
You will now need to update the server-specific DB settings in [[settings.php#Server Specific Information|settings.php]]. '''THE DATABASE WILL NOT WORK UNTIL THESE SETTINGS HAVE BEEN UPDATED'''.<br />
<br />
<br />
===Setup Windows server for ARK===<br />
<br />
This will take you through setting up a windows server from scratch to work for ARK. <br />
<br />
====Download and install====<br />
*MS4W, newest release: http://www.maptools.org/ms4w/<br />
** Download with installer<br />
** Install without ad-on packages<br />
** Install in C:\<br />
** Install in port 80 unless it is already in use then use port 8080<br />
** Go to http://127.0.0.1 or http://localhost to check that it is running. <br />
** You can also go to Control Panel > Administrative Tools > Services and check that the Apache MS4W Web Server is started.<br />
<br />
* MySQL<br />
** Download MySQL community server: http://dev.mysql.com/downloads/<br />
** Install a typical installation<br />
** Configuration:<br />
*** Server Machine<br />
*** Transactional Database Only<br />
*** Installation path C:<br />
*** Online Transaction Processing<br />
*** Enable TCP?IP Networking on port nr. 3306<br />
*** Enable Strict Mode<br />
*** Best Support for Multilingualism<br />
*** Install as Windows Service<br />
*** Include Bin Directory in Windows PATH<br />
*** Set root password<br />
** You can also go to Control Panel > Administrative Tools > Services and check that the MySQL is started.<br />
<br />
* PEAR<br />
** Firstly make sure that there is a path to the folder containing php.exe in the environmental variables: Control Panel > System > Advanced > Environmental Variables > System Variables: Click Edit for the 'path' variable and add ; and the full path to the folder after the last path (in this case C:\ms4w\Apache\cgi-bin<br />
** Restart the server after this. <br />
** Now go to the command line and find the folder containing go-pear.bat (should be C:\ms4w\Apache\php) and type in go-pear.bat<br />
** This will run the pear installation and if you can get this to work then congratulations. I give up here and move the old pear files over from another project.<br />
<br />
===Browse to ARK directory===<br />
<br />
After browsing to the ARK directory you should now be able to see the login pages for the database. The tutorial database is created with the following two user accounts:<br />
<br />
<pre><br />
username: janedoe<br />
password: janedoe<br />
<br />
username: johnsmith<br />
password: johnsmith<br />
</pre><br />
<br />
If there are any problems, please check your [[settings.php]] and [[env_settings.php]] files to ensure you are using the correct settings.<br />
<br />
[[category:Administrator]]</div>Henriettehttps://ark.lparchaeology.com/wiki/index.php?title=Basic_Installation&diff=752Basic Installation2009-06-16T06:26:01Z<p>Henriette: /* Download */</p>
<hr />
<div>Preconfigured ARK setups are available from the ARK team. If you are unfamiliar with the setup and adminisration of webservers along with the security risks to your system and data this entails, please consider contacting us to aquire a fully running ARK. For those of you who have already got a server and want to go though the installation proceedure, we have provided the following notes:<br />
<br />
===Dependencies===<br />
<br />
ARK requires the following open source software packages to be installed on your server:<br />
<br />
#Apache 2<br />
#PHP 5<br />
#MySQL 5<br />
#PEAR Liveuser<br />
<br />
In order to benefit from the spatial integration offered by ARK, you will also need the following packages:<br />
<br />
#PHP Mapscript<br />
<br />
====Apache PHP MySQL====<br />
<br />
On most Linux distributions these packages will be installed by default. ARK is not particularly fussy about the version numbers of these packages and should run ok on PHP4 and MySQL4, although this may require some minor modifications. It is important to ensure that you have the gd and dbase php extensions enabled.<br />
<br />
You will need to make sure that you set the short_open_tag option to On in your [http://uk2.php.net/ini.core php.ini].<br />
<br />
For Mac OSX and Windows, these packages are available as binary distributions. ARK is known to run on [http://www.mamp.info/en/index.php MAMP], the binary distribution for Mac and [http://www.wampserver.com/en/ WAMP] or [http://www.maptools.org/ms4w/index.phtml MS4W], the binary distributions for Windows.<br />
<br />
The MS4W distribution also contains Mapserver and if this is installed only MySQL needs to be added.<br />
<br />
ARK runs on top of these packages and does not provide any set up of them or additional security to them. If you are using your server exposed to the internet, it is essential that you follow good standard security practice for the configuration of your packages. This setup is outside of the scope of this documentation and you are advised to undertake your research carefully.<br />
<br />
====PEAR LiveUser====<br />
<br />
The PEAR Liveuser is used to ensure effective security for the ARK system. ARK makes use of PEAR LiveUser, LiveUser_Admin, MDB2, and MDB2_driver_mysql, DB, and Event_Dispatcher. All of these packages will need to be installed in order for ARK user authentication to function.<br />
<br />
For details on how to install and configure live user, and the associated packages required, please see the [http://pear.php.net/package/LiveUser/ PEAR] website. '''PLEASE NOTE that ALL the PEAR SQL tables are already included with the basic ARK database, and do not need to be added to the database again during PEAR setup. ALSO the required PEAR depencies are included with the v0.6 files in the 'examples' directory.'''<br />
<br />
====MS4W====<br />
MS4W [http://www.maptools.org/ms4w/] is a no fuss installer for setting up MapServer on Microsoft Windows platforms. It includes a Apache HTTP version, PHP, Mapserver and loads of nice tools.<br />
<br />
MS4W is super simple to install on a server. Either download [http://www.maptools.org/ms4w/index.phtml?page=downloads.html] the base package which consists of a folder which unpacks to the C-drive of the server or try out the new installer. <br />
<br />
If you are using the base package you need to start the Apache server by running C:\ms4w\apache-install.bat. If the installation is succesful you should get the main page by pointing you browser to http://localhost/ or http://127.0.0.1/.<br />
<br />
If this does not work it is very likely that your port 80 is already in use. Go to C:\ms4w\Apache\conf\httpd.conf and on line 120 change LISTEN 80 to LISTEN 8080 or another port which is not in use.<br />
<br />
====Mapscript====<br />
<br />
Mapscript runs on all three major operating systems. The installation instructions vary depending on many factors. Detailed installation instructions are available on the [http://mapserver.gis.umn.edu/ Mapserver] website.<br />
<br />
===Installing ARK===<br />
<br />
Ark is installed by unpacking the source code into the document root of the webserver where you intend to host it. The second phase of installation is then the initial setup and creation of the empty database.<br />
<br />
====Download source====<br />
<br />
Download the latest source code from http://ark.lparchaeology.com/downloads and unpack it into the document root of your server. If you are unsure of the correct location of the document root, you could try reading the manual of your apache distribution.<br />
<br />
====Install a database====<br />
<br />
In order for ark to work, you need to install an ARK database on your MySQL server. Preconfigured sample databases are available for download from the download area of the ARK site. At present you must install the sql dump on the server manually using your tool of choice. We think that [http://www.phpmyadmin.net/home_page/index.php phpMyAdmin] is a good way to do this.<br />
<br />
#Download your chosen database dump file<br />
#Point your browser at the phpMyAdmin installation on your web-server<br />
#Make an empty database, by going to the Databases screen and filling in the Create new database box. Make the Collation utf8_unicode_ci and that should deal with most character sets.<br />
#Once the database is created, switch to it and choose Import<br />
#Using the Browse button, point it at the file that you have downloaded (it should be a tar.gz) - make the character set utf8<br />
#Click Go and wait a little while, and the database structure should be loaded up fine.<br />
#You will need to set up a user and give it at least SELECT, INSERT, UPDATE and DELETE privileges to the new db.<br />
<br />
===Update the DB Settings===<br />
<br />
You will now need to update the server-specific DB settings in [[settings.php#Server Specific Information|settings.php]]. '''THE DATABASE WILL NOT WORK UNTIL THESE SETTINGS HAVE BEEN UPDATED'''.<br />
<br />
<br />
===Setup Windows server for ARK===<br />
<br />
This will take you through setting up a windows server from scratch to work for ARK. <br />
<br />
====Download and install====<br />
*MS4W, newest release: http://www.maptools.org/ms4w/<br />
** Download with installer<br />
** Install without ad-on packages<br />
** Install in C:\<br />
** Install in port 80 unless it is already in use then use port 8080<br />
** Go to http://127.0.0.1 or http://localhost to check that it is running. <br />
** You can also go to Control Panel > Administrative Tools > Services and check that the Apache MS4W Web Server is started.<br />
<br />
* MySQL<br />
** Download MySQL community server: http://dev.mysql.com/downloads/<br />
** Install a typical installation<br />
** Configuration:<br />
*** Server Machine<br />
*** Transactional Database Only<br />
*** Installation path C:<br />
*** Online Transaction Processing<br />
*** Enable TCP?IP Networking on port nr. 3306<br />
*** Enable Strict Mode<br />
*** Best Support for Multilingualism<br />
*** Install as Windows Service<br />
*** Include Bin Directory in Windows PATH<br />
*** Set root password<br />
** You can also go to Control Panel > Administrative Tools > Services and check that the MySQL is started.<br />
<br />
===Browse to ARK directory===<br />
<br />
After browsing to the ARK directory you should now be able to see the login pages for the database. The tutorial database is created with the following two user accounts:<br />
<br />
<pre><br />
username: janedoe<br />
password: janedoe<br />
<br />
username: johnsmith<br />
password: johnsmith<br />
</pre><br />
<br />
If there are any problems, please check your [[settings.php]] and [[env_settings.php]] files to ensure you are using the correct settings.<br />
<br />
[[category:Administrator]]</div>Henriettehttps://ark.lparchaeology.com/wiki/index.php?title=Basic_Installation&diff=751Basic Installation2009-06-16T06:11:56Z<p>Henriette: /* Setup Windows server for ARK */</p>
<hr />
<div>Preconfigured ARK setups are available from the ARK team. If you are unfamiliar with the setup and adminisration of webservers along with the security risks to your system and data this entails, please consider contacting us to aquire a fully running ARK. For those of you who have already got a server and want to go though the installation proceedure, we have provided the following notes:<br />
<br />
===Dependencies===<br />
<br />
ARK requires the following open source software packages to be installed on your server:<br />
<br />
#Apache 2<br />
#PHP 5<br />
#MySQL 5<br />
#PEAR Liveuser<br />
<br />
In order to benefit from the spatial integration offered by ARK, you will also need the following packages:<br />
<br />
#PHP Mapscript<br />
<br />
====Apache PHP MySQL====<br />
<br />
On most Linux distributions these packages will be installed by default. ARK is not particularly fussy about the version numbers of these packages and should run ok on PHP4 and MySQL4, although this may require some minor modifications. It is important to ensure that you have the gd and dbase php extensions enabled.<br />
<br />
You will need to make sure that you set the short_open_tag option to On in your [http://uk2.php.net/ini.core php.ini].<br />
<br />
For Mac OSX and Windows, these packages are available as binary distributions. ARK is known to run on [http://www.mamp.info/en/index.php MAMP], the binary distribution for Mac and [http://www.wampserver.com/en/ WAMP] or [http://www.maptools.org/ms4w/index.phtml MS4W], the binary distributions for Windows.<br />
<br />
The MS4W distribution also contains Mapserver and if this is installed only MySQL needs to be added.<br />
<br />
ARK runs on top of these packages and does not provide any set up of them or additional security to them. If you are using your server exposed to the internet, it is essential that you follow good standard security practice for the configuration of your packages. This setup is outside of the scope of this documentation and you are advised to undertake your research carefully.<br />
<br />
====PEAR LiveUser====<br />
<br />
The PEAR Liveuser is used to ensure effective security for the ARK system. ARK makes use of PEAR LiveUser, LiveUser_Admin, MDB2, and MDB2_driver_mysql, DB, and Event_Dispatcher. All of these packages will need to be installed in order for ARK user authentication to function.<br />
<br />
For details on how to install and configure live user, and the associated packages required, please see the [http://pear.php.net/package/LiveUser/ PEAR] website. '''PLEASE NOTE that ALL the PEAR SQL tables are already included with the basic ARK database, and do not need to be added to the database again during PEAR setup. ALSO the required PEAR depencies are included with the v0.6 files in the 'examples' directory.'''<br />
<br />
====MS4W====<br />
MS4W [http://www.maptools.org/ms4w/] is a no fuss installer for setting up MapServer on Microsoft Windows platforms. It includes a Apache HTTP version, PHP, Mapserver and loads of nice tools.<br />
<br />
MS4W is super simple to install on a server. Either download [http://www.maptools.org/ms4w/index.phtml?page=downloads.html] the base package which consists of a folder which unpacks to the C-drive of the server or try out the new installer. <br />
<br />
If you are using the base package you need to start the Apache server by running C:\ms4w\apache-install.bat. If the installation is succesful you should get the main page by pointing you browser to http://localhost/ or http://127.0.0.1/.<br />
<br />
If this does not work it is very likely that your port 80 is already in use. Go to C:\ms4w\Apache\conf\httpd.conf and on line 120 change LISTEN 80 to LISTEN 8080 or another port which is not in use.<br />
<br />
====Mapscript====<br />
<br />
Mapscript runs on all three major operating systems. The installation instructions vary depending on many factors. Detailed installation instructions are available on the [http://mapserver.gis.umn.edu/ Mapserver] website.<br />
<br />
===Installing ARK===<br />
<br />
Ark is installed by unpacking the source code into the document root of the webserver where you intend to host it. The second phase of installation is then the initial setup and creation of the empty database.<br />
<br />
====Download source====<br />
<br />
Download the latest source code from http://ark.lparchaeology.com/downloads and unpack it into the document root of your server. If you are unsure of the correct location of the document root, you could try reading the manual of your apache distribution.<br />
<br />
====Install a database====<br />
<br />
In order for ark to work, you need to install an ARK database on your MySQL server. Preconfigured sample databases are available for download from the download area of the ARK site. At present you must install the sql dump on the server manually using your tool of choice. We think that [http://www.phpmyadmin.net/home_page/index.php phpMyAdmin] is a good way to do this.<br />
<br />
#Download your chosen database dump file<br />
#Point your browser at the phpMyAdmin installation on your web-server<br />
#Make an empty database, by going to the Databases screen and filling in the Create new database box. Make the Collation utf8_unicode_ci and that should deal with most character sets.<br />
#Once the database is created, switch to it and choose Import<br />
#Using the Browse button, point it at the file that you have downloaded (it should be a tar.gz) - make the character set utf8<br />
#Click Go and wait a little while, and the database structure should be loaded up fine.<br />
#You will need to set up a user and give it at least SELECT, INSERT, UPDATE and DELETE privileges to the new db.<br />
<br />
===Update the DB Settings===<br />
<br />
You will now need to update the server-specific DB settings in [[settings.php#Server Specific Information|settings.php]]. '''THE DATABASE WILL NOT WORK UNTIL THESE SETTINGS HAVE BEEN UPDATED'''.<br />
<br />
<br />
===Setup Windows server for ARK===<br />
<br />
This will take you through setting up a windows server from scratch to work for ARK. <br />
<br />
====Download====<br />
*MS4W, newest release: http://www.maptools.org/ms4w/<br />
** Download with installer<br />
** Install without ad-on packages<br />
** Install in C:\<br />
** Install in port 80 unless it is already in use then use port 8080<br />
** Go to http://127.0.0.1 or http://localhost to check that it is running. <br />
** You can also go to Control Panel > Administrative Tools > Services and check that the Apache MS4W Web Server is started.<br />
<br />
===Browse to ARK directory===<br />
<br />
After browsing to the ARK directory you should now be able to see the login pages for the database. The tutorial database is created with the following two user accounts:<br />
<br />
<pre><br />
username: janedoe<br />
password: janedoe<br />
<br />
username: johnsmith<br />
password: johnsmith<br />
</pre><br />
<br />
If there are any problems, please check your [[settings.php]] and [[env_settings.php]] files to ensure you are using the correct settings.<br />
<br />
[[category:Administrator]]</div>Henriettehttps://ark.lparchaeology.com/wiki/index.php?title=Basic_Installation&diff=750Basic Installation2009-06-16T05:42:22Z<p>Henriette: </p>
<hr />
<div>Preconfigured ARK setups are available from the ARK team. If you are unfamiliar with the setup and adminisration of webservers along with the security risks to your system and data this entails, please consider contacting us to aquire a fully running ARK. For those of you who have already got a server and want to go though the installation proceedure, we have provided the following notes:<br />
<br />
===Dependencies===<br />
<br />
ARK requires the following open source software packages to be installed on your server:<br />
<br />
#Apache 2<br />
#PHP 5<br />
#MySQL 5<br />
#PEAR Liveuser<br />
<br />
In order to benefit from the spatial integration offered by ARK, you will also need the following packages:<br />
<br />
#PHP Mapscript<br />
<br />
====Apache PHP MySQL====<br />
<br />
On most Linux distributions these packages will be installed by default. ARK is not particularly fussy about the version numbers of these packages and should run ok on PHP4 and MySQL4, although this may require some minor modifications. It is important to ensure that you have the gd and dbase php extensions enabled.<br />
<br />
You will need to make sure that you set the short_open_tag option to On in your [http://uk2.php.net/ini.core php.ini].<br />
<br />
For Mac OSX and Windows, these packages are available as binary distributions. ARK is known to run on [http://www.mamp.info/en/index.php MAMP], the binary distribution for Mac and [http://www.wampserver.com/en/ WAMP] or [http://www.maptools.org/ms4w/index.phtml MS4W], the binary distributions for Windows.<br />
<br />
The MS4W distribution also contains Mapserver and if this is installed only MySQL needs to be added.<br />
<br />
ARK runs on top of these packages and does not provide any set up of them or additional security to them. If you are using your server exposed to the internet, it is essential that you follow good standard security practice for the configuration of your packages. This setup is outside of the scope of this documentation and you are advised to undertake your research carefully.<br />
<br />
====PEAR LiveUser====<br />
<br />
The PEAR Liveuser is used to ensure effective security for the ARK system. ARK makes use of PEAR LiveUser, LiveUser_Admin, MDB2, and MDB2_driver_mysql, DB, and Event_Dispatcher. All of these packages will need to be installed in order for ARK user authentication to function.<br />
<br />
For details on how to install and configure live user, and the associated packages required, please see the [http://pear.php.net/package/LiveUser/ PEAR] website. '''PLEASE NOTE that ALL the PEAR SQL tables are already included with the basic ARK database, and do not need to be added to the database again during PEAR setup. ALSO the required PEAR depencies are included with the v0.6 files in the 'examples' directory.'''<br />
<br />
====MS4W====<br />
MS4W [http://www.maptools.org/ms4w/] is a no fuss installer for setting up MapServer on Microsoft Windows platforms. It includes a Apache HTTP version, PHP, Mapserver and loads of nice tools.<br />
<br />
MS4W is super simple to install on a server. Either download [http://www.maptools.org/ms4w/index.phtml?page=downloads.html] the base package which consists of a folder which unpacks to the C-drive of the server or try out the new installer. <br />
<br />
If you are using the base package you need to start the Apache server by running C:\ms4w\apache-install.bat. If the installation is succesful you should get the main page by pointing you browser to http://localhost/ or http://127.0.0.1/.<br />
<br />
If this does not work it is very likely that your port 80 is already in use. Go to C:\ms4w\Apache\conf\httpd.conf and on line 120 change LISTEN 80 to LISTEN 8080 or another port which is not in use.<br />
<br />
====Mapscript====<br />
<br />
Mapscript runs on all three major operating systems. The installation instructions vary depending on many factors. Detailed installation instructions are available on the [http://mapserver.gis.umn.edu/ Mapserver] website.<br />
<br />
===Installing ARK===<br />
<br />
Ark is installed by unpacking the source code into the document root of the webserver where you intend to host it. The second phase of installation is then the initial setup and creation of the empty database.<br />
<br />
====Download source====<br />
<br />
Download the latest source code from http://ark.lparchaeology.com/downloads and unpack it into the document root of your server. If you are unsure of the correct location of the document root, you could try reading the manual of your apache distribution.<br />
<br />
====Install a database====<br />
<br />
In order for ark to work, you need to install an ARK database on your MySQL server. Preconfigured sample databases are available for download from the download area of the ARK site. At present you must install the sql dump on the server manually using your tool of choice. We think that [http://www.phpmyadmin.net/home_page/index.php phpMyAdmin] is a good way to do this.<br />
<br />
#Download your chosen database dump file<br />
#Point your browser at the phpMyAdmin installation on your web-server<br />
#Make an empty database, by going to the Databases screen and filling in the Create new database box. Make the Collation utf8_unicode_ci and that should deal with most character sets.<br />
#Once the database is created, switch to it and choose Import<br />
#Using the Browse button, point it at the file that you have downloaded (it should be a tar.gz) - make the character set utf8<br />
#Click Go and wait a little while, and the database structure should be loaded up fine.<br />
#You will need to set up a user and give it at least SELECT, INSERT, UPDATE and DELETE privileges to the new db.<br />
<br />
===Update the DB Settings===<br />
<br />
You will now need to update the server-specific DB settings in [[settings.php#Server Specific Information|settings.php]]. '''THE DATABASE WILL NOT WORK UNTIL THESE SETTINGS HAVE BEEN UPDATED'''.<br />
<br />
<br />
===Setup Windows server for ARK===<br />
<br />
<br />
===Browse to ARK directory===<br />
<br />
After browsing to the ARK directory you should now be able to see the login pages for the database. The tutorial database is created with the following two user accounts:<br />
<br />
<pre><br />
username: janedoe<br />
password: janedoe<br />
<br />
username: johnsmith<br />
password: johnsmith<br />
</pre><br />
<br />
If there are any problems, please check your [[settings.php]] and [[env_settings.php]] files to ensure you are using the correct settings.<br />
<br />
[[category:Administrator]]</div>Henriettehttps://ark.lparchaeology.com/wiki/index.php?title=Administrator_Manual&diff=757Administrator Manual2009-06-16T05:39:29Z<p>Henriette: /* Basic Installation */</p>
<hr />
<div>__TOC__<br />
<br />
The administrator manual is aimed at people who are downloading and installing ARK. If you are struggling with installation or administration, you should consider contacting the ARK team to buy a preconfigured ARK. This would help support the project and make a contribution towards the ongoing development of the project.<br />
<br />
===Key Concepts===<br />
<br />
====[[Navigation]]====<br />
<br />
Information about the navigation tools used within ARK.<br />
<br />
=====[[Navigation#Basic Navigation|Basic Navigation]]=====<br />
<br />
=====[[Navigation#Subform Navigation|Subform Navigation]]=====<br />
<br />
====[[Views]]====<br />
<br />
The different 'Views' of ARK.<br />
<br />
====[[Key Administration Concepts]]====<br />
<br />
An overview of the key administration concepts.<br />
<br />
=====[[Key Administration Concepts#Settings Files|Settings Files]]=====<br />
<br />
=====[[Key Administration Concepts#Forms Overview|Forms Overview]]=====<br />
<br />
===Installation and Setup===<br />
<br />
====[[Basic Installation]]====<br />
<br />
A description of the ARK installation process.<br />
<br />
=====[[Basic Installation#Dependencies|Dependencies]]=====<br />
<br />
=====[[Basic Installation#Installing ARK|Installing ARK]]=====<br />
<br />
=====[[Basic Installation#Setup Windows server for ARK|Setup Windows server for ARK]]=====<br />
<br />
=====[[Basic Installation#Browse to ARK directory|Browse to ARK]]=====<br />
<br />
====[[Initial setup]]====<br />
<br />
Some things to consider when completing the initial setup of your ARK.<br />
<br />
=====[[Initial setup#A Name|ARK Name]]=====<br />
<br />
=====[[Initial setup#What do you want to record?|What to record?]]=====<br />
<br />
=====[[Initial setup#What subforms do you want?|What Subforms?]]=====<br />
<br />
====[[Database Tables]]====<br />
<br />
A list of the standard ARK tables, with a basic explanation for each.<br />
<br />
===ARK Customisation===<br />
<br />
This chapter will help the new ARK administrator who is comfortable with editing PHP configuration files through the setup of an ARK project. For a general overview of settings please see [[Key Administration Concepts#Settings Files|Settings Files]].<br />
<br />
====[[env_settings.php]]====<br />
<br />
A description of the env_settings.php file for three different operating systems.<br />
<br />
=====[[env_settings.php#ms4w|Mapserver for Windows]]=====<br />
<br />
=====[[env_settings.php#mac|Mac]]=====<br />
<br />
=====[[env_settings.php#linux|Linux]]=====<br />
<br />
====[[field_settings.php]]====<br />
<br />
Instructions on how to configure the field_settings.php file.<br />
<br />
=====[[field_settings.php#Common/Obligatory Attributes|Obligatory Attributes]]=====<br />
<br />
=====[[field_settings.php#Class Specific Settings|Class Specific Settings]]=====<br />
<br />
=====[[field_settings.php#Event Fields|Event Fields]]=====<br />
<br />
====[[mod_settings.php]]====<br />
<br />
Instructions on how to configure module specific settings files.<br />
<br />
=====[[mod_settings.php#Display Options|Display Options]]=====<br />
<br />
=====[[mod_settings.php#Custom Fields|Custom Fields]]=====<br />
<br />
=====[[mod_settings.php#Subforms|Subforms]]=====<br />
<br />
=====[[mod_settings.php#Spatial Data|Spatial Data]]=====<br />
<br />
=====[[mod_settings.php#Data Entry Forms|Data Entry Forms]]=====<br />
<br />
=====[[mod_settings.php#Micro View|Micro View]]=====<br />
<br />
=====[[mod_settings.php#Data View|Data View]]=====<br />
<br />
=====[[mod_settings.php#XMI View|XMI View]]=====<br />
<br />
=====[[mod_settings.php#Export|Export]]=====<br />
<br />
====[[settings.php]]====<br />
<br />
The general settings for ARK.<br />
<br />
=====[[settings.php#Server Setup|Server Setup]]=====<br />
<br />
=====[[settings.php#General|General]]=====<br />
<br />
=====[[settings.php#Live Search|Live Search]]=====<br />
<br />
=====[[settings.php#Modules|Modules]]=====<br />
<br />
=====[[settings.php#Security|Security]]=====<br />
<br />
=====[[settings.php#Skin|Skin]]=====<br />
<br />
=====[[settings.php#Thumbnails|Thumbnails]]=====<br />
<br />
=====[[settings.php#Forms|Forms]]=====<br />
<br />
=====[[settings.php#Viewers|Viewers]]=====<br />
<br />
=====[[settings.php#Mapping|Mapping]]=====<br />
<br />
=====[[settings.php#Logging|Logging]]=====<br />
<br />
=====[[settings.php#Search Engine|Search Engine]]=====<br />
<br />
=====[[settings.php#Languages|Languages]]=====<br />
<br />
=====[[settings.php#Fields|Fields]]=====<br />
<br />
=====[[settings.php#Document Type|Document Type]]=====<br />
<br />
=====[[settings.php#Navigation|Navigation]]=====<br />
<br />
=====[[settings.php#Left Panel Configuration|Left Panel Configuration]]=====<br />
<br />
====[[vd_settings.php]]====<br />
<br />
A description of information found within the vd_settings.php file.<br />
<br />
===Subforms===<br />
<br />
====[[Subforms Overview]]====<br />
<br />
A general overview of ARK Subforms and their configuration.<br />
<br />
====[[Subform Requirements]]====<br />
<br />
The required fields for configuration of subforms.<br />
<br />
====[[Subform Options]]====<br />
<br />
Some optional subform fields generic to all modules and subform types.<br />
<br />
====[[Conditional Subforms]]====<br />
<br />
Conditional subforms is a more complex subform option that allows specific subforms to only be displayed if a set of pre-configured conditions are met<br />
<br />
====[[Subform Reference]]====<br />
<br />
A list of all the current subforms with example configurations.<br />
<br />
=====[[Subform Reference#Text Subforms|Text Subforms]]=====<br />
<br />
=====[[Subform Reference#Number Subforms|Number Subforms]]=====<br />
<br />
=====[[Subform Reference#Attribute Subforms|Attribute Subforms]]=====<br />
<br />
=====[[Subform Reference#Spatial Subforms|Spatial Subforms]]=====<br />
<br />
=====[[Subform Reference#Span Subforms|Span Subforms]]=====<br />
<br />
=====[[Subform Reference#File Subforms|File Subforms]]=====<br />
<br />
=====[[Subform Reference#XMI Subforms|XMI Subforms]]=====<br />
<br />
=====[[Subform Reference#Complex Subforms|Complex Subforms]]=====<br />
<br />
=====[[Subform Reference#Other Subforms|Other Subforms]]=====<br />
<br />
===Mapping===<br />
<br />
====[[Mapping Overview]]====<br />
Some general information about mapping in ARK.<br />
<br />
====[[Configuring the Mapfile]]====<br />
Instructions on how to configure the mapfile.<br />
<br />
===Administration===<br />
<br />
====[[User Administration]]====<br />
<br />
Some tools for administering user accounts.<br />
<br />
====[[Address Book Administration]]====<br />
<br />
How to update the Address Book module.<br />
<br />
====[[Alias Administration]]====<br />
<br />
How to add aliases to the database.<br />
<br />
====[[Markup Administration]]====<br />
<br />
How to add markup to the database.<br />
<br />
====[[Exporting Data]]====<br />
<br />
Some basic tips for exporting data.<br />
<br />
====[[Importing Data]]====<br />
<br />
Information about the ongoing development of import tools.<br />
<br />
===Custom Configuration===<br />
<br />
The following are examples of custom configurations and may be specific to previous installations of ARK. Only use these for reference if you are upgrading from development code prior to the v0.6 release. Please contact the [http://ark.lparchaeology.com/contact ARK Development Team] for more information on any of the following. <br />
<br />
====[[Transcluding]]====<br />
<br />
====[[Configuring file registration]]====<br />
<br />
====[[Configuring the Mapping]]====<br />
<br />
[[category: Administrator]]</div>Henriettehttps://ark.lparchaeology.com/wiki/index.php?title=Settings.php&diff=650Settings.php2008-11-14T15:28:54Z<p>Henriette: /* Minimiser */</p>
<hr />
<div>This is the main settings file for each instance of ARK. The file is divide into sections as set out below<br />
<br />
===Server Setup===<br />
The server setup being used. Currently ARK is configured for Mapserver 4 Windows (ms4w), Mac, and Linux servers. Set the server type and include the [[env_settings.php]] file using:<br />
<pre><br />
$server="ms4w";<br />
// Include settings related to your server environment (this also uses the server specified above)<br />
include('env_settings.php');<br />
</pre><br />
<br />
====Server Specific Information====<br />
You will need to edit the following depending on your specific server information. Edit the information under the type of server you are using. Basic settings for each server are included below:<br />
<pre><br />
switch($server){<br />
<br />
case ms4w:<br />
// The folder name of THIS instance of Ark (relative to the document root of the host in which it is hosted)<br />
$ark_dir = '/ark/';<br />
// The mysql db name of this instance of ark<br />
$ark_db = 'ark';<br />
// The mysqlserver<br />
$sql_server = 'localhost';<br />
// The mysql user who will make all the db calls<br />
$sql_user = 'usr';<br />
// The mysql user's password<br />
$sql_pwd = 'psw';<br />
// EXPORT<br />
$export_dir = $ark_dir.'data/tmp/';<br />
// FILE specific<br />
// Where the files are stored after they are registered (/ after last folder)<br />
$registered_files_dir = $doc_root. $ark_dir . 'data/files/';<br />
// Where the files are stored after they are registered (/ after last folder)<br />
// Browser option: default is $ark_dir . 'data/files/<br />
// If the registered files directory is outside the main server directory then you need to setup an alias in httdp.conf<br />
$registered_files_host = $ark_dir . 'data/files/';<br />
// Top directory of the file browser - can only search relative to this directory. <br />
$default_upload_dir = 'C:/';<br />
break;<br />
case mac:<br />
// The folder name of THIS instance of Ark (relative to the document root of the host in which it is hosted)<br />
$ark_dir = '/ark/';<br />
// The mysql db name of this instance of ark<br />
$ark_db = 'ark';<br />
// The mysqlserver<br />
$sql_server = '127.0.0.1';<br />
// The mysql user who will make all the db calls<br />
$sql_user = 'usr';<br />
// The mysql user's password<br />
$sql_pwd = 'pws';<br />
// EXPORT<br />
$export_dir = $ark_dir.'data/tmp/';<br />
// FILE specific<br />
// Where the files are stored after they are registered (/ after last folder)<br />
$registered_files_dir = $doc_root. $ark_dir . 'data/files/';<br />
// Where the files are stored after they are registered (/ after last folder)<br />
// Browser option: default is $ark_dir . 'data/files/<br />
// If the registered files directory is outside the main server directory then you need to setup an alias in httdp.conf<br />
$registered_files_host = $ark_dir . 'data/files/';<br />
// Top directory of the file browser - can only search relative to this directory. <br />
$default_upload_dir = '\srv';<br />
<br />
break;<br />
case linux:<br />
// The folder name of THIS instance of Ark (relative to the document root of the host in which it is hosted)<br />
$ark_dir = '/ark/';<br />
// The mysql db name of this instance of ark<br />
$ark_db = 'ark';<br />
// The mysqlserver<br />
$sql_server = 'localhost';<br />
// The mysql user who will make all the db calls<br />
$sql_user = 'usr';<br />
// The mysql user's password<br />
$sql_pwd = 'pwd';<br />
// EXPORT<br />
$export_dir = $ark_dir.'data/tmp/';<br />
// FILE specific<br />
// Where the files are stored after they are registered (/ after last folder)<br />
$registered_files_dir = $doc_root. $ark_dir . 'data/files/';<br />
// Where the files are stored after they are registered (/ after last folder)<br />
// Browser option: default is $ark_dir . 'data/files/<br />
// If the registered files directory is outside the main server directory then you need to setup an alias in httdp.conf<br />
$registered_files_host = $ark_dir . 'data/files/';<br />
// Top directory of the file browser - can only search relative to this directory. <br />
$default_upload_dir = '\srv';<br />
break;<br />
}<br />
</pre><br />
<br />
===General===<br />
This contains general configuration for the ARK.<br />
<br />
====Minimiser====<br />
Is the minimiser enabled?<br />
To use the minimiser on specific data entry pages you need to go to the mod_settings files (ex. mod_cxt_settings.php) and make sure that 'col_type' => 'collaps_col', instead of single_col in the $conf_dat_materi and $conf_dat_detfrm settings. <br />
<pre><br />
// Set to TRUE if you want to use the minimising right hand navigation bar<br />
$minimiser = TRUE;<br />
</pre><br />
<br />
====ARK Name====<br />
The name of this instance of ARK<br />
<pre><br />
// The Ark name<br />
$ark_name = 'Tutorial';<br />
</pre><br />
<br />
===Live Search===<br />
The controls for the live search function<br />
<pre><br />
// Live search controls <br />
/*<br />
* live = live search <br />
* dd = drop down menu<br />
* plain = plain text search<br />
*/<br />
$mode = "live";<br />
</pre><br />
<br />
Also the controls for live search for XMI<br />
<pre><br />
// Live search controls for xmi<br />
/*<br />
* live = live search - this should only be set to live if you are using the collapsing data entry<br />
* dd = drop down menu<br />
* plain = plain text search<br />
*/<br />
$xmi_mode = "live";<br />
</pre><br />
<br />
===Modules===<br />
Configure the modules to be used in this ARK project:<br />
<pre><br />
// List the modules that need to be loaded in this ARK project<br />
$loaded_modules = <br />
array(<br />
'abk', // address book<br />
'cxt', // contexts<br />
'pln', // plans<br />
'smp', // samples<br />
'spf', // Special finds<br />
'sph', // Site photos<br />
<br />
);<br />
</pre><br />
<br />
Also configure the modules to load mapping data:<br />
<pre><br />
// Lists the modules to load maps for<br />
$loaded_map_mods = <br />
array(<br />
'cxt', // context<br />
'smp', // samples<br />
);<br />
</pre><br />
<br />
Set the default item key for this ARK setup:<br />
<pre><br />
// The default item key for this instance of Ark - format: mod_cd<br />
$default_itemkey = 'cxt_cd'; // context<br />
</pre><br />
<br />
Set the DSN for this ARK (this should generally NOT need adjusting)<br />
<pre><br />
// DSN (this shouldn't need adjusting)<br />
$dsn = 'mysql://'.$sql_user.':'.$sql_pwd.'@'.$sql_server.'/'.$ark_db;<br />
</pre><br />
<br />
===Security===<br />
The security for ARK is handled by LiveUser. The liveuser configuration is as follows:<br />
<pre><br />
// Liveuser: <br />
// These are the names of the liveuser objects. They should be unique per ARK <br />
// (to prevent cross ark hacking). They need to be called in the code as<br />
// $$liveuser and $$liveuser_admin<br />
$liveuser = $ark_name . 'usr';<br />
$liveuser_admin = $ark_name . 'usr' . '_admin';<br />
// The path to the login script (relative to the document root)<br />
$loginScript = 'index.php';<br />
// Anonymous Logins<br />
// If these variables are set then you are allowing anonymous logins<br />
// This is a security risk! Its best to leave these statements commented out.<br />
// Bear in mind that this does not need to be a real user.<br />
$anonymous_login['username'] = 'anon';<br />
$anonymous_login['password'] = 'anon';<br />
// Method used in forms:<br />
// get = form messages sent via get method - vissible in browser bar.<br />
// post = form message sent via post method - invisible to the user.<br />
$form_method = 'get';<br />
</pre><br />
<br />
===Skin===<br />
Sets the skin name and skin path for this ARK project:<br />
<pre><br />
// Skin name<br />
$skin = 'arkologik';<br />
// Skin path<br />
$skin_path = "$ark_dir/skins/$skin";<br />
</pre><br />
<br />
===Thumbnails===<br />
Sets thumbnail sizes for ARK (this will be used when uploading files)<br />
<pre><br />
// Optional<br />
$thumbnail_sizes =<br />
array(<br />
'arkthumb_width' => 100,<br />
'arkthumb_height' => 100,<br />
'webthumb_width' => 500,<br />
'webthumb_height' => 500<br />
);<br />
</pre><br />
<br />
===Forms===<br />
Set default year and site code for data entry and viewing:<br />
<pre><br />
//Default year as a setting for form data entry<br />
$default_year = '2008';<br />
//Default site code<br />
$default_site_cd = 'PCO06';<br />
</pre><br />
<br />
===Viewers===<br />
Configure the viewers to display a set number of rows:<br />
<pre><br />
// Number of rows to display on the data viewer<br />
$conf_viewer_rows = 25;<br />
</pre><br />
<br />
Also configure the index pages for Micro View, Data View, and Search pages:<br />
<pre><br />
// Default Micro viewer page (used by search result handlers)<br />
$conf_micro_viewer = $ark_dir."micro_view.php";<br />
// Default data viewer page<br />
$conf_data_viewer = $ark_dir."data_view.php";<br />
// Default search page - search funtions will send data thru to this page<br />
$conf_search_viewer = $ark_dir."data_view.php";<br />
</pre><br />
<br />
Set the default for search results display:<br />
<pre><br />
// Default $output_mode for the data viewer<br />
$default_output_mode = 'tbl';<br />
</pre><br />
<br />
===Mapping===<br />
Set the basic configuration for mapping functions (map directory, temp directory, etc):<br />
<pre><br />
// Path to temp directory (server)<br />
$ark_maptemp_dir = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/tmp/';<br />
// Path to temp directory (web)<br />
$ark_web_maptemp_dir = 'mapserver/tmp/';<br />
// Path to WMS mapfile (server)<br />
$ark_wms_map = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/mapfiles/ark_wms.map';<br />
// Path to WFS mapfile (server)<br />
$ark_wfs_map = 'C:/ms4w/Apache/htdocs/'.$ark_dir.'mapserver/mapfiles/ark_wfs.map';<br />
// Map scales<br />
$map_scales = '[1000,750,500,250,150,100,50,25,10]';<br />
// Tilecache_path - only set this if you have a tilecache setup on your server<br />
//$tilecache_path = '/cgi-bin/tilecache.cgi?';<br />
</pre><br />
<br />
Configure the wms query layers:<br />
<pre><br />
/*$wms_qlayers = array (<br />
array(<br />
'name' => 'cxt_schm',<br />
'geom' => 'pgn'<br />
),<br />
array(<br />
'name' => 'sfi_points',<br />
'geom' => 'pt'<br />
),<br />
);*/<br />
</pre><br />
<br />
Set up the map projection and extents to suit the location of the ARK project:<br />
<pre><br />
// Map projection (in form: "EPSG:4326")<br />
$map_projection = 'EPSG:27700';<br />
// Map extents (in form: "1075,970,1115,1010")<br />
$map_extents = '533866, 180940,533963, 181000';<br />
</pre><br />
<br />
Set the layer from WMS to be used in map view<br />
<pre><br />
// Maplayers from the WMS layer used in the map view<br />
$mapview_layers = array ('contexts');<br />
</pre><br />
<br />
===Logging===<br />
Cofigures logging levels to record logging into database and changes to data.<br />
<pre><br />
//Logging levels<br />
$conf_log_add = 'on';<br />
$conf_log_edt = 'on';<br />
$conf_log_del = 'on';<br />
</pre><br />
<br />
===Search Engine===<br />
Configures words to cut out of multi-string searches to streamline the search process and maximise results.<br />
<pre><br />
// words to cut out of multi string searches<br />
$conf_non_search_words = array('and', 'di', 'in');<br />
</pre><br />
<br />
===Languages===<br />
Configures the default language and other languages in use.<br />
<pre><br />
// The default lang<br />
$default_lang = 'en';<br />
// These are the languages in use (in order)<br />
$conf_langs = array('en', 'da');<br />
</pre><br />
<br />
===Fields===<br />
Used to include the [[field_settings.php]] file.<br />
<pre><br />
include_once('field_settings.php');<br />
</pre><br />
<br />
===Document Type===<br />
Configures the document type to use for web output<br />
<pre><br />
$doctype = "html \n<br />
PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n<br />
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"";<br />
</pre><br />
<br />
===Navigation===<br />
====Navigation Links====<br />
Configure to state what links will appear in the end of the navigation bar.<br />
<pre><br />
$conf_linklist =<br />
array(<br />
'file' => 'index.php',<br />
'vars' => 'logout=true',<br />
'label' => 'logout'<br />
);<br />
</pre><br />
<br />
====Navigation Pages====<br />
Unless listed in this array, all pages will appear in the main nav.<br />
<pre><br />
$conf_hide_pages =<br />
array(<br />
'index.php',<br />
'record_view.php',<br />
'contact.php',<br />
'about.php',<br />
'search.php',<br />
'folder.php',<br />
);<br />
</pre><br />
<br />
===Left Panel Configuration===<br />
<br />
====Left Panel- Data Entry====<br />
Configures the left panel in the data entry pages, requires the following:<br />
*'''view''' - the view the link should point to (regist, detfrm, files or a custom view)<br />
*'''item_key''' - itemkey to point to if any (cxt_cd, smp_cd)<br />
*'''href''' - link to the output <br />
*'''mknname''' - mark-up nickname will search the markup table for this nickname and print the markup<br />
<br />
<pre><br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=cxt_cd", <br />
'mknname' => 'regcxt'<br />
);<br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=detfrm&amp;item_key=cxt_cd", <br />
'mknname' => 'detcxt'<br />
);<br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=pln_cd", <br />
'mknname' => 'regpln'<br />
);<br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=sph_cd", <br />
'mknname' => 'regsph'<br />
);<br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=abk_cd", <br />
'mknname' => 'regabk'<br />
);<br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=smp_cd", <br />
'mknname' => 'regsmp'<br />
);<br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=detfrm&amp;item_key=smp_cd", <br />
'mknname' => 'detsmp'<br />
);<br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=materi&amp;item_key=smp_cd", <br />
'mknname' => 'matsmp'<br />
);<br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=regist&amp;item_key=spf_cd", <br />
'mknname' => 'regspf'<br />
);<br />
$data_entry_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?view=files", <br />
'mknname' => 'uplfile'<br />
);<br />
</pre><br />
<br />
====Left Panel- Micro View====<br />
Configures the left panel in the micro view pages, requires the following:<br />
*'''item_key''' - itemkey to point to if any (cxt_cd, smp_cd)<br />
*'''href''' - link to the output <br />
*'''mknname''' - mark-up nickname will search the markup table for this nickname and print the markup<br />
<br />
<pre><br />
$micro_view_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?item_key=cxt_cd", <br />
'mknname' => 'vwcxt'<br />
);<br />
$micro_view_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?item_key=pln_cd", <br />
'mknname' => 'vwpln'<br />
);<br />
$micro_view_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?item_key=smp_cd", <br />
'mknname' => 'vwsmp'<br />
);<br />
$micro_view_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?item_key=spf_cd", <br />
'mknname' => 'vwspf'<br />
);<br />
$micro_view_left_panel[] = <br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?item_key=sph_cd", <br />
'mknname' => 'vwsph'<br />
);<br />
</pre><br />
<br />
====Left Panel- Data View====<br />
This configures the left panel for the data view pages and needs the following:<br />
*'''href''' - link to the output ({$_SERVER['PHP_SELF']} is on same page, $ark_dir/export.php is on export page)<br />
*'''output_mode''' - output format for internal links<br />
*'''output''' - is output format for external links<br />
*'''mknname''' - mark-up nickname will search the markup table for this nickname and print the markup<br />
<br />
<pre><br />
$data_view_left_panel[] =<br />
array(<br />
'href' => "$ark_dir/export.php?output=CSVExt",<br />
'mknname' => 'expcsv'<br />
);<br />
$data_view_left_panel[] =<br />
array(<br />
'href' => "$ark_dir/export.php?output=XMLExt",<br />
'mknname' => 'expxml'<br />
);<br />
$data_view_left_panel[] =<br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?output_mode=tbl",<br />
'mknname' => 'vwtbl'<br />
);<br />
$data_view_left_panel[] =<br />
array(<br />
'href' => "{$_SERVER['PHP_SELF']}?output_mode=chat",<br />
'mknname' => 'vwchat'<br />
);<br />
</pre><br />
<br />
====Left Panel- User Home====<br />
This configures the left-panel for the user home pages and needs the following fields:<br />
*'''href''' - link to the output <br />
*'''mknname''' - mark-up nickname will search the markup table for this nickname and print the markup<br />
<br />
<pre><br />
$user_home_left_panel[] =<br />
array(<br />
'href' => "data_view.php?vtok=1&amp;nname=All_Contexts&amp;ftype=key&amp;key=1&amp;ktype=all",<br />
'mknname' => 'vwcxt'<br />
);<br />
</pre><br />
<br />
[[Category: Administrator]]</div>Henriette