Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/27/20 in all areas

  1. Yes only the PIREPAdmin.php file, try this public function deletecomment() { if (!isset($this->post)) { return; } $commentid = DB::escape($this->post->id); $comment = DB::get_row("SELECT * FROM ".TABLE_PREFIX."pirepcomments WHERE `id` = '$commentid'"); LogData::addLog(Auth::$userinfo->pilotid, 'Deleted a comment to PIREP #: '.$comment->pirepid); PIREPData::deleteComment($this->post->id); $this->set('message', 'Comment deleted!'); $this->render('core_success.tpl'); } The query looks right, I think it might have been deleting the comment and then trying to find it which wouldn't work. You could also do it this way I would think (that way it will only log it if it has been deleted, but it should do it 99% of the time anyway) $commentid = DB::escape($this->post->id); $comment = DB::get_row("SELECT * FROM ".TABLE_PREFIX."pirepcomments WHERE `id` = '$commentid'"); PIREPData::deleteComment($this->post->id); LogData::addLog(Auth::$userinfo->pilotid, 'Deleted a comment to PIREP #: '.$comment->pirepid);
    1 point
  2. AirMail 3.1 phpVMS module to create a messaging system your phpVMS based virtual airline. Released under the following license: Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License Developed by: simpilot www.simpilotgroup.com Developed on: phpVMS v2.1.934-158 php 5.3.4 mysql 5.0.7 apache 2.2.17 This system is not compatible with any earlier versions of AirMail New Features: -Delete All function in inbox and all message folders -Individual pilot setting to have email sent to pilot when new message is received -Threaded messages -Cleaner templates to help with site integration Install: -Download the attached package. -unzip the package and place the files as structured in your root phpVMS install. -use the airmail.sql file to create the tables needed in your sql database using phpmyadmin or similar. To Use the "You Have Mail" function place the following code where you would like the notice to appear, it will only appear if the pilot is logged in. <?php MainController::Run('Mail', 'checkmail'); ?> -Create a link on your site for your pilots to access their AIRMail <a href="<?php echo url('/Mail'); ?>">AIRMail</a> File Updated 9/2/2011 files changed: core/templates/sentitems.tpl core/common/MailDataClass.php File Updates 9/26/11 core/common/MailDataClass.php - NOTAM bug fix Code hosted on Github - Link In Signature.
    1 point
  3. No - there is no "master list" that you can import. It is suggested that you define where your VA will fly and add the airports for those destinations.
    0 points
×
×
  • Create New...