I did this they asked , notify.php accessed the file, this my way:
log_notification function ( $ locale , $ kind , $ to , $ subj , $ text , $ refop , $ link )
{
global $ mysqlprefix ;
$ query = sprintf (
" insert into $ { } mysqlprefix chatnotification ( locale , vckind , vcto , vcsubject , TMessage , refoperator , dtmcreated ) values ( '% s' , '% s' , '% s' , '% s' , '% s' , % s , % s ) " ,
mysql_real_escape_string ( $ locale , $ link )
mysql_real_escape_string ( $ kind , $ link )
mysql_real_escape_string ( $ to , $ link )
mysql_real_escape_string ( $ subj , $ link )
mysql_real_escape_string ( $ text , $ link )
$ refop ? intval ( $ refop ) : "0" ,
" CURRENT_TIMESTAMP ");
perform_query ( $ query , $ link ) ;
}
mibew_mail function ( $ toaddr , reply_to $ , $ subject , $ body , $ link )
{
global $ mibew_encoding , $ mibew_mailbox , mail_encoding $ , $ current_locale ;
$ headers = "From: $ mibew_mailbox \ r \ n"
. " Reply-To : " . myiconv ( $ mibew_encoding , mail_encoding $ , $ reply_to ) . " \ r \ n"
. " Content- Type: text / plain ; charset = $ mail_encoding \ r \ n"
. 'X - Mailer : PHP / ' . phpversion ();
real_subject $ = "= ? ' . $ mail_encoding . " 'B' " . base64_encode ( myiconv ( $ mibew_encoding , mail_encoding $ , $ subject ) ) . "= ";
$ body = preg_replace ( " / \ n / " , " \ r \ n" , $ body ) ;
log_notification ( $ current_locale , "mail " , $ toaddr , $ subject , $ body , null , $ link ) ;
$ old_from = ini_get ( ' sendmail_from ' ) ;
ini_set ( ' sendmail_from ' , $ mibew_mailbox ) ;
@ mail ( $ toaddr , $ real_subject , wordwrap ( myiconv ( $ mibew_encoding , mail_encoding $ , $ body ) , 70 ) , $ headers ) ;
if ( isset ( $ old_from ) ) {
ini_set ( ' sendmail_from ' , $ old_from ) ;
}
}
mibew_xmpp function ( $ toaddr , $ subject , $ text , $ link )
{
global $ current_locale ;
log_notification ( $ current_locale , " xmpp " , $ toaddr , $ subject , $ text , null , $ link ) ;
In part : @ email , put : email or my email .... @ betainfo.info still did not work , put my email , the page of Envido to chat offline opens all blank. Edited and sent from that tutorial that you said it was old and changed the @ email and also did not work :
< ? php
/ *
* Copyright 2005-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the " License" ) ;
* You may not use this file except in compliance with the License.
* You may Obtain a copy of the License at
*
*
http://www.apache.org/licenses/LICENSE-2.0 *
* Unless required by applicable law or agreed to in writing , software
* Distributed under the License is distributed on an " AS IS " BASIS ,
* Warranties WITHOUT OR CONDITIONS OF ANY KIND , either express or implied .
* See the License for the specific language governing permissions and
* Limitations under the License.
* /
log_notification function ( $ locale , $ kind , $ to , $ subj , $ text , $ refop , $ link )
{
global $ mysqlprefix ;
$ query = sprintf (
" insert into $ { } mysqlprefix chatnotification ( locale , vckind , vcto , vcsubject , TMessage , refoperator , dtmcreated ) values ( '% s' , '% s' , '% s' , '% s' , '% s' , % s , % s ) " ,
mysql_real_escape_string ( $ locale , $ link )
mysql_real_escape_string ( $ kind , $ link )
mysql_real_escape_string ( $ to , $ link )
mysql_real_escape_string ( $ subj , $ link )
mysql_real_escape_string ( $ text , $ link )
$ refop ? intval ( $ refop ) : "0" ,
" CURRENT_TIMESTAMP ");
perform_query ( $ query , $ link ) ;
}
mibew_mail function ( $ toaddr , reply_to $ , $ subject , $ body , $ link )
{
global $ mibew_encoding , $ mibew_mailbox , mail_encoding $ , $ current_locale ;
$ headers = "From: $ mibew_mailbox \ r \ n"
. " Reply-To : " . myiconv ( $ mibew_encoding , mail_encoding $ , $ reply_to ) . " \ r \ n"
. " Content- Type: text / plain ; charset = $ mail_encoding \ r \ n"
. 'X - Mailer : PHP / ' . phpversion ();
real_subject $ = "= ? ' . $ mail_encoding . " 'B' " . base64_encode ( myiconv ( $ mibew_encoding , mail_encoding $ , $ subject ) ) . "= ";
$ body = preg_replace ( " / \ n / " , " \ r \ n" , $ body ) ;
log_notification ( $ current_locale , "mail " , $ toaddr , $ subject , $ body , null , $ link ) ;
if ( eregi ( ' $ tempsite.ws | locaweb.com.br $ | hospedagemdesites.ws $ | websiteseguro.com $' , $ _SERVER [ HTTP_HOST ] ) ) {
$ EmailSender = '$ webim_mailbox ' ; } else { $ EmailSender = " $ webim_mailbox " ; }
$ old_from = ini_get ( ' sendmail_from ' ) ;
ini_set ( ' sendmail_from ' , $ mibew_mailbox ) ;
@ mail ( $ toaddr , $ real_subject , wordwrap ( myiconv ( $ mibew_encoding , mail_encoding $ , $ body ) , 70 ) , $ headers , " - r " $ EmailSender . ) ;
if ( isset ( $ old_from ) ) {
ini_set ( ' sendmail_from ' , $ old_from ) ;
}
}
mibew_xmpp function ( $ toaddr , $ subject , $ text , $ link )
{
global $ current_locale ;
log_notification ( $ current_locale , " xmpp " , $ toaddr , $ subject , $ text , null , $ link ) ;
}
>
A single observation, my folder I installed 1.6.9 Mibew not call mibew calls : site1385608919 and my data base of the flame also phpMyAdmi : site1385608919 . In locaweb hosting server does not allow to create database in mysql or in phpmyadmin , so it allows you to create tables , so as it already by default create a database called : al site1385608919 installed mibew with name and folder configurations : site1385608919 .
I did what I did @ the email , if it is not correct do not blame me because I do not know much about php .