Problema ruta absoluta en spaw2

  • Este debate tiene 0 respuestas, 1 mensaje y ha sido actualizado por última vez el hace 13 años, 8 meses por Anónimo.
Mostrando 0 respuestas a los debates
  • Autor
    Entradas
    • #91956
      Anónimo
      Invitado

      No me funciona el editor spaw2 en el hosting de 1and1, tengo un problema con las rutas.
      El DOCUMENT_ROOT de este hosting es: //homepages/23/d318746926/htdocs/
      y mi dominio (URL)es: http://www.samesa.net

      Todos mis archivos estan en colgados samesa.net, pero al cargar el editor spaw2 los va a buscar a //homepages/23/d318746926/htdocs/… por lo que no los encuentra y no funciona.

      ¿Que debo cambiar la ruta del DOCUMENT_ROOT o el dirname(__FILE__) e indicarle cual el lugar absoluto donde encontrar los archivos (p.e.: //samesa.net/includes/spaw2/config/config.php)? ¿como debo hacerlo?

      He visto que en algunos post hacian referencia a algo similar que les ocurria en este hosting tambien.

      POR FAVOR NECESITO AYUDA URGENTE.

      Os dejo el codigo del config

      ‘Normal’,
      ‘style1’ => ‘Encabezado 1’
      ‘style2’ => ‘Encabezado 2’,
      ‘style3’ => ‘Encabezado 3’,
      ‘style4’ => ‘Párrafo’,
      ‘style5’ => ‘Imagen izda’,
      ‘style6’ => ‘Imagen dcha’,
      )
      );

      // data for style (css class) dropdown in table properties dialog

      SpawConfig::setStaticConfigItem(“table_styles”,

      array(

      ” => ‘Normal’,
      ‘style1’ => ‘Encabezado 1’,
      ‘style2’ => ‘Encabezado 2’,
      ‘style3’ => ‘Encabezado 3’,
      ‘style4’ => ‘Párrafo’,
      ‘style5’ => ‘Imagen izda’,
      ‘style6’ => ‘Imagen dcha’,
      )
      );

      // data for fonts dropdown list

      SpawConfig::setStaticConfigItem(“dropdown_data_core_fontname”,

      array(

      ‘Arial’ => ‘Arial’,
      ‘Courier’ => ‘Courier’,
      ‘Tahoma’ => ‘Tahoma’,
      ‘Times New Roman’ => ‘Times’,
      ‘Verdana’ => ‘Verdana’
      )

      );

      // data for fontsize dropdown list

      SpawConfig::setStaticConfigItem(“dropdown_data_core_fontsize”,

      array(
      ‘1’ => ‘1’,
      ‘2’ => ‘2’,
      ‘3’ => ‘3’,
      ‘4’ => ‘4’,
      ‘5’ => ‘5’,
      ‘6’ => ‘6’
      )
      );

      // data for paragraph dropdown list

      SpawConfig::setStaticConfigItem(“dropdown_data_core_formatBlock”,

      array(

      ‘Normal’ => ‘Normal’,

      ‘ => ‘Heading 1’,

      ‘ => ‘Heading 2’,

      ‘ => ‘Heading 3’,

      ‘ => ‘Heading 4’,

      ‘ => ‘Heading 5’,

      ‘ => ‘Heading 6’
      )
      );

      // data for link targets drodown list in hyperlink dialog

      SpawConfig::setStaticConfigItem(“a_targets”,

      array(
      ‘_self’ => ‘Self’,
      ‘_blank’ => ‘Blank’,
      ‘_top’ => ‘Top’,
      ‘_parent’ => ‘Parent’
      )
      );

      // toolbar sets (should start with “toolbarset_”

      // standard core toolbars

      SpawConfig::setStaticConfigItem(‘toolbarset_standard’,

      array(
      “format” => “format”,
      “style” => “style”,
      “edit” => “edit”,
      “table” => “table”,
      “plugins” => “plugins”,
      “insert” => “insert”,
      “tools” => “tools”
      )
      );

      // all core toolbars

      SpawConfig::setStaticConfigItem(‘toolbarset_all’,
      array(
      “format” => “format”,
      “style” => “style”,
      “edit” => “edit”,
      “table” => “table”,
      “plugins” => “plugins”,
      “insert” => “insert”,
      “tools” => “tools”,
      “font” => “font”
      )
      );

      // mini core toolbars

      SpawConfig::setStaticConfigItem(‘toolbarset_mini’,
      array(
      “format” => “format_mini”,
      “edit” => “edit”,
      “tools” => “tools”
      )
      );

      // SpawFm plugin config:

      // global filemanager settings

      SpawConfig::setStaticConfigItem(
      ‘PG_SPAWFM_SETTINGS’,
      array(
      ‘allow_upload’ => true, // allow uploading new files in directory
      ‘allow_modify’ => true, // allow edit filenames/delete files in directory
      ‘max_upload_filesize’ => 1048576, // max upload file size allowed in bytes, or 0 to ignore
      ‘max_img_width’ => 0, // max uploaded image width allowed, or 0 to ignore
      ‘max_img_height’ => 0, // max uploaded image height allowed, or 0 to ignore
      ‘chmod_to’ => 0755, // change the mode of an uploaded file (like to octal 0777 – see PHP chmod()
      // function description for details), or false to leave default
      ‘allowed_filetypes’ => array(‘images’), // allowed filetypes groups/extensions
      ‘recursive’ => false, // allow using subdirectories
      ‘allow_modify_subdirectories’ => false, // allow renaming/deleting subdirectories
      ‘allow_create_subdirectories’ => false, // allow creating subdirectories
      //’view_mode’ => ‘list’, // directory view mode: list/details/thumbnails – TO DO
      //’thumbnails_enabled’ => true, // enable thumbnails view mode – TO DO
      ),
      SPAW_CFG_TRANSFER_SECURE
      );

      // directories
      SpawConfig::setStaticConfigItem(
      ‘PG_SPAWFM_DIRECTORIES’,
      array(
      // Quitamos la especificacion para carga de flash
      // array(
      // ‘dir’ => SpawConfig::getStaticConfigValue(‘SPAW_DIR’).’uploads/flash/’,
      // ‘caption’ => ‘Flash movies’,
      // ‘params’ => array(
      // ‘allowed_filetypes’ => array(‘flash’)
      // )
      // ),
      array(
      ‘dir’ => SpawConfig::getStaticConfigValue(‘SPAW_DIR’).’uploads/images/’,
      ‘caption’ => ‘Images’,
      ‘params’ => array(
      ‘default_dir’ => true, // set directory as default (optional setting)
      ‘allowed_filetypes’ => array(‘images’)
      )
      ),
      // Quitamos la especificacion para carga de documentos
      // array(
      // ‘dir’ => SpawConfig::getStaticConfigValue(‘SPAW_DIR’).’uploads/files/’,
      // ‘fsdir’ => SpawConfig::getStaticConfigValue(‘DOCUMENT_ROOT’).’spaw/uploads/files/’, // optional absolute physical filesystem path
      // ‘caption’ => ‘Files’,
      // ‘params’ => array(
      // ‘allowed_filetypes’ => array(‘any’)
      // )
      // ),
      ),
      SPAW_CFG_TRANSFER_SECURE
      );
      ?>

      Y ESTE ES EL CODIGO QUE CARGA AL ENTRAR EN LA PAGINA

      * @copyright UAB Solmetra
      */
      require_once(str_replace(‘\\’,’/’,dirname(__FILE__)).’/config/config.php’);
      require_once(str_replace(‘\\’,’/’,dirname(__FILE__)).’/class/editor.class.php’);

      // load plugin configs
      $spaw_pgdir = SpawConfig::getStaticConfigValue(‘SPAW_ROOT’).’plugins/’;
      if (is_dir($spaw_pgdir))
      {
      if ($spaw_dh = opendir($spaw_pgdir))
      {
      while (($spaw_pg = readdir($spaw_dh)) != false)
      {
      if ($spaw_pg != ‘.’ && $spaw_pg != ‘..’)
      {
      if (is_dir($spaw_pgdir.$spaw_pg.’/config’))
      {
      if ($spaw_pgdh = opendir($spaw_pgdir.$spaw_pg.’/config’))
      {
      while (($spaw_fn = readdir($spaw_pgdh)) !== false)
      {
      if ($spaw_fn != ‘.’ && $spaw_fn != ‘..’ && !is_dir($spaw_pgdir.$spaw_pg.’/config/’.$spaw_fn))
      include($spaw_pgdir.$spaw_pg.’/config/’.$spaw_fn);
      }
      closedir($spaw_pgdh);
      }
      }
      }
      }
      closedir($spaw_dh);
      }
      }
      ?>

Mostrando 0 respuestas a los debates
  • El foro ‘Templates Joomla 1.5’ está cerrado y no se permiten nuevos debates ni respuestas.
Esta web utiliza cookies propias y de terceros para su correcto funcionamiento y para fines analíticos y para mostrarte publicidad relacionada con sus preferencias en base a un perfil elaborado a partir de tus hábitos de navegación. Al hacer clic en el botón Aceptar, acepta el uso de estas tecnologías y el procesamiento de tus datos para estos propósitos. Ver
Privacidad