Jump to content

Virtualei

Members
  • Posts

    367
  • Joined

  • Last visited

Posts posted by Virtualei

  1. I think this is what you need

    <?php
    $cws = new CodonWebService();
    
    
    $usersonline = StatsData::UsersOnline();
    $guestsonline = StatsData::GuestsOnline();
    
    ?>
    <div style='text-align: left; font-weight: bold; font-size: 200%;
    								 color: #009933'>Pilots Online <p> </p> </div>
    
     <?php
    $shown = array();
    foreach($usersonline as $pilot)
    {
    if(in_array($pilot->pilotid, $shown))
    continue;
    else
    $shown[] = $pilot->pilotid;
    echo "<p>";
    echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />';
    echo " {$pilot->firstname} {$pilot->lastname}<br />";
    echo "</p>";
    }
    ?>
    <div style='text-align: left; font-weight: bold; font-size: 200%;
    								 color: #009933'>Guests Online <p> </p> </div>
    
     <div> <p class="txt-red10">Currently
    
     <?php echo count($guestsonline);?>
    
     guest(s) visiting</div>
    <p></p>
    

  2. Hi hope someone can help. I have installed Trellis Helpdesk onto my site and I am linking an email address to trellis. I have been trying to set up a cron job to upload the tickets from the email address. I have been trying

    /usr/bin/php -q /home/mywebsite/public_html/core/trellis/sources/pop3.php

    and

    php -q /home/mywebsite/public_html/core/trellis/sources/pop3.php

    but i keep getting a email saying Cron Daemon root@master.fivedev.net 4:35 PM (4 minutes ago)

    cleardot.gif

    cleardot.gif

    cleardot.gif

    to me cleardot.gifNo input file specified.Thanking you in advance.Alan

  3. Sorry mate not working have I put it in the correct place

        if (!PIREPData::updateFlightReport($this->post->pirepid, $data)) {
    	    $this->set('message', 'There was an error editing your PIREP');
    	    $this->render('core_error.tpl');
    	    return false;
        }
        PIREPData::SaveFields($this->post->pirepid, $_POST);
        //Accept or reject?
        $this->post->id = $this->post->pirepid;
        $submit = strtolower($this->post->submit_pirep);
        // Add a comment
        if (trim($this->post->comment) != '' && $submit != 'reject pirep') {
    	    PIREPData::AddComment($this->post->pirepid, Auth::$userinfo->pilotid, $this->post->comment);
        }
        if ($submit == 'accept pirep') {
    	    $this->approve_pirep_post();
    	    $this->set('firstname', $pirep_details->firstname);
    	  $this->set('lastname', $pirep_details->lastname);
    	  $this->set('pirepid', $pirepid);
    	  $message = Template::GetTemplate('email_pirep_accep.tpl', true);
    	  Util::SendEmail($pirep_details->email, 'Comment Added', $message); 
        } elseif ($submit == 'reject pirep') {
    	    $this->reject_pirep_post();
    
        }
        StatsData::UpdateTotalHours();
        # Refresh the PIREP
        # $pirepInfo = PIREPData::getReportDetails($this->post_action->pirepid);
        PilotData::updatePilotStats($pirepInfo->pilotid);
        LogData::addLog(Auth::$userinfo->pilotid, 'Edited PIREP #' . $this->post->id);
        return true;
       }
    }
    

×
×
  • Create New...