403Webshell
Server IP : 185.11.201.71  /  Your IP : 192.168.7.18
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : tech ( 1000)
PHP Version : 7.4.28
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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wordpress/App/pages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wordpress/App/pages//add_design.html
<!DOCTYPE html>
<html>
	<head>
		<title>Dxf-Parser - Browser Sample</title>
		<meta http-equiv="Expires" content="0">
		<meta http-equiv="Last-Modified" content="0">
		<meta http-equiv="Cache-Control" content="no-cache, mustrevalidate">
		<meta http-equiv="Pragma" content="no-cache">
	</head>
	<body>
	
  <main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
    <div class="container-fluid py-4">
      <div class="row">
        <div class="col-12">
          <div class="card mb-4">
            <div class="card-header pb-0">
              <h6>Add Design</h6>
            </div>
            <div class="card-body px-0 pt-0 pb-2">
				<form class="p-5" id="add_design_form">
				  <div class="form-group">
					<label for="inputName">Design Name</label>
					<input type="text" class="form-control" id="inputName" placeholder="Enter Design Name">
				  </div>
				  <div class="form-group">
					<label for="inputSeason">Season</label>
					<select class="form-control" id="inputSeason" placeholder="Select Season">
						<option selected="true" disabled="disabled"> Select season...</option>
					</select>
				  </div>
				  <div class="form-group">
					<label for="inputCategory">Category</label>
					<select class="form-control" id="inputCategory" placeholder="Select Category">
						<option selected="true" disabled="disabled"> Select category...</option>
					</select>
				  </div>
				  <div class="form-group">
					<label for="inputType">Type</label>
					<select class="form-control" id="inputType" placeholder="Select Type">
						<option selected="true" disabled="disabled"> Select Type...</option>
					</select>
				  </div>
				  <div class="form-group">
					<label for="Image" class="form-label">Upload image</label>
                	<input class="form-control" type="file" id="formFile" onchange="preview()">
                	<button onclick="clearImage()" class="btn btn-primary mt-3">Clear image</button>
				  </div>
				  <div class="form-group">
					<img id="frame" style="max-height:200px ;" src="" class="img-fluid" />
				  </div>
				  <button type="submit" class="btn btn-primary" id="submitButton" onclick="submit()">Submit</button>
				</form>
            </div>
          </div>
        </div>
      </div>
    </div>
   
  </main>
  
  	</body>
</html>

<script>
	function preview() {
		frame.src = URL.createObjectURL(event.target.files[0]);
	}
	function clearImage() {
		document.getElementById('formFile').value = null;
		frame.src = "";
	}
	
	
	function submit() {
		console.log($('form#add_design_form').serialize());
		/*$('button#submitButton').click( function() {
			$.ajax({
				url: 'https://t2tapi.tech-impulse.com/t2t-api/public/api/auth/adddesign',
				type: 'post',
				dataType: 'json',
				data: $('form#add_design_form').serialize(),
				success: function(data) {
					
				}
			});
		});*/
	}
	
	var token = localStorage.getItem('tokenT2T');
	listS = $("#inputSeason");
	listC = $("#inputCategory");
	listT = $("#inputType");
		
	$.ajax({
		type:"GET", // la variable type guarda el tipo de la peticion GET,POST,..
		url: "https://t2tapi.tech-impulse.com/t2t-api/public/api/auth/seasons",
		headers:{'Authorization': 'Bearer ' + token},
		success:function(datos){
			$.each(datos.Seasons, function (index, season){
				$(listS).append("<option value=\""+season.id+"\">"+season.name+"</option>")
			})
		}
	});

	$.ajax({
		type:"GET", // la variable type guarda el tipo de la peticion GET,POST,..
		url: "https://t2tapi.tech-impulse.com/t2t-api/public/api/auth/categories",
		headers:{'Authorization': 'Bearer ' + token},
		success:function(datos){
			$.each(datos.Categories, function (index, categories){
				$(listC).append("<option value=\""+categories.id+"\">"+categories.name+"</option>")
			})
		}
	});
	
	$.ajax({
		type:"GET", // la variable type guarda el tipo de la peticion GET,POST,..
		url: "https://t2tapi.tech-impulse.com/t2t-api/public/api/auth/gettypes",
		headers:{'Authorization': 'Bearer ' + token},
		success:function(datos){
			console.log(datos)
			$.each(datos.types, function (index, type){
				$(listT).append("<option value=\""+type.id+"\">"+type.name+"</option>")
			})
		}
	});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit