HEX
Server: Apache
System: Linux darrell.nocdirect.com 4.18.0-513.18.2.el8_9.x86_64 #1 SMP Sat Mar 30 06:10:41 EDT 2024 x86_64
User: joderbya (1358)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/joderbya/public_html/foiroubado.com/index.php
<?php
	error_reporting(E_ALL);
	ini_set('display_errors', 1);

	session_start(); // this MUST be called prior to any output including whitespaces and line breaks!

	$GLOBALS['DEBUG_MODE'] = 1;
	// CHANGE TO 0 TO TURN OFF DEBUG MODE
	// IN DEBUG MODE, ONLY THE CAPTCHA CODE IS VALIDATED, AND NO EMAIL IS SENT

	$GLOBALS['ct_recipient']   = 'YOU@EXAMPLE.COM'; // Change to your email address!  Make sure DEBUG_MODE above is 0 for mail to send!
	$GLOBALS['ct_msg_subject'] = 'Securimage Test Contact Form';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="DESCRIPTION" content="Cadastro nacional de bens móveis roubados">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Moçambique Lista Negra</title>
	<link rel="stylesheet" type="text/css" href="view.css" media="all">
	<script type="text/javascript" src="view.js"></script>
	
<style type="text/css">
/*modak content*/
.rounded-list li{
    position: relative;
    display: block;
    padding: .4em .4em .4em 2em;
    *padding: .4em;
    background: #ddd;
    color: #444;
    text-decoration: none;
    border-radius: .3em;
    transition: all .3s ease-out;   
}

.rounded-list li:hover{
    background: #eee;
}

.rounded-list li:hover:before{
    transform: rotate(360deg);  
}

.rounded-list li:before{
    content: counter(li);
    counter-increment: li;
    position: absolute; 
    left: -1.3em;
    top: 50%;
    margin-top: -1.3em;
    background: #87ceeb;
    height: 2em;
    width: 2em;
    line-height: 2em;
    border: .3em solid #fff;
    text-align: center;
    font-weight: bold;
    border-radius: 2em;
    transition: all .3s ease-out;
}

