Jump to content

CarlosEduardo2409

Members
  • Posts

    224
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by CarlosEduardo2409

  1. 58 minutes ago, ncd200 said:

    Sorry. I meant to type option 

     

    So the option to build an admin template 

     

    To tell you the truth, I thought about making my own admin template, but that would take a lot more time and I would do it to sell, not for free. So, as I want it to be fast and free, the best option, in my opinion, is an admin template already on market.

  2. 6 hours ago, ncd200 said:

    My opinion is for the purple because the stisla looks to much at the alleady released crew center. but i like the oprion for an admin template

     

     

    Okay, so, I'm in doubt of the three (Stisla, Argon and Purple), I believe I can do all three, two crewcenters and an admin panel, so it would probably be:

     

    CrewCenter: Stisla & Purple
    Admin Panel: Argon

     

    Also, I searched for "oprion admin template" and found nothing, could you please send me the link @ncd200?

  3. 6 hours ago, HellenicTech said:

    Amazing, just that the AirMail module provided doesnt include everything

     

     

    Hi, thank you for your opinion and I'm sorry for AirMail, but I'm developing another new skin and in addition, admin panel too. In case you want to know more, I made another post talking about the project so I can know your opinion.

     

     

  4. Hello to you, phpVMS member, who is reading this. My name is Carlos, I'm a programmer and creator of the ElaAdmin skin.

     

    For me, ElaSkin had a large number of downloads, which makes me VERY happy, every time I look at the numbers I open a big smile, even though I don't know if people are enjoying it or not. I've been absent for the last months / year, but I came back and due to the large number of downloads from ElaSkin, I will be making a new skin. This time, I want to do something special, something bigger and for that I need some suggestions and ideas.

     

    Observations:

    • The Skin will be made for phpVMS 5.5 (Being more specific: 5.5.2.72 by @ProAvia);
    • The Skin will be free, that is, all modules that will be used, should be free and given the following credits from the author, as well as the admin template that will be used.

     

    Suggestions that I would be very happy to receive:

    • As I will be wanting to be doing something bigger, I will be trying to create new addons, that is, feel free to give ideas for addons (I do not promise that I will be able to create the addon);
    • Feel free to suggest ideas for modules already created (E.g. AirMail);
    • As I am very indecisive and a perfectionist, I spent a long time looking for a perfect Admin Template, and I was unable to make ANY decision, so if you, who are reading this, have an idea of an Admin Template, I would LOVE to receive it.

              Note: The template must be free and made for HTML/Bootstrap. If you have an idea, leave it here with the link to the Admin Template, please.

     

    I will be very grateful with which suggestion! Do you guys like the idea?

    I'm sorry for the big text, but it's just important informations.

     

    Thanks,

    Carlos.

    Keep safe! Stay at home!! Let's get rid of this pandemic!
    It is getting tiring to stay at home, I need some Martin Garrix show (Don't take it as a joke, we need really to stay at home!!)

     

    EDITED:


    In these last hours I have been classifying the best templates in my opinion, some of them were:

     

    In my opinion, the best was Stisla, I would like to know which you liked the most? Or, if you have another template suggestion other than these, let me know.

    • Like 1
  5. 3 hours ago, Tummi said:

    hey i have no real error.. its just a page as shown:

     

    http://prntscr.com/qprv7a

    From what I see your error is because it is missing or has an error in TotalPilotMiles on StatsData.

    First, to make sure you have no errors, go to your website and press Ctrl + U, it will open the view-source of your website, scroll down the page and see if there are any errors.

     

    Attempt 1: To add TotalPilotMiles to StatsData:

    1. Go to core/common/StatsData.class.php
    2. At about line 21, add this code (make sure it is not inside another function).
    <?php
    public static function TotalPilotMiles($pilotid) {
      $key = 'total_miles';
      $key .= '_'.$pilotid;
    
      $total = CodonCache::read($key);
    
      if($total === false)
      {
        $total = 0;
        $sql = "SELECT * FROM ".TABLE_PREFIX."pireps WHERE pilotid='$pilotid' AND accepted=1";
        $results = DB::get_results($sql);
        if($results) { foreach($results as $result) { $total += $result->distance; } }
    
        CodonCache::write($key, $total, '15minute');
      }
    
      return $total;
    }

     

    Attempt 2: If you already have the code and don't have any errors showing, try changing your StatsData by the one below:

     

    StatsData.class.php.zip

  6. 1 hour ago, ProAvia said:

    Yeah, the rewrite code you show forces any http to automatically become https

    Regardless of subdomains, what is the full path to the phpVMS install? And where does the actual virtualair.net domain name point to in the folder structure?

    I think most sites with crew center type skins still have the normal installed folder and have /crew within that installed folder (not to be confused with the install folder in the phpVMS folder structure - which you should have deleted after installation). Mine is:

    
    /home/<user>/public_html/<VA_name>/phpvms/<phpvms_installation>
      
    And any/all skins (CrewCenter inclued) are in:
      
    /home/<user>/public_html/<VA_name>/phpvms/<phpvms_installation>/lib/skins/<all_skins_folders_here>

    Could be your folder structure isn't supposed in any of the ACARS clients

    Yes, you should go thru all the files and change any calls mentioning http to https - no need to do the URL's in the comments sections though. My bet is something is blocking the ACARS clients from accessing the site do to an http call when it should be https.

     

    My directories are located like this:

    Main domain directory (virtualair.net):
    /home/<user>/public_html/<all files from main domain>
    
    phpVMS installation directory (Subdomain - crew.virtualair.net):
    /home/<user>/crew.virtualair.net/<all files from phpvms)
    
    * Example from phpVMS installation: /home/<user>/crew.virtualair.net/lib/skins/<skin_folder>

     

    I know that it is not a domain localization problem, because I created another subdomain from scratch for testing and there ACARS works. This is the subdomain test directory:

    /home/<user>/test.virtualair.net

    That is, it is the same thing as the crewcenter domain. There, ACARS works perfectly. However, the site is without SSL redirection (which is the code below that I put in .htaccess), but if I add the code, it stops working. So the error is in this redirection.

    RewriteEngine On 
    RewriteCond %{HTTPS} !on 
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ 
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ 
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

     

  7. I found the error but I can't solve it. The error is in SSL/TLS certificate. I have the SSL certificate installed in my subdomain, but that alone was not enough to make it secure. What I did to make it safe was:

    1. Go to core/local.config.php and change http to https at SITE_URL;

    define('SITE_URL', 'https://crew.virtualair.net');

    2. Access .htaccess and add the following code to force users to enter the link with https:

    RewriteEngine On 
    RewriteCond %{HTTPS} !on 
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ 
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ 
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

     

    This made my site secure. But at the same time he is not letting ACARS work. 

    So if I go back and take these two steps I did above to make my website secure, it comes back with the warning that the website is not secure and takes the redirection to https, thus making ACARS work.

    However, I didn't want to remove them, I wanted ACARS to work even with these codes above to make the site safe, but I'm not getting any ideas.

     

    Does anyone have a solution?

  8. 3 hours ago, ProAvia said:

    A couple possibilities...

    1. It looks like you are using SSL/TLS certificate on your site... so use https instead of http in the base URL
    2. Intead of .....//crew.virtual.net - use ....//virtualair.net/<path to phpvms install folder>

    Do you have error logging enabled and are there any error showing in error_log?

    Hello @ProAvia!

     

    So, I already tried using https instead of just http but the same errors happened. And since phpVMS is in a subdomain, it is located at /home/user/crew.virtualair.net - virtualair.net is located in /home/user/virtualair.net

    That is, phpVMS is not inside the main domain folder, so I believe there is no way I can put the main domain with the phpVMS location, like you said: virtualair.net/crew.virtualair.net

     

    I have active error_log, and related to ACARS only appears this:

    Quote

    PHP Warning: include_once(/home/user/crew.virtualair.net/core/modules/ACARS/kacars.php): failed to open stream: No such file or directory in /home/user/crew.virtualair.net/core/modules/ACARS/ACARS.php on line 51

    PHP Warning: include_once(): Failed opening '/home/user/crew.virtualair.net/core/modules/ACARS/kacars.php' for inclusion (include_path='.:/opt/cpanel/ea-php72/root/usr/share/pear') in /home/user/crew.virtualair.net/core/modules/ACARS/ACARS.php on line 51

     

    I also tried to open the module file in a google tab, this error popped up:

    Quote

    PHP Fatal error: Class 'CodonModule' not found in /home/user/crew.virtualair.net/core/modules/APVacars/APVacars.php on line 22

    I believe it is nothing much, because any module file that I try to open it appears this error.

  9. Hello again, I have a new mistake now that is hurting my head too. Now it's in ACARS, what happens is that whatever ACARS I try to connect it doesn't work. Always in the login part. Already searched for every topic in the forum, I found several with the same errors, but none had solution.

     

    Observations:

    • I put the module folder correctly in core/modules, as requested in each ACARS;
    • I open the program as an administrator;
    • The credentials are correct, have been tested on the site and work perfectly;
    • Crewcenter Skin: Custom Skin;
    • phpVMS Version: 5.5.2.72 (from ProAvia);
    • PHP Version: 7.2.24;
    • MySQL Version: 10.2.29-MariaDB.

     

    Some images of the errors:

    APVacars (from Vangelis):

    TDRW3fT.png

    qc49miV.png

     

    cACARS (from CrazyCreatives):

    U1hzstD.png

    nXD0NKo.png

     

    CCFTracker (from CrazyCreatives):

    fX9iDpI.png

     

    NOTE: I didn't try kACARS because probably as you already know, Jeff probably broke up with this project, so I didn't find any download links for the client.

     

    Any help I appreciate it.

    Thanks, Carlos.

  10. 4 hours ago, Qshad said:

    Hey! Yes you helped me!

    But unfortunately partly.

    There is only a loading screen. Nothing is loading. Infinite Loading Screen.

    Make sure you have the AirMail and TouchdownStats modules correctly installed. If they are installed, hit Ctrl + U on your site dashboard and on the page that opened (which will be the code of your page), see if you have any errors.

     

    I am knowing about the demo site, I will see if I can host a new site somewhere.

  11. 31 minutes ago, Qshad said:

    Hi!

    I am having a problem w/ ElaSkin

    
    Fatal error: Call to undefined method StatsData::TotalPilotMiles() in /home/bosnaxxa/crew.bosnaxx-air.com/lib/skins/ela/profile_main.php on line 70

     

    Hello @Qshad!

    You will need to add TotalPilotMiles to the StatsData.class.php file. For this you must do:

    1. Go to core/common/StatsData.class.php

    2. After opening StatsData.class.php file, add the following code:

    public static function TotalPilotMiles($pilotid) {
      $key = 'total_miles';
      $key .= '_'.$pilotid;
    
      $total = CodonCache::read($key);
    
      if($total === false) {
      $total = 0;
      $sql = "SELECT * FROM ".TABLE_PREFIX."pireps WHERE pilotid='$pilotid' AND accepted=1";
      $results = DB::get_results($sql);
      if($results) { foreach($results as $result) { $total += $result->distance; } }
    
      CodonCache::write($key, $total, '15minute');
      }
      return $total;
    }

     

    Like this: https://prnt.sc/qo9ari

     

    I hope it helped you!

  12. 23 hours ago, ProAvia said:

    My very basic understanding is that using different jquery versions can cause all sorts of issues. And converting phpVMS to use a newer jquery version is going to require a lot of code changes. Since you said your skins are custom, any chance you can get them working with the same jquery versions presently used by phpVMS?

    Maybe reach out to other skin developers (see the forum here on site) and see what they suggest.

    Once you get these skins working correctly, any chance you will release them as freeware for others to use?

    So, I just found the error, and it was literally a mistake made. Had placed a cookie in the header to not accept unsafe sites, I removed it and returned to work normally.

  13. 54 minutes ago, ProAvia said:

    In the root folder of phpVMS should be a file named error_log. Also, at least in my PHP 7.2 with my host, I needed to create a ".user.ini" file which includes a directive to enable logging of errors (this file supposedly overrides the php.ini file on a folder by folder basis).

    .user.ini - file contents for error logging

    
    error_reporting = 32759
    display_errors = On
    display_startup_errors = Off
    log_errors = On
    log_errors_max_len = 0
    error_log = /<path to phpvms install>/error_log

    <path to phpvms install> can include "home/public_html/<rest of path>/error_log"

    I also have the same thing set up in my /admin folder to show admin errors.

    I suggest changing back to the default user and admin skins and test the log in again. If its working in the default skins, there is probably something messed up in your custom skins.

     

    Thanks for the answers. I updated the file ".user.ini" but nothing appeared in "error_log", I also made the change "local.config.php" and nothing appeared in core / logs. But I just realized that the hosting creates an error file, and in it the last error it had was on 05, so I believe it has no error.

     

    But I did what ProAvia suggested, I changed the skin to default and apparently, the error is really in the skin, I think I'll have to redo it. 

    But I have a question: my skin uses a jQuery which is the newer version and phpVMS uses another jQuery which is an older version. So as there are two jQuery on the site, it appears this error:

    Quote

    Uncaught TypeError: $(...).ajaxForm is not a function

    phpvms.js:27

     

    Could it be that?

     

    Thanks.

  14. 2 hours ago, ProAvia said:

    What skin are you using?

    If the user closes their browser and reopens it - then goes to the site and uses the correct log in details, are they able to log in correctly?

    Are there any errors showing in the error_log?

    Hello @ProAvia


    1. Yes, I use my own skin (also my own admin skin). It was the first thing I thought, but I don't know because it was working before.

    2. No, if the user closes the browser and reopens it still has the same problem.

    3. How can I see error_log? If you enable 'display_errors' in php.ini already enabled but nothing happened (any file created).

    More information: The company is in a subdomain.

  15. Hello again!

     

    phpVMS Version: 5.5.2.72 from ProAvia (Forum Topic)

    I am having problems with users who are unable to log in to the company, this includes all users, even me. I am not sure how to explain this, but I will try.

     

    First of all (to understand): When a pilot logs in with all the correct credentials, he is redirected to the dashboard, which is normal. But when a pilot tries to log in but the credentials are really wrong, an alert appears above the form, like this: https://prnt.sc/qm1bys

    What is happening: Yes, if the pilot misses the credentials, the site does what it should do, show the alert saying it's wrong, so far so good. But if the pilot tries to enter the correct credentials, by pushing the login button, the site sees that the credentials are correct but he does not log in, he redirects to Darshbaord but he show warning that says: "You must be logged in to access this feature!" That is, when logging in, it redirects to Dashboard, but already redirects logged out, thus showing the warning that it must be logged.

     

    This started to happen a short time ago, but I didn't update any files before it started this error.

     

    Best regards.

    Thanks,

    Carlos.

     

  16. Hello! I wonder if anyone still has Jeff's module, which was the Random Itineray Builder. For those who do not know, unfortunately Jeff is no longer developing and the site that was the download link also closed, so there is no way I can download it.

     

    Module: Random Itinerary Builder

    Created by: Jeffrey Kobus

    Topic about the module: 

     

    Any help I am grateful for.

    Thanks, Carlos. 😉

  17. 6 hours ago, Karamellwuerfel said:

    Was this problem solved? How?

    @Karamellwuerfel I was making a custom skin for the admin panel, but the jQuery I was using was newer than phpVMS jQuery, so it didn't get the function that was assigned to the buttons.

     

    What I had to do (example):

    In the pilots_pending file, this is the default skin button to accept pilots in the company:

    <button href="<?php echo SITE_URL?>/admin/action.php/pilotadmin/pendingpilots" action="approvepilot" id="<?php echo $pilot->pilotid;?>" class="ajaxcall {button:{icons:{primary:'ui-icon-circle-check'}}}">Accept</button>

    We can see that inside the class attribute of the button above is located "ajaxcall". And if we go to the phpvmsadmin.js file (file that is located most of the admin panel button functions and located in admin/lib), we can find the "ajaxcall" function. So what the button above is doing is pull the "ajaxcall" function which is located in the phpvmsadmin.js file. This is the "ajaxcall" function code:

    $('.ajaxcall').live('click', function() {
    	$("#bodytext").load($(this).attr("href"), { action: $(this).attr("action"), id: $(this).attr("id") },
    	function(d) { $('a.button, button, input[type=submit]').button(); })
    });

    So, in the above function, we can see that it is pulling some "ajaxcall" class, obviously within a class attribute.

     

    But my phpVMS could not find the file phpvmsadmin.js to pull the function (Probably because of my jQuery), ie the button was simply just a normal button that if I pressed nothing would happen. So, the solution I found was to put the button and function in the same file, so that's how my code went:

    <button href="<?php echo SITE_URL?>/admin/action.php/pilotadmin/pendingpilots" action="approvepilot" id="<?php echo $pilot->pilotid;?>" class="ajaxcall {button:{icons:{primary:'ui-icon-circle-check'}}}">Accept</button>
    
    <script>
      	$('.ajaxcall').live('click', function() {
    		$("#bodytext").load($(this).attr("href"), { action: $(this).attr("action"), id: $(this).attr("id") },
    		function(d) { $('a.button, button, input[type=submit]').button(); })
    	});
    </script>

     

    Yes, I was putting the function of the buttons in each file, but as I was already changing all files for making the admin skin, so I had no problem putting in all files. Obviously there should be a better solution, but that's what I got.

     

    Hope this helps! 😉

  18. Hello friends, how are you? I have a question, again.

     

    I am trying to make a system equal to that of vAMSYS, in which you can book a flight in a map. The map is ready, but only one thing is missing that I do not know how to do. Here is an image of the map now: http://prntscr.com/k2mi0c

    What I want is: When I click on the marker that has a house icon it traces the route of the marker with the icon user to the icon house. Really like vAMSYS: https://prnt.sc/k2mj9b <- THAT'S WHAT I WANT

     

    So that's my question, does anyone know how to do this? When you click on the marker it traces the route. (If you need the code now to HELP me call me and I'll step you in the pm)

     

    Thanks.

    Regards,

    Carlos Eduardo.

    • Like 1
  19. 10 hours ago, RaajPatel said:

    Hello!

    Just a quick question are we allowed to remove the Favicon and logo in the top left to one that represents our airline, and if we are allowed to do you mind briefly showing me where the image file is located so I can change it.

    Thanks,

    Raaj Patel

    It is totally allowed to remove Favicon and Logo, I advise you to leave some credit for Colorlib, the creator of the admin template, can be in the footer.

×
×
  • Create New...