Tarnautojas  
		Narys  
		Buldozeris 
		 
		
		Pranešimai:  242 
		Įstojęs:  2007 Vas. 2 20:02:11
	 
	 
Kur ir kaip reikia pakeisti įrašą, kad sakykime laiškas iš contact.php eitu kaip ir užprogramuota svetainės administratoriui, o iš papildomai sukurto contact1.php ir kad iš jo laišką gautu sakykime moderatorius1@gmail.com  
Tai va contact1.php failas, ką ir kaip reikia pakeisti, kad sakykime laišką gautu moderatorius1@gmail.com  
Bučiau labai dėkingas už pagalbą. 
 
 
 
<?php 
/*---------------------------------------------------+ 
| PHP -Fusion 6 Content Management System 
+----------------------------------------------------+ 
| Copyright © 2002 - 2006 Nick Jones 
| http://www.php-fusion.co.uk/  
+----------------------------------------------------+ 
| Released under the terms & conditions of v2 of the 
| GNU General Public License. For details refer to 
| the included gpl.txt file or visit http://gnu.org  
+----------------------------------------------------*/ 
require_once "maincore.php"; 
require_once "subheader.php"; 
require_once "side_left.php"; 
include LOCALE.LOCALESET."contact.php"; 
 
if (isset($_POST['sendmessage'])) { 
   $error = ""; 
   $mailname = substr(stripinput(trim($_POST['mailname'])),0,50); 
   $email = substr(stripinput(trim($_POST['email'])),0,100); 
   $subject = substr(str_replace(array("\r","\n","@"), "", descript(stripslash(trim($_POST['subject'])))),0,50); 
   $message = descript(stripslash(trim($_POST['message']))); 
   if ($mailname == "") { 
      $error .= "· <span class='alt'>".$locale['420']."</span><br>\n"; 
   } 
   if ($email == "" || !preg_match("/^[-0-9A-Z_\.]{1,50}@([-0-9A-Z_\.]+\.){1,50}([0-9A-Z]){2,4}$/i", $email)) { 
      $error .= "· <span class='alt'>".$locale['421']."</span><br>\n"; 
   } 
   if ($subject == "") { 
      $error .= "· <span class='alt'>".$locale['422']."</span><br>\n"; 
   } 
   if ($message == "") { 
      $error .= "· <span class='alt'>".$locale['423']."</span><br>\n"; 
   } 
   if (!$error) { 
      require_once INCLUDES."sendmail_include.php"; 
      sendemail($settings['siteusername'],$settings['siteemail'],$mailname,$email,$subject,$message); 
      opentable($locale['400']); 
      echo "<center><br>\n".$locale['440']."<br><br>\n".$locale['441']."</center><br>\n"; 
      closetable(); 
   } else { 
      opentable($locale['400']); 
      echo "<center><br>\n".$locale['442']."<br><br>\n$error<br>\n".$locale['443']."</center><br>\n"; 
      closetable(); 
   } 
} else { 
   opentable($locale['400']); 
   echo $locale['401']."<br><br> 
<form name='userform' method='post' action='".FUSION_SELF."'> 
<table align='center' cellpadding='0' cellspacing='0' class='tbl'> 
<tr> 
<td width='100'>".$locale['402']."</td> 
<td><input type='text' name='mailname' maxlength='50' class='textbox' style='width: 200px;'></td> 
</tr> 
<tr> 
<td width='100'>".$locale['403']."</td> 
<td><input type='text' name='email' maxlength='100' class='textbox' style='width: 200px;'></td> 
</tr> 
<tr> 
<td width='100'>".$locale['404']."</td> 
<td><input type='text' name='subject' maxlength='50' class='textbox' style='width: 200px;'></td> 
</tr> 
<tr><td valign='top' width='90'>".$locale['405']."</td> 
<td><textarea name='message' rows='10' class='textbox' style='width: 320px'></textarea></td> 
</tr> 
<tr> 
<td align='center' colspan='2'> 
<input type='submit' name='sendmessage' value='".$locale['406']."' class='button'> 
</td> 
</tr> 
</table> 
</form>\n"; 
   closetable(); 
} 
 
require_once "side_right.php"; 
require_once "footer.php"; 
?> 
Jungtinis demokratinis judėjimas Redagavo 
Tarnautojas   2008 Bal. 18 13:04:48
 
 
		MAnjack  
		Garbės narys  
		Legenda 
		 
		
		Pranešimai:  11821 
		Įstojęs:  2006 Kov. 2 20:03:58
	 
	 
Šitą vietą reikia pakeist: 
$settings['siteemail'] 
 
		kiskiss  
		Narys  
		Terminatorius 
		 
		
		Pranešimai:  1545 
		Įstojęs:  2006 Rugs. 11 17:09:58
	 
	 
<?php 
/*---------------------------------------------------+ 
| PHP -Fusion 6 Content Management System 
+----------------------------------------------------+ 
| Copyright © 2002 - 2006 Nick Jones 
| http://www.php-fusion.co.uk/  
+----------------------------------------------------+ 
| Released under the terms & conditions of v2 of the 
| GNU General Public License. For details refer to 
| the included gpl.txt file or visit http://gnu.org  
+----------------------------------------------------*/ 
require_once "maincore.php"; 
require_once "subheader.php"; 
require_once "side_left.php"; 
include LOCALE.LOCALESET."contact.php"; 
 
