Jump to content

Admin Panel Module not showed


sslazio17

Recommended Posts

Hi guys... i'm the developer of a italian VA.

I wrote a module for the admin panel to permit us to assign some details to the pilots only bly clicking on a button. I'd taken some snippets from addons like VStats and others... i've a versione of my phpVMS running on XAMPP (local webserver) and the module works fine!

But when i upload my files on the server for the VA site, my admin panel doesn't shows my module. The files are correctly updaloded, The folders' permission is quite good, the same of the others addons i'm running on my admin panel. On my local phpVMS i'm running the same addons of the software on my webserver...

Bu the way, i can't view my module in my admin panel, also calling the module via url "index.php/module_name" my system says that my module does not exist...

Please help me!

  • Like 1
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Hello sslazio17

You want to move in some modules, without accessing the admin is it?

I did not understand exactly what search.

No Fernando, this is only a test i've done to try to call the file (not readed by the admin cp) by a traditional browser's http call... and the file is in the correct place.

But when i log into my admin panel, in the Addons Menu, my module does not exist. This happens only my server, trying on my local test server (XAMPP platform) all works fine.

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...