Jump to content

dimitris

Members
  • Posts

    188
  • Joined

  • Last visited

Everything posted by dimitris

  1. People do not understand. Module removed.
  2. Well, the problems are some CSS shadows around the NavBar and the main <div>. And it is only happening in IE9 (Only this I have ). I tried FF/Opera/Chrome since my 1st post and it seems to work but never is enough... The css reset now. I have to read about it more, time ago I did it but no big success. Thanks!
  3. Thanks for your feedback stuart! Well the problems are not in site actual functionality but in CSS... I think every developer understand what is it You see visible snowflakes ? This is not possible (i think) The code for this is commented so these snowflakes appear only at Christmas, to give the site a more (lets say) happy environment. The Live flights takes direct data from IVAO files and it is very very difficult to take a developers approval from them to make it available to others.
  4. Hey Vansers! You have some errors here In ScreenshotData.class.php use this function: public function delete_screenshot($id) { $query = "DELETE FROM screenshots WHERE id='$_GET[id]'"; DB::query($query); } The change is to id='$_GET[id]' Now instead of <a href="<?php echo SITE_URL ?>/index.php/Screenshots/delete_screenshot?id='"><b>Delete Screenshot</b></a> Use this: <a href="<?php echo SITE_URL ?>/index.php/Screenshots/delete_screenshot?id=<?php echo $screenshot->id; ?>"><b>Delete Screenshot</b></a> Actually you miss the call for the photo's ID which is: <?php echo $screenshot->id; ?> I also suggest you to use this: <?php if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { ?><a href="<?php echo SITE_URL ?>/index.php/Screenshots/delete_screenshot?id=<?php echo $screenshot->id; ?>"><b>Delete Screenshot</b></a><?php } else {} ?> With the above only the Admins have the rights to delete a photo Regards,
  5. Oupsss! Sorry my mistake you know how it is A lot of tabs localhosts/demo servers/real server... The correct link is this: Greece Airways Va And 1st post updated!
  6. Hey everyone! I have make some critical changes to my website and I need some opinions Take a look: Greece Airways Va Any suggestions will be more than welcome. Thanks in advance! Note: To view it fully functional I suggest you to use FireFox/Opera
  7. CPU: Core i7 860 Default 2.8Ghz clocked @4.0Ghz RAM: 8GB DDR3 XMS 1600Mhz 9-9-9-24 HDD: x1 1TB / x2 80GB / x2 75GB / x1 320GB -> All SAMSUNG GFX: nVIDIA/EVGA GTX260 CUDA MB: EVGA P55 FTW PSU: 1000W ULTIMATE OS: Windows 7 Ultimate x64 (Not the build by MS ) CASE: Lian Li PC-K62 FS9 -> locked 40 always 40 | Unlimited -> i cant even read it! FSX -> locked 40 always 40 | Unlimited -> 90~150 (Not yet stable, working on it) Almost to forgot: CPU Cooler: MEGA SHADOW x2 fan push - pull
  8. We are ready to change links again
  9. An easier way than ajax is to create an other .tpl page, set an auto-refresh with html and then "<iframe>" this page to the frontpagemain.tpl. That's the way I have make my own on-line (based on IVAO data) table. OnLine Board (click on pilot callsign for details.) Regards,
  10. So something like this? file.tpl <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname" /> Lastname: <input type="text" name="lastname" /> Age: <input type="text" name="age" /> <input type="submit" /> </form> insert.php: <?php $query = "INSERT INTO '.TABLE_PREFIX.'thetable VALUES ('$_POST[firstname]','$_POST[lastname]','$_POST[age]')"; DB::query($sql); ?> or: <form action="" method="post"> Firstname: <input type="text" name="firstname" /> Lastname: <input type="text" name="lastname" /> Age: <input type="text" name="age" /> <input type="submit" /> </form> <?php $query = "INSERT INTO '.TABLE_PREFIX.'thetable VALUES ('$_POST[firstname]','$_POST[lastname]','$_POST[age]')"; DB::query($sql); ?>
  11. thanks simpilot! One more question, where I can use it ? Inside a function or into a class/module file ? As far as I know it is not possible to use it direct to tpl files.
  12. Hey all! I m re-making a manual add-on to an easier db based add-on. Currently I have make the SELECT * FROM db but how I can make the INSERT INTO ? Please an example would be very helpful. I know exactly how to make it with simple php but not with that type from the phpVMS inside the functions. Thanks, Dimitris
  13. You can use this php command to do that: <?php include("your-site-path/codon.config.php"); ?> On top of your page. Take a farther look here: http://www.w3schools.com/PHP/php_includes.asp And here: http://php.net/manual/en/function.include.php
  14. Hello all! I 'm making the new pilot_public_profile.tpl for my va and i would like to get the last 5 landings per pilot. So if i m looking at pilot 25 i would like to see the last 5 landings for this pilot.
  15. It's a value at local.config.php file
  16. as i can understand salt is this: http://en.wikipedia.org/wiki/Salt_%28cryptography%29 But that i can't understand is how it is encrypted?
  17. Hello ! As I m making my own ACARS application I have come across to a strange problem. According to the RegistrationData.class.php file the password is md5 encrypted. when looking inside the db I saw this string: 4979ee3f58f9e6dbe3736952470153e6 which is 1234 converted from PHPVMS but the actual Md5 hash for the 1234 is: 81dc9bdb52d04dc20036dbd8313ed055 Can someone tell me what really happen here ? I can login with 1234 from inside the PHPVMS but my acars returns me an Invalid Log In Details error. Note1: ACARS written in VB.NET VS2010 Note2: MD5 Encryption working in my VB.NET
  18. dimitris

    HubStats Class

    module is here :/ but no success... again the same
  19. dimitris

    HubStats Class

    with this: <table width="100%" border="0"> <tr> <td>HUB STATS</td> </tr> <tr> <td>Total Flights: <?php echo HubStats::CountFlights('EDDF'); ?></td> </tr> <tr> <td>Total Hours Flown: <?php echo HubStats::TotalHours('EDDF'); ?></td> </tr> <tr> <td>Total Active Pilots Assigned: <?php echo HubStats::CountPilots('EDDF'); ?></td> </tr> </table> I get: HUB STATS Total Flights: Fatal error: Call to undefined method HubStats::countflights() in E:\AppServ\www\fss\lib\skins\crystalogre\eddf_hub.tpl on line 44 and line 44 is: <td>Total Flights: <?php echo HubStats::CountFlights('EDDF'); ?></td> But always thank you for this GREAT! module
  20. Hello all ! I have figure out a way to get the traffic (NO need to have FSpax,FSFK,kACARS etc) from IVAO (still working to find a way for VATSIM) you can see demo here: http://www.greeceairwaysva.com/fss/index.php/online i m waiting the approval from IVAO LD to release this for every one ! Say tunned !
  21. thank you for your help, hope i find a way to make it FF recognizable
  22. well i have version 2.1.934 at the layout.tpl there is a line: <?php /*Any custom Javascript should be placed below this line, after the above call */ ?> then i put my code there but no success... hope to find a solution
  23. actually yes i edit a file, the index.php. I add this code: <script> var snowmax=35 var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD") var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS") var snowletter="*" var sinkspeed=0.6 var snowmaxsize=22 var snowminsize=8 var snowingzone=1 var snow=new Array() var marginbottom var marginright var timer var i_snow=0 var x_mv=new Array(); var crds=new Array(); var lftrght=new Array(); var browserinfos=navigator.userAgent var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) var ns6=document.getElementById&&!document.all var opera=browserinfos.match(/Opera/) var browserok=ie5||ns6||opera function randommaker(range) { rand=Math.floor(range*Math.random()) return rand } function initsnow() { if (ie5 || opera) { marginbottom = document.body.clientHeight marginright = document.body.clientWidth } else if (ns6) { marginbottom = window.innerHeight marginright = window.innerWidth } var snowsizerange=snowmaxsize-snowminsize for (i=0;i<=snowmax;i++) { crds[i] = 0; lftrght[i] = Math.random()*15; x_mv[i] = 0.03 + Math.random()/10; snow[i]=document.getElementById("s"+i) snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)] snow[i].size=randommaker(snowsizerange)+snowminsize snow[i].style.fontSize=snow[i].size snow[i].style.color=snowcolor[randommaker(snowcolor.length)] snow[i].sink=sinkspeed*snow[i].size/5 if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size) snow[i].style.left=snow[i].posx snow[i].style.top=snow[i].posy } movesnow() } function movesnow() { for (i=0;i<=snowmax;i++) { crds[i] += x_mv[i]; snow[i].posy+=snow[i].sink snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]); snow[i].style.top=snow[i].posy if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){ if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=0 } } var timer=setTimeout("movesnow()",50) } for (i=0;i<=snowmax;i++) { document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>") } if (browserok) { window.onload=initsnow } </script> at the top of the page to make some snow in my site for Christmas. When i remove it all is fine ! Do you know what i can do to make it working correct with the code ?
×
×
  • Create New...