Jump to content

Sovereign

Members
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Sovereign

  1. Hello I want to delete expired bids per Crone Job. Is here a way to check if a pilot is inflight with the current bid? i Want so set the expired time to 2 or 3 hours but when the bid will be deleted, the flight is avaible for other pilots even if currently the pilot is still flying. I have tried to check the acarsdata table, but here is no unique id that has a reference to the bid. phpvms version is 5.5. Best regards, Jan Grimm
  2. <?php if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { ?> <li> <a href="<?php echo SITE_URL; ?>/admin"> <i class="material-icons">photo_camera</i> <span>Admin Center</span> </a> </li> <?php } ?> with this only Pilot with Access Admin right can see the icon
  3. Hello, We have a Problem with this Modul. Send to Simbrief works. When i click on Generate a Pop-Up comes with Login to Simbrief and generate the OFP, but when is finished i have no forward to the genrated OFP. can someone help me? Regards, Jan
  4. Hello We have a new VA Website with a subdomain xx.skyline-va.de. PHPVMS runs on another subdomain xy.skyline-va.de but on the same Server. I wanted to display the ACARS map on this page, but I get the following error: Uncaught ReferenceError: L is not defined at base_map.js:10 Uncaught ReferenceError: L is not defined at map.php:190 the code to display the map on the page: <?php MainController::Run('ACARS','index'); ?> and i included the follow phpvms files: <?php include('../../httpdocs/iCrew/core/codon.config.php'); include('../../httpdocs/iCrew/core/local.config.php'); ?> Have i forget a include or so? the full code: (include from phpvms are defined in the headers.php <?php include ('headers.php'); ?> <div class="tg-pushpage"> <!--************************************ Home Slider Start *************************************--> <div id="tg-innerbanner" class="tg-innerbanner"> <figure data-vide-bg="poster: https://i.ytimg.com/vi/jtAm-kgoZ_E/maxresdefault.jpg" data-vide-options="position: 0% 50%"> <figcaption> <div class="container-fluid"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <h1>Who's flying?</h1> <h2>This would be our Map</h2> </div> </div> </div> </figcaption> </figure> </div> <!--************************************ Home Slider End *************************************--> <!--************************************ Main Start *************************************--> <main id="tg-main" class="tg-main tg-haslayout"> <!--************************************ Contact Us Start *************************************--> <section class="tg-haslayout"> <div class="tg-contactus tg-bglight"> <div class="tg-mapprojectarea tg-bgwhite"> <div class="row no-gutters"> <div class="col-md-12"> <!--Begin ACARS MAP--> <?php MainController::Run('ACARS','index'); ?> <!--Begin ACARS MAP--> <center> <a href="index.php">Back</a> <!--Begin Flight Tracker Info Bar--> <?php MainController::Run('trackflight','index'); ?> <!--End Flight Tracker Info Bar--> </center> </div> </div> </div> </div> </div> </section> <!--************************************ Contact Us End *************************************--> </main> <!--************************************ Main End *************************************--> <?php include ('footers.php'); ?> Best regards, Jan Grimm
  5. exactly. my goal is that after the registration in the phpvms automatically the user in the forum is created with pilot number, first name and password. Password changes which should then be made in the phpvms then forwarded to WBB.
  6. Hello Unfortunately I did not know in which category this belongs, so off topic. I'm trying to pass password changes and registrations to the WBB4 forum. I have already created a new function in "RegistrationData.class.php" public static function ChangePasswordForum($pilotid, $newpassword) { #Find Firstname in phpvms DB $sql = 'SELECT firstname FROM `'.TABLE_PREFIX.'pilots` WHERE pilotid =\'' . $pilotid . '\''; $firstname = DB::get_results($sql); #load Forum Stuff require_once '../../forum-new.skyline-va.de/global.php'; #Prepare Forum DB Search and execute $newpilotid = sprintf('%03d',$pilotid); $forumname = '{$newpilotid}_{$firstname}'; $sql = "SELECT userid FROM `wcf1_user` WHERE username = '$forumname'"; $statement = wcf\system\WCF::getDB()->prepareStatement($sql); $statement->execute(); $row = $statement->fetchArray(); $userid = $row['userid']; $userAction = new \wcf\data\user\UserAction(array($userid), 'update', array( 'data' => array( 'password' => '$newpassword', ) )); $userAction->executeAction(); } in the Module Profile.php i have added the follow code above "RegistrationData::ChangePassword(Auth::$pilotid, $_POST['password1']);" RegistrationData::ChangePasswordForum(Auth::$pilotid, $_POST['password1']); Now the Problem: When i now change my Password in phpvms i have an error from WBB4: <<<<<<<<d57dc542d6dc2d59ed543ea4a58252dd09aa1ae3<<<< Sun, 14 Oct 2018 01:43:03 +0000 Message: PHP notice in file /var/www/vhosts/skyline-va.de/httpdocs/iCrew/core/common/PilotData.class.php (856): Trying to get property of non-object File: /var/www/vhosts/skyline-va.de/forum-new.skyline-va.de/wcf/lib/system/WCF.class.php (309) PHP version: 5.5.38 WCF version: 2.1.10 (Typhoon) Request URI: /index.php/profile Referrer: https://icrew.skyline-va.de/index.php/Profile/editprofile User-Agent: Mozilla/5.0 (Linux; Android 8.0.0; SM-N950F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Mobile Safari/537.36 Information: "" Stacktrace: #0 /var/www/vhosts/skyline-va.de/httpdocs/iCrew/core/common/PilotData.class.php(856): wcf\system\WCF::handleError(8, 'Trying to get p...', '/var/www/vhosts...', 856, Array) #1 /var/www/vhosts/skyline-va.de/httpdocs/iCrew/lib/skins/iCrew/profile_main.php(70): PilotData::getFieldValue('87', 'Profile Style') #2 /var/www/vhosts/skyline-va.de/httpdocs/iCrew/core/classes/TemplateSet.class.php(238): include('/var/www/vhosts...') #3 /var/www/vhosts/skyline-va.de/httpdocs/iCrew/core/classes/TemplateSet.class.php(181): TemplateSet->getTemplate('profile_main.ph...', false, true, false) #4 /var/www/vhosts/skyline-va.de/httpdocs/iCrew/core/classes/Template.class.php(82): TemplateSet->showTemplate('profile_main.ph...') #5 /var/www/vhosts/skyline-va.de/httpdocs/iCrew/core/classes/CodonModule.class.php(92): Template::show('profile_main.ph...') #6 /var/www/vhosts/skyline-va.de/httpdocs/iCrew/core/modules/Profile/Profile.php(66): CodonModule->render('profile_main.ph...') #7 [internal function]: Profile->index() #8 /var/www/vhosts/skyline-va.de/httpdocs/iCrew/core/classes/MainController.class.php(218): call_user_func_array(Array, Array) #9 /var/www/vhosts/skyline-va.de/httpdocs/iCrew/index.php(70): MainController::RunAllActions() #10 {main} <<<< I have Create a new php file on my Webserver to test the WBB4 Code: <?php require_once '../forum-new.skyline-va.de/global.php'; $username = 'XXXX'; $sql = "SELECT userid FROM `wcf1_user` WHERE username = '$username'"; $statement = wcf\system\WCF::getDB()->prepareStatement($sql); $statement->execute(); $row = $statement->fetchArray(); $userid = $row['userid']; $userAction = new \wcf\data\user\UserAction(array($userid), 'update', array( 'data' => array( 'password' => 'XXXXX', ) )); $userAction->executeAction(); echo $userid, $username; ?> This Code works perfect to change the Password. I don't find the error in my code or I'm too stupid to find him is someone here who can help me with this and assist me with the existing registration and password changes to the WBB4? I am also willing to pay something for the work. Edit: PHPVMS version is 5.5 from Simpilot, WBB4 with WCF 2.1 Best Regards, Jan
×
×
  • Create New...