diff --git a/app/edit/app_config.php b/app/edit/app_config.php index 7958be7a94..19a6887749 100644 --- a/app/edit/app_config.php +++ b/app/edit/app_config.php @@ -19,21 +19,86 @@ $apps[$x]['description']['pt-br'] = ''; //menu details - $apps[$x]['menu'][0]['title']['en-us'] = 'Script Editor'; - $apps[$x]['menu'][0]['title']['es-mx'] = ''; - $apps[$x]['menu'][0]['title']['de'] = ''; - $apps[$x]['menu'][0]['title']['de-ch'] = ''; - $apps[$x]['menu'][0]['title']['de-at'] = ''; - $apps[$x]['menu'][0]['title']['fr'] = ''; - $apps[$x]['menu'][0]['title']['fr-ca'] = ''; - $apps[$x]['menu'][0]['title']['fr-ch'] = ''; - $apps[$x]['menu'][0]['title']['pt-pt'] = 'Editor de Scripts'; - $apps[$x]['menu'][0]['title']['pt-br'] = ''; - $apps[$x]['menu'][0]['uuid'] = 'f1905fec-0577-daef-6045-59d09b7d3f94'; - $apps[$x]['menu'][0]['parent_uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f'; - $apps[$x]['menu'][0]['category'] = 'external'; - $apps[$x]['menu'][0]['path'] = '/app/script_edit/index.php'; - $apps[$x]['menu'][0]['groups'][] = 'superadmin'; + $y = 0; + $apps[$x]['menu'][$y]['title']['en-us'] = 'Script Editor'; + $apps[$x]['menu'][$y]['title']['es-mx'] = ''; + $apps[$x]['menu'][$y]['title']['de'] = ''; + $apps[$x]['menu'][$y]['title']['de-ch'] = ''; + $apps[$x]['menu'][$y]['title']['de-at'] = ''; + $apps[$x]['menu'][$y]['title']['fr'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ca'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ch'] = ''; + $apps[$x]['menu'][$y]['title']['pt-pt'] = 'Editor de Scripts'; + $apps[$x]['menu'][$y]['title']['pt-br'] = ''; + $apps[$x]['menu'][$y]['uuid'] = 'f1905fec-0577-daef-6045-59d09b7d3f94'; + $apps[$x]['menu'][$y]['parent_uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f'; + $apps[$x]['menu'][$y]['category'] = 'external'; + $apps[$x]['menu'][$y]['path'] = '/app/edit/index.php?dir=scripts'; + $apps[$x]['menu'][$y]['groups'][] = 'superadmin'; + $y++; + $apps[$x]['menu'][$y]['title']['en-us'] = 'XML Editor'; + $apps[$x]['menu'][$y]['title']['es-mx'] = ''; + $apps[$x]['menu'][$y]['title']['de'] = ''; + $apps[$x]['menu'][$y]['title']['de-ch'] = ''; + $apps[$x]['menu'][$y]['title']['de-at'] = ''; + $apps[$x]['menu'][$y]['title']['fr'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ca'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ch'] = ''; + $apps[$x]['menu'][$y]['title']['pt-pt'] = 'Editor XML'; + $apps[$x]['menu'][$y]['title']['pt-br'] = ''; + $apps[$x]['menu'][$y]['uuid'] = '16013877-606a-2a05-7d6a-c1b215839131'; + $apps[$x]['menu'][$y]['parent_uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f'; + $apps[$x]['menu'][$y]['category'] = 'external'; + $apps[$x]['menu'][$y]['path'] = '/app/edit/index.php?dir=xml'; + $apps[$x]['menu'][$y]['groups'][] = 'superadmin'; + $y++; + $apps[$x]['menu'][$y]['title']['en-us'] = 'Provision Editor'; + $apps[$x]['menu'][$y]['title']['es-mx'] = ''; + $apps[$x]['menu'][$y]['title']['de'] = ''; + $apps[$x]['menu'][$y]['title']['de-ch'] = ''; + $apps[$x]['menu'][$y]['title']['de-at'] = ''; + $apps[$x]['menu'][$y]['title']['fr'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ca'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ch'] = ''; + $apps[$x]['menu'][$y]['title']['pt-pt'] = 'Editor de Provisionamento'; + $apps[$x]['menu'][$y]['title']['pt-br'] = ''; + $apps[$x]['menu'][$y]['uuid'] = '57773542-a565-1a29-605d-6535da1a0870'; + $apps[$x]['menu'][$y]['parent_uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f'; + $apps[$x]['menu'][$y]['category'] = 'external'; + $apps[$x]['menu'][$y]['path'] = '/app/edit/index.php?dir=provision'; + $apps[$x]['menu'][$y]['groups'][] = 'superadmin'; + $y++; + $apps[$x]['menu'][$y]['title']['en-us'] = 'PHP Editor'; + $apps[$x]['menu'][$y]['title']['es-mx'] = ''; + $apps[$x]['menu'][$y]['title']['de'] = ''; + $apps[$x]['menu'][$y]['title']['de-ch'] = ''; + $apps[$x]['menu'][$y]['title']['de-at'] = ''; + $apps[$x]['menu'][$y]['title']['fr'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ca'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ch'] = ''; + $apps[$x]['menu'][$y]['title']['pt-pt'] = 'Editor de PHP'; + $apps[$x]['menu'][$y]['title']['pt-br'] = ''; + $apps[$x]['menu'][$y]['uuid'] = 'eae1f2d6-789b-807c-cc26-44501e848693'; + $apps[$x]['menu'][$y]['parent_uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f'; + $apps[$x]['menu'][$y]['category'] = 'external'; + $apps[$x]['menu'][$y]['path'] = '/app/edit/index.php?dir=php'; + $apps[$x]['menu'][$y]['groups'][] = 'superadmin'; + $y++; + $apps[$x]['menu'][$y]['title']['en-us'] = 'Grammar Editor'; + $apps[$x]['menu'][$y]['title']['es-mx'] = 'Editor Gramático'; + $apps[$x]['menu'][$y]['title']['de'] = ''; + $apps[$x]['menu'][$y]['title']['de-ch'] = ''; + $apps[$x]['menu'][$y]['title']['de-at'] = ''; + $apps[$x]['menu'][$y]['title']['fr'] = "L'éditeur grammairien"; + $apps[$x]['menu'][$y]['title']['fr-ca'] = ''; + $apps[$x]['menu'][$y]['title']['fr-ch'] = ''; + $apps[$x]['menu'][$y]['title']['pt-pt'] = 'Editor Gramático'; + $apps[$x]['menu'][$y]['title']['pt-br'] = ''; + $apps[$x]['menu'][$y]['uuid'] = 'c3db739e-89f9-0fa2-44ce-0f4c2ff43b1a'; + $apps[$x]['menu'][$y]['parent_uuid'] = '594d99c5-6128-9c88-ca35-4b33392cec0f'; + $apps[$x]['menu'][$y]['category'] = 'external'; + $apps[$x]['menu'][$y]['path'] = '/app/edit/index.php?dir=grammar'; + $apps[$x]['menu'][$y]['groups'][] = 'superadmin'; //permission details $apps[$x]['permissions'][0]['name'] = 'script_editor_view'; @@ -41,4 +106,66 @@ $apps[$x]['permissions'][1]['name'] = 'script_editor_save'; $apps[$x]['permissions'][1]['groups'][] = 'superadmin'; + + $apps[$x]['permissions'][0]['name'] = 'provision_editor_view'; + $apps[$x]['permissions'][0]['groups'][] = 'superadmin'; + + $apps[$x]['permissions'][1]['name'] = 'provision_editor_save'; + $apps[$x]['permissions'][1]['groups'][] = 'superadmin'; + + $apps[$x]['permissions'][0]['name'] = 'xml_editor_view'; + $apps[$x]['permissions'][0]['groups'][] = 'superadmin'; + + $apps[$x]['permissions'][1]['name'] = 'xml_editor_save'; + $apps[$x]['permissions'][1]['groups'][] = 'superadmin'; + + $apps[$x]['permissions'][0]['name'] = 'php_editor_view'; + $apps[$x]['permissions'][0]['groups'][] = 'superadmin'; + + $apps[$x]['permissions'][1]['name'] = 'php_editor_save'; + $apps[$x]['permissions'][1]['groups'][] = 'superadmin'; + + $apps[$x]['permissions'][0]['name'] = 'grammar_view'; + $apps[$x]['permissions'][0]['groups'][] = 'admin'; + $apps[$x]['permissions'][0]['groups'][] = 'superadmin'; + + $apps[$x]['permissions'][1]['name'] = 'grammar_save'; + $apps[$x]['permissions'][1]['groups'][] = 'admin'; + $apps[$x]['permissions'][1]['groups'][] = 'superadmin'; + + //schema details + $y = 0; //table array index + $z = 0; //field array index + $apps[$x]['db'][$y]['table'] = 'v_clips'; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'clip_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'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'clip_name'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'clip_folder'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'clip_text_start'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'clip_text_end'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'clip_order'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = 'clip_desc'; + $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + ?> \ No newline at end of file diff --git a/app/edit/filelist.php b/app/edit/filelist.php index bdf718ec84..ed78a8f210 100644 --- a/app/edit/filelist.php +++ b/app/edit/filelist.php @@ -232,7 +232,21 @@ echo "\n"; echo "
".$text['label-files']." \n"; //display:none
//echo "
"; echo " ";
echo " |