-
Posts
111 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Gabriel Fernandez
-
Sugestion For Next Version
Gabriel Fernandez replied to Gabriel Fernandez's topic in Development Help
any code? -
Sugestion For Next Version
Gabriel Fernandez replied to Gabriel Fernandez's topic in Development Help
ok, thanks for work's wainting for a beta version, -
Hello guys, I have a great suggestion to be applied in phpvms. My friend sent me a code to my application for dynamic signatures (http://www.starflightvirtual.com.br/ credits) and I tried but I could not adapt it to our vms. I noticed that our signature (background) the codes are located in pilotdata.class from what I remember. Well I'll be leaving here the code of the signature dynamics transforming for someone to be our platform. For those who do not know what would be a signature dynamics, it's the explanation: it is a sign that connects to the db and FSACARS and so this signing as an ACARS shows some images of every moment of the flight, taxiing, climbing, cruise, and all the situations of a flight, I already did mine, I'll be leaving here to look. Grateful, waiting for an answer. <?php //error_reporting(0); //CODIGO PROJETADO por Ian D. (Lucas Roquefort) para STARFLIGHT AVIATION VIRTUAL //http://starflightvirtual.com.br //antes de alterar ou publicar peça autorizaçao do autor!!! //$base=$_GET['base']; $id=$_GET['id']; //$nome=$_GET['nome']; $hostName = "localhost"; header("Content-type: image/png"); /* CHANGE THESE LINES BELOW TO YOUR DETAILS */ $userName = ""; $password = ""; $dbName = ""; /* make connection to database */ mysql_connect($hostName, $userName, $password) or die("Unable to connect to host $hostName"); mysql_select_db($dbName) or die("Unable to select database $dbName"); $idn=str_replace(array("STA"), "", $id); $sql = "SELECT lat, lon, alt, gs, IATA, phase, timeDestApt, depAptICAO, destAptICAO FROM positions WHERE pilot_num='$idn' AND last_update > DATE_SUB( NOW() , INTERVAL 15 MINUTE )"; $result = mysql_query( $sql ); $dados = mysql_fetch_assoc($result); @$eta = mysql_result($result,0, "timeDestApt"); @$dep = mysql_result($result,0, "depAptICAO"); @$dest = mysql_result($result,0, "destAptICAO"); $sql = "SELECT * FROM phpbb_profile_fields_data p, phpbb_users u WHERE p.user_id = u.user_id AND pilot_num = '$id'"; $result = mysql_query( $sql ); $nome = mysql_result($result,0,"pf_realname"); $SAVID = mysql_result($result,0,"SAVID"); $query_hours = "SELECT sec_to_time(sum(time_to_sec(t2.duration))) AS duration_sum FROM phpbb_users t1, reports t2 WHERE t1.SAVID=$SAVID AND t1.SAVID=t2.SAVID"; $result_hours = mysql_query($query_hours); $time = mysql_result($result_hours,0,"duration_sum"); if (mysql_num_rows($result) == 0) { ($im = ImageCreateFromPng("imagens/off.png")); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 435, 102, "$time", $corTexto); } elseif ($dados['phase'] == 1 ) { $im = ImageCreateFromPng("imagens/embarque.png"); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 430, 102, "$dep/$dest", $corTexto); imagestring($im, 3, 250, 102, "$eta", $corTexto); // Boarding } elseif ($dados['phase'] == 2 ) { $im = ImageCreateFromPng("imagens/taxiparapista.png"); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 430, 102, "$dep/$dest", $corTexto); imagestring($im, 3, 250, 102, "$eta", $corTexto); // Taxi From Gate } elseif ($dados['phase'] == 3 ) { $im = ImageCreateFromPng("imagens/decolando.png"); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 430, 102, "$dep/$dest", $corTexto); imagestring($im, 3, 245, 102, "$eta - $alt", $corTexto); // Departing } elseif ($dados['phase'] == 4 ) { $im = ImageCreateFromPng("imagens/subida.png"); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 430, 102, "$dep/$dest", $corTexto); imagestring($im, 3, 245, 102, "$eta - $alt", $corTexto); // Climbing } elseif ($dados['phase'] == 5 ) { $im = ImageCreateFromPng("imagens/cruzeiro.png"); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 430, 102, "$dep/$dest", $corTexto); imagestring($im, 3, 245, 102, "$eta - $alt", $corTexto); // Cruising } elseif ($dados['phase'] == 6 ) { $im = ImageCreateFromPng("imagens/descida.png"); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 430, 102, "$dep/$dest", $corTexto); imagestring($im, 3, 245, 102, "$eta - $alt", $corTexto); // Descending } elseif ($dados['phase'] == 7 ) { $im = ImageCreateFromPng("imagens/pousando.png"); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 430, 102, "$dep/$dest", $corTexto); imagestring($im, 3, 245, 102, "$eta - $alt", $corTexto); // Landed } elseif ($dados['phase'] == 8 ) { $im = ImageCreateFromPng("imagens/taxiparagate.png"); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 430, 102, "$dep/$dest", $corTexto); //imagestring($im, 3, 250, 102, "$eta", $corTexto); // Taxi To Gate } elseif ($dados['phase'] == 9 ) { $im = ImageCreateFromPng("imagens/desembarque.png"); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 430, 102, "$dep/$dest", $corTexto); //imagestring($im, 3, 250, 102, "$eta", $corTexto); // Arrived at Gate } else { ($im = ImageCreateFromPng("imagens/off.png")); $corTexto = imagecolorallocate($im, 255, 255, 255); imagestring($im, 3, 5, 102, "$id - $nome", $corTexto); imagestring($im, 3, 435, 102, "$time", $corTexto); } imagepng($im); imagepng($im, "$id.png"); imagedestroy($im); ?>
-
Request: Levels of administration
Gabriel Fernandez replied to Gabriel Fernandez's topic in Development Help
disregard, I just look at creating group exactly what I asked ... sorry -
Hello people. Well, i have a good sugestion. I thought I would suggest levels of administration. For example, staff cemant have a link to the center's administrator only with the links to approve the flight logs. After a human resources management center to access the part of news and pages, so each moderator can select a sector of central administration Thanks, wait for reply
-
Aamaaaaziing!! Thaks for post that!!
-
Heel, well i editing the defaul skinn, crystal, so i copy files and put in a one folder, and edit this, but my bottombg dont show in my skin and the default skin, crystal. Any can help me? Thanks
-
Request: All days in admin center
Gabriel Fernandez replied to Gabriel Fernandez's topic in Development Help
thank you!! that work's!!! -
Hello, i have one request. the center of the administrator, where we define the days of the week the route is available, add another option to add all the others, like "every day of the week." It will be easier for many people. Thanks
-
i need delet the line 957 for put the new code or juts paste on this line?
-
Piper388 i put this but dont wokr, i have four images .jpg and put this images in my image skin folder.
-
Hello, i request any php now well i have more one images, and i put 3,4 or more images in my header logo, bat i need a rotate code to make this. Similar a flash. Where is cod of my header logo i want put more one images rotate in this part. Thanks
-
not, it is the ObsessBlue skin, but in the crystal no have changes
-
http://absacargovirtual.freetzi.com/index.php/acars or front page, i flying now - sbkp-kmia
-
Well, i change the templete for crystal, bat still not show the online flights on acarsmap
-
Hello, me again . After Update my acars map dont'show online flights, almost all of my pilots using fsacars, the new version have suport for fsacars?
-
bah, i make, i put true on local config and registration work's, thanks for attention!!!
-
all text document off core/logs is empty ( 0kb and no have any incriptions), Where i enable "debug_log"?
-
well, i run install/checkdb.php and all lines is be "OK", and i not chang any pilot id. and the cache folder is 775
-
Well, i have one problem again... after i click in register button show this menssage waiting for a reply
-
thanks, the default of the vms works
-
i try incert a tpl from default skin of the vms
-
yes, i update for 2.1, put on my ftp and run update.php in install folder.
-
I Have 2 problems with registration page. First the table of "select airline" is empty. Second the add up of the final registration not work, Here Is Page Of my registration VA
-
ok, thanks nabeel