ol {
    counter-reset: li; /* Initiate a counter */
    list-style: none; /* Remove default numbering */
    *list-style: decimal; /* Keep using default numbering for IE6/7 */
    font: 15px 'trebuchet MS', 'lucida sans';
    padding: 0;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

ol ol {
    margin: 0 0 0 2em; /* Add some left margin for inner lists */
}

li:hover {
	color: yellow;
}
.thumbnails img {
	width:60px;
	height: 50px;
	border: 4px solid #555;
	padding: 1px;
	margin: 0 10px 5px 0;
}

.thumbnails img:hover {
	border: 4px solid #00ccff;
}

.preview img {
	border: 4px solid #444;
	padding: 1px;
	width: 800px;
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 20px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    margin: auto;
    width: 95%;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}






/*Setup all boxes*/
.info{
	margin:7px 7px;
	padding:10px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	#-moz-box-shadow: 4px 4px #dfe1d8;
	#-webkit-box-shadow: 4px 4px #dfe1d8;
	#box-shadow: 4px 4px #dfe1d8;
}

/*Styling for text inside boxes*/
h4 {
	margin:15px 5px 5px 80px;
	padding:0;
	font-size:16px;
}
p {
	font-size:10px;
	color:#000;
	margin:5px 5px 5px 80px;
}

/*Boxes*/
.info{
	border:1px solid #0e7fad;
	color:#0e7fad;
	background:#c0e9fa url('images/info.png') no-repeat;
	background-position:30px 20px;}
</style>
	


</head>
<body id="main_body" onload="automovel()">
	<img id="top" src="top.png" alt="">
	<div id="form_container">
		<div id="topBar">
			<img id="flag" src="flag.png" width="30" height="20" alt="">
			<div id="whatsapp"><a href="http://www.foiroubado.com">
				<div id="icon">
					<img src="whatsapp.png" width="25" height="25" alt="">
				</div>
				<div id="lab1">
					<a href="https://api.whatsapp.com/send?phone=258841100016" style="color:red; text-decoration:none;">Reportar!!!</a>
				</div>
				<div id="lab2">
					<a href="https://api.whatsapp.com/send?phone=258841100016" style="color:green; text-decoration:none;">+258 84 110 0016</a>
				</div></a>
			</div>
		</div>
	<div id="content">

	<?php
	$valid = 0;
	process_si_contact_form(); // Process the form, if it was submitted
	if (isset($_SESSION['ctform']['error']) &&  $_SESSION['ctform']['error'] == true): /* The last form submission had 1 or more errors */$valid = 0; ?>
	<?php
	elseif (isset($_SESSION['ctform']['success']) && $_SESSION['ctform']['success'] == true): /* form was processed successfully */
		$valid = 1; include("Pesqform.php");
	endif;
	if ($valid == 0) {?>
		<form id="form_47822" name="submit" class="appnitro"  method="post" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'] . $_SERVER['QUERY_STRING']) ?>" id="contact_form">
			<input type="hidden" name="do" value="contact">
			<div class="form_description">
			<h2>Moçambique Lista Negra</h2>
			<p>Roubados em Moçambique</p>
		</div>						
			<ul >
			<h3>Selecione o Tipo de Objecto </h3>
			<p></p>
		<li id="li_7" >
		<label class="description" for="element_7">Tipo </label>
		<div>
		<select onchange="valueChanged(this.value)" class="element select medium" id="element_7" name="element_7">
			<option value="automovel" selected="selected">Automóvel</option>
			<option value="bicicleta">Bicicleta</option>
			<option value="motorizada">Motorizada</option>
			<option value="telemovel">Telemóvel</option>
			<option value="barco">Barco</option>
		</select>
		</div>
		</li>		<li class="section_break">
			<h3>Indicar Apenas um dos Seguintes Números</h3>
			<p></p>
		</li>		<li id="li_2" >
		<label class="description" for="element_2">Número de Série </label>
		<div>
			<input id="element_2" name="element_2" class="element text medium" onkeyup="serieTyping()" type="text" maxlength="255" value=""/> 
		</div> 
		</li>		<li id="li_3" >
		<label class="description" for="element_3">Número do Motor </label>
		<div>
			<input id="element_3" name="element_3" class="element text medium" onkeyup="motorTyping()" type="text" maxlength="255" value=""/> 
		</div> 
		</li>		<li id="li_4" >
		<label class="description" for="element_4">Número do Quadro </label>
		<div>
			<input id="element_4" name="element_4" class="element text medium" onkeyup="quadroTyping()" type="text" maxlength="255" value=""/> 
		</div> 
		</li>		<li id="li_5" >
		<label class="description" for="element_5">Matrícula </label>
		<div>
			<input id="element_5" name="element_5" class="element text medium" onkeyup="matriculaTyping()" type="text" maxlength="255" value=""/> 
		</div> 
		</li>
		<div class="info">
		<h4>Info Notification</h4>
		<label>Descreva resumidamente indicando  detalhes que possam facilitar a identificação.</label><br><label>
Foto: a imagem pode ilus...<a href="#" id="myBtn">Ler mais</a></label>
</div> 

		<?php // show captcha HTML using Securimage::getCaptchaHtml()
			  require_once 'securimage.php';
			  $options = array();
			  $options['input_name']             = 'ct_captcha'; // change name of input element for form post
			  $options['disable_flash_fallback'] = false; // allow flash fallback

			  if (!empty($_SESSION['ctform']['captcha_error'])) {
				// error html to show in captcha output
				$options['error_html'] = $_SESSION['ctform']['captcha_error'];
			  }
			  echo "<div id='captcha_container_1'>\n";
			  echo Securimage::getCaptchaHtml($options);
			  echo "\n</div>\n";
			?>
		<li class="buttons">
		<input type="hidden" name="form_id" value="47822" />
		<input id="saveForm" class="button_text" type="submit" name="submit" value="Procurar" style="border-style:solid;"/>
		</li>
			</ul>
		</form>	
		<!-- The Modal -->
<div id="myModal" class="modal">
  
  <!-- Modal content -->
  <div class="modal-content">
<div class="info">
    <span class="close">&times;</span>
	<h4>Info Notification</h4>
	<b>Cadastro nacional de bens móveis roubados</b><br/>
	<ol class="rounded-list">
		<li>Automóveis</li>
		<li>Motorizadas</li>
		<li>Bicicletas</li>
		<li>Barcos</li>
		<li>Telemoveis</li>
	</ol>
	<br/>
	<b>Utilize um texto objetivo e explicativo:</b> <br/>
	<ol class="rounded-list">
		<li>Descreva resumidamente indicando  detalhes que possam facilitar a identificação.</li>
		<li><b>Foto:</b> a imagem pode ilustrar melhor seu anúncio.</li>
		<li>Não aceite negociar valores para reaver o objeto da ocorrência, caso isto venha a ocorrer avise a polícia.</li>
		<li>Seus dados pessoais não vão aparecer no anúncio e nem serão repassados a ninguém, eles servirão apenas para receber mensagens quando necessário.</li>
		<li>Clique no botão Whatsapp no canto superior direito.</li>
		<li>Após a recuperação do veículo você deve nos comunicar para removermos seu anúncio.</li>
		<li>O anúncio será exibido por prazo indeterminado.</li>
		<li>Para alterar ou remover seu anúncio Fale Pelo Whatsapp <a href="https://api.whatsapp.com/send?phone=258841100016" style="color:green; text-decoration:none;"><b>+258 84 110 0016</b></a></li>
	</ol>
</div>
  </div>

</div>
	<?php
	}
	?>
	</div>
        <div id="footer">
			Powered by <a href="http://www.foiroubado.com">foi roubado</a>
		</div>
	</div>
	<img id="bottom" src="bottom.png" alt="">
	</body>
	
	
	
	<script>
	
	// Get the modal
var modal = document.getElementById('myModal');

// Get the button that opens the modal
var btn = document.getElementById("myBtn");

// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];

// When the user clicks the button, open the modal 
btn.onclick = function() {
    modal.style.display = "block";
}

// When the user clicks on <span> (x), close the modal
span.onclick = function() {
    modal.style.display = "none";
}

// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
    if (event.target == modal) {
        modal.style.display = "none";
    }
}
	
	
		function info(){
			alert("Cadastro nacional de bens móveis roubados\n\nAutomóveis\nMotorizadas\nBicicletas\nBarcos\nTelemoveis\n\nAnúncio grátis.\nUtilize um texto objetivo e explicativo: \n\n\nDescreva resumidamente indicando  detalhes que possam facilitar a identificação.\nFoto: a imagem pode ilustrar melhor seu anúncio.\nNão aceite negociar valores para reaver o objeto da ocorrência, caso isto venha a ocorrer avise a polícia.\nSeus dados pessoais não vão aparecer no anúncio e nem serão repassados a ninguém, eles servirão apenas para receber mensagens quando necessário.\nClique no botão Whatsapp no canto superior direito.\nApós a recuperação do veículo você deve nos comunicar para removermos seu anúncio.\nO anúncio será exibido por prazo indeterminado.\nPara alterar ou remover seu anúncio Fale Pelo Whatsapp 258841100016");
		}
	
		function valueChanged(v)
		{
			if (v == "automovel")
				automovel();
			if (v == "bicicleta")
				bicicleta();
			if (v == "motorizada")
				automovel();
			if (v == "telemovel")
				telemovel();
			if (v == "barco")
				automovel();
		}
		
		function motorTyping()
		{
			if(document.getElementById("element_3").value.length > 0) {
			document.getElementById("element_2").disabled = true;
			document.getElementById("element_2").value = "";
			document.getElementById("element_2").style.color = "#AAA";
			document.getElementById("element_2").style.background = "#F5F5F5";
			
			document.getElementById("element_4").disabled = true;
			document.getElementById("element_4").value = "";
			document.getElementById("element_4").style.color = "#AAA";
			document.getElementById("element_4").style.background = "#F5F5F5";
			
			document.getElementById("element_5").disabled = true;
			document.getElementById("element_5").value = "";
			document.getElementById("element_5").style.color = "#AAA";
			document.getElementById("element_5").style.background = "#F5F5F5";
			}
			else
			automovel();
		}
		
		function quadroTyping()
		{
			if(document.getElementById("element_4").value.length > 0) {
			document.getElementById("element_2").disabled = true;
			document.getElementById("element_2").value = "";
			document.getElementById("element_2").style.color = "#AAA";
			document.getElementById("element_2").style.background = "#F5F5F5";
			
			document.getElementById("element_3").disabled = true;
			document.getElementById("element_3").value = "";
			document.getElementById("element_3").style.color = "#AAA";
			document.getElementById("element_3").style.background = "#F5F5F5";
			
			document.getElementById("element_5").disabled = true;
			document.getElementById("element_5").value = "";
			document.getElementById("element_5").style.color = "#AAA";
			document.getElementById("element_5").style.background = "#F5F5F5";
			}
			else
							if(document.getElementById("element_7").value == "bicicleta")
					bicicleta();
				else
					automovel();
		}
		
		function matriculaTyping()
		{
			if(document.getElementById("element_5").value.length > 0) {
			document.getElementById("element_2").disabled = true;
			document.getElementById("element_2").value = "";
			document.getElementById("element_2").style.color = "#AAA";
			document.getElementById("element_2").style.background = "#F5F5F5";
			
			document.getElementById("element_3").disabled = true;
			document.getElementById("element_3").value = "";
			document.getElementById("element_3").style.color = "#AAA";
			document.getElementById("element_3").style.background = "#F5F5F5";
			
			document.getElementById("element_4").disabled = true;
			document.getElementById("element_4").value = "";
			document.getElementById("element_4").style.color = "#AAA";
			document.getElementById("element_4").style.background = "#F5F5F5";
			}
			else
			automovel();
		}
		
		function serieTyping()
		{
			if(document.getElementById("element_2").value.length > 0) {
			document.getElementById("element_5").disabled = true;
			document.getElementById("element_5").value = "";
			document.getElementById("element_5").style.color = "#AAA";
			document.getElementById("element_5").style.background = "#F5F5F5";
			
			document.getElementById("element_3").disabled = true;
			document.getElementById("element_3").value = "";
			document.getElementById("element_3").style.color = "#AAA";
			document.getElementById("element_3").style.background = "#F5F5F5";
			
			document.getElementById("element_4").disabled = true;
			document.getElementById("element_4").value = "";
			document.getElementById("element_4").style.color = "#AAA";
			document.getElementById("element_4").style.background = "#F5F5F5";
			}
			else {
				if(document.getElementById("element_7").value == "telemovel")
					telemovel();
				else
					bicicleta();
			}
		}
		
	
		function resetForm()
		{
			document.getElementById("element_2").disabled = false;
			document.getElementById("element_3").disabled = false;
			document.getElementById("element_4").disabled = false;
			document.getElementById("element_5").disabled = false;
			
			//document.getElementById("element_2").style.color = "none";
			document.getElementById("element_2").style.background = "white";
			//document.getElementById("element_3").style.color = "none";
			document.getElementById("element_3").style.background = "white";
			//document.getElementById("element_4").style.color = "none";
			document.getElementById("element_4").style.background = "white";
			//document.getElementById("element_5").style.color = "none";
			document.getElementById("element_5").style.background = "white";
		}

		function automovel()
		{
			resetForm();
			document.getElementById("element_2").disabled = true;
			document.getElementById("element_2").value = "";
			document.getElementById("element_2").style.color = "#AAA";
			document.getElementById("element_2").style.background = "#F5F5F5";
		}
		
		function telemovel()
		{
			resetForm();
			document.getElementById("element_3").disabled = true;
			document.getElementById("element_3").value = "";
			document.getElementById("element_3").style.color = "#AAA";
			document.getElementById("element_3").style.background = "#F5F5F5";
			
			document.getElementById("element_4").disabled = true;
			document.getElementById("element_4").value = "";
			document.getElementById("element_4").style.color = "#AAA";
			document.getElementById("element_4").style.background = "#F5F5F5";
			
			document.getElementById("element_5").disabled = true;
			document.getElementById("element_5").value = "";
			document.getElementById("element_5").style.color = "#AAA";
			document.getElementById("element_5").style.background = "#F5F5F5";
		}
		
		function bicicleta()
		{
			resetForm();
			document.getElementById("element_3").disabled = true;
			document.getElementById("element_3").value = "";
			document.getElementById("element_3").style.color = "#AAA";
			document.getElementById("element_3").style.background = "#F5F5F5";
			
			
			document.getElementById("element_5").disabled = true;
			document.getElementById("element_5").value = "";
			document.getElementById("element_5").style.color = "#AAA";
			document.getElementById("element_5").style.background = "#F5F5F5";
		}
	</script>	

