Jump to content

FlyingMachine

Members
  • Posts

    160
  • Joined

  • Last visited

Everything posted by FlyingMachine

  1. after installation this is the error Notice: The template file "/home/xxxxxx/public_html/royalairmarocvirtual/pilotcenter/xxxxxx//core/templates/mail/mail_menu.tpl" doesn't exist in /home/xxxxxx/public_html/royalairmarocvirtual/pilotcenter/home/core/classes/TemplateSet.class.php on line 248 Notice: The template file "/home/xxxxxx/public_html/royalairmarocvirtual/pilotcenter/xxxxxx//core/templates/mail/mail_inbox.tpl" doesn't exist in /home/xxxxxx/public_html/royalairmarocvirtual/pilotcenter/home/core/classes/TemplateSet.class.php on line 248
  2. Issue resolved by adding the following code in layout.tpl <?php $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?>
  3. any other solution please i need it asap if possible thanks
  4. Notice: after check&repaire the DB it's works Thanks
  5. Thank you sir for the info, unfortunately after changing the number, it returns back to the last one 20 it wont take number 2 AUTO_INCREMENT
  6. Hello dear, after many tests on registration i have created many users, now i have XXX020 i deleted all of the users but if someone else registered automatically will have XXX021 even XXX020,XXX019,XXX018.... doesn't exist ho i can reset this ? Regards,
  7. module found by simpilotgroup Entrance Exam Module
  8. good morning eveybody i think the question is very simple i want to have some couple of questions or test before the guest can proceed to register waiting for favorable answer !
  9. Hey after some modifying onto Schedules_results.tpl in html i got this error if the the search done without results Warning: Invalid argument supplied for foreach() in /home/xxxxx/public_html/xxxxxx/core/templates/schedule_results.tpl on line 136 in case the search with results everything work ok regards
  10. Thank you sir for your reply, i want the phpvms will be as pilotcenter only guests will never can acheive it or visit it unless they are members, so in order to register guests cannot acheive the registration form if this code exist i will try the action.php & i will back thank you again
  11. Hello dear recently i invloved a code that doesn't allow everybody to visit the phpvms website by puting <?php if(Auth::LoggedIn()) { //show the layout ?> LAYOUT CONTENT <?php } else { //redirect to login page ?> <meta http-equiv="refresh" content="0;URL='../'" /> <?php } ?> in layout.tpl but the problem that the registration form needs layout file, i wonder is it possible to exclude registration module to use layout.tpl ?? cause now when i try to visit registation form the website redirect me to login page looking forward, tx
  12. Issue has been resolved by removing this line $this->render('schedule_searchform.tpl'); from core/modules/Schedules file Schedules.php regards,
  13. Hey everybody how i can remove the search form from the schedules_results.tpl ? index.php/schedules/view tnx
  14. of course it's simple HTML, i will send to you the link i private to avoid ads tnx
  15. Hey Vangelis i need the same thing you have done external page with Pilot list tnx
  16. Thanks Vangelis for your feedback actually i need the same what you have included in your pilot roster regards,
  17. Good morning all, first of all i would like to thank everybody helping in this community trying to improve this script, i have creat a simple html page i want to include /index.php/pilots page in this new html one i proceed with normal procedure by copying/past the coed <?php include('home/core/codon.config.php'); ?> also adding the code of pilots_list.tpl into this page but only thing show up in this page is "There are no pilots!" thank you in advance
  18. I'm so happy everything cool with you sirs, thank you again login page done, im working now on pilot center i will back for you with final result
  19. Thank you sir but this the code i have submited but doesn't work if the user logged in redirect to the /home/index.php the folder of phpvms is pilotcenter.domaine.com/home else show the index.php in this folder pilotcenter.domaine.com/index.php (index.php) this is the login page <html> <head> <?php include('home/core/codon.config.php'); ?> <?php /* This should be the first thing you place after a <body> tag This is also required by phpVMS */ echo $page_htmlreq; ?> <?php /* This is required, so phpVMS can output the necessary libraries it needs */ echo $page_htmlhead; ?> <title>PilotCenter - Login Page</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script src="js/cufon-yui.js" type="text/javascript"></script> <script src="js/ChunkFive_400.font.js" type="text/javascript"></script> <script type="text/javascript"> Cufon.replace('h1',{ textShadow: '1px 1px #fff'}); Cufon.replace('h2',{ textShadow: '1px 1px #fff'}); Cufon.replace('h3',{ textShadow: '1px 1px #000'}); Cufon.replace('.back'); </script> </head> <body> <?php if(Auth::LoggedIn()) { //do stuff if they are logged in... echo <meta http-equiv='refresh' content='0;url=home/index.php'>; } else { //do stuff because they are not logged in <!-------- Loging Form ---------------> echo <div class="wrapper"> <center> <img src="http://royalairmarocvirtual.com/phpvms/images/logo.png" /></center> <div class="content"> <div id="form_wrapper" class="form_wrapper"> <form class="login active" name="loginform" action="/home/index.php/login" method="post"> <h3><center>Pilot Center Access</center></h3> <div> <label>Pilot ID:</label> <input type="text" name="email" /> <span class="error">This is an error</span> </div> <div> <label>Password:</label> <input type="password" name="password" /> <center><a href="forgot_password.php" rel="forgot_password" class="forgot linkform">Forgot your password?</a></center> <span class="error">This is an error</span> </div> <div class="bottom"> <div class="remember"><input type="checkbox" name="remember" /><span>Keep me logged in</span></div> <input type="hidden" name="redir" value="index.php/profile" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /> <div class="clear"></div> </div> </form> <form name="loginform" action="<?php echo url('/login'); ?>" method="post"> <input type="text" name="email" value="" onclick="this.value=''" /> <input type="password" name="password" value="" /> <input type="hidden" name="remember" value="on" /> <input type="hidden" name="redir" value="index.php/profile" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /> </form> </div> <div class="clear"></div> </div> </div> <!-------- Loging Form ---------------> ; } ?> </body> </html> any comment ?
  20. thank you dear appreciate your help for me each time
  21. Hello after some developing finally i got the login form correctly working <html> <head> <?php /* This should be the first thing you place after a <body> tag This is also required by phpVMS */ echo $page_htmlreq; include('../core/codon.config.php'); ?> <?php /* This is required, so phpVMS can output the necessary libraries it needs */ echo $page_htmlhead; ?> <title>PilotCenter - Login Page</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script src="js/cufon-yui.js" type="text/javascript"></script> <script src="js/ChunkFive_400.font.js" type="text/javascript"></script> <script type="text/javascript"> Cufon.replace('h1',{ textShadow: '1px 1px #fff'}); Cufon.replace('h2',{ textShadow: '1px 1px #fff'}); Cufon.replace('h3',{ textShadow: '1px 1px #000'}); Cufon.replace('.back'); </script> </head> <body> <!-------- Loging Form ---------------> <div class="wrapper"> <center> <img src="phpvms/images/logo.png" /></center> <div class="content"> <div id="form_wrapper" class="form_wrapper"> <form class="login active" name="loginform" action="/home/index.php/login" method="post"> <h3><center>Pilot Center Access</center></h3> <div> <label>Pilot ID:</label> <input type="text" name="email" /> <span class="error">This is an error</span> </div> <div> <label>Password:</label> <input type="password" name="password" /> <center><a href="forgot_password.php" rel="forgot_password" class="forgot linkform">Forgot your password?</a></center> <span class="error">This is an error</span> </div> <div class="bottom"> <div class="remember"><input type="checkbox" name="remember" /><span>Keep me logged in</span></div> <input type="hidden" name="redir" value="index.php/profile" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /> <div class="clear"></div> </div> </form> <form name="loginform" action="<?php echo url('/login'); ?>" method="post"> <input type="text" name="email" value="" onclick="this.value=''" /> <input type="password" name="password" value="" /> <input type="hidden" name="remember" value="on" /> <input type="hidden" name="redir" value="index.php/profile" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /> </form> </div> <div class="clear"></div> </div> </div> <!-------- Loging Form ---------------> </body> </html> Please let me know how i can this page know the user is already loged in or not for example this is html page situated on pilotcenter.domaine.com and the phpvms folder is pilotcenter.domain.com/phpvms so how i can make the page index.php on pilotcenter discover the user is already logged-in phpvms or not if the user is logged in the page must to redirect to pilotcenter.domain.com/phpvms if not the user has to loggin looking forward, sorry for this question again
×
×
  • Create New...