Server IP : 80.241.246.6 / Your IP : 216.73.216.188 Web Server : Apache/2.4.25 (Debian) System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64 User : www-data ( 33) PHP Version : 7.0.33-0+deb9u12 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/kharagauli_new/Citizens_feedback/pages/ |
Upload File : |
<?php // include 'admin/conf.php'; include 'admin/functions.php'; $Message=''; $ShowForm=true; if(isset($_POST['g-recaptcha-response'])){ // print_r($_POST); $re=$_POST['g-recaptcha-response']; $Message=trim($_POST['Message']); $Email=trim($_POST['Email']); $Phone=trim($_POST['Phone']); if($re=='') { echo '<a name="error"></a><script>location="#error"</script>'; error('აუცილებლად მონიშნეთ "მე არ ვარ რობოტი" უჯრა',0,30); } else if($Message=='') { echo '<a name="error"></a><script>location="#error"</script>'; error('აუცილებლად ჩაწერეთ ტექსტი',0,30); } else{ if(isset($_SERVER['REMOTE_ADDRESS'])) $IP=$_SERVER['REMOTE_ADDRESS']; else $IP='0.0.0.0'; mysqli_query($baza,'insert into cf_Messages (IP, DTime, Message, Email, Phone) values ("'.$IP.'", "'.date('Y-m-d H:i:s').'", "'.$Message.'", "'.$Email.'", "'.$Phone.'")'); echo '<a name="ok"></a><script>location="#ok"</script>'; info('გმადლობთ შეტყობინების დატოვებისთვის',0,30); $ShowForm=false; } } ?> <script src="https://www.google.com/recaptcha/api.js?hl=ka" async defer></script> <script src="js/jquery-3.4.1.min.js"></script> <script> function onSubmit() { var inputs=$('form input'); console.log(inputs); } </script> <style> .g-recaptcha{margin: 20px} textarea.cf_message { width: 100%; min-height: 200px; } .Questions { line-height: initial; } .Questions input { display: inline-block; width: initial; height: initial; line-height: initial; padding: 4px 11px; } </style> <?php if($ShowForm){ ?> <form action="" method="POST" enctype="multipart/form-data" onSubmit="return onSubmit()"> <div class="form"> <h4>მოგვწერეთ თქვენი შენიშვნები და სურვილები პლატფორმასთან დაკავშირებით</h4> <div>საკონტაქტო ელ-ფოსტა <input type="email" name="Email"></div> <div>საკონტაქტო ტელეფონი <input type="tel" name="Phone"></div> <div>დაწერეთ შეტყობინება <span style="color: red">* - სავალდებულო ველი</span><br> <textarea name="Message" class="cf_message" required></textarea> </div> <div class="g-recaptcha" data-sitekey="6LcqvIgdAAAAABsH8FIdEeu82kVoZYBUMWkl_BTN" ></div> <div align="center"> <input type="submit" value="გაგზავნა"> </div> </div> </form> <style> .form > * {margin-bottom: 10px} </style> <?php } ?>