[EDK4] API Verified Mod
[EDK4] API Verified Mod
This mod is for EDK4.
It displays two small boxes on kill detail for API Verification.
Changelog :
11/12/11 - Version 1.2.1 :
- fix a small tpl issue
It displays two small boxes on kill detail for API Verification.
Changelog :
11/12/11 - Version 1.2.1 :
- fix a small tpl issue
- Attachments
-
- apiverifiedmod.png (7.8 KiB) Viewed 23828 times
-
- api_verified_mod.zip
- (30.63 KiB) Downloaded 1866 times
Last edited by Khi3l on Sun Dec 11, 2011 15:13, edited 1 time in total.
-
- Someday Author
- Posts: 92
- Joined: Thu Feb 12, 2009 15:04
Re: [EDK4] API Verified Mod
Thanks, updated the original one 

Re: [EDK4] API Verified Mod
This mod has been updated, see first post 

-
- Noob
- Posts: 1
- Joined: Thu Apr 16, 2009 03:41
Re: [EDK4] API Verified Mod
еh , good mod , please do autodelete nonapi mail for verify toolbar
-
- Someday Author
- Posts: 95
- Joined: Thu May 16, 2013 12:48
Re: [EDK4] API Verified Mod
I don't know if anyone continue to use this mod but with edk 4.2, he's broken for me. All kill is API Verified...
But i find a solution : fetch function who verified API in mod Ship display Tools ^^. I know php not very well^^
I can post solution if anyone want.
But i find a solution : fetch function who verified API in mod Ship display Tools ^^. I know php not very well^^
I can post solution if anyone want.
Re: [EDK4] API Verified Mod
Hi,
I use it and it's working fine for me. Please note that all mails posted via CREST are "API Verified", as CREST provides the same leve of detailed information as the API does. That's the great thing about CREST. So if you allow only CREST links for manual posting, all these mails will show up as "manually posted", but "API verified".
That's intended.
I thought about extending the mod to expose a kill's CREST link, if it has been posted via CREST, but wanted to get in contact with the original author first.
How/what did you change?
Regards,
Salvoxia
I use it and it's working fine for me. Please note that all mails posted via CREST are "API Verified", as CREST provides the same leve of detailed information as the API does. That's the great thing about CREST. So if you allow only CREST links for manual posting, all these mails will show up as "manually posted", but "API verified".
That's intended.
I thought about extending the mod to expose a kill's CREST link, if it has been posted via CREST, but wanted to get in contact with the original author first.
How/what did you change?
Regards,
Salvoxia
-
- Someday Author
- Posts: 95
- Joined: Thu May 16, 2013 12:48
Re: [EDK4] API Verified Mod
Old killmails who was not verified before are verified without modification.
For this modification we need Ship Display Mode. (i don't know if function is in original KB)
api_verified.tpl at line 6 i replace :
by :
For this modification we need Ship Display Mode. (i don't know if function is in original KB)
api_verified.tpl at line 6 i replace :
Code: Select all
{if $api_verified_status}
Code: Select all
{if $extid != 0}
Re: [EDK4] API Verified Mod
I stand corrected. I'm actually not using THIS mod, but the one by SirQuentin (which is very very similar, but not exactly the same).
Re: [EDK4] API Verified Mod
Sorry for kind of a necro but I'm investigating why some killmails which don't have an external ID set in the database are showing up as verified with this mod.
So I compared your version with the original version by Sir Quentin and among some others differences found this addition in mods\api_verified_mod\api_verified.php:
This is not present in the original version and I am in fact a bit confused on the logic here. Why is some specific time difference (more specifically 172800 seconds / 48 hours / 2 days) a valid reason for labelling a killmail as verified?
I additionally found that there are cases in which the "Source" is not displayed. This is unrelated to the above and applies to both this version and the original version of the mod.
Without investigating too deeply I assume it happens when the kill doesn't have a corresponding row in the kb3_log table. This happens for example when the mail is imported via .txt files (through the Admin interface).
So to address such cases I made the following small addition into mods\api_verified_mod\api_verified.tpl
This is the before/after in case someone else finds it useful:

So I compared your version with the original version by Sir Quentin and among some others differences found this addition in mods\api_verified_mod\api_verified.php:
Code: Select all
$time = time();
$offset = 172800;
$timestamp = $kill->getTimeStamp();
if (strtotime($timestamp) < ($time-$offset))
{
$verification = true;
}
I additionally found that there are cases in which the "Source" is not displayed. This is unrelated to the above and applies to both this version and the original version of the mod.
Without investigating too deeply I assume it happens when the kill doesn't have a corresponding row in the kb3_log table. This happens for example when the mail is imported via .txt files (through the Admin interface).
So to address such cases I made the following small addition into mods\api_verified_mod\api_verified.tpl
Code: Select all
{else if $type == ""}
<td align="center" width="64"><b>Unknown</b></br>(File/Database import?)</td>

Re: [EDK4] API Verified Mod
The are php errors, expecially with php7. Non-static methods should not be called statically. The following changes to the init.php file fixes this. It also complies with the revised die method for security.
Code: Select all
<?php
if(!defined('KB_SITE')) die ("Go Away!");
$modInfo['api_verified_mod']['name'] = "Api verified Mod";
$modInfo['api_verified_mod']['abstract'] = "Show if a kill is api verified or not and where its from.";
$modInfo['api_verified_mod']['about'] = "by <a href=\"http://www.back-to-yarrr.de\" target=\"_blank\">Sir Quentin</a>";
event::register("killDetail_context_assembling", "api_verified::add");
class api_verified
{
public static function add($page)
{
$page->addBehind("points", "api_verified::show");
}
public static function show(){
global $smarty;
include_once('mods/api_verified_mod/api_verified.php');
$html .= $smarty->fetch("../../../mods/api_verified_mod/api_verified.tpl");
return $html;
}
}
?>