2012-06-04 16:58:40 +02:00
|
|
|
<?php
|
|
|
|
|
//application details
|
|
|
|
|
$apps[$x]['name'] = 'Databases';
|
|
|
|
|
$apps[$x]['uuid'] = '8d229b6d-1383-fcec-74c6-4ce1682479e2';
|
|
|
|
|
$apps[$x]['category'] = 'Core';
|
|
|
|
|
$apps[$x]['subcategory'] = '';
|
|
|
|
|
$apps[$x]['version'] = '';
|
|
|
|
|
$apps[$x]['license'] = 'Mozilla Public License 1.1';
|
|
|
|
|
$apps[$x]['url'] = 'http://www.fusionpbx.com';
|
2013-09-30 18:21:08 +02:00
|
|
|
$apps[$x]['description']['en-us'] = "Storeds database connection information.";
|
2012-10-11 03:28:18 +02:00
|
|
|
$apps[$x]['description']['es-mx'] = '';
|
2013-09-30 17:22:35 +02:00
|
|
|
$apps[$x]['description']['de-de'] = '';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['description']['de-ch'] = '';
|
|
|
|
|
$apps[$x]['description']['de-at'] = '';
|
2013-09-30 18:21:08 +02:00
|
|
|
$apps[$x]['description']['fr-fr'] = "Information de connexions au BDD";
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['description']['fr-ca'] = '';
|
|
|
|
|
$apps[$x]['description']['fr-ch'] = '';
|
|
|
|
|
$apps[$x]['description']['pt-pt'] = 'Armazena informações de conexão com a base de dados.';
|
|
|
|
|
$apps[$x]['description']['pt-br'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//menu details
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['en-us'] = 'Databases';
|
2012-10-11 03:28:18 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['es-mx'] = '';
|
2013-09-30 17:22:35 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['de-de'] = '';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['de-ch'] = '';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['de-at'] = '';
|
2013-09-30 18:21:08 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['fr-fr'] = "BDD";
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['fr-ca'] = '';
|
|
|
|
|
$apps[$x]['menu'][0]['title']['fr-ch'] = '';
|
2013-09-30 18:21:08 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['pt-pt'] = "Base de Dados";
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['menu'][0]['title']['pt-br'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$apps[$x]['menu'][0]['uuid'] = 'ebbd754d-ca74-d5b1-a77e-9206ba3ecc3f';
|
|
|
|
|
$apps[$x]['menu'][0]['parent_uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f';
|
|
|
|
|
$apps[$x]['menu'][0]['category'] = 'internal';
|
|
|
|
|
$apps[$x]['menu'][0]['path'] = '/core/databases/databases.php';
|
|
|
|
|
$apps[$x]['menu'][0]['groups'][] = 'superadmin';
|
|
|
|
|
|
|
|
|
|
//permission details
|
2013-09-30 17:22:35 +02:00
|
|
|
$y = 0;
|
2013-09-30 18:21:08 +02:00
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'database_view';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'database_add';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'database_edit';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
|
|
|
$y++;
|
|
|
|
|
$apps[$x]['permissions'][$y]['name'] = 'database_delete';
|
|
|
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//schema details
|
|
|
|
|
$y = 0; //table array index
|
|
|
|
|
$z = 0; //field array index
|
|
|
|
|
$apps[$x]['db'][$y]['table'] = 'v_databases';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'id';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'database_connection_id';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'serial';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'integer';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'INT NOT NULL AUTO_INCREMENT PRIMARY KEY';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
|
|
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'database_connection_uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'v_id';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
|
|
|
|
|
$z++;
|
2012-07-17 17:56:32 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_driver';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'db_type';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the database driver.';
|
2012-07-17 17:56:32 +02:00
|
|
|
$z++;
|
2012-06-04 16:58:40 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_type';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'db_type';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the database type.';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_host';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'db_host';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the host name.';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_port';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'db_port';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the port number.';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_name';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'db_name';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the database name.';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_username';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'db_username';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the database username.';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_password';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'db_password';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the database password.';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_path';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'db_path';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the database file path.';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = 'database_description';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = 'db_description';
|
|
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
2012-10-11 02:07:03 +02:00
|
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the description.';
|
2012-06-04 16:58:40 +02:00
|
|
|
$z++;
|
2013-09-30 15:19:40 +02:00
|
|
|
?>
|