file manager da php 5 a 7

nicemotion

Nuovo Utente
6 Feb 2010
17
1
3
ho questo script per la gestione dei file scritto per php 5:

Codice:
<?php
for ($i=0;$i<sizeof($dirs);$i++) {
    echo "<a href='#' onClick='delete_folder(\"" . $dirs[$i] . "\")'><img border=0 src='" . $delete_image . "'></a> <img src='" . $folder_small_image . "'> <a class='dir' href='?type=" . $type . "&dir=" . $requested_dir . $dirs[$i] . "'>" . $dirs[$i] . "</a><br>\n";
}
for ($i=0;$i<sizeof($files);$i++) {
    echo "<a href='#' onClick='delete_file(\"" . $files[$i] . "\")'><img border=0 src='" . $delete_image . "'></a> <img src='" . $file_small_image . "'> <a class='file' href='#' onClick='fileSelected(\"" . $requested_dir . $files[$i] . "\");'>" . $files[$i] . "</a><br>\n";
}
?>
che mi genera i segg errori in php 7:

-> Notice: Undefined variable: dirs in ...\file_browser_include.php on line 2
-> Warning: sizeof(): Parameter must be an array or an object that implements Countable in ...\file_manager\file_browser_include.php on line 2
-> Notice: Undefined variable: files in ...\file_manager\file_browser_include.php on line 5
-> Warning: sizeof(): Parameter must be an array or an object that implements Countable in...\file_browser_include.php on line 5


Credo si tratti di dichiarare le var dirs e files compatibilmente a php 7 e gestire l'array ma la mia conoscenza di php non è sufficiente per riscriverla correttamente,

Ringrazio in anticipo per l'aiuto
 

nicemotion

Nuovo Utente
6 Feb 2010
17
1
3
Ciao Tommy, certo

sono coinvolti diversi files:

file_manager_config.php

PHP:
<?php


$settings["files"]["dir"]     = "./FileUpload/files/"; //without the trailing slash!
$settings["files"]["url_dir"]     = "FileUpload/files/"; //without the leading or trailing slash!
$settings["files"]["ext"]     = array("*");
$settings["files"]["type"]     = 1; //1 => file browser, 2 => image browser
$settings["img"]["dir"]     = "./FileUpload/pics/"; //without the trailing slash!
$settings["img"]["url_dir"]     = "FileUpload/pics/"; //without the leading or trailing slash!
$settings["img"]["ext"]     = array("jpg", "bmp", "png", "gif");
$settings["img"]["type"]     = 2; //1 => file browser, 2 => image browser
$settings["media"]["dir"]     = "./FileUpload/files/"; //without the trailing slash!
$settings["media"]["url_dir"]     = "FileUpload/files/"; //without the leading or trailing slash!
$settings["media"]["ext"]     = array("swf");
$settings["media"]["type"]     = 1; //1 => file browser, 2 => image browser

//what file to include for reading and displaying of directories and files
$types[1] = "file_manager/file_browser_include.php";
$types[2] = "file_manager/image_browser_include.php";

//which language file to use
include("file_manager/lang/lang_eng.php");

//which images to use
$delete_image         = "file_manager/x.png";
$folder_small_image     = "file_manager/folder_small.png";
$file_small_image     = "file_manager/file_small.png";
$folder_large_image     = "file_manager/folder_large.png";

//custom configuration from here on ..
//image browser configuration
$dir_width     = "96px";
$file_width     = "96px";
?>
file_manager_config_disp.php

PHP:
<?php


$settings["files"]["dir"]     = "./Dispense/files/"; //without the trailing slash!
$settings["files"]["url_dir"]     = "Dispense/files/"; //without the leading or trailing slash!
$settings["files"]["ext"]     = array("*");
$settings["files"]["type"]     = 1; //1 => file browser, 2 => image browser
$settings["img"]["dir"]     = "./Dispense/pics/"; //without the trailing slash!
$settings["img"]["url_dir"]     = "Dispense/pics/"; //without the leading or trailing slash!
$settings["img"]["ext"]     = array("jpg", "bmp", "png", "gif");
$settings["img"]["type"]     = 2; //1 => file browser, 2 => image browser
$settings["media"]["dir"]     = "./Dispense/files/"; //without the trailing slash!
$settings["media"]["url_dir"]     = "Dispense/files/"; //without the leading or trailing slash!
$settings["media"]["ext"]     = array("swf");
$settings["media"]["type"]     = 1; //1 => file browser, 2 => image browser

