\n"; $res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "
\n"; $res .= "\n"; $res .= fusion_get_settings("allow_php_exe") || defined('ALLOW_PHP') ? "\n" : ""; $res .= "\n"; $res .= "\n"; $res .= "
\n"; $res .= "
\n"; $res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "
\n"; $res .= "
\n"; $res .= "\n"; //$res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "
\n"; if ($colors) { $res .= "
\n"; $res .= "\n"; $res .= "\n"; $res .= "
\n"; } $res .= "
\n"; //$res .= "\n"; $res .= "\n"; $res .= "\n"; $res .= "
\n"; if (iADMIN) { $options = []; if ($images && $folder) { if (is_array($folder)) { foreach ($folder as $dir) { if (file_exists($dir)) { $file_list = makefilelist($dir, '.|..|index.php', TRUE, 'files', 'js|psd|rar|zip|7s|_DS_STORE|doc|docx|docs|md|php'); if (!empty($file_list)) { foreach ($file_list as $file) { $options[str_replace('../', '', $dir).$file] = $file; } } } } } else { if (file_exists($folder)) { $file_list = makefilelist($folder, '.|..|index.php', TRUE, 'files', 'js|psd|rar|zip|7s|_DS_STORE|doc|docx|docs|md|php'); if (!empty($file_list)) { foreach ($file_list as $file) { $options[str_replace('../', '', $folder).$file] = $file; } } } } $res .= form_select($textarea.'-insertimage', '', '', [ 'options' => $options, 'placeholder' => $locale['html_011'], 'allowclear' => TRUE, 'width' => '200px', 'class' => 'display-inline-block m-0' ] ); add_to_jquery(" $('#$textarea-insertimage').bind('change', function(e){ insertText('$textarea', '\"\"', '$formname'); $(this).select2('val', ''); }); "); } } } return $res; }