</html>


<?php

// The form processor PHP code
function process_si_contact_form()
{

  $_SESSION['ctform'] = array(); // re-initialize the form session data

  if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_POST['do'] == 'contact') {
  	// if the form has been submitted
    foreach($_POST as $key => $value) {
      if (!is_array($key)) {
      	// sanitize the input data
        if ($key != 'ct_message') $value = strip_tags($value);
        $_POST[$key] = htmlspecialchars(stripslashes(trim($value)));
      }
    }
	//echo 'kevin: '.@$_POST['element_5'];
    $name    = @$_POST['ct_name'];    // name from the form
    $email   = @$_POST['ct_email'];   // email from the form
    $URL     = @$_POST['ct_URL'];     // url from the form
    $message = @$_POST['ct_message']; // the message from the form
    $captcha = @$_POST['ct_captcha']; // the user's entry for the captcha code
    $name    = substr($name, 0, 64);  // limit name to 64 characters
    $errors = array();  // initialize empty error array

    if (isset($GLOBALS['DEBUG_MODE']) && $GLOBALS['DEBUG_MODE'] == false) {
      // only check for errors if the form is not in debug mode

      if (strlen($name) < 3) {
        // name too short, add error
        $errors['name_error'] = 'Your name is required';
      }

      if (strlen($email) == 0) {
        // no email address given
        $errors['email_error'] = 'Email address is required';
      } else if ( !preg_match('/^(?:[\w\d-]+\.?)+@(?:(?:[\w\d]\-?)+\.)+\w{2,63}$/i', $email)) {
        // invalid email format
        $errors['email_error'] = 'Email address entered is invalid';
      }

      if (strlen($message) < 20) {
        // message length too short
        $errors['message_error'] = 'Your message must be longer than 20 characters';
      }
    }

    // Only try to validate the captcha if the form has no errors
    // This is especially important for ajax calls
    if (sizeof($errors) == 0) {
      require_once dirname(__FILE__) . '/securimage.php';
      $securimage = new Securimage();

      if ($securimage->check($captcha) == false) {
        $errors['captcha_error'] = '<span style="color:red"><br>Codigo de segurança incorrecto<br></span>';
      }
    }

    if (sizeof($errors) == 0) {
      // no errors, send the form
      $time       = date('r');
      $message = "A message was submitted from the contact form.  The following information was provided.<br /><br />"
                    . "<em>Name: $name</em><br />"
                    . "<em>Email: $email</em><br />"
                    . "<em>URL: $URL</em><br />"
                    . "<em>Message:</em><br />"
                    . "<pre>$message</pre>"
                    . "<br /><br /><em>IP Address:</em> {$_SERVER['REMOTE_ADDR']}<br />"
                    . "<em>Time:</em> $time<br />"
                    . "<em>Browser:</em> {$_SERVER['HTTP_USER_AGENT']}<br />";

      $message = wordwrap($message, 70);

      if (isset($GLOBALS['DEBUG_MODE']) && $GLOBALS['DEBUG_MODE'] == false) {
      	// send the message with mail()
        mail($GLOBALS['ct_recipient'], $GLOBALS['ct_msg_subject'], $message, "From: {$GLOBALS['ct_recipient']}\r\nReply-To: {$email}\r\nContent-type: text/html; charset=UTF-8\r\nMIME-Version: 1.0");
      }

      $_SESSION['ctform']['timetosolve'] = $securimage->getTimeToSolve();
      $_SESSION['ctform']['error'] = false;  // no error with form
      $_SESSION['ctform']['success'] = true; // message sent
    } else {
      // save the entries, this is to re-populate the form
      $_SESSION['ctform']['ct_name'] = $name;       // save name from the form submission
      $_SESSION['ctform']['ct_email'] = $email;     // save email
      $_SESSION['ctform']['ct_URL'] = $URL;         // save URL
      $_SESSION['ctform']['ct_message'] = $message; // save message

      foreach($errors as $key => $error) {
      	// set up error messages to display with each field
        $_SESSION['ctform'][$key] = "<span class=\"error\">$error</span>";
      }
      $_SESSION['ctform']['error'] = true; // set error floag
    }
  } // POST
}
$_SESSION['ctform']['success'] = false; // clear success value after running