Jump to content


Photo

Uebimiau-2.7.10-any


  • Faça o login para participar
39 replies to this topic

#1 triko

triko

    Turista

  • Usuários
  • 55 posts
  • Sexo:Não informado
  • Localidade:POA/RS

Posted 15/09/2006, 19:50

Galera, eu tenho o primeiro UebiMiau que lançaram, mas começou a dar muitos problemas e baixei o último.
O problema é que esta última versão é complicada demais para a minha cabeça haha!
Não estou tendo sucesso ao tentar instala-lo, até pq eu não entendo NADA de inglês. :(
Deem uma olhada: http://www.cia2.com/...stall/index.php

Alguém poderia me ajudar com um pequeno tutorial de como eu instalo o UebiMiau?
Tipo...já mandei os arquivos para o servidor, porém não sei como, nem onde configurar o webmail para ele rodar no servidor (linux).

Agradeço a ajuda de todos desde já! (y) :)

ELE ESTA ASSIM:
This script will test your configurations and try to tell you a solution.
All configurations are located in /inc folder and appears as config.*.php

--------------------------------------------------------------------------------

- Testing inc/config.php
(if the script stops here, there are a parse problem with your file, eg you have misstyped some " ou;, try getting a fresh copy and re-editing it)
...PASSED

- Testing your $temporary_directory variable... WARNING 
The path given in $temporary_directory points to a folder inside the main folder
Eg. main folder is /var/html/uebimiau and temp folder is /var/html/uebimiau/tmp
There are security issues using this configuration, please choose a non-shared folder to store temporary files
/var/uebimiau is a good choice

- Testing your PHP version... PASSED

- Testing your memory limits... PASSED

- Testing server installation... WARNING
PHP.ini's safe_mode is on. You may have problems with this configuration


--------------------------------------------------------------------------------

Your system appears to be ready to run UebiMiau.

There are some WARNINGS that should be fixed before you deploy your webmail.

Before you start using, make sure you've correctly configured your $smtp_server
variable. If you will use an external SMTP server, please make sure you will not need a SMTP Authentication. 
In positive case , use the $use_password_for_smtp variable, otherwise you will
receive a "Verify your relay rules" error message while sending mails



To start using your webmail, please delete the /install folder AND CLICK HERE TO CONTINUE

Edição feita por: triko, 15/09/2006, 21:34.

http://www.triko.com.br

#2 .Eduardooo

.Eduardooo
  • Visitantes

Posted 16/09/2006, 14:13

Mude a pasta temporaria do uebimiau e tire o safe mode do PHP...

#3 triko

triko

    Turista

  • Usuários
  • 55 posts
  • Sexo:Não informado
  • Localidade:POA/RS

Posted 17/09/2006, 23:22

Mude a pasta temporaria do uebimiau e tire o safe mode do PHP...


Como assim?
Qual safe mode?
Onde encontro isso?

Quase que deu certo: http://www.cia2.com/email tá faltando pouco hehe!

Valeu!

Edição feita por: triko, 17/09/2006, 23:31.

http://www.triko.com.br

#4 nabss

nabss

    Novato no fórum

  • Usuários
  • 5 posts
  • Sexo:Não informado

Posted 18/09/2006, 00:58

Eu tbm estou com o msm problema......


__________________________________________________________

This script will test your configurations and try to tell you a solution.
All configurations are located in /inc folder and appears as config.*.php

--------------------------------------------------------------------------------

- Testing inc/config.php
(if the script stops here, there are a parse problem with your file, eg you have misstyped some " ou ;, try getting a fresh copy and re-editing it)
...PASSED

- Testing your $temporary_directory variable... WARNING
The path given in $temporary_directory points to a folder inside the main folder
Eg. main folder is /var/html/uebimiau and temp folder is /var/html/uebimiau/tmp
There are security issues using this configuration, please choose a non-shared folder to store temporary files
/var/uebimiau is a good choice

- Testing your PHP version... PASSED

- Testing your memory limits... PASSED

- Testing server installation... PASSED


--------------------------------------------------------------------------------

Your system appears to be ready to run UebiMiau.

There are some WARNINGS that should be fixed before you deploy your webmail.

Before you start using, make sure you've correctly configured your $smtp_server
variable. If you will use an external SMTP server, please make sure you will not need a SMTP Authentication.
In positive case , use the $use_password_for_smtp variable, otherwise you will
receive a "Verify your relay rules" error message while sending mails
____________________________________________________________________

nao consigo resolver, ele fala q pasta do temporary files, esta dentro da pasta principal!!! nao entendi isso, o chmod esta total 777.
o que devo fazer? Obrigado

#5 triko

triko

    Turista

  • Usuários
  • 55 posts
  • Sexo:Não informado
  • Localidade:POA/RS

Posted 18/09/2006, 17:47

O meu tá dando este erro: http://www.cia2.com/email/process.php

ERROR (2): Header may not contain more than a single header, new line detected. (/email/inc/inc.php:156)

E agora?

Abraço!
http://www.triko.com.br

#6 nabss

nabss

    Novato no fórum

  • Usuários
  • 5 posts
  • Sexo:Não informado

Posted 20/09/2006, 18:42

o triko, que vc fez pra nao dar mais problemas no temporary files,,,, eu tenho q criar a pasta fora da raiz q esta o uebimiau instalado no servidor??
me ajude nesso probelma, Valeu.

#7 triko

triko

    Turista

  • Usuários
  • 55 posts
  • Sexo:Não informado
  • Localidade:POA/RS

Posted 21/09/2006, 00:26

É só vc renomear a pasta temp.
Quanto ao meu, eu só não sei onde tá o diabo do safe mode, nem sei oq é isso hehehe :P
http://www.triko.com.br

#8 nabss

nabss

    Novato no fórum

  • Usuários
  • 5 posts
  • Sexo:Não informado

Posted 21/09/2006, 01:38

É só vc renomear a pasta temp.
Quanto ao meu, eu só não sei onde tá o diabo do safe mode, nem sei oq é isso hehehe :P


Mais renomar para que nome?? jah tentei colocar database/, uebimiau/, nenhuma da certo, jah tentei colocar em uma pasta nao compartilhada tbm nao deu certo. Tem uma versao antiga q funciona quase q perfeito, mais ta melhor q essa??? da uma conferida www.inetradio.com.br/teste

agora o 2.7.10 nao consigo resolver, me explique melhor. Obrigado... de uma conferida

http://webmail.inetradio.com.br


valeu!!

#9 triko

triko

    Turista

  • Usuários
  • 55 posts
  • Sexo:Não informado
  • Localidade:POA/RS

Posted 22/09/2006, 12:12

Olha, eu coloquei este nome aqui: install_ok

Se tu tiver sucesso me da um toque aí de como eu arrumo o meu hehe!

Abraço!
http://www.triko.com.br

#10 nabss

nabss

    Novato no fórum

  • Usuários
  • 5 posts
  • Sexo:Não informado

Posted 22/09/2006, 13:56

mais essa pasta vai ficar dentro da pasta webmail no servidor, onde se econtra o uebimiau, ou em uma pasta fora do instalaçao do uebimiau?
com certeza, vou tentar aqui se der certo, agente jah parte pra outra etapa,,,, hauhauhaa e aos poucos vai dar certo,,,,, Valeu

#11 relpcam

relpcam

    Turista

  • Usuários
  • 48 posts
  • Sexo:Não informado

Posted 22/09/2006, 23:33

O meu tá dando esse erro:

alguém pode me ajudar???

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@oheuaki.com.br and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 


--------------------------------------------------------------------------------

Apache/1.3.37 Server at www.oheuaki.com.br Port 80





SEGUE O MEU ARQUIVO CONFIG.PHP



<?
/************************************************************************
UebiMiau is a GPL'ed software developed by 

 - Aldoir Ventura - aldoir@users.sourceforge.net
 - http://uebimiau.sourceforge.net

Fell free to contact, send donations or anything to me :-)
São Paulo - Brasil
*************************************************************************/

########################################################################
#Defaults:
#1 - Yes/On/True
#0 - No/Off/False
# do not remove or change this

define('yes',1);
define('no',0);

$ALL_OK = false;

$themes 	= Array();
$languages 	= Array();

########################################################################
# _ Please attention _:
# The temporary files will be stored on this folder
# For security reasons, do not use web-shared folders

# ** The Web Server needs write-permission on this folder

# * Unix/Linux users use.
# /tmp/uebimiau
# * Win32 users
# c:/winnt/temp/uebimiau

# NEVER use backslashes (\). Always use forward slashes (/),
# for all operating systems, INCLUDING Windows
########################################################################

$temporary_directory = "/tmp";

########################################################################
# Your local SMTP Server (alias or IP) such as "smtp.yourdomain.com"
# eg. "server1;server2;server3"   -> specify main and backup server
########################################################################

$smtp_server = "mail.oheuaki.com.br";  #YOU NEED CHANGE IT !!


########################################################################
# You should enable this option if you know what are doing
########################################################################
$allow_filters = no;


########################################################################
# The maximum size for stored files
# In order to keep you system fast, use values better than 5MB
# If you need disable it, set the value to 0 or leave it blank
########################################################################
$quota_limit = 2048;  //  in KB, eg. 4096 Kb = 4MB


########################################################################
# Use SMTP password (AUTH LOGIN type)
########################################################################
$use_password_for_smtp	= yes;

########################################################################
# Redirect new users to the preferences page at first login
########################################################################
$check_first_login		= 1;

########################################################################
# Turn this option to 'yes' if you want allow users send messages using
# they 'Reply to' preference's option as your 'From' header, otherwise 
# the From field will be the email wich the users log in
########################################################################
$allow_modified_from	= yes;

########################################################################
# Language & themes settings
########################################################################

require("./inc/config.languages.php");

########################################################################
# Security related settings
########################################################################

require("./inc/config.security.php");


########################################################################
# Server type:
# allowed values:

# "DETECT" -------->	Guess the pop3 server. If you are running UM
# 					in a domain "www.company.com", the script will 
#					use "PREFIX.company.com" as your server. you 
#					can set the "PREFIX" in the var $mail_detect_prefix.
#					Also, the var $mail_detect_remove can be set
#					to "www.", then the script get rid the "www" and 
#					put the prefix, eg. pop3.company.com.br

#"ONE-FOR-EACH" -->	Each domain have your own mail server.
#					The script will load the list of domains/servers from
#					var $mail_servers.

#"ONE-FOR-ALL" --->	If you use this option, your users must supply the
#					full email address as username. You can set the mail
#					server in the var $default_mail_server
#					

# LOGIN_TYPE

# Note. You can supply the LOGIN_TYPE according to your MAIL SERVER.
# Eg. If your mail server requires usernames in user@domain.com, you must
# specify the LOGIN_TYPE as "%user%@%domain%". You can combine it according to 
# your server. eg.

# %user%
# %user%@%domain%
# %user%.%domain%
#
# PROTOCOL and PORT
# Choose "imap" as protocol to use the Internet Mail Access Protocol, 
# or "pop3" to use the Post Office Protocol.
# The default ports are:
# pop3 -> 110
# imap -> 143
# The imap is more fast, but all functions of UebiMiau works with POP3
########################################################################

########################################################################

$mail_server_type 	= "ONE-FOR-EACH";

########################################################################
# TYPE: DETECT
########################################################################

$mail_detect_remove 		= "www.";
$mail_detect_prefix 		= "mail.";
$mail_detect_login_type 	= "%user%@%domain%";
$mail_detect_protocol 		= "pop3";
$mail_detect_port 			= "110";
$mail_detect_folder_prefix 	= "";

########################################################################
# TYPE: ONE-FOR-EACH
# Each domain have your own mail server
########################################################################


$mail_servers[] = Array( //sample using POP3
	"domain" 		=> "oheuaki.com.br", 
	"server" 		=> "mail.oheuaki.com.br", 
	"login_type" 	=> "%user%@%domain%",
	"protocol"		=> "IMAP",
	"port"			=> "143",
	"folder_prefix"	=> "INBOX." //not used for pop3
);


/*
$mail_servers[] = Array( //sample using IMAP
	"domain" 		=> "another-domain.com", 
	"server" 		=> "mail.another-domain.com", 
	"login_type" 	=> "%user%@%domain%",
	"protocol"		=> "imap",
	"port"			=> "143",
	"folder_prefix"	=> "INBOX."
);

*/

########################################################################
# TYPE: ONE-FOR-ALL
# the default mail server for all domains
########################################################################

$default_mail_server 	= "mail.YOUR-UNIQUE-SERVER.com.br";
$one_for_all_login_type	= "%user%@%domain%";
$default_protocol		= "pop3";
$default_port			= "110";
$default_folder_prefix	= "";


########################################################################
# Specify mail transport
# Allowed values:
# "smtp" 		- To use an external SMTP Server specified in $smtp_server
# "sendmail" 	- To server's sendmail-compatible MTA. If you need to change
#				  the path, look into /inc/class.phpmailer.php and search for
#				  var $Sendmail		  = "/usr/sbin/sendmail";
# "mail"		- To use default PHP's mail() function
########################################################################

$mailer_type		= "smtp";


########################################################################
# In some POP3 servers, if you send a "RETR" command, your
# message will be automatically deleted :(
# This option prevents this inconvenience
########################################################################

$mail_use_top = yes;

########################################################################
# Name and Version, it's used in many places, like as
# "X-Mailer" field, footer
########################################################################

$appversion = "2.7.9";
$appname = "UebiMiau";


########################################################################
# Add a "footer" to sent mails
########################################################################

$footer = "

________________________________________________
Message sent using $appname $appversion
";

########################################################################
# Enable debug :)
# no - disabled
# 1 or yes -> enabled with full results
# 2 -> enable with servers communications only
# ********************************************************/
$enable_debug = no;


########################################################################
# Order setting
########################################################################

$default_sortby = "date";
$default_sortorder = "DESC";

########################################################################
# Default preferences...
########################################################################

$default_preferences = Array(
	"send_to_trash_default" 	=> yes,		# send deleted messages to trash
	"st_only_ready_default" 	=> yes,		# only read messages, otherwise, delete it
	"save_to_sent_default"		=> yes,		# send sent messages to sent
	"empty_trash_default"		=> yes,		# empty trash on logout
	"sortby_default"			=> "date",	# alowed: "attach","subject","fromname","date","size"
	"sortorder_default"			=> "DESC",	# alowed: "ASC","DESC"
	"rpp_default"				=> 20,		# records per page (messages), alowed: 10,20,30,40,50,100,200
	"add_signature_default"		=> no,		# add the signature by default
	"signature_default"			=> "",		# a default signature for all users, use text only, with multiple lines if needed
	"timezone_default"			=> "+0000",	# timezone, format (+|-)HHMM (H=hours, M=minutes)
	"display_images_default"	=> yes,		# automatically show attached images in the body of message
	"editor_mode_default"		=> "html",	# use "html" or "text" to set default editor. "html" will be used only in IE5+ browsers
	"refresh_time_default"		=> 10		# after this time, the message list will be refreshed, in minutes
);
/*
don't touch here
*/
$ALL_OK = true;
?>


#12 nabss

nabss

    Novato no fórum

  • Usuários
  • 5 posts
  • Sexo:Não informado

Posted 24/09/2006, 02:21

Esse tipo de erro eh novo para mim, pois sou iniciante. Vc esta usando um servidor hospedeiro ou caseiro?
mande mais especificaçoes talves posso te ajudar.

Agora estou com um outro problema no meu uebimiau, depois de td aprovado, na hora q entra na pagina do webmail, da a aseguinte msg:

__________________________________________________________________________
ERROR (512): Smarty error: problem creating directory "/tmp_cached_templates" (/smarty/Smarty.class.php:589)
___________________________________________________________________________

se alguem souber me ajudar fico grato. Agradeço des de ja. Obrigado

#13 triko

triko

    Turista

  • Usuários
  • 55 posts
  • Sexo:Não informado
  • Localidade:POA/RS

Posted 24/09/2006, 09:33

Tá dificil de alguém ajudar :P
Se lá, ou é pq esta aqui em um subforum (que é o mais provavel), ou o pessoal não saca do lance ou sei lá, pode ser má vontade hehehehehe...
Mas ainda penso que não adianta ter muita organização no forum, criando subcategorias e o pessoal se ferrando pq quem entende do lance não tá afim de entrar nas subcategorias.

De qualquer forma aguardamos a ajuda de algum bom samaritano! :D
http://www.triko.com.br

#14 hernandesporto

hernandesporto
  • Visitantes

Posted 26/09/2006, 13:48

Tá dificil de alguém ajudar :P
Se lá, ou é pq esta aqui em um subforum (que é o mais provavel), ou o pessoal não saca do lance ou sei lá, pode ser má vontade hehehehehe...
Mas ainda penso que não adianta ter muita organização no forum, criando subcategorias e o pessoal se ferrando pq quem entende do lance não tá afim de entrar nas subcategorias.

De qualquer forma aguardamos a ajuda de algum bom samaritano! :D



Cara baixa o 2.7.9 http://www.uebimiau....u-2.7.9-any.zip esse funfa de boa

#15 relpcam

relpcam

    Turista

  • Usuários
  • 48 posts
  • Sexo:Não informado

Posted 26/09/2006, 19:55

Ae Galera...

Consegui configurar o Uebimiau 2.7.10

estou colocando aqui os códigos do meu .config.php e .inc.php para que vocês possam configurar também.

Legenda:
pasta_temporaria - você vai especificar a pasta temporária que o Uebimiau vai utilizar, não se esqueça de dar permisão 777 para ela
onde tá "seusite.com.br" você coloca o endereço do teu site, mais sem www Ok.


Segue abaixo:
config.php
<?
/************************************************************************
UebiMiau is a GPL'ed software developed by 

 - Aldoir Ventura - aldoir@users.sourceforge.net
 - http://uebimiau.sourceforge.net

Fell free to contact, send donations or anything to me :-)
São Paulo - Brasil
*************************************************************************/

########################################################################
#Defaults:
#1 - Yes/On/True
#0 - No/Off/False
# do not remove or change this

define('yes',1);
define('no',0);

$ALL_OK = false;

$themes 	= Array();
$languages 	= Array();

########################################################################
# _ Please attention _:
# The temporary files will be stored on this folder
# For security reasons, do not use web-shared folders

# ** The Web Server needs write-permission on this folder

# * Unix/Linux users use.
# /tmp/uebimiau
# * Win32 users
# c:/winnt/temp/uebimiau

# NEVER use backslashes (\). Always use forward slashes (/),
# for all operating systems, INCLUDING Windows
########################################################################

$temporary_directory = "pasta_temporaria/";

########################################################################
# Your local SMTP Server (alias or IP) such as "smtp.yourdomain.com"
# eg. "server1;server2;server3"   -> specify main and backup server
########################################################################

$smtp_server = "mail.seusite.com.br";  #YOU NEED CHANGE IT !!


########################################################################
# You should enable this option if you know what are doing
########################################################################
$allow_filters = no;


########################################################################
# The maximum size for stored files
# In order to keep you system fast, use values better than 5MB
# If you need disable it, set the value to 0 or leave it blank
########################################################################
$quota_limit = 1000;  //  in KB, eg. 4096 Kb = 4MB


########################################################################
# Use SMTP password (AUTH LOGIN type)
########################################################################
$use_password_for_smtp	= yes;

########################################################################
# Redirect new users to the preferences page at first login
########################################################################
$check_first_login		= yes;

########################################################################
# Turn this option to 'yes' if you want allow users send messages using
# they 'Reply to' preference's option as your 'From' header, otherwise 
# the From field will be the email wich the users log in
########################################################################
$allow_modified_from	= yes;

########################################################################
# Language & themes settings
########################################################################

require("./inc/config.languages.php");

########################################################################
# Security related settings
########################################################################

require("./inc/config.security.php");


########################################################################
# Server type:
# allowed values:

# "DETECT" -------->	Guess the pop3 server. If you are running UM
# 					in a domain "www.company.com", the script will 
#					use "PREFIX.company.com" as your server. you 
#					can set the "PREFIX" in the var $mail_detect_prefix.
#					Also, the var $mail_detect_remove can be set
#					to "www.", then the script get rid the "www" and 
#					put the prefix, eg. pop3.company.com.br

#"ONE-FOR-EACH" -->	Each domain have your own mail server.
#					The script will load the list of domains/servers from
#					var $mail_servers.

#"ONE-FOR-ALL" --->	If you use this option, your users must supply the
#					full email address as username. You can set the mail
#					server in the var $default_mail_server
#					

# LOGIN_TYPE

# Note. You can supply the LOGIN_TYPE according to your MAIL SERVER.
# Eg. If your mail server requires usernames in user@domain.com, you must
# specify the LOGIN_TYPE as "%user%@%domain%". You can combine it according to 
# your server. eg.

# %user%
# %user%@%domain%
# %user%.%domain%
#
# PROTOCOL and PORT
# Choose "imap" as protocol to use the Internet Mail Access Protocol, 
# or "pop3" to use the Post Office Protocol.
# The default ports are:
# pop3 -> 110
# imap -> 143
# The imap is more fast, but all functions of UebiMiau works with POP3
########################################################################

########################################################################

$mail_server_type 	= "ONE-FOR-EACH";

########################################################################
# TYPE: DETECT
########################################################################

$mail_detect_remove 		= "www.";
$mail_detect_prefix 		= "mail.";
$mail_detect_login_type 	= "%user%@%domain%";
$mail_detect_protocol 		= "pop3";
$mail_detect_port 			= "110";
$mail_detect_folder_prefix 	= "";

########################################################################
# TYPE: ONE-FOR-EACH
# Each domain have your own mail server
########################################################################


$mail_servers[] = Array( //sample using POP3
	"domain" 		=> "seusite.com.br", 
	"server" 		=> "mail.seusite.com.br", 
	"login_type" 	=> "%user%@%domain%",
	"protocol"		=> "POP3",
	"port"			=> "110",
	"folder_prefix"	=> ""
);


/*
$mail_servers[] = Array( //sample using IMAP
	"domain" 		=> "another-domain.com", 
	"server" 		=> "mail.another-domain.com", 
	"login_type" 	=> "%user%@%domain%",
	"protocol"		=> "imap",
	"port"			=> "143",
	"folder_prefix"	=> "INBOX."
);

*/

########################################################################
# TYPE: ONE-FOR-ALL
# the default mail server for all domains
########################################################################

$default_mail_server 	= "mail.YOUR-UNIQUE-SERVER.com.br";
$one_for_all_login_type	= "%user%@%domain%";
$default_protocol		= "pop3";
$default_port			= "110";
$default_folder_prefix	= "";


########################################################################
# Specify mail transport
# Allowed values:
# "smtp" 		- To use an external SMTP Server specified in $smtp_server
# "sendmail" 	- To server's sendmail-compatible MTA. If you need to change
#				  the path, look into /inc/class.phpmailer.php and search for
#				  var $Sendmail		  = "/usr/sbin/sendmail";
# "mail"		- To use default PHP's mail() function
########################################################################

$mailer_type		= "smtp";


########################################################################
# In some POP3 servers, if you send a "RETR" command, your
# message will be automatically deleted :(
# This option prevents this inconvenience
########################################################################

$mail_use_top = yes;

########################################################################
# Name and Version, it's used in many places, like as
# "X-Mailer" field, footer
########################################################################

$appversion = "2.7.9";
$appname = "UebiMiau";


########################################################################
# Add a "footer" to sent mails
########################################################################

$footer = "

________________________________________________
Message sent using $appname $appversion
";

########################################################################
# Enable debug :)
# no - disabled
# 1 or yes -> enabled with full results
# 2 -> enable with servers communications only
# ********************************************************/
$enable_debug = no;


########################################################################
# Order setting
########################################################################

$default_sortby = "date";
$default_sortorder = "DESC";

########################################################################
# Default preferences...
########################################################################

$default_preferences = Array(
	"send_to_trash_default" 	=> yes,		# send deleted messages to trash
	"st_only_ready_default" 	=> yes,		# only read messages, otherwise, delete it
	"save_to_sent_default"		=> yes,		# send sent messages to sent
	"empty_trash_default"		=> yes,		# empty trash on logout
	"sortby_default"			=> "date",	# alowed: "attach","subject","fromname","date","size"
	"sortorder_default"			=> "DESC",	# alowed: "ASC","DESC"
	"rpp_default"				=> 20,		# records per page (messages), alowed: 10,20,30,40,50,100,200
	"add_signature_default"		=> no,		# add the signature by default
	"signature_default"			=> "",		# a default signature for all users, use text only, with multiple lines if needed
	"timezone_default"			=> "+0000",	# timezone, format (+|-)HHMM (H=hours, M=minutes)
	"display_images_default"	=> yes,		# automatically show attached images in the body of message
	"editor_mode_default"		=> "html",	# use "html" or "text" to set default editor. "html" will be used only in IE5+ browsers
	"refresh_time_default"		=> 10		# after this time, the message list will be refreshed, in minutes
);
/*
don't touch here
*/
$ALL_OK = true;
?>


Agora o arquivo inc.php

Copie o código abaixo e substitua o teu arquivo inc.php que está na pasta inc/

<?
/************************************************************************
UebiMiau is a GPL'ed software developed by 

 - Aldoir Ventura - aldoir@users.sourceforge.net
 - http://uebimiau.sourceforge.net

Fell free to contact, send donations or anything to me :-)
São Paulo - Brasil
*************************************************************************/

@set_time_limit(0);
session_start();
session_name('sid');
$sid = session_id();

require("./inc/config.php");
require("./inc/class.uebimiau.php");
require("./inc/lib.php");

$temporary_directory = realpath($temporary_directory).'/';

define("SMARTY_DIR","./smarty/");
require_once(SMARTY_DIR."Smarty.class.php");
$smarty = new Smarty;
$smarty->compile_dir = $temporary_directory;
$smarty->security=true;
//$smarty->secure_dir=array("./");


$smarty->assign("umMenuTemplate",dirname($PATH_TRANSLATED).$menu_template);
//$smarty->debugging = false;
$smarty->assign("umLanguageFile",$selected_language.".txt");

$SS = New Session();
$SS->temp_folder 	= $temporary_directory;
$SS->sid 			= $sid;
$SS->timeout 		= $idle_timeout;

$sess = $SS->Load();


if(!array_key_exists("start", $sess )) $sess["start"] = time();
$start = $sess["start"];

$UM = new UebiMiau();

if(isset($f_pass) && strlen($f_pass) > 0) {

	switch(strtoupper($mail_server_type)) {

	case "DETECT":
		$f_server 	= strtolower(getenv("HTTP_HOST"));
		$f_server 	= str_replace($mail_detect_remove,"",$f_server);
		$f_server 	= $mail_detect_prefix.$f_server;

		if(ereg("(.*)@(.*)",$f_email,$regs)) {
			$f_user = $regs[1];
			$domain = $regs[2];
			if($mail_detect_login_type != "") $f_user = eregi_replace("%user%",$f_user,eregi_replace("%domain%",$domain,$mail_detect_login_type));
		}

		$f_protocol	= $mail_detect_protocol;
		$f_port		= $mail_detect_port;
		$f_prefix	= $mail_detect_folder_prefix;

		break;

	case "ONE-FOR-EACH": 
		$domain 		= $mail_servers[$six]["domain"];
		$f_email 		= $f_user."@".$domain;
		$f_server 		= $mail_servers[$six]["server"];
		$login_type 	= $mail_servers[$six]["login_type"];

		$f_protocol		= $mail_servers[$six]["protocol"];
		$f_port			= $mail_servers[$six]["port"];
		$f_prefix		= $mail_servers[$six]["folder_prefix"];

		if($login_type != "") $f_user = eregi_replace("%user%",$f_user,eregi_replace("%domain%",$domain,$login_type));
		break;

	case "ONE-FOR-ALL": 
		if(ereg("(.*)@(.*)",$f_email,$regs)) {
			$f_user = $regs[1];
			$domain = $regs[2];
			if($one_for_all_login_type != "") $f_user = eregi_replace("%user%",$f_user,eregi_replace("%domain%",$domain,$one_for_all_login_type));
		}
		$f_server = $default_mail_server;

		$f_protocol	= $default_protocol;
		if($f_protocol == "imap")
			$f_port		= "143";
		if($f_protocol == "pop3")
			$f_port		= "110";
		$f_prefix	= $default_folder_prefix;
		break;
	}

	$UM->mail_email 	= $sess["email"]			  = stripslashes($f_email);
	$UM->mail_user 		= $sess["user"]   			= stripslashes($f_user);
	$UM->mail_pass 		= $sess["pass"]   			= stripslashes($f_pass); 
	$UM->mail_server 	= $sess["server"] 			= stripslashes($f_server); 

	$UM->mail_port 		= $sess["port"] 			= intval($f_port); 
	$UM->mail_protocol	= $sess["protocol"] 		= strtolower($f_protocol); 
	$UM->mail_prefix	= $sess["folder_prefix"] 	= $f_prefix; 
	
	$sess['remote_ip'] = $_SERVER['REMOTE_ADDR'];
	
	$refr = 1;

} elseif (
	($sess["auth"] && intval((time()-$start)/60) < $idle_timeout)
	&& $require_same_ip && ($sess["remote_ip"] == $_SERVER['REMOTE_ADDR'])
	) {

	$UM->mail_user   	= $f_user		= $sess["user"];
	$UM->mail_pass   	= $f_pass		= $sess["pass"];
	$UM->mail_server 	= $f_server	  = $sess["server"];
	$UM->mail_email	  = $f_email   	= $sess["email"];

	$UM->mail_port 		= $f_port 		= $sess["port"]; 
	$UM->mail_protocol	= $f_protocol	= $sess["protocol"]; 
	$UM->mail_prefix	= $f_prefix 	= $sess["folder_prefix"]; 

} else {
	redirect("./index.php?tid=$tid&lid=$lid"); 
	exit; 
}
$sess["start"] = time();

$SS->Save($sess);

$userfolder = $temporary_directory.ereg_replace("[^a-z0-9\._-]","_",strtolower($f_user))."_".strtolower($f_server)."/";

$UM->debug				= $enable_debug;
$UM->use_html			= $allow_html;

$UM->user_folder 		= $userfolder;
$UM->temp_folder		= $temporary_directory;
$UM->timeout			= $idle_timeout;


$prefs = load_prefs();

$UM->timezone			= $prefs["timezone"];
$UM->charset			= $default_char_set;


/*
Don't remove the fallowing lines, or you will be problems with browser's cache 
*/

Header("Expires: Wed, 11 Nov 1998 11:11:11 GMT");
Header("Cache-Control: no-cache");
Header("Cache-Control: must-revalidate");

$nocache = "
<META HTTP-EQUIV=\"Cache-Control\" CONTENT=\"no-cache\">
<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\">";

// Sort rules

if(!isset($sortby) || !ereg("(subject|fromname|date|size)",$sortby)) {
	if(array_key_exists("sort-by",$prefs) && ereg("(subject|fromname|date|size)",$prefs["sort-by"]))
		$sortby = $prefs["sort-by"];
	else
		$sortby = $default_sortby;
} else {
	$need_save = true;
	$prefs["sort-by"] = $sortby;
}

if(!isset($sortorder) || !ereg("ASC|DESC",$sortorder)) {
	if(array_key_exists("sort-order",$prefs) && ereg("ASC|DESC",$prefs["sort-order"]))
		$sortorder = $prefs["sort-order"];
	else
		$sortorder = $default_sortorder;
} else {
	$need_save = true;
	$prefs["sort-order"] = $sortorder;
}

if(isset($need_save)) save_prefs($prefs);

if(is_array($sess["sysmap"])) 
	while(list($key, $value) = each($sess["sysmap"]))
		if(strtolower($folder) == $key)
			$folder = $value;

if(!isset($folder) || $folder == "" || strpos($folder,"..") !== false ) {
	$folder = $sess["sysmap"]["inbox"];

} elseif (!file_exists($userfolder.$folder)) { 
	redirect("./logout.php?tid=$tid&lid=$lid"); 
	exit; 
}

?>


Um abraço galera...

Qualquer coisa, é só deixar a resposta aqui no tópico que eu ajudo...

Edição feita por: relpcam, 28/09/2006, 02:06.





1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq