- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / installer / example_versions.php
blob2634a5caa819a308e52b0923a4463b061e6d144f
1 <?php
2 /*
3 * Created on Aug 16, 2005
5 * Example version file for application installer
6 */
8 $versions = new VersionSet();
10 $version_0_2 = new Version('0.2');
11 $version_0_2->collectData('db_user', 'Database Username', 'text', 'root');
12 $version_0_2->collectData('db_password', 'Database Password', 'text', '');
13 $version_0_2->collectData('db_server', 'Database Server', 'text', 'localhost');
14 $version_0_2->collectData('db_port', 'Database Port', 'text', '3306');
15 $version_0_2->collectData('db_database', 'Database Name', 'text', '');
16 $version_0_2->addTest('PHPVersionOver', array('4.2.0'));
17 $version_0_2->addTest('PHPExtension', array('mysql', 'gd'));
18 $version_0_2->addTest('WritableLocation', array(dirname(__FILE__).'/test_replacement.txt', realpath(dirname(__FILE__).'/tmp')));
19 $version_0_2->addTest('MysqlVersionOver', array(
20 'username_field' => 'db_user',
21 'password_field' => 'db_password',
22 'server_field' => 'db_server',
23 'port_field' => 'db_port',
24 'version' => '4.0.1'));
25 $version_0_2->addAction('AcceptText', array(dirname(__FILE__).'/LICENSE'));
26 $version_0_2->addAction('SQLFile', array(
27 'username_field' => 'db_user',
28 'password_field' => 'db_password',
29 'server_field' => 'db_server',
30 'port_field' => 'db_port',
31 'db_field' => 'db_database',
32 'files' => array(realpath(dirname(__FILE__).'/sql').'/sureinvoice.sql')));
33 $version_0_2->addAction('ReplaceString', array(
34 'message' => "Saved database configuration information!",
35 'files' => array(dirname(__FILE__).'/test_replacement.txt'),
36 'fields' => array('INSTALL_DB_USERNAME' => 'db_user', 'INSTALL_DB_PASSWORD' => 'db_password'),
37 'strings' => array('TEST_STRING' => 'This is my test string text!')
38 ));
40 $versions->add($version_0_2);
42 $version_0_3 = new Version('0.3');
43 $version_0_3->addAction('SQLFile', array(
44 'username_field' => 'db_user',
45 'password_field' => 'db_password',
46 'server_field' => 'db_server',
47 'port_field' => 'db_port',
48 'db_field' => 'db_database',
49 'files' => array(realpath(dirname(__FILE__).'/sql').'/update-0.2-0.3.sql')));
50 $versions->add($version_0_3);
52 $version_0_4 = new Version('0.4');
53 $version_0_4->addAction('SQLFile', array(
54 'username_field' => 'db_user',
55 'password_field' => 'db_password',
56 'server_field' => 'db_server',
57 'port_field' => 'db_port',
58 'db_field' => 'db_database',
59 'files' => array(realpath(dirname(__FILE__).'/sql').'/update-0.3-0.4.sql')));
60 $versions->add($version_0_4);