Convert custom function names to camelCase

This commit is contained in:
Marcus Hill
2023-01-26 21:58:27 +00:00
parent bdc71d3163
commit 10362f86ef
18 changed files with 45 additions and 46 deletions

View File

@@ -2,7 +2,7 @@
// Not including the guest header as we don't want any HTML output
include("config.php");
include("functions.php");
$ip = trim(strip_tags(mysqli_real_escape_string($mysqli,get_ip())));
$ip = trim(strip_tags(mysqli_real_escape_string($mysqli,getIp())));
$user_agent = strip_tags(mysqli_real_escape_string($mysqli,$_SERVER['HTTP_USER_AGENT']));
if (isset($_GET['id']) && isset($_GET['key'])) {
@@ -65,4 +65,4 @@ if (isset($_GET['id']) && isset($_GET['key'])) {
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Sharing', log_action = 'View', log_description = 'Downloaded shared file $file_name via link', log_client_id = '$client_id', log_created_at = NOW(), log_ip = '$ip', log_user_agent = '$user_agent', company_id = '1'");
}
}