//what file to include for reading and displaying of directories and files
$types[1] = "file_manager/file_browser_include.php";
$types[2] = "file_manager/image_browser_include.php";

//which language file to use
include("file_manager/lang/lang_eng.php");

//which images to use
$delete_image         = "file_manager/x.png";
$folder_small_image     = "file_manager/folder_small.png";
$file_small_image     = "file_manager/file_small.png";
$folder_large_image     = "file_manager/folder_large.png";

//custom configuration from here on ..
//image browser configuration
$dir_width     = "96px";
$file_width     = "96px";
?>
 

nicemotion

Nuovo Utente
6 Feb 2010
17
1
3
file_manager_disp.php

PHP:
<?php require "auth.php" ?>
<?php
//TODO it woudn't be bad to check for admin rights here ;)
set_time_limit(0);
ini_set("max_input_time", "600");
ini_set("max_execution_time", "600");
ini_set("memory_limit", "104857600");
ini_set("upload_max_filesize", "104857600");
ini_set("post_max_size", "104857600");

require("file_manager_config_disp.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $strings["title"]; ?></title>

<link href="file_manager/styles.css" rel="stylesheet" type="text/css">
<?php
require("file_manager/utils.php");
if (isSet($_REQUEST["type"])) {
    $type = $_REQUEST["type"];
}
else {
    $type = -2;
}
$default_dir = ".";
$ext = array("*");
$url_dir = "";
if ($type != -2) {
    if (isSet($settings[$type])) {
        $default_dir = $settings[$type]["dir"];
        $url_dir = $settings[$type]["url_dir"];
        $ext = $settings[$type]["ext"];
    }
}

if (!isSet($_REQUEST["dir"]) || strlen($_REQUEST["dir"]) == 0) {
    $dir = $default_dir;
    $requested_dir = "";
}
else {
    $requested_dir = $_REQUEST["dir"] . "/";
    $dir = $default_dir . "/" . $requested_dir;
}
if (strpos($dir, "..") > 0) //'..' in our path is a big no-no
    $dir = $default_dir;

if (isSet($_REQUEST["action"]))
{
    if ($_REQUEST["action"] == "upload_file")
    {
        $filename = $default_dir . $requested_dir . basename($_FILES["uploaded_file"]["name"]);
        if (file_exists($filename))
            $filename = $default_dir . "/" . $requested_dir . rand() . "_" . basename($_FILES["uploaded_file"]["name"]);
        if (move_uploaded_file($_FILES["uploaded_file"]["tmp_name"], $filename))
            echo "<!-- file upload successful -->\n";
    }
    else if ($_REQUEST["action"] == "create_dir")
    {
        if (@mkdir($default_dir . "/" . $requested_dir . $_REQUEST["dir_name"]) === FALSE)
            echo "<!-- creation of directory failed! -->\n";
        else
            echo "<!-- directory created successfully -->\n";
    }
    else if ($_REQUEST["action"] == "delete_folder" || $_REQUEST["action"] == "delete_file")
    {
        @rmdirr($_REQUEST["item_name"]);
    }
}
?>
<script>
function fileSelected(filename) {
    //let our opener know what we want
    window.top.opener.my_win.document.getElementById(window.top.opener.my_field).value = "<?php echo $url_dir; ?>" + filename;
    window.top.opener.my_win.document.getElementById(window.top.opener.my_field).onchange();
    //we close ourself, cause we don't need us anymore ;)
    window.close();
}
function switchDivs() {
    document.getElementById("upload_div").style.display = "none";
    document.getElementById("uploading_div").style.display = "block";
    return true;
}
function onResize()
{
    var div = document.getElementById("main_content");

    var td = document.getElementById("td_main");
    var style = getComputedStyle(td, null);
    window.status = style.height;

    div.style.height = style.height - 20;
}
window.onresize = onResize;
onResize();
</script>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="0" width="100%" height="100%">
<tr>
<td class="td_curr_dir" colspan="2"><b><?php echo $strings["curr_dir"]; ?></b><br><?php
if (strlen($requested_dir) > 0)
{
    $requested_dirs = explode("/", $requested_dir);
    $tmp_dirs = "";
    foreach ($requested_dirs AS $tmp_dir)
    {
        if ($tmp_dir != "")
        {
            if ($tmp_dirs == "")
                echo "<a class='back' href='?type=" . $type . "'>/</a>";
            else
                echo "/";
                
            $tmp_dirs .= $tmp_dir . "/";
            if ($requested_dir == $tmp_dirs)
                echo $tmp_dir;
            else
                echo "<a class='back' href='?type=" . $type . "&dir=" . $tmp_dirs . "'>" . $tmp_dir . "</a>";
        }
    }
}
else
    echo "&nbsp;";
?></td>
</tr>
<tr>
<td align="left" class="td_back">
<?php
if (strlen($requested_dir) > 0) {
    $last_pos = strrpos(substr($requested_dir, 0, strlen($requested_dir)-1), "/");
    $prev_dir = "";
    if ($last_pos !== FALSE && $last_pos > 0)
        $prev_dir = substr($requested_dir, 0, $last_pos);
    ?>
    <a class="back" href="?type=<?php echo $type; ?>&dir=<?php echo $prev_dir; ?>"><< <?php echo $strings["back"]; ?></a>
    <?php
}
?>
</td>
<td align="right" class="td_close"><a class="close" href="javascript: window.close();"><?php echo $strings["close"]; ?></a></td>
</tr>
<tr>
<td colspan="2" id="td_main" class="td_main" height="100%" valign="top">
<?php
$dh  = opendir($dir);
while (false !== ($filename = readdir($dh))) {
    if ($filename != "." && $filename != "..") {
        if (is_dir($dir . "/" . $filename)) {
            $dirs[] = $filename;
        }
        else {
            if (sizeof($ext) > 0) {
                for ($i=0;$i<sizeof($ext);$i++) {
                    if ($ext[$i] == "*" || (strtolower($ext[$i]) == strtolower(substr($filename, -strlen($ext[$i]))))) {
                        $files[] = $filename;
                        break;
                    }
                }
            }
            else {
                $files[] = $filename;
            }
        }
    }
}

?>
<div id="main_content" class="main_content">
<?php  include($types[$settings[$type]["type"]]);  ?>
</div>
</td>
</tr>
<tr>
<td valign="top">
    <form method="post">
        <?php echo $strings["create_dir"]; ?>
        <input type="hidden" name="action" value="create_dir">
        <input type="text" name="dir_name">
        <input type="submit" value="<?php echo $strings["create_dir_submit"]; ?>">
    </form>
</td>
<td valign="top">
    <div id="upload_div" style="display: block;">
    <form method="post" enctype="multipart/form-data" onSubmit="switchDivs();">
        <?php echo $strings["upload_file"]; ?>
        <input type="hidden" name="action" value="upload_file">
        <input type="hidden" name="MAX_FILE_SIZE" value="104857600" /> <!-- ~100mb -->
        <input type="file" name="uploaded_file">
        <input type="submit" value="<?php echo $strings["upload_file_submit"]; ?>">
    </form>
    </div>
    <div id="uploading_div" style="display: none;">
    <?php echo $strings["sending"]; ?>
    </div>
</td>
</tr>
</table>
<script>
function delete_folder(dir_name)
{
    document.getElementById("hidden_action").value = "delete_folder";
    document.getElementById("hidden_item_name").value = "<?php echo $dir . "/"; ?>" + dir_name;
    document.getElementById("hidden_form").submit();
}
function delete_file(file_name)
{
    document.getElementById("hidden_action").value = "delete_file";
    document.getElementById("hidden_item_name").value = "<?php echo $dir . "/"; ?>" + file_name;
    document.getElementById("hidden_form").submit();
}
</script>
<div style="display: none;">
    <form method="post" id="hidden_form">
    <input type="hidden" name="action" id="hidden_action" value="">
    <input type="hidden" name="item_name" id="hidden_item_name" value="">
    </form>
</div>
</body>
</html>
 

nicemotion

Nuovo Utente
6 Feb 2010
17
1
3
Ops scusa, ignora i php _disp che sono copie che ho fatto per gestire situazioni particolari...

i file coinvolti sono file_manager_config.php (sopra) e

file_manager.php

PHP:
<?php require "auth.php" ?>
<?php
//TODO it woudn't be bad to check for admin rights here ;)
set_time_limit(0);
ini_set("max_input_time", "600");
ini_set("max_execution_time", "600");
ini_set("memory_limit", "104857600");
ini_set("upload_max_filesize", "104857600");
ini_set("post_max_size", "104857600");

require("file_manager_config.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $strings["title"]; ?></title>

<link href="file_manager/styles.css" rel="stylesheet" type="text/css">
<?php
require("file_manager/utils.php");
if (isSet($_REQUEST["type"])) {
    $type = $_REQUEST["type"];
}
else {
    $type = -2;
}
$default_dir = ".";
$ext = array("*");
$url_dir = "";
if ($type != -2) {
    if (isSet($settings[$type])) {
        $default_dir = $settings[$type]["dir"];
        $url_dir = $settings[$type]["url_dir"];
        $ext = $settings[$type]["ext"];
    }
}

if (!isSet($_REQUEST["dir"]) || strlen($_REQUEST["dir"]) == 0) {
    $dir = $default_dir;
    $requested_dir = "";
}
else {
    $requested_dir = $_REQUEST["dir"] . "/";
    $dir = $default_dir . "/" . $requested_dir;
}
if (strpos($dir, "..") > 0) //'..' in our path is a big no-no
    $dir = $default_dir;

if (isSet($_REQUEST["action"]))
{
    if ($_REQUEST["action"] == "upload_file")
    {
        $filename = $default_dir . $requested_dir . basename($_FILES["uploaded_file"]["name"]);
        if (file_exists($filename))
            $filename = $default_dir . "/" . $requested_dir . rand() . "_" . basename($_FILES["uploaded_file"]["name"]);
        if (move_uploaded_file($_FILES["uploaded_file"]["tmp_name"], $filename))
            echo "<!-- file upload successful -->\n";
    }
    else if ($_REQUEST["action"] == "create_dir")
    {
        if (@mkdir($default_dir . "/" . $requested_dir . $_REQUEST["dir_name"]) === FALSE)
            echo "<!-- creation of directory failed! -->\n";
        else
            echo "<!-- directory created successfully -->\n";
    }
    else if ($_REQUEST["action"] == "delete_folder" || $_REQUEST["action"] == "delete_file")
    {
        @rmdirr($_REQUEST["item_name"]);
    }
}
?>
<script>
function fileSelected(filename) {
    //let our opener know what we want
    window.top.opener.my_win.document.getElementById(window.top.opener.my_field).value = "<?php echo $url_dir; ?>" + filename;
    window.top.opener.my_win.document.getElementById(window.top.opener.my_field).onchange();
    //we close ourself, cause we don't need us anymore ;)
    window.close();
}
function switchDivs() {
    document.getElementById("upload_div").style.display = "none";
    document.getElementById("uploading_div").style.display = "block";
    return true;
}
function onResize()
{
    var div = document.getElementById("main_content");

    var td = document.getElementById("td_main");
    var style = getComputedStyle(td, null);
    window.status = style.height;

    div.style.height = style.height - 20;
}
window.onresize = onResize;
onResize();
</script>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="0" width="100%" height="100%">
<tr>
<td class="td_curr_dir" colspan="2"><b><?php echo $strings["curr_dir"]; ?></b><br><?php
if (strlen($requested_dir) > 0)
{
    $requested_dirs = explode("/", $requested_dir);
    $tmp_dirs = "";
    foreach ($requested_dirs AS $tmp_dir)
    {
        if ($tmp_dir != "")
        {
            if ($tmp_dirs == "")
                echo "<a class='back' href='?type=" . $type . "'>/</a>";
            else
                echo "/";
                
            $tmp_dirs .= $tmp_dir . "/";
            if ($requested_dir == $tmp_dirs)
                echo $tmp_dir;
            else
                echo "<a class='back' href='?type=" . $type . "&dir=" . $tmp_dirs . "'>" . $tmp_dir . "</a>";
        }
    }
}
else
    echo "&nbsp;";
?></td>
</tr>
<tr>
<td align="left" class="td_back">
<?php
if (strlen($requested_dir) > 0) {
    $last_pos = strrpos(substr($requested_dir, 0, strlen($requested_dir)-1), "/");
    $prev_dir = "";
    if ($last_pos !== FALSE && $last_pos > 0)
        $prev_dir = substr($requested_dir, 0, $last_pos);
    ?>
    <a class="back" href="?type=<?php echo $type; ?>&dir=<?php echo $prev_dir; ?>"><< <?php echo $strings["back"]; ?></a>
    <?php
}
?>
</td>
<td align="right" class="td_close"><a class="close" href="javascript: window.close();"><?php echo $strings["close"]; ?></a></td>
</tr>
<tr>
<td colspan="2" id="td_main" class="td_main" height="100%" valign="top">
<?php
$dh  = opendir($dir);
while (false !== ($filename = readdir($dh))) {
    if ($filename != "." && $filename != "..") {
        if (is_dir($dir . "/" . $filename)) {
            $dirs[] = $filename;
        }
        else {
            if (sizeof($ext) > 0) {
                for ($i=0;$i<sizeof($ext);$i++) {
                    if ($ext[$i] == "*" || (strtolower($ext[$i]) == strtolower(substr($filename, -strlen($ext[$i]))))) {
                        $files[] = $filename;
                        break;
                    }
                }
            }
            else {
                $files[] = $filename;
            }
        }
    }
}

?>
<div id="main_content" class="main_content">
<?php  include($types[$settings[$type]["type"]]);  ?>
</div>
</td>
</tr>
<tr>
<td valign="top">
    <form method="post">
        <?php echo $strings["create_dir"]; ?>
        <input type="hidden" name="action" value="create_dir">
        <input type="text" name="dir_name">
        <input type="submit" value="<?php echo $strings["create_dir_submit"]; ?>">
    </form>
</td>
<td valign="top">
    <div id="upload_div" style="display: block;">
    <form method="post" enctype="multipart/form-data" onSubmit="switchDivs();">
        <?php echo $strings["upload_file"]; ?>
        <input type="hidden" name="action" value="upload_file">
        <input type="hidden" name="MAX_FILE_SIZE" value="104857600" /> <!-- ~100mb -->
        <input type="file" name="uploaded_file">
        <input type="submit" value="<?php echo $strings["upload_file_submit"]; ?>">
    </form>
    </div>
    <div id="uploading_div" style="display: none;">
    <?php echo $strings["sending"]; ?>
    </div>
</td>
</tr>
</table>
<script>
/* Funzioni per eliminare folder disabilitata
function delete_folder(dir_name)
{
    document.getElementById("hidden_action").value = "delete_folder";
    document.getElementById("hidden_item_name").value = "<?php echo $dir . "/"; ?>" + dir_name;
    document.getElementById("hidden_form").submit();
}
*/
function delete_file(file_name)
{
    document.getElementById("hidden_action").value = "delete_file";
    document.getElementById("hidden_item_name").value = "<?php echo $dir . "/"; ?>" + file_name;
    document.getElementById("hidden_form").submit();
}
</script>
<div style="display: none;">
    <form method="post" id="hidden_form">
    <input type="hidden" name="action" id="hidden_action" value="">
    <input type="hidden" name="item_name" id="hidden_item_name" value="">
    </form>
</div>
</body>
</html>
 

nicemotion

Nuovo Utente
6 Feb 2010
17
1
3
posto anche il il file utils.php richiesto nel file_manager:

PHP:
<?php
    function rmdirr($dirname)
    {
        if (!file_exists($dirname))
            return false;

        if (is_file($dirname) || is_link($dirname))
            return unlink($dirname);

        $dir = dir($dirname);
        while (false !== $entry = $dir->read())
        {
            if ($entry == '.' || $entry == '..')
                continue;

            rmdirr($dirname . DIRECTORY_SEPARATOR . $entry);
        }

        $dir->close();
        return rmdir($dirname);
    }
?>
just in case...
 

nicemotion

Nuovo Utente
6 Feb 2010
17
1
3
è il primo che ho postato ma non lo avevo nominato... te lo riscrivo - grazie

file_browser_include.php

PHP:
<?php
for ($i=0;$i<sizeof($dirs);$i++) {
    echo "<a href='#' onClick='delete_folder(\"" . $dirs[$i] . "\")'><img border=0 src='" . $delete_image . "'></a> <img src='" . $folder_small_image . "'> <a class='dir' href='?type=" . $type . "&dir=" . $requested_dir . $dirs[$i] . "'>" . $dirs[$i] . "</a><br>\n";
}
for ($i=0;$i<sizeof($files);$i++) {
    echo "<a href='#' onClick='delete_file(\"" . $files[$i] . "\")'><img border=0 src='" . $delete_image . "'></a> <img src='" . $file_small_image . "'> <a class='file' href='#' onClick='fileSelected(\"" . $requested_dir . $files[$i] . "\");'>" . $files[$i] . "</a><br>\n";
}
?>
 

Tommy03

Utente Attivo
6 Giu 2018
488
49
28
17
Bassano del Grappa (VI)
<?php for ($i=0;$i<sizeof($dirs);$i++) { echo "<a href='#' onClick='delete_folder(\"" . $dirs[$i] . "\")'><img border=0 src='" . $delete_image . "'></a> <img src='" . $folder_small_image . "'> <a class='dir' href='?type=" . $type . "&dir=" . $requested_dir . $dirs[$i] . "'>" . $dirs[$i] . "</a><br>\n"; } for ($i=0;$i<sizeof($files);$i++) { echo "<a href='#' onClick='delete_file(\"" . $files[$i] . "\")'><img border=0 src='" . $delete_image . "'></a> <img src='" . $file_small_image . "'> <a class='file' href='#' onClick='fileSelected(\"" . $requested_dir . $files[$i] . "\");'>" . $files[$i] . "</a><br>\n"; } ?>
il file è solo questo? Senza nessun include degli altri file? Se è cosi è normale che $dirs e $files siano vuoti
 

nicemotion

Nuovo Utente
6 Feb 2010
17
1
3
Intanto grazie ad entrambe per l'attenzione.

quelli sopra sono i files php chiamati, poi c'è il Javascript nelle pagine in cui tinyMCE è inserito che è questo :

JavaScript:
        <script language="javascript" type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
    <script language="javascript" type="text/javascript">
tinyMCE.init({
            mode : "exact",
            elements : "uplodispense",
            theme : "advanced",
            plugins : "contextmenu",
            theme_advanced_buttons1_add_before : "newdocument,separator",
            theme_advanced_buttons1_add : "fontselect,fontsizeselect",
            theme_advanced_buttons2_add : "separator,forecolor,backcolor,liststyle",
            theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,",
            theme_advanced_buttons3_add_before : "tablecontrols,separator",
            theme_advanced_buttons3_add : "flash,advhr,separator,fullscreen",
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            content_css : "Stile/xtiny.css",
            extended_valid_elements : "hr[class|width|size|noshade]",
            file_browser_callback : "fileBrowserCallBack",
            paste_use_dialog : false,
            theme_advanced_resizing : true,
            theme_advanced_resize_horizontal : true,
            apply_source_formatting : true,
            force_br_newlines : true,
            force_p_newlines : false
        });

        function fileBrowserCallBack(field_name, url, type, win) {
            var connector = "../../../file_manager_disp.php";

            my_field = field_name;
            my_win = win;

            switch (type) {
                case "image":
                    connector += "?type=img";
                    break;
                case "media":
                    connector += "?type=media";
                    break;
                case "flash": //for older versions of tinymce
                    connector += "?type=media";
                    break;
                case "file":
                    connector += "?type=files";
                    break;
            }

            window.open(connector, "file_manager", "modal,width=450,height=600,scrollbars=1");
        }
 </script>
 

nicemotion

Nuovo Utente
6 Feb 2010
17
1
3
Ripeto.. sotto php 5 continua a funzionare perfettamente /posso postare anche tiny_mce.js se puo essere di aiuto...
 

nicemotion

Nuovo Utente
6 Feb 2010
17
1
3
Grazie Tommy e Marco - credo di aver mandato tutti i files coinvolti - faccio solo notare che la selezione del file/dir avviene tramite il pulsante di browse... (e ripeto in php 5 funziona tutto)

Ad ogni modo ho deciso che mi scarico l'ultima versione di TinyMCE (https://www.tiny.cloud/features) che sicuramente è compatibile e vado a sostituirla

Ancora grazie

Nik