FCKeditor - immer wieder ein Grund zur Freude!

Thema wurde von Manni_HB, 29. Juli 2013 erstellt.

  1. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
    Da gibt es wohl eine Lösung: http://ckeditor.com/comment/39960#comment-39960

    Werde ich morgen aktivieren.
     
  2. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89

    Anhänge:

  3. Manni_HB

    Manni_HB G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    9.098
    Danke erhalten:
    1.540
    Danke vergeben:
    909
    Ort:
    Bremen
    Upps: "Upload folder doesn't exist or $uploadpath in config.php is set wrong!" :confused:
     
  4. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
    Dann müssen wir mal ein wenig debuggen....

    Ersetze "admin\gm\ckeditor\pdw_file_browser\config.php" mit

    PHP:
    <?php
    /*
    PDW File Browser v1.3 beta
    Date: October 19, 2010
    Url: http://www.neele.name

    Copyright (c) 2010 Guido Neele

    Copyright (c) 2013 Avenger, entwicklung@powertemplate.de
    Adapt for CKEDITOR for Gambio GX2 

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    */

    error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT);
    if(!isset(
    $_SESSION)){ session_start();}  

    /*
     * Uncomment lines below to enable PHP error reporting and displaying PHP errors.
     * Do not do this on a production server. Might be helpful when debugging why PDW File Browser
     * does not work as expected.
     */
    // error_reporting(E_ALL);
    // ini_set('display_errors', 1);


    /**
     * WARNING: You should do your authorization checking right here. config.php is included 
     * in every file so checking it here is securing the whole plug-in. By not checking for 
     * authorization you are allowing "anyone" to upload and list the files in your server. 
     * You must implement some kind of session validation here. You could do something like...
     *
     * if (!(isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'])){
     *      die("You are not authorized!");
     * }
     *
     * ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the user logs in to your system.
    **/

    /*
     * UPLOAD PATH
     * 
     * absolute path from root to upload folder (DON'T FORGET SLASHES)
     *
     * Example 
     * ---------------------------------------
     * http://www.domain.com/images/upload/
     * $uploadpath = '/images/upload/';
     *
     */
    //$uploadpath = "/path/to/upload/folder/"; // absolute path from root to upload folder (DON'T FORGET SLASHES)
    //Avenger
    //$uploadpath = HTTP_SERVER.DIR_WS_CATALOG.DIR_WS_IMAGES.'original_images/'; // absolute path from root to upload folder (DON'T FORGET SLASHES)
    $uploadpath DIR_WS_CATALOG_IMAGES// absolute path from root to upload folder (DON'T FORGET SLASHES)
    //$uploadpath = DIR_WS_CATALOG_ORIGINAL_IMAGES; // absolute path from root to upload folder (DON'T FORGET SLASHES)
    echo __FILE__." -- uploadpath 1='$uploadpath'<br>";
    if (
    DIR_WS_CATALOG<>'/' && strpos($uploadpath,DIR_WS_CATALOG)===false)
    {
      
    $uploadpath DIR_WS_CATALOG.$uploadpath;
    }
    echo 
    __FILE__." -- uploadpath 2='$uploadpath'<br>";
    //Avenger
    /*
     * DEFAULT TIMEZONE
     * 
     * If you use PHP 5 then set default timezone to avoid any date errors. 
     * 
     * Select the timezone you are in.
     *
     * Timezones to select from are http://nl3.php.net/manual/en/timezones.php
     *
     */
    //Avenger
    date_default_timezone_set('Europe/Berlin');
    //Avenger

    /*
     * VIEW LAYOUT
     *
     * Set the default view layout when the file browser is first loaded
     *
     * Your options are: 'large_images', 'small_images', 'list', 'content', 'tiles' and 'details'
     *
     */
    $viewLayout 'large_images';

    /*
     * DEFAULT LANGUAGE
     * 
     * Set default language to load when &language=? is not included in url
     *
     * See lang directory for included languages. For now your options are 'en' and 'nl'
     * But you are free to translate the language files in the /lang/ directory. Copy the
     * en.php file and translate the lines after the =>
     *
     */
    //Avenger
    //$defaultLanguage = 'en';
    $defaultLanguage 'de';
    //Avenger

    /*
     * ALLOWED ACTIONS
     * 
     * Set an action to FALSE to prevent execution.
     * Buttons will be removed from UI when an action is set to FALSE.
     * 
     */
    $allowedActions = array(
      
    'upload' => TRUE,
      
    'settings' => TRUE,
      
    'cut_paste' => TRUE,
      
    'copy_paste' => TRUE,
      
    'rename' => TRUE,
      
    'delete' => TRUE,
      
    'create_folder' => TRUE
    ); 

    /*
     * PDW File Browser depends on $_SERVER['DOCUMENT_ROOT'] to resolve path/filenames. This value is usually
     * correct, but has been known to be broken on some servers. This value allows you to override the default
     * value.
     * Do not modify from the auto-detect default value unless you are having problems.
     */
    //define('DOCUMENTROOT', '/home/httpd/httpdocs');
    //define('DOCUMENTROOT', 'c:\\webroot\\example.com\\www');
    //define('DOCUMENTROOT', $_SERVER['DOCUMENT_ROOT']);
    //define('DOCUMENTROOT', realpath((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace(DIRECTORY_SEPARATOR, '/', realpath('.')))));
    define('DOCUMENTROOT'realpath((getenv('DOCUMENT_ROOT') && preg_match('#^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))).'#'realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), ''str_replace(DIRECTORY_SEPARATOR'/'dirname(__FILE__)))));

    /*
     * CUSTOM FILTERS
     * 
     * If you like to use custom filters then remove "//" to add your own filters.
     * "name of filter" => ".extension1|.extension2"
     */
    //$customFilters = array(
    //    "MS Office Documents (Custom filter)" => ".doc|.docx|.xsl|.xlsx|.ppt|.pptx",
    //    "PDF-Documents (Custom filter)" => ".pdf"
    //);

    /*
     * DEFAULT SKIN
     * 
     * Take a look inside the /skin/ folder to see which skins are available. If you leave the "//"
     * then redmond (Windows 7 like) will be the default theme.
     */
    //$defaultSkin="mountainview";



    /*
     * EDITOR
     * 
     * Which editor are we dealing with? PDW File Browser can be used with TinyMCE and CKEditor.
     */
    //$editor = isset($_GET["editor"]) ? $_GET["editor"] : ''; // If you want to use the file browser for both editors and/or standalone
    //$editor="tinymce";
    //Avenger
    $editor="ckeditor";
    //Avenger
    //$editor="standalone";


    /*
     * UPLOAD SETTINGS
     * 
     */
    // Maximum file size
    $max_file_size_in_bytes 1048576// 1MB in bytes
    //Avenger
    $max_file_size_in_bytes*=500;   //500 MB
    //Avenger

    // Characters allowed in the file name (in a Regular Expression format)               
    $valid_chars_regex '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-';

    // Allowed file extensions
    // Remove an extension if you don't want to allow those files to be uploaded.
    //$extension_whitelist = "7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip";
    $extension_whitelist "asf,avi,bmp,fla,flv,gif,jpeg,jpg,mov,mpeg,mpg,png,tif,tiff,wmv"// Images, video and flash only
    //Avenger
    $extension_whitelist "pdf,zip,gz,bz,doc,docx,txt";
    //Avenger


    /*
     * RETURN LINKS AS ABSOLUTE OR ABSOLUTE WITHOUT HOSTNAME
     *
     * Ex. http://www.example.com/upload/file.jpg instead of /upload/file.jpg 
     */
    $absolute_url FALSE// When FALSE url will be returned absolute without hostname, like /upload/file.jpg.
    $absolute_url_disabled FALSE// When TRUE changing from absolute to relative is not possible.







    //--------------------------DON'T EDIT BEYOND THIS LINE ----------------------------------









    define('STARTINGPATH'DOCUMENTROOT $uploadpath); //DON'T EDIT

    //Check if upload folder exists
    if(!@is_dir(STARTINGPATH)) die("Upload folder '$uploadpath' doesn't exist or $uploadpath in config.php is set wrong!");

    //Check if editor is set
    if(!isset($editor)) die('The variable $editor in config.php is not set!');
    // Figure out which language file to load
    if(!empty($_REQUEST['language'])) {
      
    $language $_REQUEST['language'];
    } elseif (isset(
    $_SESSION['ckeditor_filemanager_language'])) {
      
    $language $_SESSION['ckeditor_filemanager_language'];
    } else {
      
    $language $defaultLanguage;
    }

    require_once(
    "lang/".$language.".php");
    $_SESSION['ckeditor_filemanager_language'] = $language;

    // Get local settings from language file
    $datetimeFormat $lang["datetime format"];        // 24 hours, AM/PM, etc...
    $dec_seperator $lang["decimal seperator"];       // character in front of the decimals
    $thousands_separator $lang["thousands separator"];  // character between every group of thousands


    // Check post_max_size (http://us3.php.net/manual/en/features.file-upload.php#73762)
    function let_to_num($v){ //This function transforms the php.ini notation for numbers (like '2M') to an integer (2*1024*1024 in this case)
        
    $l substr($v, -1);
        
    $ret substr($v0, -1);
        switch(
    strtoupper($l)){
            case 
    'P'$ret *= 1024;
            case 
    'T'$ret *= 1024;
            case 
    'G'$ret *= 1024;
            case 
    'M'$ret *= 1024;
            case 
    'K'$ret *= 1024;
            break;
        }
        return 
    $ret;
    }

    $max_upload_size min(let_to_num(ini_get('post_max_size')), let_to_num(ini_get('upload_max_filesize')));

    if (
    $max_file_size_in_bytes $max_upload_size) {
        
    $max_file_size_in_bytes $max_upload_size;
    }
    ?>
     
  5. Manni_HB

    Manni_HB G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    9.098
    Danke erhalten:
    1.540
    Danke vergeben:
    909
    Ort:
    Bremen
    /www/htdocs/xxxxxxx/yyyyyyyyy/admin/gm/ckeditor/pdw_file_browser/config.php -- uploadpath 1='DIR_WS_CATALOG_IMAGES'
    /www/htdocs/xxxxxxxx/yyyyyyyy/admin/gm/ckeditor/pdw_file_browser/config.php -- uploadpath 2='DIR_WS_CATALOG_IMAGES'
    Upload folder 'DIR_WS_CATALOG_IMAGES' doesn't exist or DIR_WS_CATALOG_IMAGES in config.php is set wrong!
     
  6. Manni_HB

    Manni_HB G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    9.098
    Danke erhalten:
    1.540
    Danke vergeben:
    909
    Ort:
    Bremen
    Der löst die Konstanten nicht auf - kann das sein?
     
  7. Manni_HB

    Manni_HB G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    9.098
    Danke erhalten:
    1.540
    Danke vergeben:
    909
    Ort:
    Bremen
    Hau mal in die Config dies:
    include('../../../includes/configure.php');
     
  8. Manni_HB

    Manni_HB G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    9.098
    Danke erhalten:
    1.540
    Danke vergeben:
    909
    Ort:
    Bremen
    Nur für starke Nerven .... Filebrowser mit Vorschaubilder! :cool:


    Ich bin ruhig ... ganz ruhig! :mad:
     

    Anhänge:

  9. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
    Ja, so geht es.....

    Liegt daran, dass meine Shops etwas anders strukturiert sind....

    Probiere mal diese Variante...

    PHP:
    <?php
    /*
    PDW File Browser v1.3 beta
    Date: October 19, 2010
    Url: http://www.neele.name

    Copyright (c) 2010 Guido Neele

    Copyright (c) 2013 Avenger, entwicklung@powertemplate.de
    Adapt for CKEDITOR for Gambio GX2 

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    */

    error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT);
    if(!isset(
    $_SESSION)){ session_start();}  

    /*
     * Uncomment lines below to enable PHP error reporting and displaying PHP errors.
     * Do not do this on a production server. Might be helpful when debugging why PDW File Browser
     * does not work as expected.
     */
    // error_reporting(E_ALL);
    // ini_set('display_errors', 1);


    /**
     * WARNING: You should do your authorization checking right here. config.php is included 
     * in every file so checking it here is securing the whole plug-in. By not checking for 
     * authorization you are allowing "anyone" to upload and list the files in your server. 
     * You must implement some kind of session validation here. You could do something like...
     *
     * if (!(isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'])){
     *      die("You are not authorized!");
     * }
     *
     * ... where $_SESSION['IsAuthorized'] is set to "true" as soon as the user logs in to your system.
    **/

    /*
     * UPLOAD PATH
     * 
     * absolute path from root to upload folder (DON'T FORGET SLASHES)
     *
     * Example 
     * ---------------------------------------
     * http://www.domain.com/images/upload/
     * $uploadpath = '/images/upload/';
     *
     */
    //$uploadpath = "/path/to/upload/folder/"; // absolute path from root to upload folder (DON'T FORGET SLASHES)
    //Avenger
    if (!defined('DIR_WS_CATALOG'))
    {
      
    $file='../../../includes/configure.php';  //Gambio GX admin/includes/configure.php
      
    if (file_exists($file))
      {
        include(
    $file);
      }
    }
    //$uploadpath = HTTP_SERVER.DIR_WS_CATALOG.DIR_WS_IMAGES.'original_images/'; // absolute path from root to upload folder (DON'T FORGET SLASHES)
    $uploadpath DIR_WS_CATALOG_IMAGES// absolute path from root to upload folder (DON'T FORGET SLASHES)
    //$uploadpath = DIR_WS_CATALOG_ORIGINAL_IMAGES; // absolute path from root to upload folder (DON'T FORGET SLASHES)
    //echo __FILE__." -- uploadpath 1='$uploadpath'<br>";
    if (DIR_WS_CATALOG<>'/' && strpos($uploadpath,DIR_WS_CATALOG)===false)
    {
      
    $uploadpath DIR_WS_CATALOG.$uploadpath;
    }
    //echo __FILE__." -- uploadpath 2='$uploadpath'<br>";
    //Avenger
    /*
     * DEFAULT TIMEZONE
     * 
     * If you use PHP 5 then set default timezone to avoid any date errors. 
     * 
     * Select the timezone you are in.
     *
     * Timezones to select from are http://nl3.php.net/manual/en/timezones.php
     *
     */
    //Avenger
    date_default_timezone_set('Europe/Berlin');
    //Avenger

    /*
     * VIEW LAYOUT
     *
     * Set the default view layout when the file browser is first loaded
     *
     * Your options are: 'large_images', 'small_images', 'list', 'content', 'tiles' and 'details'
     *
     */
    $viewLayout 'large_images';

    /*
     * DEFAULT LANGUAGE
     * 
     * Set default language to load when &language=? is not included in url
     *
     * See lang directory for included languages. For now your options are 'en' and 'nl'
     * But you are free to translate the language files in the /lang/ directory. Copy the
     * en.php file and translate the lines after the =>
     *
     */
    //Avenger
    //$defaultLanguage = 'en';
    $defaultLanguage 'de';
    //Avenger

    /*
     * ALLOWED ACTIONS
     * 
     * Set an action to FALSE to prevent execution.
     * Buttons will be removed from UI when an action is set to FALSE.
     * 
     */
    $allowedActions = array(
      
    'upload' => TRUE,
      
    'settings' => TRUE,
      
    'cut_paste' => TRUE,
      
    'copy_paste' => TRUE,
      
    'rename' => TRUE,
      
    'delete' => TRUE,
      
    'create_folder' => TRUE
    ); 

    /*
     * PDW File Browser depends on $_SERVER['DOCUMENT_ROOT'] to resolve path/filenames. This value is usually
     * correct, but has been known to be broken on some servers. This value allows you to override the default
     * value.
     * Do not modify from the auto-detect default value unless you are having problems.
     */
    //define('DOCUMENTROOT', '/home/httpd/httpdocs');
    //define('DOCUMENTROOT', 'c:\\webroot\\example.com\\www');
    //define('DOCUMENTROOT', $_SERVER['DOCUMENT_ROOT']);
    //define('DOCUMENTROOT', realpath((@$_SERVER['DOCUMENT_ROOT'] && file_exists(@$_SERVER['DOCUMENT_ROOT'].$_SERVER['PHP_SELF'])) ? $_SERVER['DOCUMENT_ROOT'] : str_replace(dirname(@$_SERVER['PHP_SELF']), '', str_replace(DIRECTORY_SEPARATOR, '/', realpath('.')))));
    define('DOCUMENTROOT'realpath((getenv('DOCUMENT_ROOT') && preg_match('#^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))).'#'realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER['PHP_SELF']), ''str_replace(DIRECTORY_SEPARATOR'/'dirname(__FILE__)))));

    /*
     * CUSTOM FILTERS
     * 
     * If you like to use custom filters then remove "//" to add your own filters.
     * "name of filter" => ".extension1|.extension2"
     */
    //$customFilters = array(
    //    "MS Office Documents (Custom filter)" => ".doc|.docx|.xsl|.xlsx|.ppt|.pptx",
    //    "PDF-Documents (Custom filter)" => ".pdf"
    //);

    /*
     * DEFAULT SKIN
     * 
     * Take a look inside the /skin/ folder to see which skins are available. If you leave the "//"
     * then redmond (Windows 7 like) will be the default theme.
     */
    //$defaultSkin="mountainview";



    /*
     * EDITOR
     * 
     * Which editor are we dealing with? PDW File Browser can be used with TinyMCE and CKEditor.
     */
    //$editor = isset($_GET["editor"]) ? $_GET["editor"] : ''; // If you want to use the file browser for both editors and/or standalone
    //$editor="tinymce";
    //Avenger
    $editor="ckeditor";
    //Avenger
    //$editor="standalone";


    /*
     * UPLOAD SETTINGS
     * 
     */
    // Maximum file size
    $max_file_size_in_bytes 1048576// 1MB in bytes
    //Avenger
    $max_file_size_in_bytes*=500;   //500 MB
    //Avenger

    // Characters allowed in the file name (in a Regular Expression format)               
    $valid_chars_regex '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-';

    // Allowed file extensions
    // Remove an extension if you don't want to allow those files to be uploaded.
    //$extension_whitelist = "7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip";
    $extension_whitelist "asf,avi,bmp,fla,flv,gif,jpeg,jpg,mov,mpeg,mpg,png,tif,tiff,wmv"// Images, video and flash only
    //Avenger
    $extension_whitelist "pdf,zip,gz,bz,doc,docx,txt";
    //Avenger


    /*
     * RETURN LINKS AS ABSOLUTE OR ABSOLUTE WITHOUT HOSTNAME
     *
     * Ex. http://www.example.com/upload/file.jpg instead of /upload/file.jpg 
     */
    $absolute_url FALSE// When FALSE url will be returned absolute without hostname, like /upload/file.jpg.
    $absolute_url_disabled FALSE// When TRUE changing from absolute to relative is not possible.







    //--------------------------DON'T EDIT BEYOND THIS LINE ----------------------------------









    define('STARTINGPATH'DOCUMENTROOT $uploadpath); //DON'T EDIT

    //Check if upload folder exists
    if(!@is_dir(STARTINGPATH)) die("Upload folder '$uploadpath' doesn't exist or $uploadpath in config.php is set wrong!");

    //Check if editor is set
    if(!isset($editor)) die('The variable $editor in config.php is not set!');
    // Figure out which language file to load
    if(!empty($_REQUEST['language'])) {
      
    $language $_REQUEST['language'];
    } elseif (isset(
    $_SESSION['ckeditor_filemanager_language'])) {
      
    $language $_SESSION['ckeditor_filemanager_language'];
    } else {
      
    $language $defaultLanguage;
    }

    require_once(
    "lang/".$language.".php");
    $_SESSION['ckeditor_filemanager_language'] = $language;

    // Get local settings from language file
    $datetimeFormat $lang["datetime format"];        // 24 hours, AM/PM, etc...
    $dec_seperator $lang["decimal seperator"];       // character in front of the decimals
    $thousands_separator $lang["thousands separator"];  // character between every group of thousands


    // Check post_max_size (http://us3.php.net/manual/en/features.file-upload.php#73762)
    function let_to_num($v){ //This function transforms the php.ini notation for numbers (like '2M') to an integer (2*1024*1024 in this case)
        
    $l substr($v, -1);
        
    $ret substr($v0, -1);
        switch(
    strtoupper($l)){
            case 
    'P'$ret *= 1024;
            case 
    'T'$ret *= 1024;
            case 
    'G'$ret *= 1024;
            case 
    'M'$ret *= 1024;
            case 
    'K'$ret *= 1024;
            break;
        }
        return 
    $ret;
    }

    $max_upload_size min(let_to_num(ini_get('post_max_size')), let_to_num(ini_get('upload_max_filesize')));

    if (
    $max_file_size_in_bytes $max_upload_size) {
        
    $max_file_size_in_bytes $max_upload_size;
    }
    ?>
     
  10. Manni_HB

    Manni_HB G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    9.098
    Danke erhalten:
    1.540
    Danke vergeben:
    909
    Ort:
    Bremen
    Ach nee ... wer hätte das gedacht! :eek::rolleyes:

    Bingo!


    PS: Was hätte das ShopLeben schön sein können! :mad:
     
  11. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
  12. Manni_HB

    Manni_HB G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    9.098
    Danke erhalten:
    1.540
    Danke vergeben:
    909
    Ort:
    Bremen
    Ähm ... wie lade ich Bilder denn hoch :confused:
     
  13. Manni_HB

    Manni_HB G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    9.098
    Danke erhalten:
    1.540
    Danke vergeben:
    909
    Ort:
    Bremen
    Ok ok .. nennt sich "uload" :(


    Aber da müsste wohl noch´n Filter für Bilder ein!?
     

    Anhänge:

  14. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
  15. Anonymous

    Anonymous G-WARD 2015/2016

    Registriert seit:
    20. Februar 2012
    Beiträge:
    8.755
    Danke erhalten:
    1.516
    Danke vergeben:
    1.051
    habe das Teil jetzt im Testshop integriert und gefällt mir sehr gut.

    habe nur das Problem dass die Texte Artikelbeschreibung "weg" sind, da wo sie nicht in einem TAB waren :(
     
  16. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
    Das sollte eigentlich überhaupt keinen Einfluss haben....

    Kannst Du mal das HTML einer solche Artikelbeschreibung posten?
     
  17. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
    Komplett mit allen TABS.
     
  18. Anonymous

    Anonymous G-WARD 2015/2016

    Registriert seit:
    20. Februar 2012
    Beiträge:
    8.755
    Danke erhalten:
    1.516
    Danke vergeben:
    1.051
    Guckst Du hier :):
    HTML:
    <h2><span style="color: rgb(128, 128, 128); "><span style="font-family: Verdana; ">&nbsp;AK47 HOLZLEGE BAMBOO</span></span></h2>
    <br />
    <span style="color: rgb(128, 128, 128); "><span style="font-size: small; "><span style="font-family: Verdana; ">BAMBOO besteht aus einer lackierten Stahl-Bodenplatte und speziell geh&auml;rteten Rundstangen - visuell erscheint BAMBOO dadurch flexibel und leicht. Seine Struktur ist nicht statisch, sie verwandelt und biegt sich durch das aufgelegte Scheitholz und nimmt immer eine andere Gestalt an.<br />
    <br />
    <br />
    <strong>Beschreibung:</strong>
    <ul>
        <li>Made in Italy von AK47</li>
        <li>Stahlplatte mit Stahlstangen</li>
        <li>B/H/T: 45/170/45 cm</li>
        <li>max. empfohlene H&ouml;he Holz: 110 cm, max. Holzgewicht 50 kg</li>
        <li>Gewicht: 19,00 kg</li>
    </ul>
    <br />
    <strong>&Uuml;ber den Hersteller AK47</strong><br />
    <br />
    Ak47 ist das Identifizierungszeichen des Maschinengewehrs entworfen 1947 von Michail Kala&scaron;nikov.<br />
    Die Wahl dieses Namens ist bewusst provokant. <br />
    Die kreativen K&uuml;nstler an Ak47 entwerfen Produkte, die sich einf&uuml;gen, innovativ, wirksam und effizient sind. Die Intuition von Ak47 ist es zu designen und zu produzieren M&ouml;bel-Accessoires welche das Offensichtliche zeigen, wobei aber neue Fragen entstehen.<br />
    <br />
    </span></span></span><br />
    <br />
    hat keine TABS............
     
  19. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
    Das liegt wohl am TAB-Handling von Gambio....

    Die Beschreibung ist nur über die Änderungsfunktion des TAB-Bereichs zugänglich.....

    tab.gif
     
  20. Anonymous

    Anonymous G-WARD 2015/2016

    Registriert seit:
    20. Februar 2012
    Beiträge:
    8.755
    Danke erhalten:
    1.516
    Danke vergeben:
    1.051
    habe ich mir schon gedacht. Habe ja nicht zum 1. Mal Ärger mit Artikelbeschreibungen, wo kein TAB vorhanden ist :(