If you know nothing of APIHooks in iLance go HERE and read up!
-------------------------------------------------------------
If you have a "System" plugin file (one plugin file that you are using for all of your apihook modifications) open it up and add:
<plug key="selling_activity_end" addon="fishingnumbers">
<title>Expired Selling Activity</title>
<api>selling_activity_end</api>
<php><![CDATA[
]]>
</php>
</plug>
Then in the CDATA part drop the following:
if(file_exists($path . $file_name)){
$content = file_get_contents($path . $file_name);
$this->computed_style .= $content . LINEBREAK;
}
Added bonus:
If you wanted to load multiple files in that directory do the following:
$content = null;
foreach(new DirectoryIterator($path) as $file){
if(!$file->isDot()){
$file_name = $file->getFilename();
$content = file_get_contents($path . $file_name);
$this->computed_style .= $content . LINEBREAK;
}
}