Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.
Please keep in mind:
gonzalarcon said:of course, the demo has disabled the debug 😛
Rodolfo said:gonzalarcon said:of course, the demo has disabled the debug 😛
Dice... Si pones cualquier cosa al azar en el campo de url remota, no te sale un mensaje de error sino que un warning de PHP y la imagen no es subida.
<?
/* -----------------------------------------
  Chevereto - Script de hosting de imagenes
  Nightly Build 1.4 (25/02/2009)
  http://www.chevereto.com/
  Released under the GPL 2.0
  Copyright (C) 2008 by Rodolfo Berrios
  <inbox at rodolfoberrios dot com>
  ----------------------------------------- */
// Lang
define('LANG', 'en'); // en - English, es - Español, fa - Farsi
define('APP_NAME', 'Godlike');
define('TAG_LINE', 'Image hosting'); 
// Si cambias esto deberas cambiar las carpetas fisicas
define('DIR_UP','up/');
define('DIR_IM','images/');
define('DIR_WORKING',DIR_UP.'working/');
define('DIR_TEMP',DIR_UP.'temp/');
define('DIR_TH','thumbs/');
// Configuraciones de imagenes
$max_mb = '2.0'; // Maximo tamaño de imagen (Mbytes)
$max_by = $max_mb*1048576; // Maximo tamaño de imagen en bytes)
$max_name = '10'; // Caracteres maximos (no incluye ext y ".")
$mini_ancho = '100'; // Ancho del thumb (pixels)
$mini_alto = '100'; // Alto del thumb (pixels)
$lowres = '16'; // Minimo ancho a redimensionar
$higres = '1280'; // Maximo ancho de redimension
// Configuracion espedifica 
$lim_act = true; 
$debug_mode = false;
$cut_url = true; 
$cut_url_user = true; establecer preferencia
$allow_over_resize = false;
$use_ftp = true;
$ftp_host = DOM_SCRIPT;
$ftp_user = '******';
$ftp_pass = '******';
// No editar, salvo problemas
// SERVER
define('DOM_SCRIPT', $_SERVER['SERVER_NAME']);
define('PATH_SERVER', $_SERVER['DOCUMENT_ROOT']);
// PATH
$path = dirname($_SERVER['PHP_SELF']);
if (strlen($path)>1) { 
    define('PATH_SCRIPT', $path.'/');
} else {
    define('PATH_SCRIPT', $path);
}
// URL
define('URL_SCRIPT', 'http://'.DOM_SCRIPT.PATH_SCRIPT);
?>
	gonzalarcon said:use ftp! 🙂