mirror of https://github.com/itflow-org/itflow
Invalid Get var in API redirect back to login Instead of showing error
This commit is contained in:
parent
bdcb8e3bb7
commit
8ca2b833e6
2
api.php
2
api.php
|
|
@ -135,7 +135,7 @@ if($_GET['api_key'] == $config_api_key){
|
|||
}
|
||||
|
||||
}else{
|
||||
echo "<h1> Ma!! You've been BAAAAADDDDD!! </h1>";
|
||||
header("Location: login.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -90,7 +90,7 @@ if(isset($_GET['client_id'])){
|
|||
<?php include("header.php"); ?>
|
||||
|
||||
<div class="card mb-3">
|
||||
<div class="card-body mb-2">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4 class="text-secondary">Address</h4>
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ $total_pages = ceil($total_found_rows / 10);
|
|||
|
||||
<div class="card">
|
||||
<div class="card-header bg-dark text-white">
|
||||
<h6 class="float-left mt-1"><i class="fa fa-users"></i> Contacts</h6>
|
||||
<button class="btn btn-primary btn-sm float-right" data-toggle="modal" data-target="#addContactModal"><i class="fa fa-plus"></i> New</button>
|
||||
<h6 class="float-left mt-1"><i class="fa fa-users mr-2"></i>Contacts</h6>
|
||||
<button class="btn btn-primary btn-sm float-right" data-toggle="modal" data-target="#addContactModal"><i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form autocomplete="off">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<div class="card">
|
||||
<div class="card-header bg-dark text-white">
|
||||
<h6 class="float-left mt-1"><i class="fa fa-file"></i> Uploaded Files</h6>
|
||||
<h6 class="float-left mt-1"><i class="fa fa-paperclip mr-2"></i>Files</h6>
|
||||
<button class="btn btn-primary btn-sm float-right" data-toggle="modal" data-target="#addFileModal"><i class="fa fa-cloud-upload-alt"></i></button>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
|
|
|||
2
post.php
2
post.php
|
|
@ -1399,7 +1399,7 @@ if(isset($_GET['email_quote'])){
|
|||
$client_phone = substr($row['client_phone'],0,3)."-".substr($row['client_phone'],3,3)."-".substr($row['client_phone'],6,4);
|
||||
}
|
||||
$client_website = $row['client_website'];
|
||||
$base_url = $_SERVER['HTTP_HOST'] . dirname($_SERVER['REQUEST_URI']);
|
||||
$base_url = $_SERVER['HTTP_HOST'];
|
||||
|
||||
$mail = new PHPMailer(true);
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
test
|
||||
Loading…
Reference in New Issue