|
@@ -178,13 +178,13 @@ discard block |
|
|
block discarded – undo |
178
|
178
|
prefix_table("export"), |
179
|
179
|
array( |
180
|
180
|
'id' => $record['id'], |
181
|
|
- 'description' => strip_tags(cleanString(html_entity_decode($record['description'], ENT_QUOTES | ENT_XHTML, UTF-8), true)), |
182
|
|
- 'label' => $record['label'],//cleanString(html_entity_decode($record['label'], ENT_QUOTES | ENT_XHTML, UTF-8), true), |
183
|
|
- 'pw' => html_entity_decode($pw['string'], ENT_QUOTES | ENT_XHTML, UTF-8), |
184
|
|
- 'login' => strip_tags(cleanString(html_entity_decode($record['login'], ENT_QUOTES | ENT_XHTML, UTF-8), true)), |
|
181
|
+ 'description' => strip_tags(cleanString(html_entity_decode($record['description'], ENT_QUOTES | ENT_XHTML, UTF - 8), true)), |
|
182
|
+ 'label' => $record['label'], //cleanString(html_entity_decode($record['label'], ENT_QUOTES | ENT_XHTML, UTF-8), true), |
|
183
|
+ 'pw' => html_entity_decode($pw['string'], ENT_QUOTES | ENT_XHTML, UTF - 8), |
|
184
|
+ 'login' => strip_tags(cleanString(html_entity_decode($record['login'], ENT_QUOTES | ENT_XHTML, UTF - 8), true)), |
185
|
185
|
'path' => $path, |
186
|
|
- 'url' => strip_tags(cleanString(html_entity_decode($record['url'], ENT_QUOTES | ENT_XHTML, UTF-8), true)), |
187
|
|
- 'email' => strip_tags(cleanString(html_entity_decode($record['email'], ENT_QUOTES | ENT_XHTML, UTF-8), true)), |
|
186
|
+ 'url' => strip_tags(cleanString(html_entity_decode($record['url'], ENT_QUOTES | ENT_XHTML, UTF - 8), true)), |
|
187
|
+ 'email' => strip_tags(cleanString(html_entity_decode($record['email'], ENT_QUOTES | ENT_XHTML, UTF - 8), true)), |
188
|
188
|
'kbs' => $arr_kbs, |
189
|
189
|
'tags' => $arr_tags |
190
|
190
|
) |
|
@@ -474,10 +474,10 @@ discard block |
|
|
block discarded – undo |
474
|
474
|
|
475
|
475
|
$full_listing[$i] = array( |
476
|
476
|
'id' => $record['id'], |
477
|
|
- 'label' => strip_tags(cleanString(html_entity_decode($record['label'], ENT_QUOTES | ENT_XHTML, UTF-8), true)), |
|
477
|
+ 'label' => strip_tags(cleanString(html_entity_decode($record['label'], ENT_QUOTES | ENT_XHTML, UTF - 8), true)), |
478
|
478
|
'description' => htmlspecialchars_decode(addslashes(str_replace(array(";", "<br />"), array("|", "\n\r"), mysqli_escape_string($link, stripslashes($record['description']))))), |
479
|
|
- 'pw' => html_entity_decode($pw['string'], ENT_QUOTES | ENT_XHTML, UTF-8), |
480
|
|
- 'login' => strip_tags(cleanString(html_entity_decode($record['login'], ENT_QUOTES | ENT_XHTML, UTF-8), true)), |
|
479
|
+ 'pw' => html_entity_decode($pw['string'], ENT_QUOTES | ENT_XHTML, UTF - 8), |
|
480
|
+ 'login' => strip_tags(cleanString(html_entity_decode($record['login'], ENT_QUOTES | ENT_XHTML, UTF - 8), true)), |
481
|
481
|
'restricted_to' => isset($record['restricted_to']) ? $record['restricted_to'] : '', |
482
|
482
|
'perso' => $record['perso'] === "0" ? "False" : "True", |
483
|
483
|
'url' => $record['url'] !== "none" ? htmlspecialchars_decode($record['url']) : "", |
|
@@ -505,7 +505,7 @@ discard block |
|
|
block discarded – undo |
505
|
505
|
// Save the file |
506
|
506
|
$csv_file = '/print_out_csv_'.time().'_'.generateKey().'.csv'; |
507
|
507
|
$outstream = fopen($SETTINGS['path_to_files_folder'].$csv_file, "w"); |
508
|
|
- fputs($outstream, chr(0xEF) . chr(0xBB) . chr(0xBF)); // BOM |
|
508
|
+ fputs($outstream, chr(0xEF).chr(0xBB).chr(0xBF)); // BOM |
509
|
509
|
|
510
|
510
|
// Loop on Results, decode to UTF8 and write in CSV file |
511
|
511
|
foreach ($full_listing as $value) { |