I add some infos about this problem:
1st of all, the code of the module:
<?php
/**
PLUGIN WROTE BY EMILIANO INNOCENTI FOR VIRTUAL RYANAIR
AWARDS ASSIGNMENT 0.1b
**/
class Awards_Assignment extends CodonModule
{
public function HTMLHead()
{
$this->set('sidebar', 'Awards_Assignment/sidebar_awardass.tpl');
}
public function NavBar()
{
echo '<li><a href="'.SITE_URL.'/admin/index.php/Awards_Assignment">Awards Assignment 0.1b</a></li>';
}
public function index()
{
$this->show('Awards_Assignment/awardass_index.tpl');
$month = date('m'); //Se siamo a gennaio prende dicembre, altrimenti il mese - 1
$month = ($month==1) ? 12 : --$month;
$year = date('Y');//Se il mese puntato è Dicembre torna all'anno passato
$year = ($month != 12) ? $year: --$year;
switch($_POST['action'])
{
case 'assLanding':
$this->assignLanding($month, $year);
break;
case 'assDistance':
case 'assTimeFlown':
case 'assignTopFlights':
case 'assign500h':
case 'assign1000h':
break;
}
return;
}
public function assignLanding ($month, $year)
{
$bestland = -300; //Valore di confronto assurdo per il primo caso
$bestlandPID = array(); //id piloti landing migliore
$i = 0;
//Ricava i migliori landing rates
$landings = AwardAssData::get_top_month_landing ($month, $year);
//Li scorre e li confronta
foreach ($landings as $land)
{
if ($bestland < $land->landingrate) //Man mano trova il migliore e lo assegna alle var di lavoro, una per il LR e una per il pilotid
{
$bestland = $land->landingrate;
$bestlandPID[$i] = $land->pilotid;
}
else if ($bestland == $land->landingrate) //Se c'è un execuo aggiunge il pilotid all'array per assegnare più award in un mese
$bestlandPID[++$i] = $land->pilotid;
}
$bestlandPID = array_unique($bestlandPID); //Elimina i duplicati dall'array
//Assegna gli award
echo AwardAssData::assignLandAward($bestlandPID);
return;
}
}
?>
Triyng to reach manually the module, phpvms admin panel says that the module does not exist, but in on the server and i can reach the file by its url (obviusly, with a fatal error because out of its code wrap).
File permissions: setting it to 777 i have an Error 500, setting permission as the other files (775) i'll obtain my phpVMS admin panel, but it wont to visualize my addon in the menu....
I'm going out crazy! On my PC all runs correctly... online not!