if (isset($_POST['sendmessage'])) { 
   $error = ""; 
   $mailname = substr(stripinput(trim($_POST['mailname'])),0,50); 
   $email = substr(stripinput(trim($_POST['email'])),0,100); 
   $subject = substr(str_replace(array("\r","\n","@"), "", descript(stripslash(trim($_POST['subject'])))),0,50); 
   $message = descript(stripslash(trim($_POST['message']))); 
   if ($mailname == "") { 
      $error .= "· <span class='alt'>".$locale['420']."</span><br>\n"; 
   } 
   if ($email == "" || !preg_match("/^[-0-9A-Z_\.]{1,50}@([-0-9A-Z_\.]+\.){1,50}([0-9A-Z]){2,4}$/i", $email)) { 
      $error .= "· <span class='alt'>".$locale['421']."</span><br>\n"; 
   } 
   if ($subject == "") { 
      $error .= "· <span class='alt'>".$locale['422']."</span><br>\n"; 
   } 
   if ($message == "") { 
      $error .= "· <span class='alt'>".$locale['423']."</span><br>\n"; 
   } 
   if (!$error) { 
      mail( "TAVO@MAILAS.com",$subject, 
    $message "From: $email" ); 
      opentable($locale['400']); 
      echo "<center><br>\n".$locale['440']."<br><br>\n".$locale['441']."</center><br>\n"; 
      closetable(); 
   } else { 
      opentable($locale['400']); 
      echo "<center><br>\n".$locale['442']."<br><br>\n$error<br>\n".$locale['443']."</center><br>\n"; 
      closetable(); 
   } 
} else { 
   opentable($locale['400']); 
   echo $locale['401']."<br><br> 
<form name='userform' method='post' action='".FUSION_SELF."'> 
<table align='center' cellpadding='0' cellspacing='0' class='tbl'> 
<tr> 
<td width='100'>".$locale['402']."</td> 
<td><input type='text' name='mailname' maxlength='50' class='textbox' style='width: 200px;'></td> 
</tr> 
<tr> 
<td width='100'>".$locale['403']."</td> 
<td><input type='text' name='email' maxlength='100' class='textbox' style='width: 200px;'></td> 
</tr> 
<tr> 
<td width='100'>".$locale['404']."</td> 
<td><input type='text' name='subject' maxlength='50' class='textbox' style='width: 200px;'></td> 
</tr> 
<tr><td valign='top' width='90'>".$locale['405']."</td> 
<td><textarea name='message' rows='10' class='textbox' style='width: 320px'></textarea></td> 
</tr> 
<tr> 
<td align='center' colspan='2'> 
<input type='submit' name='sendmessage' value='".$locale['406']."' class='button'> 
</td> 
</tr> 
</table> 
</form>\n"; 
   closetable(); 
} 
 
require_once "side_right.php"; 
require_once "footer.php"; 
?> 
 
		Tarnautojas  
		Narys  
		Buldozeris 
		 
		
		Pranešimai:  242 
		Įstojęs:  2007 Vas. 2 20:02:11
	 
	 
Labai dėkingas kolegos, išgelbėjote man gyvybę. 
Jungtinis demokratinis judėjimas  
 
		mXt  
		Narys  
		Viršesnis už Dievą 
		 
		
		Pranešimai:  5775 
		Įstojęs:  2006 Bir. 9 16:06:09
	 
	 
Galiam dar taip padaryti, kad virsuje kontaktu formos butu Drop Down Menu, ir butu pasirinkti, kam siusti laiska.  ex best admin! 
 
Peršokti į forumą: 
Nebeegzistuojančios svetainės 
 
Žaliems 
Bendri PHP-F klausimai 
WordPress 
Kiti PHP, HTML, MySQL klausimai 
Expert PHP, MySQL klausimai 
Kitos TVS 
C#, Python, Java, JS, C++ klausimai 
 
Naujų modų pristatymai 
Mods, Panels & Infusions 
Themes 
 
Jūsų saitai 
 
Dalinuosi, dovanoju! 
 
Klausimai apie domenus ir hostingus 
VPS/DS serverių konfigūravimas ir valdymas 
Viskas apie skaitliukus, top'us ir lankomumą 
 
Dizaino konkursai 
Parduodu - perku dizainą, banerį 
Parduodu - perku - keičiuosi reklama 
Parduodu - perku domeną, tinklapį 
Siūlau - ieškau hostingo/VPS serverio 
Parduodu - perku skriptą, modifikaciją, tvs 
Socialiniai tinklai - Facebook ir kiti 
Legalus verslas, teisiniai klausimai 
Visa kita kas susiję su darbu ir pinigais 
 
LTStartups.com - Lietuvos startuolių bendruomenė 
Off-Topic diskusijos 
IT naujienos 
Portalo informacija 
Narių pasiūlymai 
Geležis ir programinė įranga 
Grafika 
Out Of Place 
 
Su e-verslu nesusijęs darbas ir prekyba 
 
Dalinuosi, dovanoju!