Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Maintenance - Mise à jour mensuelle Lundi 6 Février entre 7h00 et 9h00
Open sidebar
genotoul-bioinfo
ng6
Commits
40550892
Commit
40550892
authored
Jul 27, 2012
by
Jerome Mariette
Browse files
change user management system
parent
e4de5bd4
Changes
15
Expand all
Hide whitespace changes
Inline
Side-by-side
ui/nG6/class.tx_nG6_eid.php
View file @
40550892
...
...
@@ -46,20 +46,20 @@ class tx_nG6_eid {
// Connect to the databse
tslib_eidtools
::
connectDB
();
$type
=
trim
(
t3lib_div
::
_GP
(
'type'
));
$user_
group
=
trim
(
t3lib_div
::
_GP
(
'user_
group
'
));
$user_
id
=
trim
(
t3lib_div
::
_GP
(
'user_
id
'
));
// If the type of data requested is project
if
(
$type
==
'project'
)
{
$project_id
=
trim
(
t3lib_div
::
_GP
(
'id'
));
// Select all runs linked to the project
$project_runs
=
tx_nG6_db
::
get_project_runs
(
$user_
group
,
$project_id
,
'tx_nG6_run.date DESC'
);
$project_runs
=
tx_nG6_db
::
get_project_runs
(
$user_
id
,
$project_id
,
'tx_nG6_run.date DESC'
);
// for each run
$html_tree
=
''
;
foreach
(
$project_runs
as
$run_id
=>
$run_values
)
{
$html_tree
.
=
'<li class="jstree-closed" name=\''
.
str_replace
(
array
(
'###SPAN_NAME###'
,
'###SPAN_DATE###'
),
array
(
$run_values
[
'name'
],
strftime
(
'%d-%m-%y'
,
$run_values
[
'date'
])),
trim
(
t3lib_div
::
_GP
(
'run_short_description'
)))
.
'\' id=\''
.
$run_id
.
'\'> <a href=\'#\'>'
.
str_replace
(
array
(
'###SPAN_NAME###'
,
'###SPAN_DATE###'
,
'###SPAN_NB_SEQ###'
,
'###SPAN_SPECIES###'
),
array
(
$run_values
[
'name'
],
strftime
(
'%d-%m-%y'
,
$run_values
[
'date'
]),
$run_values
[
'nb_sequences'
],
$run_values
[
'species'
]),
trim
(
t3lib_div
::
_GP
(
'run_description'
)))
.
'</a></li>'
;
}
// Then all project analysis
$project_analysis
=
tx_nG6_db
::
get_project_analysis
(
$user_
group
,
$project_id
,
'tx_nG6_analyze.name'
);
$project_analysis
=
tx_nG6_db
::
get_project_analysis
(
$user_
id
,
$project_id
,
'tx_nG6_analyze.name'
);
foreach
(
$project_analysis
as
$analyse_id
=>
$analyse_values
)
{
$html_tree
.
=
'<li name=\''
.
str_replace
(
array
(
'###SPAN_NAME###'
),
array
(
$analyse_values
[
"name"
]),
trim
(
t3lib_div
::
_GP
(
'analyse_description'
)))
.
'\' id=\''
.
$analyse_id
.
'\'> <a href=\'#\'>'
.
str_replace
(
array
(
'###SPAN_NAME###'
),
array
(
$analyse_values
[
"name"
]),
trim
(
t3lib_div
::
_GP
(
'analyse_description'
)))
.
'</a></li>'
;
}
...
...
@@ -70,7 +70,7 @@ class tx_nG6_eid {
}
else
if
(
$type
==
'run'
){
$run_id
=
trim
(
t3lib_div
::
_GP
(
'id'
));
// Select all analysis linked to the run and the run information
$run_analysis
=
tx_nG6_db
::
get_run_analysis
(
$user_
group
,
$run_id
,
'tx_nG6_analyze.name'
);
$run_analysis
=
tx_nG6_db
::
get_run_analysis
(
$user_
id
,
$run_id
,
'tx_nG6_analyze.name'
);
$run_info
=
tx_nG6_db
::
select_run
(
$run_id
);
// for each analysis
$html_tree
=
''
;
...
...
@@ -91,7 +91,7 @@ class tx_nG6_eid {
$user_login
=
trim
(
t3lib_div
::
_GP
(
'user_login'
));
$user_pwd
=
trim
(
t3lib_div
::
_GP
(
'user_pwd'
));
$user_directory
=
trim
(
t3lib_div
::
_GP
(
'user_directory'
));
$retcode
=
$this
->
create_symbolic_links
(
$user_
group
,
$user_login
,
$user_pwd
,
$ids
,
$data_folder
,
$user_directory
);
$retcode
=
$this
->
create_symbolic_links
(
$user_
id
,
$user_login
,
$user_pwd
,
$ids
,
$data_folder
,
$user_directory
);
print
$retcode
;
// If a .tar.gz file
...
...
@@ -102,7 +102,7 @@ class tx_nG6_eid {
$user_email
=
trim
(
t3lib_div
::
_GP
(
'user_email'
));
$title_email
=
trim
(
t3lib_div
::
_GP
(
'title_email'
));
$msg_email
=
trim
(
t3lib_div
::
_GP
(
'msg_email'
));
$archive_info
=
$this
->
create_archive_script
(
$user_
group
,
$ids
,
$data_folder
,
$tmp_folder
,
"tar.gz"
,
$user_email
,
$title_email
,
$msg_email
);
$archive_info
=
$this
->
create_archive_script
(
$user_
id
,
$ids
,
$data_folder
,
$tmp_folder
,
"tar.gz"
,
$user_email
,
$title_email
,
$msg_email
);
$process
=
new
Process
(
"tcsh "
.
$archive_info
[
0
]);
print
"pid="
.
$process
->
getPid
()
.
"&archive_path="
.
$archive_info
[
1
];
}
...
...
@@ -131,15 +131,15 @@ class tx_nG6_eid {
if
(
$hide_level
==
'project'
)
{
foreach
(
$tab_ids
as
$id
=>
$value
)
{
tx_nG6_db
::
hide_project
(
$value
,
$user_
group
);
tx_nG6_db
::
hide_project
(
$value
,
$user_
id
);
}
}
else
if
(
$hide_level
==
'run'
)
{
foreach
(
$tab_ids
as
$id
=>
$value
)
{
tx_nG6_db
::
hide_run
(
$value
,
$user_
group
);
tx_nG6_db
::
hide_run
(
$value
,
$user_
id
);
}
}
else
if
(
$hide_level
==
'analysis'
)
{
foreach
(
$tab_ids
as
$id
=>
$value
)
{
tx_nG6_db
::
hide_analysis
(
$value
,
$user_
group
);
tx_nG6_db
::
hide_analysis
(
$value
,
$user_
id
);
}
}
...
...
@@ -153,15 +153,15 @@ class tx_nG6_eid {
if
(
$unhide_level
==
'project'
)
{
foreach
(
$tab_ids
as
$id
=>
$value
)
{
tx_nG6_db
::
unhide_project
(
$value
,
$user_
group
);
tx_nG6_db
::
unhide_project
(
$value
,
$user_
id
);
}
}
else
if
(
$unhide_level
==
'run'
)
{
foreach
(
$tab_ids
as
$id
=>
$value
)
{
tx_nG6_db
::
unhide_run
(
$value
,
$user_
group
);
tx_nG6_db
::
unhide_run
(
$value
,
$user_
id
);
}
}
else
if
(
$unhide_level
==
'analysis'
)
{
foreach
(
$tab_ids
as
$id
=>
$value
)
{
tx_nG6_db
::
unhide_analysis
(
$value
,
$user_
group
);
tx_nG6_db
::
unhide_analysis
(
$value
,
$user_
id
);
}
}
...
...
@@ -190,12 +190,12 @@ class tx_nG6_eid {
if
(
$res
==
0
)
{
if
(
$delete_level
==
'project'
)
{
foreach
(
$tab_ids
as
$id
=>
$value
)
{
$res
=
tx_nG6_db
::
delete_project
(
$user_
group
,
$value
,
$user_login
,
$user_pwd
,
$data_folder
);
$res
=
tx_nG6_db
::
delete_project
(
$user_
id
,
$value
,
$user_login
,
$user_pwd
,
$data_folder
);
if
(
$res
!=
0
)
{
break
;
}
}
}
else
if
(
$delete_level
==
'run'
)
{
foreach
(
$tab_ids
as
$id
=>
$value
)
{
$res
=
tx_nG6_db
::
delete_run
(
$user_
group
,
$value
,
$user_login
,
$user_pwd
,
$data_folder
);
$res
=
tx_nG6_db
::
delete_run
(
$user_
id
,
$value
,
$user_login
,
$user_pwd
,
$data_folder
);
if
(
$res
!=
0
)
{
break
;
}
}
}
else
if
(
$delete_level
==
'analysis'
)
{
...
...
@@ -214,7 +214,7 @@ class tx_nG6_eid {
// project_id to array (1;2;3;...) -> [1;2;3;...]
$tab_ids
=
explode
(
";"
,
$ids
);
foreach
(
$tab_ids
as
$id
=>
$value
)
{
tx_nG6_db
::
publish_project
(
$value
,
$user_
group
);
tx_nG6_db
::
publish_project
(
$value
,
$user_
id
);
}
// If asked to unpublish a project
...
...
@@ -236,9 +236,9 @@ class tx_nG6_eid {
$full_size
=
0
;
foreach
(
$tab_ids
as
$id
=>
$value
)
{
if
(
$view
==
"run"
)
{
$full_size
+=
tx_nG6_db
::
get_run_size
(
$value
,
$data_folder
,
$user_
group
);
$full_size
+=
tx_nG6_db
::
get_run_size
(
$value
,
$data_folder
,
$user_
id
);
}
else
if
(
$view
==
"project"
)
{
$full_size
+=
tx_nG6_db
::
get_project_size
(
$value
,
$data_folder
,
$user_
group
);
$full_size
+=
tx_nG6_db
::
get_project_size
(
$value
,
$data_folder
,
$user_
id
);
}
}
print
tx_nG6_utils
::
get_octet_string_representation
(
$full_size
);
...
...
@@ -392,7 +392,7 @@ class tx_nG6_eid {
/**
* Creates an archiving script to archive data from ids
*
* @param string $user_
group
the user
group
* @param string $user_
id
the user
id
* @param array $ids list of ids to download
* @param string $data_folder the data folder where are stored the data
* @param string $tmp_folder the output directory
...
...
@@ -402,7 +402,7 @@ class tx_nG6_eid {
* @param string $msg_email the email message to send
* @return array (the path to the script, the url path to the final archive)
*/
private
function
create_archive_script
(
$user_
group
,
$ids
,
$data_folder
,
$tmp_folder
,
$format
,
$user_email
,
$title_email
,
$msg_email
)
{
private
function
create_archive_script
(
$user_
id
,
$ids
,
$data_folder
,
$tmp_folder
,
$format
,
$user_email
,
$title_email
,
$msg_email
)
{
// First get the archive name where will be stored the data
$random_key
=
tx_nG6_utils
::
create_random_key
(
10
);
$archive_path
=
$tmp_folder
.
"/ng6_"
.
$random_key
;
...
...
@@ -410,7 +410,7 @@ class tx_nG6_eid {
$archive_path
=
$tmp_folder
.
"/ng6_"
.
$random_key
;
// Then get the directories structure
$directories
=
$this
->
get_directories_structure_and_content
(
$user_
group
,
$ids
,
$data_folder
,
$archive_path
);
$directories
=
$this
->
get_directories_structure_and_content
(
$user_
id
,
$ids
,
$data_folder
,
$archive_path
);
$archive_script_path
=
$tmp_folder
.
"/ng6_"
.
$random_key
.
".sh"
;
// And write down the script in charge to create the archive
...
...
@@ -437,7 +437,7 @@ class tx_nG6_eid {
/**
* Creates symbolic links between ids from data_folder into user_directory
*
* @param string $user_
group
the user
group
* @param string $user_
id
the user
id
* @param string $user_login the user login to make ssh
* @param string $user_pwd the user pwd to make ssh
* @param array $ids list of ids to download
...
...
@@ -445,14 +445,14 @@ class tx_nG6_eid {
* @param string $user_directory the output directory
* @return 0=>everything ok, 1=>user rigth problem, 2=>wrong authentification, 3=>connection error
*/
private
function
create_symbolic_links
(
$user_
group
,
$user_login
,
$user_pwd
,
$ids
,
$data_folder
,
$user_directory
)
{
private
function
create_symbolic_links
(
$user_
id
,
$user_login
,
$user_pwd
,
$ids
,
$data_folder
,
$user_directory
)
{
// First try to connect the specified user using ssh
$connection
=
ssh2_connect
(
'127.0.0.1'
,
22
);
if
(
!
$connection
)
return
3
;
if
(
!
ssh2_auth_password
(
$connection
,
$user_login
,
$user_pwd
))
return
2
;
// Then get the directories structure
$directories
=
$this
->
get_directories_structure_and_content
(
$user_
group
,
$ids
,
$data_folder
,
$user_directory
);
$directories
=
$this
->
get_directories_structure_and_content
(
$user_
id
,
$ids
,
$data_folder
,
$user_directory
);
// And process the directories structure
$creation
=
true
;
foreach
(
$directories
[
0
]
as
$index
=>
$src_directory
)
{
...
...
@@ -479,13 +479,13 @@ class tx_nG6_eid {
/**
* Returns a table with the right directories structure considering ids
*
* @param string $user_
group
the user
group
* @param string $user_
id
the user
id
* @param array $ids List of ids to download
* @param string $data_folder The data folder where are stored the data
* @param string $output_folder The output directory
* @return array [0] => source_directories, [1] => dest_directories
*/
private
function
get_directories_structure_and_content
(
$user_
group
,
$ids
,
$data_folder
,
$output_folder
)
{
private
function
get_directories_structure_and_content
(
$user_
id
,
$ids
,
$data_folder
,
$output_folder
)
{
$src_directories
=
array
();
$dest_directories
=
array
();
...
...
@@ -514,7 +514,7 @@ class tx_nG6_eid {
$ddest
.
=
'.'
.
$run
[
"project_id"
]
.
"/Run_"
.
str_replace
(
$char_to_replace
,
'_'
,
$run
[
"name"
])
.
"."
.
$id
[
1
]
.
"/RawData"
;
$dest_directories
[]
=
$ddest
;
}
foreach
(
tx_nG6_db
::
get_run_analysis
(
$user_
group
,
$id
[
1
],
'tx_nG6_analyze.name'
)
as
$analyse_id
=>
$analyse_values
)
{
foreach
(
tx_nG6_db
::
get_run_analysis
(
$user_
id
,
$id
[
1
],
'tx_nG6_analyze.name'
)
as
$analyse_id
=>
$analyse_values
)
{
$aid
=
preg_split
(
"/_/"
,
$analyse_id
);
if
(
!
in_array
(
$data_folder
.
$analyse_values
[
"directory"
],
$src_directories
))
{
$src_directories
[]
=
$data_folder
.
$analyse_values
[
"directory"
];
...
...
@@ -556,4 +556,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/nG6/cla
$SOBE
=
t3lib_div
::
makeInstance
(
'tx_nG6_eid'
);
$SOBE
->
main
();
?>
?>
\ No newline at end of file
ui/nG6/ext_tables.php
View file @
40550892
<?php
if
(
!
defined
(
'TYPO3_MODE'
))
die
(
'Access denied.'
);
$TCA
[
"fe_rights_levels"
]
=
Array
(
"ctrl"
=>
Array
(
'title'
=>
'LLL:EXT:nG6/locallang_db.xml:fe_rights_levels'
,
'label'
=>
'right_level_id'
,
"default_sortby"
=>
"ORDER BY right_level_id"
,
"dynamicConfigFile"
=>
t3lib_extMgm
::
extPath
(
$_EXTKEY
)
.
"tca.php"
),
"feInterface"
=>
Array
(
"fe_admin_fieldList"
=>
"right_level_id, right_level_label"
,
)
);
$TCA
[
"fe_rights"
]
=
Array
(
"ctrl"
=>
Array
(
'title'
=>
'LLL:EXT:nG6/locallang_db.xml:fe_rights'
,
'label'
=>
'right_id, project_id, fe_user_id'
,
"default_sortby"
=>
"ORDER BY right_id"
,
"dynamicConfigFile"
=>
t3lib_extMgm
::
extPath
(
$_EXTKEY
)
.
"tca.php"
),
"feInterface"
=>
Array
(
"fe_admin_fieldList"
=>
"fe_user_id, right_id, project_id"
,
)
);
t3lib_extMgm
::
allowTableOnStandardPages
(
"tx_nG6_project"
);
$TCA
[
"tx_nG6_project"
]
=
Array
(
"ctrl"
=>
Array
(
'title'
=>
'LLL:EXT:nG6/locallang_db.xml:tx_nG6_project'
,
'title'
=>
'LLL:EXT:nG6/locallang_db.xml:tx_nG6_project'
,
'label'
=>
'uid'
,
'tstamp'
=>
'tstamp'
,
'crdate'
=>
'crdate'
,
...
...
@@ -14,13 +40,12 @@ $TCA["tx_nG6_project"] = Array (
"delete"
=>
"deleted"
,
"enablecolumns"
=>
Array
(
"disabled"
=>
"hidden"
,
"fe_group"
=>
"fe_group"
,
),
"dynamicConfigFile"
=>
t3lib_extMgm
::
extPath
(
$_EXTKEY
)
.
"tca.php"
,
"iconfile"
=>
t3lib_extMgm
::
extRelPath
(
$_EXTKEY
)
.
"icon_tx_nG6_project.gif"
,
),
"feInterface"
=>
Array
(
"fe_admin_fieldList"
=>
"hidden, public,
fe_group,
name, description"
,
"fe_admin_fieldList"
=>
"hidden, public, name, description"
,
)
);
...
...
ui/nG6/ext_tables.sql
View file @
40550892
#
#
Table
structure
for
table
'tx_nG6_project'
#
/*
* Table structure for table 'fe_rights_levels'
*/
CREATE
TABLE
fe_rights_levels
(
right_level_id
int
(
11
)
NOT
NULL
,
right_level_label
varchar
(
20
)
NOT
NULL
,
PRIMARY
KEY
(
right_level_id
),
);
/*
* Table structure for table 'fe_rights'
*/
CREATE
TABLE
fe_rights
(
fe_user_id
int
(
11
)
NOT
NULL
,
project_id
int
(
11
)
NOT
NULL
,
right_id
int
(
11
)
NOT
NULL
,
PRIMARY
KEY
(
fe_user_id
,
project_id
,
right_id
)
);
/*
* Table structure for table 'tx_nG6_project'
*/
CREATE
TABLE
tx_nG6_project
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
public
tinyint
(
4
)
DEFAULT
'1'
NOT
NULL
,
fe_group
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
name
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
description
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
public
tinyint
(
4
)
DEFAULT
'1'
NOT
NULL
,
name
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
description
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
);
#
#
Table
structure
for
table
'tx_nG6_run'
#
/*
*
Table structure for table 'tx_nG6_run'
*/
CREATE
TABLE
tx_nG6_run
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
name
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
date
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
directory
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
species
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
data_nature
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
type
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
nb_sequences
varchar
(
255
)
DEFAULT
'0'
NOT
NULL
,
full_seq_size
varchar
(
255
)
DEFAULT
'0'
NOT
NULL
,
description
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
sequencer
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
name
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
date
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
directory
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
species
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
data_nature
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
type
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
nb_sequences
varchar
(
255
)
DEFAULT
'0'
NOT
NULL
,
full_seq_size
varchar
(
255
)
DEFAULT
'0'
NOT
NULL
,
description
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
sequencer
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
);
/*
* Table structure for table 'tx_nG6_analyze'
*/
#
#
Table
structure
for
table
'tx_nG6_analyze'
#
CREATE
TABLE
tx_nG6_analyze
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
parent_uid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
class
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
name
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
description
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
date
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
directory
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
software
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
version
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
params
text
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
parent_uid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
class
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
name
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
description
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
date
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
directory
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
software
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
version
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
params
text
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
);
#
#
Table
structure
for
table
'tx_nG6_sample'
#
/*
* Table structure for table 'tx_nG6_sample'
*/
CREATE
TABLE
tx_nG6_sample
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
run_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
mid
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
description
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
run_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
mid
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
description
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
);
/*
* Table structure for table 'tx_nG6_result'
*/
#
#
Table
structure
for
table
'tx_nG6_result'
#
CREATE
TABLE
tx_nG6_result
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
analyze_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
file
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
rkey
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
rvalue
text
DEFAULT
''
NOT
NULL
,
rgroup
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
analyze_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
file
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
rkey
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
rvalue
text
DEFAULT
''
NOT
NULL
,
rgroup
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
);
/*
* Table structure for table 'tx_nG6_project_run'
*/
#
#
Table
structure
for
table
'tx_nG6_project_run'
#
CREATE
TABLE
tx_nG6_project_run
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
project_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
run_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
project_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
run_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
);
/*
* Table structure for table 'tx_nG6_project_analyze'
*/
#
#
Table
structure
for
table
'tx_nG6_project_analyze'
#
CREATE
TABLE
tx_nG6_project_analyze
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
project_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
analyze_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
project_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
analyze_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
);
/*
* Table structure for table 'tx_nG6_run_analyze'
*/
#
#
Table
structure
for
table
'tx_nG6_run_analyze'
#
CREATE
TABLE
tx_nG6_run_analyze
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
run_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
analyze_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
);
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tstamp
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
crdate
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
cruser_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
deleted
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
DEFAULT
'0'
NOT
NULL
,
run_id
int
(
11
)
DEFAULT
'0'
NOT
NULL
,