Changing $_configuration['append'] to api_get_path(WEB_CODE_PATH)

skala
Julio Montoya 16 years ago
parent 8034b534d0
commit db4d735ae6
  1. 3
      whoisonline.php

@ -107,8 +107,7 @@ if ($_GET['chatid'] != '') {
$sql = "update $track_user_table set chatcall_user_id = '".Database::escape_string($_user['user_id'])."', chatcall_date = '".Database::escape_string($time)."', chatcall_text = '' where (user_id = ".(int)Database::escape_string($chatid).")";
$result = Database::query($sql);
//redirect caller to chat
header("Location: ".$_configuration['code_append']."chat/chat.php?".api_get_cidreq()."&origin=whoisonline&target=".Security::remove_XSS($chatid));
header("Location: ".api_get_path(WEB_CODE_PATH)."chat/chat.php?".api_get_cidreq()."&origin=whoisonline&target=".Security::remove_XSS($chatid));
exit;
}
}

Loading…
Cancel
Save