mirror of
https://github.com/fsr/eseeva
synced 2025-04-28 09:28:31 +02:00
centralizes patrons to one file
questionnaire and patronGen use the same file
This commit is contained in:
parent
6a27c9ed5e
commit
7f818f44ce
6 changed files with 41 additions and 51 deletions
|
@ -93,9 +93,13 @@
|
|||
$lines = explode("\n", $rawData);
|
||||
$data = array();
|
||||
for ($i = 0; $i < count($lines); $i++)
|
||||
if(trim($lines[$i]) != "")
|
||||
$data[trim($lines[$i])] = trim($lines[$i]);
|
||||
|
||||
{
|
||||
if(trim($lines[$i]) != "" && trim($lines[$i])[0] != "#")
|
||||
{
|
||||
$tmp = explode(";", trim($lines[$i]));
|
||||
$data[$tmp[0]] = $tmp;
|
||||
}
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue