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