gbdb.csv -> .htgbdb.csv and multiemail notifications
This commit is contained in:
		
							parent
							
								
									bd5dd23527
								
							
						
					
					
						commit
						6b15e03ac4
					
				
							
								
								
									
										4
									
								
								LICENSE
								
								
								
								
							
							
						
						
									
										4
									
								
								LICENSE
								
								
								
								
							|  | @ -1,6 +1,4 @@ | ||||||
| sshch | phpcsvguestbook is released under the DWTW license | ||||||
| 
 |  | ||||||
| sshch is released under the DWTW license |  | ||||||
| 
 | 
 | ||||||
| This program is free software; you can redistribute it and/or modify it under the terms of the Do What Thou Wilt License. | This program is free software; you can redistribute it and/or modify it under the terms of the Do What Thou Wilt License. | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -30,9 +30,11 @@ function SendMail() { | ||||||
|     if ($GBsubjectfield) $message=$message." ".$_POST["subj"]; |     if ($GBsubjectfield) $message=$message." ".$_POST["subj"]; | ||||||
|     if ($GBcategoryfield) $message=$message." [".$_POST["category"]."]"; |     if ($GBcategoryfield) $message=$message." [".$_POST["category"]."]"; | ||||||
|     $message=$message.":\r\n\r\n".$_POST["text"]."\r\n\r\n_____\r\n".$Titles["MailAdmin"]; |     $message=$message.":\r\n\r\n".$_POST["text"]."\r\n\r\n_____\r\n".$Titles["MailAdmin"]; | ||||||
|     mail($GBnotificationmailto, $Titles["MailSubject"], $message, |     foreach ($GBnotificationmailto as $email) { | ||||||
|     "From: ".$GBnotificationmailfrom." \r\n"."Content-type: text/plain; charset=utf-8\r\n" |         mail($email, $Titles["MailSubject"], $message, | ||||||
|     ."X-Mailer: PHP/".phpversion()); |         "From: ".$GBnotificationmailfrom." \r\n"."Content-type: text/plain; charset=utf-8\r\n" | ||||||
|  |         ."X-Mailer: PHP/".phpversion()); | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function ReadEntries() { | function ReadEntries() { | ||||||
|  |  | ||||||
							
								
								
									
										12
									
								
								settings.php
								
								
								
								
							
							
						
						
									
										12
									
								
								settings.php
								
								
								
								
							|  | @ -6,7 +6,7 @@ | ||||||
|  * Please, change $GBadmin and $GBpassword parameters for access to administration page. |  * Please, change $GBadmin and $GBpassword parameters for access to administration page. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| $GBdata="gbdb.csv"; | $GBdata=".htgbdb.csv"; | ||||||
| $GBadmin="root"; | $GBadmin="root"; | ||||||
| $GBpassword="password"; | $GBpassword="password"; | ||||||
| 
 | 
 | ||||||
|  | @ -37,10 +37,12 @@ $GBupload=array(  // enable or disable upload feature | ||||||
| $GBfilesize=1048576; // maximum file size
 | $GBfilesize=1048576; // maximum file size
 | ||||||
|                      // أقصى حجم ملف
 |                      // أقصى حجم ملف
 | ||||||
|                      // максимальный размер загружаемого файла
 |                      // максимальный размер загружаемого файла
 | ||||||
| $GBnotificationmailto=""; // leave empty if you don't want send notification
 | $GBnotificationmailto=array(    // enable or disable email notifications, false - disabled, array - addresses
 | ||||||
|                           // ترك فارغة إذا كنت لا تريد إرسال إشعار
 |     0=>"somemail@mail.com",     // تمكين أو تعطيل إعلامات البريد الإلكتروني، كاذبة - تعطيل، مجموعة من العناوين.
 | ||||||
|                           // оставьте поле пустым, если не хотите отправки уведомлений о новых записях
 |     1=>"anothermail@mail.com"); // включение или отключение уведомлений на почту, false - отключено, array - список адресов
 | ||||||
| $GBnotificationmailfrom=""; | $GBnotificationmailfrom="gb@mail.com"; // mailfrom field for notifications
 | ||||||
|  |                                        // البريد من الميدان للإشعارات
 | ||||||
|  |                                        // поле mailfrom для уведомленеий
 | ||||||
| $GBtextlenght=7168; // maximum size of entry text
 | $GBtextlenght=7168; // maximum size of entry text
 | ||||||
|                     // أقصى حجم نص مدخل
 |                     // أقصى حجم نص مدخل
 | ||||||
|                     // максимальное количество символов для текста записи
 |                     // максимальное количество символов для текста записи
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue