Jump to content

OmerAslan

Members
  • Posts

    288
  • Joined

  • Last visited

Posts posted by OmerAslan

  1. 3 hours ago, ProAvia said:

    Thanks! Yeah - I thought the default 5.5.2 file did something like that. On the main admin page, I don't get a chart. Nothing at /index.php/profile/stats either. Hence my question if I need to download anything else to make ChartsData.class.php work - see my first post.

    I messed with it some before loading your update. And I was able to get it to load. But I took mine out and used yours instead, cause yours looked cleaner and adds a few changes not in the original files.

    There is one small omission/error that was in the original files - and carried over into yours. admin/templates/charts/index.php, line 41

    
    // Originally:
    <a href="viewcharts?icao=<?php echo $airport->icao; ?>"><?php echo $airport->icao; ?></a>
    
    // Change to:
    <a href="chartsadmin/viewcharts?icao=<?php echo $airport->icao; ?>"><?php echo $airport->icao; ?></a>
    
    //This will allow viewing the charts in the admin panel without the error of:
    //The module "VIEWCHARTS" doesn't exist!

    After changing that, it works great! If you'd like, maybe send a pull request to Kyle.

    I'll look at the AirCharts module too and then decide which to offer - heck, maybe both. I do like the option of viewing from the schedule briefing page in AirCharts.

    Thanks again!

    Yes now works good. Only i have to find the charts and add the links :D Thanks guys...

  2. 1 hour ago, web541 said:

    Just confirming that those errors are mainly to do with the core/common/HubTransferData.class.php

    Delete function should look like this now

    
    public static function delete($id) {
      $sql = "DELETE FROM ".TABLE_PREFIX."hubtransfer WHERE pilotid = '$id'";
      DB::query($sql);
    }

    And the new CheckRequest function

    
    public static function CheckRequest($pilotid)  {
      $pilotid = intval($pilotid);
      $query = "SELECT * FROM ".TABLE_PREFIX."hubtransfer WHERE pilotid = '$pilotid'";
      $count = DB::num_rows(DB::get_results($query));
      return $count;
    }

    Or if that last function doesn't work, try swapping out the DB::get_results for DB::get_row as I can't tell whether it is being used to get one or more results.

    yes it works. only i get this code on admin page but not important at all...

    Deprecated: mysql_affected_rows(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/pilotomeraslan/erisair.com/crew/admin/modules/HubTransfer/HubTransfer.php on line 90
    
    Warning: mysql_affected_rows(): Access denied for user 'pilotomeraslan'@'localhost' (using password: NO) in /home/pilotomeraslan/erisair.com/crew/admin/modules/HubTransfer/HubTransfer.php on line 90
    
    Warning: mysql_affected_rows(): A link to the server could not be established in /home/pilotomeraslan/erisair.com/crew/admin/modules/HubTransfer/HubTransfer.php on line 90

    woow totally fixed. Thanks.

  3. 24 minutes ago, web541 said:

    Just confirming that those errors are mainly to do with the core/common/HubTransferData.class.php

    Delete function should look like this now

    
    public static function delete($id) {
      $sql = "DELETE FROM ".TABLE_PREFIX."hubtransfer WHERE pilotid = '$id'";
      DB::query($sql);
    }

    And the new CheckRequest function

    
    public static function CheckRequest($pilotid)  {
      $pilotid = intval($pilotid);
      $query = "SELECT * FROM ".TABLE_PREFIX."hubtransfer WHERE pilotid = '$pilotid'";
      $count = DB::num_rows(DB::get_results($query));
      return $count;
    }

    Or if that last function doesn't work, try swapping out the DB::get_results for DB::get_row as I can't tell whether it is being used to get one or more results.

    yes it works. only i get this code on admin page but not important at all... Thanks a lot.

    Deprecated: mysql_affected_rows(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/pilotomeraslan/erisair.com/crew/admin/modules/HubTransfer/HubTransfer.php on line 90
    
    Warning: mysql_affected_rows(): Access denied for user 'pilotomeraslan'@'localhost' (using password: NO) in /home/pilotomeraslan/erisair.com/crew/admin/modules/HubTransfer/HubTransfer.php on line 90
    
    Warning: mysql_affected_rows(): A link to the server could not be established in /home/pilotomeraslan/erisair.com/crew/admin/modules/HubTransfer/HubTransfer.php on line 90

     

  4. 1 hour ago, TAV1702 said:

     

    That is the explanation. Those functions are garbage now. They are useless. Have ti step up to sqli or PDO one of the two.

    If the last post I quoted don't fix this, the module file needs rewritten as was done for the LoA module that had the exact same issue.

     

    On second thought, that last fix will not work. it is the same identical code that is in the file direct from github. I'm gonna get back on the side and wait for Sava. My skills are not that great and I don't want to stear anyone in the wrong direction.

    So if i understand you correctly, we have to wait for a while right?

  5. This is my error log

    [19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
    [19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
    [19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'assets' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
    [19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
    [19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
    [19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'assets' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
    [19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'assets' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
    [19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218
    [19-Dec-2016 11:18:46 UTC] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Schedules' does not have a method 'css' in /home/pilotomeraslan/erisair.com/crew/core/classes/MainController.class.php on line 218

    any luck?

  6. 11 minutes ago, web541 said:

    Check your browser console for any errors first.

    Ok, go download this version again,

    https://github.com/Strider2/codeshare

    To make the image url changes

     

      Reveal hidden contents

     

    And core/common/CodeShareData.class.php

    Find this

    
    
    $query = "INSERT INTO phpvms_codeshares (schedid, airline) VALUES ('$schedid', '$airline')";

    Replace it with this

    
    
    $query = "INSERT INTO phpvms_codeshares (schedid, airline, image) VALUES ('$schedid', '$airline', '$image')";

    Find this

    
    
     $query = "UPDATE phpvms_codeshares SET
             schedid='$schedid',
             airline='$airline'
             WHERE id='$id'";

    Replace it with this

    
    
     $query = "UPDATE phpvms_codeshares SET
             schedid='$schedid',
             airline='$airline',
    	     image='$image',
             WHERE id='$id'";

    Find this

    
    
    public static function save_new_codeshare($schedid, $airline)

    Replace it with this

    
    
    public static function save_new_codeshare($schedid, $airline, $image)

    Find this

    
    
    public static function save_edit_codeshare($schedid, $airline, $id)

    Replace it with this

    
    
    public static function save_edit_codeshare($schedid, $airline, $id, $image)

     

     

    When i click to add bid from regular hoes here : www...../....../schedules/addbid?id=8608 when i click book flight button from codeshare module takes me  www...../....../schedules/addbid?id=8608

  7. 2 minutes ago, web541 said:

    That's different, open a new topic for this, but if you book through /index.php/codeshare then does it work?

    no also not working. i was booking flight before you made last changes. but not anymore...

  8. 40 minutes ago, OmerAslan said:

    i fixed with add logo. If i leave that place empty then i get the error. On schedules list i can't see the image but it's minor problem for me.

    Deprecated: Non-static method CodeShareData::save_new_codeshare() should not be called statically, assuming $this from incompatible context in /home/pilotomeraslan/erisair.com/crew/admin/modules/CodeShare_admin/CodeShare_admin.php on line 66

     

  9. 17 minutes ago, OmerAslan said:

    Hi idon't know what did i do wrong but i add schedule id from my database flight id number and i add airlines icao code but i get this error. i have phpVMS 5.5.2 Help please 

    211179ea484c4c0f82f6a437658d724f.png

    i fixed with add logo. If i leave that place empty then i get the error. On schedules list i can't see the image but it's minor problem for me.

  10. Hi,

    I have those codes on front page :

    Deprecated: mysql_query(): The mysql extension is deprecated and will
    be removed in the future: use mysqli or PDO instead in
    /home/pilotomeraslan/erisair.com/crew/core/common/HubTransferData.class.php
    on line 9
    
    Warning: mysql_query(): Access denied for user
    'pilotomeraslan'@'localhost' (using password: NO) in
    /home/pilotomeraslan/erisair.com/crew/core/common/HubTransferData.class.php
    on line 9
    
    Warning: mysql_query(): A link to the server could not be established
    in /home/pilotomeraslan/erisair.com/crew/core/common/HubTransferData.class.php
    on line 9
    
    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean
    given in /home/pilotomeraslan/erisair.com/crew/core/common/HubTransferData.class.php
    on line 10

    and on admin page

    Deprecated: mysql_affected_rows(): The mysql extension is deprecated
    and will be removed in the future: use mysqli or PDO instead in
    /home/pilotomeraslan/erisair.com/crew/core/common/HubTransferData.class.php
    on line 86
    
    Warning: mysql_affected_rows(): Access denied for user
    'pilotomeraslan'@'localhost' (using password: NO) in
    /home/pilotomeraslan/erisair.com/crew/core/common/HubTransferData.class.php
    on line 86
    
    Warning: mysql_affected_rows(): A link to the server could not be
    established in /home/pilotomeraslan/erisair.com/crew/core/common/HubTransferData.class.php
    on line 86
    
    Deprecated: mysql_affected_rows(): The mysql extension is deprecated
    and will be removed in the future: use mysqli or PDO instead in
    /home/pilotomeraslan/erisair.com/crew/admin/modules/HubTransfer/HubTransfer.php
    on line 90
    
    Warning: mysql_affected_rows(): Access denied for user
    'pilotomeraslan'@'localhost' (using password: NO) in
    /home/pilotomeraslan/erisair.com/crew/admin/modules/HubTransfer/HubTransfer.php
    on line 90
    
    Warning: mysql_affected_rows(): A link to the server could not be
    established in /home/pilotomeraslan/erisair.com/crew/admin/modules/HubTransfer/HubTransfer.php
    on line 90

    please help thanks.

×
×
  • Create New...