コード例 #1
0
                $v2 = preg_replace('/\\<((\\/|\\w).*)\\>/sU', '&lt;\\1&gt;', $v2);
                $v2 = PFN_cambia_intros($v2);
                echo "\n" . '<br /><h2>' . $PFN_conf->t('Xsub_clave') . ': ' . $k2 . '</h2><br />' . '<div class="fondo_gris">' . $v2 . '<br />' . '<textarea name="idioma_i[' . $k . '][' . $k2 . ']" style="width: 680px;" rows="' . $alto . '">' . $txt_destino . '</textarea></div><br />';
            } else {
                echo "\n" . '<textarea style="display: none;" name="idioma_i[' . $k . '][' . $k2 . ']">' . $txt_destino . '</textarea>';
            }
        }
    } else {
        $txt_destino = preg_replace('/(<br>|<br \\/>)/i', "\n", $datos_destino[$k]);
        if (empty($txt_destino) || $tr_listar == 'todas') {
            echo "\n" . '<h1>' . $PFN_conf->t('Xclave') . ': ' . $k . '</h1><br />';
            $alto = intval(strlen($v) / 85);
            $alto = ($alto == 0 ? 1 : $alto) + 1;
            $v = preg_replace('/(<br>|<br \\/>)/i', "\n", $v);
            $v = preg_replace('/\\<((\\/|\\w).*)\\>/sU', '&lt;\\1&gt;', $v);
            $v = PFN_cambia_intros($v);
            echo "\n" . '<div class="fondo_gris">' . $v . '<br />' . '<textarea name="idioma_i[' . $k . ']" style="width: 680px;" rows="' . $alto . '">' . $txt_destino . '</textarea></div><br />';
        } else {
            echo "\n" . '<textarea style="display: none;" name="idioma_i[' . $k . ']">' . $txt_destino . '</textarea>';
        }
    }
    unset($txt_destino);
}
?>
			<br />

			<?php 
if (!empty($executa)) {
    ?>
			<div style="text-align: center;">
				<input type="reset" value=" <?php 
コード例 #2
0
ファイル: funcions.php プロジェクト: JoseCOCA/baudprint
/**
* function PFN_textoForm2interno (string $d)
*
* formatea un texto de un formulario para
* guardarlo como interno
*
* return string
*/
function PFN_textoForm2interno($d)
{
    $d = preg_replace('/[\\\\]+/', '\\', trim($d));
    $d = preg_replace('/[\\\\]$/', '', $d);
    $d = str_replace("\\'", "'", $d);
    $d = str_replace("'", "\\'", $d);
    return PFN_cambia_intros($d);
}