HOME
FORUM
NEWS
DOWNLOADS
TOPSITE
SERVIZI
Cerca Downloads
Proponi Downloads
Inserisci Sito
Contattaci
Aiuta WebinWeb.net
Staff
BannerMaker
MENU PERSONALE
Benvenuto Visitatore
Username:
Password:
Tempo:
1 Ora
1 Giorno
1 Settimana
1 Mese
Per Sempre
RICERCA
Home forum
Ricerca
Login
Registrati
AVVISO
FORUM CHIUSO, VISUALIZZABILE SOLO IN LETTURA
WebinWeb.net
>
CMS
>
MKPortal
>
Moduli
>
[C1.2] MWContact v2.0
Pagine:
1
2
3
[
4
]
5
6
7
Vai Giù
Stampa
Autore
Topic: [C1.2] MWContact v2.0 (Letto 19614 volte)
dejv
Utente
Ringraziamenti:
0
Offline
Posts: 1
CMS: N\D
Board: N\D
Re: [M1.1] MWContact v2.0
«
Risposta #60 il:
Giovedì, 13 Settembre 2007 02:00 »
Hi,
has anyone integrated captcha into this module to make it more secure?
Thanks,
David
Loggato
Darknico
Ringraziamenti:
173
Offline
Sesso:
Posts: 2656
CMS: MKPortal
Board: SMF 1.x
Re: [M1.1] MWContact v2.0
«
Risposta #61 il:
Giovedì, 13 Settembre 2007 02:04 »
In the new version....
Loggato
Regole Principali di WebinWeb.net
Agostino
Utente
Ringraziamenti:
0
Offline
Sesso:
Posts: 43
CMS: MKPortal
Board: phpBB 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #62 il:
Venerdì, 19 Ottobre 2007 05:52 »
Salve ragà, ottimo sito graficamente, avete fatto un buon lavoro in questo periodo di stop
avrei un problema con questo modulo...funziona benissimo...solo ke io ho bisogno di più moduli come questi...quindi devo duplicare il modulo iniziale...ho iniziato a lavorare sulle array ecc... (vado molto ad intuito xkè nn so programmare in php, xò me la sbrigo a fare qualche modifica qua e la)
la parte admin del modulo duplicato (kiamata da me contac1) funziona bene...il problema sta nella parte client che appena inserisco tutte le informazioni xcontattare e premo invio mi compare la scritta
! Errore ! Siamo spiacenti. Tutti i campi sono obligatori!
come se non riconoscesse che ho inserito le info nei campi e trova il modulo incompleto
penso che il problema stia nel file ad_contact.php e incollo in sequenza il codice
Codice:
Seleziona tutto
|
Copia
<?
/*
+--------------------------------------------------------------------------
| MkPortal
| ========================================
| by Meo aka Luponero <Amedeo de longis>
|
| (c) 2004 mkportal.it
| http://www.mkportal.it
| Email: luponero@mclink.it
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/
if (!defined("IN_MKP")) {
die ("Sorry !! You cannot access this file directly.");
}
$idx = new mk_ad_contact1;
class mk_ad_contact1 {
function mk_ad_contact1() {
global $mkportals;
switch($mkportals->input['op']) {
case 'save_main':
$this->save_main();
break;
default:
$this->contact1_show();
break;
}
}
function contact1_show() {
global $mkportals, $mklib, $Skin, $DB;
$query1 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'email'");
$row1 = $DB->fetch_row($query1);
$email = $row1['valore'];
$email = htmlspecialchars($email);
$query2 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'mexhome'");
$row2 = $DB->fetch_row($query2);
$mexhome = $row2['valore'];
$mexhome = htmlspecialchars($mexhome);
$query3 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'access'");
$row3 = $DB->fetch_row($query3);
$access = $row3['valore'];
if ($access == "1") {
$checkacc = "checked=\"checked\"";
$checkacc2 = "";
} else {
$checkacc2 = "checked=\"checked\"";
$checkacc = "";
}
$query4 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'risposta'");
$row4 = $DB->fetch_row($query4);
$risposta = $row4['valore'];
if ($risposta == "1") {
$checkrisp = "checked=\"checked\"";
$checkrisp2 = "";
} else {
$checkrisp2 = "checked=\"checked\"";
$checkrisp = "";
}
$query5 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'mexrisp'");
$row5 = $DB->fetch_row($query5);
$mexrisp = $row5['valore'];
$mexrisp = htmlspecialchars($mexrisp);
$query6 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'host'");
$row6 = $DB->fetch_row($query6);
$host = $row6['valore'];
if ($host == "1") {
$checkhost = "checked=\"checked\"";
$checkhost2 = "";
} else {
$checkhost2 = "checked=\"checked\"";
$checkhost = "";
}
if ($mkportals->input['mode'] == "saved") {
$checksave = "
<tr>
<td width=\"100%\" colspan=\"2\" class=\"modulex\" align=\"center\" ><img src=\"$mklib->siteurl/mkportal/modules/contact/apply.gif\"><br></br><b>{$mklib->lang['ad_oksaved1']}</b></td>
</td>
</tr>";
}
$content = "
<tr>
<td>
<form action=\"admin.php?ind=ad_contact1&op=save_main\" name=\"save_main\" method=\"post\">
<table width=\"100%\" cellspacing=\"2\" cellpadding=\"5\" border=\"0\">
$checksave
<tr>
<td width=\"60%\" height=\"60\" class=\"modulex\" ><b>{$mklib->lang['ad_email1']}</b></td>
<td width=\"40%\" class=\"modulex\" ><input type=\"text\" name=\"email\" value=\"$email\" size=\"40\"/></td>
</tr>
<tr>
<td width=\"60%\" height=\"60\" class=\"modulex\" ><b>{$mklib->lang['ad_mexhome1']}</b></td>
<td width=\"40%\" class=\"modulex\" ><textarea cols=\"50\" rows=\"8\" name=\"mexhome\" class=\"bgselect\">$mexhome</textarea></td>
</tr>
<tr>
<td width=\"60%\" height=\"60\" class=\"modulex\">{$mklib->lang['ad_selacces1']}</td>
<td width=\"40%\" class=\"modulex\" >{$mklib->lang['ad_yes']} <input type=\"radio\" value=\"1\" name=\"access\" $checkacc /> {$mklib->lang['ad_no']} <input type=\"radio\" value=\"0\" name=\"access\" $checkacc2 /></td>
</tr>
<tr>
<td width=\"60%\" height=\"60\" class=\"modulex\">{$mklib->lang['ad_selrisp1']}</td>
<td width=\"40%\" class=\"modulex\" >{$mklib->lang['ad_yes']} <input type=\"radio\" value=\"1\" name=\"risposta\" $checkrisp /> {$mklib->lang['ad_no']} <input type=\"radio\" value=\"0\" name=\"risposta\" $checkrisp2 /></td>
</tr>
<tr>
<td width=\"60%\" height=\"60\" class=\"modulex\" ><b>{$mklib->lang['ad_risposta1']}</b></td>
<td width=\"40%\" class=\"modulex\" ><textarea cols=\"50\" rows=\"8\" name=\"mexrisp\" class=\"bgselect\">$mexrisp</textarea></td>
</tr>
<tr>
<td width=\"60%\" height=\"60\" class=\"modulex\">{$mklib->lang['ad_selhost1']}</td>
<td width=\"40%\" class=\"modulex\">{$mklib->lang['ad_yes']} <input type=\"radio\" value=\"1\" name=\"host\" $checkhost /> {$mklib->lang['ad_no']} <input type=\"radio\" value=\"0\" name=\"host\" $checkhost2 /></td>
</tr>
<tr>
<td colspan=\"2\" align=\"center\"><br /><input type=\"submit\" name=\"Salve\" value=\"{$mklib->lang['ad_salve']}\" class=\"bgselect\" /></td>
</tr>
</table>
</form>
</td>
</tr>
";
$output = $Skin->view_block("{$mklib->lang['ad_contacttitle1']}", "$content");
$mklib->printpage_admin("{$mklib->lang['ad_titlepage1']}", $output);
}
function save_main() {
global $mkportals, $DB, $mklib;
$access = $mkportals->input['access1'];
$host = $mkportals->input['host1'];
$risposta = $mkportals->input['risposta1'];
$mexrisp = $mkportals->input['mexrisp1'];
$mexhome = $mkportals->input['mexhome1'];
$email = $mkportals->input['email1'];
if (!$email || !$mexhome) {
$message = "{$mklib->lang['ad_error11']}";
$mklib->error_page($message);
exit;
}
if (!eregi("^[\'+\\./0-9A-Z^_\`a-z{|}~\-]+@[a-zA-Z0-9_\-]+(\.[a-zA-Z0-9_\-]+){1,3}$", $email)) {
$message = "{$mklib->lang['ad_error21']}";
$mklib->error_page($message);
exit;
}
$DB->query("UPDATE mkp_contact1 SET valore ='$email' where chiave = 'email'");
$DB->query("UPDATE mkp_contact1 SET valore ='$mexhome' where chiave = 'mexhome'");
$DB->query("UPDATE mkp_contact1 SET valore ='$access' where chiave = 'access'");
$DB->query("UPDATE mkp_contact1 SET valore ='$host' where chiave = 'host'");
$DB->query("UPDATE mkp_contact1 SET valore ='$risposta' where chiave = 'risposta'");
$DB->query("UPDATE mkp_contact1 SET valore ='$mexrisp' where chiave = 'mexrisp1'");
$DB->close_db();
Header("Location: admin.php?ind=ad_contact1&mode=saved");
exit;
}
}
?>
Loggato
Agostino
Utente
Ringraziamenti:
0
Offline
Sesso:
Posts: 43
CMS: MKPortal
Board: phpBB 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #63 il:
Domenica, 21 Ottobre 2007 18:04 »
posto anche l'index del contact1
Codice:
Seleziona tutto
|
Copia
<?
/*
+--------------------------------------------------------------------------
| MkPortal
| ========================================
| by Meo aka Luponero <Amedeo de longis>
|
| (c) 2004-2005 mkportal.it
| http://www.mkportal.it
| Email: luponero@mclink.it
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/
if (!defined("IN_MKP")) {
die ("Sorry !! You cannot access this file directly.");
}
$idx = new mk_contact1;
class mk_contact1 {
var $tpl = "";
function mk_contact1() {
global $mkportals, $DB, $mklib, $Skin, $mklib_board;
$mklib->load_lang("lang_contact1.php");
$query = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'access'");
$row = $DB->fetch_row($query);
$access = $row['valore'];
if ($access== "1") {
if(!$mkportals->member['id']) {
$message = "{$mklib->lang['co_noenterg1']}";
$mklib->error_page($message);
exit;
}
}
switch($mkportals->input['op']) {
case 'send_email':
$this->send_email();
break;
default:
$this->mod_contact1();
break;
}
}
function mod_contact1() {
global $mkportals, $DB, $mklib, $Skin;
$query = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'mexhome'");
$row = $DB->fetch_row($query);
$mexhome = $row['valore'];
$mexhome = htmlspecialchars($mexhome);
$nome= "";
if ($mkportals->member['id']) {
$nome = $mkportals->member['name'];
}
$output = "
<tr>
<td>
<table class=\"moduleborder\" cellspacing=\"1\" cellpadding=\"0\" width=\"98%\" align=\"center\" border=\"0\">
<tr>
<td>
<table class=\"modulebg\" cellspacing=\"1\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td class=\"tdblock\" width=\"100%\" height=\"25\"><img src=\"$mklib->images/arrow.gif\" alt=\"\" />{$mklib->lang['co_contact1']}</td>
</tr>
<tr>
<td>
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td>
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td>
<table cellspacing=\"1\" cellpadding=\"5\" width=\"100%\" border=\"0\">
<tr>
<td class=\"modulex\" width=\"100%\" colspan=\"2\"><form method=\"post\" action=\"index.php?ind=contact1&op=send_email\">
$mexhome</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"><b>{$mklib->lang['co_nome1']}</b></td>
<td class=\"modulex\" width=\"80%\">
<input type=\"text\" name=\"nome\" size=\"52\" class=\"bgselect\" value=\"$nome\" />
</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"><b>{$mklib->lang['co_email1']}</b></td>
<td class=\"modulex\" width=\"80%\">
<input type=\"text\" name=\"email\" size=\"52\" class=\"bgselect\" />
</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"><b>{$mklib->lang['co_oggetto1']}</b></td>
<td class=\"modulex\" width=\"80%\">
<input type=\"text\" name=\"oggetto\" size=\"52\" class=\"bgselect\" />
</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"><b>{$mklib->lang['co_messaggio1']}</b></td>
<td class=\"modulex\" width=\"80%\">
<textarea name=\"messaggio\" cols=\"48\" rows=\"5\" ></textarea>
</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"></td>
<td class=\"modulex\" width=\"80%\">
<input type=\"submit\" value=\"{$mklib->lang['co_send1']}\" name=\"submit\">
<input type=\"reset\" value=\"{$mklib->lang['co_delete1']}\" name=\"reset\">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align=\"center\"><br /><br />
<div align=\"center\"><a href=\"http://www.webinweb.net\" target=\"_blank\">MWContact 2.0 by Onizuka88</a> ©2004-2005 All rights reserved</div>
</td>
</tr>
";
$blocks .= $Skin->view_block("{$mklib->lang['co_title1']}", $output);
$mklib->printpage("1", "1", "{$mklib->lang['co_title1']}", $blocks);
}
function send_email() {
global $mkportals, $DB, $mklib, $Skin;
$query1 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'email'");
$row1 = $DB->fetch_row($query1);
$fromemail = $row1['valore'];
$query4 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'risposta'");
$row4 = $DB->fetch_row($query4);
$risposta = $row4['valore'];
$query5 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'mexrisp'");
$row5 = $DB->fetch_row($query5);
$mexrisp = $row5['valore'];
$mexrisp = htmlspecialchars($mexrisp);
$nome = $mkportals->input['nome1'];
$toemail = $mkportals->input['email1'];
$oggetto = $mkportals->input['oggetto1'];
$messaggio = $mkportals->input['messaggio1'];
$oggetto1 = "{$mklib->lang['co_object1']} ".$mklib->sitename;
$homepageurl = $mklib->sitename;
$data = date("m/d/Y H:i:s");
if (!$toemail || !$messaggio || !$oggetto || !$nome) {
$message = "{$mklib->lang['co_error11']}";
$mklib->error_page($message);
exit();
}
if (!eregi("^[\'+\\./0-9A-Z^_\`a-z{|}~\-]+@[a-zA-Z0-9_\-]+(\.[a-zA-Z0-9_\-]+){1,3}$", $toemail)) {
$message = "{$mklib->lang['co_error21']}";
$mklib->error_page($message);
exit();
}
$query6 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'host'");
$row6 = $DB->fetch_row($query6);
$host = $row6['valore'];
$ip ="--";
$hoster = "--";
if ($host == "1") {
$ip = $_SERVER['REMOTE_ADDR'];
$hoster = gethostbyaddr($ip);
}
$headers = "From: $fromemail\r\n";
$headers2 = "From: $toemail\r\n";
mail("$fromemail", "$oggetto","
{$mklib->lang['co_data1']} $data
--------------------------------------------------------
{$mklib->lang['co_nome1']} : $nome
{$mklib->lang['co_email1']} : $toemail
{$mklib->lang['co_oggetto1']} : $oggetto
{$mklib->lang['co_host1']} : $hoster
{$mklib->lang['co_ip1']} : $ip
{$mklib->lang['co_messaggio1']} :
$messaggio
--------------------------------------------------------
","$headers2");
if ($risposta == "1"){
mail("$toemail","$homepageurl ", "
$nome\n
---------------------------------------------\n
{$mklib->lang['co_dear1']} $nome\n
$mexrisp \n
---------------------------------------------\n
","$headers");
}
$output = "
<tr>
<td>
<table class=\"moduleborder\" cellspacing=\"1\" cellpadding=\"0\" width=\"98%\" align=\"center\" border=\"0\">
<tr>
<td>
<table class=\"modulebg\" cellspacing=\"1\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td class=\"tdblock\" width=\"100%\" height=\"25\"><img src=\"$mklib->images/arrow.gif\" alt=\"\" />{$mklib->lang['co_contact1']}</td>
</tr>
<tr>
<td>
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td>
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td>
<table cellspacing=\"1\" cellpadding=\"5\" width=\"100%\" border=\"0\">
<tr>
<td class=\"modulex\" width=\"100%\" colspan=\"2\" align=\"center\"><img src=\"$mklib->siteurl/mkportal/modules/contact/apply.gif\"><br></br><b>{$mklib->lang['co_emailinv1']}</b></td>
</tr>
<tr>
<td class=\"modulex\" width=\"100%\" colspan=\"2\" align=\"center\"><img src=\"$mklib->images/f2.gif\"> <a href=\"index.php?ind=contact1\"><b>{$mklib->lang['co_return1']}</b></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr><tr>
<td align=\"center\"><br /><br />
<div align=\"center\"><a href=\"http://www.webinweb.net\" target=\"_blank\">MWContact 2.0 by Onizuka88</a> ©2004-2005 All rights reserved</div>
</td>
</tr>
";
$blocks .= $Skin->view_block("{$mklib->lang['co_title1']}", $output);
$mklib->printpage("1", "1", "{$mklib->lang['co_title1']}", $blocks);
}
}
?>
Loggato
Agostino
Utente
Ringraziamenti:
0
Offline
Sesso:
Posts: 43
CMS: MKPortal
Board: phpBB 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #64 il:
Domenica, 21 Ottobre 2007 18:12 »
questo l'errore
Loggato
Agostino
Utente
Ringraziamenti:
0
Offline
Sesso:
Posts: 43
CMS: MKPortal
Board: phpBB 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #65 il:
Domenica, 21 Ottobre 2007 18:16 »
posto anche lo screen dell'sql
Loggato
Onizuka88
Ringraziamenti:
56
Offline
Sesso:
Posts: 696
CMS: MKPortal
Board: SMF 1.x
Re: [M1.1] MWContact v2.0
«
Risposta #66 il:
Domenica, 21 Ottobre 2007 18:28 »
eccoti l'errore, devi cambiare anche qui
<input type=\"text\" name=\"email\" size=\"52\" class=\"bgselect\" />
se hai dopo usato $toemail = $mkportals->input['email1']; allora il nome email1 deve essere uguale al name dell'input quindi o modifichi tutti i campi input aggiungedoci l'1 dopo oppure nella funzione send_mail cambi tutti i nome togliendo l'1
Loggato
Darknico
Ringraziamenti:
173
Offline
Sesso:
Posts: 2656
CMS: MKPortal
Board: SMF 1.x
Re: [M1.1] MWContact v2.0
«
Risposta #67 il:
Domenica, 21 Ottobre 2007 18:35 »
agostino, cerchiamo di nn fare piu post, ne poteva bastare anche uno..
e gia scritto edita
grazie
Loggato
Regole Principali di WebinWeb.net
Agostino
Utente
Ringraziamenti:
0
Offline
Sesso:
Posts: 43
CMS: MKPortal
Board: phpBB 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #68 il:
Domenica, 21 Ottobre 2007 19:37 »
Citato da: Darknico - Domenica, 21 Ottobre 2007 18:35
agostino, cerchiamo di nn fare piu post, ne poteva bastare anche uno..
e gia scritto edita
grazie
ops...scusa...ormai ho l'abitudine che nella maggior parte dei forum non si può + editare...di conseguenza manco ci provo più...
Onizuka88...adesso provo a fare come hai detto (anke se nn c'ho capito na mazza
)...ci andrò anche stavolta ad intuito e ti farò sapere
Loggato
Agostino
Utente
Ringraziamenti:
0
Offline
Sesso:
Posts: 43
CMS: MKPortal
Board: phpBB 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #69 il:
Domenica, 21 Ottobre 2007 21:14 »
mmm ora funziona xò l'email nn arriva mai...nn vorrei aver fatto qualche altro pasticcio
rimetto il code dell'index.php
Codice:
Seleziona tutto
|
Copia
<?
/*
+--------------------------------------------------------------------------
| MkPortal
| ========================================
| by Meo aka Luponero <Amedeo de longis>
|
| (c) 2004-2005 mkportal.it
| http://www.mkportal.it
| Email: luponero@mclink.it
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/
if (!defined("IN_MKP")) {
die ("Sorry !! You cannot access this file directly.");
}
$idx = new mk_contact1;
class mk_contact1 {
var $tpl = "";
function mk_contact1() {
global $mkportals, $DB, $mklib, $Skin, $mklib_board;
$mklib->load_lang("lang_contact1.php");
$query = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'access'");
$row = $DB->fetch_row($query);
$access = $row['valore'];
if ($access== "1") {
if(!$mkportals->member['id']) {
$message = "{$mklib->lang['co_noenterg1']}";
$mklib->error_page($message);
exit;
}
}
switch($mkportals->input['op']) {
case 'send_email':
$this->send_email();
break;
default:
$this->mod_contact1();
break;
}
}
function mod_contact1() {
global $mkportals, $DB, $mklib, $Skin;
$query = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'mexhome'");
$row = $DB->fetch_row($query);
$mexhome = $row['valore'];
$mexhome = htmlspecialchars($mexhome);
$nome= "";
if ($mkportals->member['id']) {
$nome = $mkportals->member['name'];
}
$output = "
<tr>
<td>
<table class=\"moduleborder\" cellspacing=\"1\" cellpadding=\"0\" width=\"98%\" align=\"center\" border=\"0\">
<tr>
<td>
<table class=\"modulebg\" cellspacing=\"1\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td class=\"tdblock\" width=\"100%\" height=\"25\"><img src=\"$mklib->images/arrow.gif\" alt=\"\" />{$mklib->lang['co_contact1']}</td>
</tr>
<tr>
<td>
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td>
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td>
<table cellspacing=\"1\" cellpadding=\"5\" width=\"100%\" border=\"0\">
<tr>
<td class=\"modulex\" width=\"100%\" colspan=\"2\"><form method=\"post\" action=\"index.php?ind=contact1&op=send_email\">
$mexhome</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"><b>{$mklib->lang['co_nome1']}</b></td>
<td class=\"modulex\" width=\"80%\">
<input type=\"text\" name=\"nome1\" size=\"52\" class=\"bgselect\" value=\"$nome\" />
</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"><b>{$mklib->lang['co_email1']}</b></td>
<td class=\"modulex\" width=\"80%\">
<input type=\"text\" name=\"email1\" size=\"52\" class=\"bgselect\" />
</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"><b>{$mklib->lang['co_oggetto1']}</b></td>
<td class=\"modulex\" width=\"80%\">
<input type=\"text\" name=\"oggetto1\" size=\"52\" class=\"bgselect\" />
</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"><b>{$mklib->lang['co_messaggio1']}</b></td>
<td class=\"modulex\" width=\"80%\">
<textarea name=\"messaggio1\" cols=\"48\" rows=\"5\" ></textarea>
</td>
</tr>
<tr>
<td class=\"modulex\" width=\"20%\"></td>
<td class=\"modulex\" width=\"80%\">
<input type=\"submit\" value=\"{$mklib->lang['co_send1']}\" name=\"submit\">
<input type=\"reset\" value=\"{$mklib->lang['co_delete1']}\" name=\"reset\">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align=\"center\"><br /><br />
<div align=\"center\"><a href=\"http://www.webinweb.net\" target=\"_blank\">MWContact 2.0 by Onizuka88</a> ©2004-2005 All rights reserved</div>
</td>
</tr>
";
$blocks .= $Skin->view_block("{$mklib->lang['co_title1']}", $output);
$mklib->printpage("1", "1", "{$mklib->lang['co_title1']}", $blocks);
}
function send_email() {
global $mkportals, $DB, $mklib, $Skin;
$query1 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'email'");
$row1 = $DB->fetch_row($query1);
$fromemail = $row1['valore'];
$query4 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'risposta'");
$row4 = $DB->fetch_row($query4);
$risposta = $row4['valore'];
$query5 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'mexrisp'");
$row5 = $DB->fetch_row($query5);
$mexrisp = $row5['valore'];
$mexrisp = htmlspecialchars($mexrisp);
$nome = $mkportals->input['nome1'];
$toemail = $mkportals->input['email1'];
$oggetto = $mkportals->input['oggetto1'];
$messaggio = $mkportals->input['messaggio1'];
$oggetto1 = "{$mklib->lang['co_object1']} ".$mklib->sitename;
$homepageurl = $mklib->sitename;
$data = date("m/d/Y H:i:s");
if (!$toemail || !$messaggio || !$oggetto || !$nome) {
$message = "{$mklib->lang['co_error11']}";
$mklib->error_page($message);
exit();
}
if (!eregi("^[\'+\\./0-9A-Z^_\`a-z{|}~\-]+@[a-zA-Z0-9_\-]+(\.[a-zA-Z0-9_\-]+){1,3}$", $toemail)) {
$message = "{$mklib->lang['co_error21']}";
$mklib->error_page($message);
exit();
}
$query6 = $DB->query( "SELECT valore FROM mkp_contact1 WHERE chiave = 'host'");
$row6 = $DB->fetch_row($query6);
$host = $row6['valore'];
$ip ="--";
$hoster = "--";
if ($host == "1") {
$ip = $_SERVER['REMOTE_ADDR'];
$hoster = gethostbyaddr($ip);
}
$headers = "From: $fromemail\r\n";
$headers2 = "From: $toemail\r\n";
mail("$fromemail", "$oggetto","
{$mklib->lang['co_data1']} $data
--------------------------------------------------------
{$mklib->lang['co_nome1']} : $nome
{$mklib->lang['co_email1']} : $toemail
{$mklib->lang['co_oggetto1']} : $oggetto
{$mklib->lang['co_host1']} : $hoster
{$mklib->lang['co_ip1']} : $ip
{$mklib->lang['co_messaggio1']} :
$messaggio
--------------------------------------------------------
","$headers2");
if ($risposta == "1"){
mail("$toemail","$homepageurl ", "
$nome\n
---------------------------------------------\n
{$mklib->lang['co_dear1']} $nome\n
$mexrisp \n
---------------------------------------------\n
","$headers");
}
$output = "
<tr>
<td>
<table class=\"moduleborder\" cellspacing=\"1\" cellpadding=\"0\" width=\"98%\" align=\"center\" border=\"0\">
<tr>
<td>
<table class=\"modulebg\" cellspacing=\"1\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td class=\"tdblock\" width=\"100%\" height=\"25\"><img src=\"$mklib->images/arrow.gif\" alt=\"\" />{$mklib->lang['co_contact1']}</td>
</tr>
<tr>
<td>
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td>
<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\">
<tr>
<td>
<table cellspacing=\"1\" cellpadding=\"5\" width=\"100%\" border=\"0\">
<tr>
<td class=\"modulex\" width=\"100%\" colspan=\"2\" align=\"center\"><img src=\"$mklib->siteurl/mkportal/modules/contact/apply.gif\"><br></br><b>{$mklib->lang['co_emailinv1']}</b></td>
</tr>
<tr>
<td class=\"modulex\" width=\"100%\" colspan=\"2\" align=\"center\"><img src=\"$mklib->images/f2.gif\"> <a href=\"index.php?ind=contact1\"><b>{$mklib->lang['co_return1']}</b></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr><tr>
<td align=\"center\"><br /><br />
<div align=\"center\"><a href=\"http://www.webinweb.net\" target=\"_blank\">MWContact 2.0 by Onizuka88</a> ©2004-2005 All rights reserved</div>
</td>
</tr>
";
$blocks .= $Skin->view_block("{$mklib->lang['co_title1']}", $output);
$mklib->printpage("1", "1", "{$mklib->lang['co_title1']}", $blocks);
}
}
?>
Loggato
stevitdj
Utente
Ringraziamenti:
0
Offline
Posts: 3
CMS: MKPortal
Board: SMF 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #70 il:
Domenica, 28 Ottobre 2007 19:06 »
Ciao
ho installato il modulo contatti ma quando mi chiede di inserire i dati del db mi da il seguente errore:
0ERROR: Database error.
Cannot execute the query: SELECT valore FROM mkp_contact WHERE chiave = 'access'
MySql Error returned: Table 'XXXXXXXXX.mkp_contact' doesn't exist
MySql Error code: 1146
Grazie anticipatamente
Loggato
Darknico
Ringraziamenti:
173
Offline
Sesso:
Posts: 2656
CMS: MKPortal
Board: SMF 1.x
Re: [M1.1] MWContact v2.0
«
Risposta #71 il:
Domenica, 28 Ottobre 2007 19:11 »
dici tramite l'install.php??
Loggato
Regole Principali di WebinWeb.net
stevitdj
Utente
Ringraziamenti:
0
Offline
Posts: 3
CMS: MKPortal
Board: SMF 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #72 il:
Domenica, 28 Ottobre 2007 19:16 »
ho risolto grazie.
Un'altra cosa...non riesco ad entrare nel mio cp. Come mai?
Loggato
Darknico
Ringraziamenti:
173
Offline
Sesso:
Posts: 2656
CMS: MKPortal
Board: SMF 1.x
Re: [M1.1] MWContact v2.0
«
Risposta #73 il:
Domenica, 28 Ottobre 2007 19:17 »
nel tuo cp di kosa?sii piu kiaro...
Loggato
Regole Principali di WebinWeb.net
stevitdj
Utente
Ringraziamenti:
0
Offline
Posts: 3
CMS: MKPortal
Board: SMF 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #74 il:
Domenica, 28 Ottobre 2007 19:22 »
nel mio cp dei contatti.
Ho seguito tutte le istruzioni che stavano nel file tranne quella che diceva di editare il fie mkportal/admin.php.
il file non esiste nel mio ftp
Loggato
Darknico
Ringraziamenti:
173
Offline
Sesso:
Posts: 2656
CMS: MKPortal
Board: SMF 1.x
Re: [M1.1] MWContact v2.0
«
Risposta #75 il:
Domenica, 28 Ottobre 2007 19:32 »
eh, hai visto ke esistono due pakketti all'interno?uno per l'installazione su mk fino alla versione 1.1.1 e uno per la versione 1.1.2
dacci uno sguardo ke è meglio, e sostituisci anche i file,che sennò non funziona...
Loggato
Regole Principali di WebinWeb.net
I seguenti 1 utenti hanno ringraziato Darknico per questo utile post:
stevitdj
(28/10/07)
Agostino
Utente
Ringraziamenti:
0
Offline
Sesso:
Posts: 43
CMS: MKPortal
Board: phpBB 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #76 il:
Domenica, 28 Ottobre 2007 19:35 »
darkanico sai xcaso aiutarmi xil mio errore di duplicazione del modulo ?
Loggato
Darknico
Ringraziamenti:
173
Offline
Sesso:
Posts: 2656
CMS: MKPortal
Board: SMF 1.x
Re: [M1.1] MWContact v2.0
«
Risposta #77 il:
Domenica, 28 Ottobre 2007 19:40 »
Citato da: Agostino - Domenica, 28 Ottobre 2007 19:35
darkanico sai xcaso aiutarmi xil mio errore di duplicazione del modulo ?
nn avevi risolto??qualè il problema??
P.S. Darknico, non darkanico
Loggato
Regole Principali di WebinWeb.net
Agostino
Utente
Ringraziamenti:
0
Offline
Sesso:
Posts: 43
CMS: MKPortal
Board: phpBB 2.x
Re: [M1.1] MWContact v2.0
«
Risposta #78 il:
Domenica, 28 Ottobre 2007 20:34 »
Citato da: Darknico - Domenica, 28 Ottobre 2007 19:40
nn avevi risolto??qualè il problema??
P.S. Darknico, non darkanico
ops scusa...questo xkè leggo i nick sempre cn la codina dell'occhio
si mi aveva aiutato il tuo collega (nn ricordo il nick)...e mi ha risolto il problema ke avevo...adesso mi invia l'email tranquillamente apparentemente xò l'email nn mi arriva a destinazione...
Loggato
Darknico
Ringraziamenti:
173
Offline
Sesso:
Posts: 2656
CMS: MKPortal
Board: SMF 1.x
Re: [M1.1] MWContact v2.0
«
Risposta #79 il:
Lunedì, 29 Ottobre 2007 00:59 »
potrebbe essere un problema della mail in uso
Loggato
Regole Principali di WebinWeb.net
Pagine:
1
2
3
[
4
]
5
6
7
Vai Su
Stampa
AVVISO
FORUM CHIUSO, VISUALIZZABILE SOLO IN LETTURA
WebinWeb.net
>
CMS
>
MKPortal
>
Moduli
>
[C1.2] MWContact v2.0
Salta a:
Seleziona una destinazione:
-----------------------------
Comunicazioni
-----------------------------
=> Avvisi e Annunci IMPORTANTI
=> Site Help
-----------------------------
Shop Risorse
-----------------------------
=> Compra e Vendi
===> Portali e Forums
===> Grafica web
===> Scripts
=> Richieste
===> Richieste Free
-----------------------------
Creazioni della Community
-----------------------------
=> Idee & Proposte
=> Creazioni in corso...
=> Script
-----------------------------
CMS
-----------------------------
=> MKPortal
===> Blocchi
===> Moduli
===> Hack
===> Skins
=> Mambo/Joomla
===> Moduli
===> Componenti
===> Themes
=> Xoops
-----------------------------
Forum
-----------------------------
=> Simple Machines Forum (SMF)
===> Mods
===> Themes
===> Hack
=> phpBB
===> Hack
===> Themes
=> MyBB
===> Themes
-----------------------------
Generale
-----------------------------
=> Presentazioni
=> Off-topic
=> International Room
=> (X)HTML, CSS, PHP e Script in generale
=> Webmasters & Webdesigners
=> Segnala il tuo sito
=> Abusi WebinWeb.net
Caricando...