echo "----------------------------------------------\n\n\n"; flush(); //make sure to save this php in the p47_r28\offsets dir!!!!!!!!!!!!!!!!!!!!!! //re-write this loop to conduct in dir with key files. if ($dirhandle = opendir('G:\\Trees\\projects\\projects2011\\bbi_elliot\\analysis\\scheduling\\offsets')) { echo "Directory handle: {$dirhandle}\n"; echo "Files:\n"; //loop over each file and do something while (false != ($line = readdir($dirhandle))) { print "File Name: {$line} \n"; //If the file name indicates a bat file //extract the extension (leaves us with .*) $fname = strstr($line, '.'); //get rid of the . //$fname=substr_replace($fname,'',0,1); if ($fname == '.bat') { //call the bat file (run fvs) $command = "call {$line}"; echo $command . "\n"; exec($command); //echo "got here\n"; } } fclose($dirhandle); } // Closing message echo "----------------------------------------------\n"; echo " all done\n"; echo "----------------------------------------------\n\n\n"; $duration = calcElapsedTime($start_time); printf("Online: " . $duration . "\n");
function vue2d_afficher_zone_haut($x_position, $y_position, $z_position, $taille_vue, $myTroll) { if (userIsGuilde()) { $ggc_groupe = new ggc_groupe(); $ggc_groupe->read_db_by_id_troll($myTroll[id_troll]); $ggc_membres = $ggc_groupe->get_db_list_membres(); } ?> <table class='mh_tdborder' width='80%' align='center'> <tr valign="top"> <td colspan='3' class='mh_tdpage' align='center'> <table width="100%"> <tr valign="top"> <td valign='center' align='center' class='mh_tdtitre' width="30%"> <?php if (userIsGuilde()) { if ($ggc_groupe->get_id_groupe()) { echo "<a href='/ggc/groupe.php?id_groupe=" . $ggc_groupe->get_id_groupe() . "'>" . $ggc_groupe->get_nom_groupe() . "</a>"; } else { echo $ggc_groupe->get_nom_groupe(); } echo "<table>"; for ($i = 1; $i <= count($ggc_membres); $i += 3) { $troll = $ggc_membres[$i]; $troll2 = $ggc_membres[$i + 1]; $troll3 = $ggc_membres[$i + 2]; echo "<tr class='mh_tdpage' >"; echo "<td>"; info_membre_ggc($troll); echo "</td>"; echo "<td>"; info_membre_ggc($troll2); echo "</td>"; echo "<td>"; info_membre_ggc($troll3); echo "</td>"; echo "</tr>"; } echo "</table>"; } ?> </td> <td align='center' width="30%"> <img src='images/shim.gif' height='20px'> <?php if (userIsGuilde()) { ?> x<input type='text' value='<?php echo $x_position; ?> ' name='cX' size='2'> y<input type='text' value='<?php echo $y_position; ?> ' name='cY' size='2'> z<input type='text' value='<?php echo $z_position; ?> ' name='cZ' size='2'> <input type='button' onClick='get_map_center();' value='>' class="mh_form_submit"> <?php afficheAideVueCenterSur(); if ($myTroll[nom_troll] != "") { echo "<br>Position de " . htmlentities($myTroll[nom_troll]) . " ({$myTroll['id_troll']}) <br>maj: "; echo date("d/m H:i", $myTroll[date_troll]); echo ", il y a " . calcElapsedTime($myTroll[date_troll]); } } ?> </td> <td width="5%" align="right"> Radar <?php affiche_popup("radar", "yellow", afficherCockpitRadar()); ?> </td> <td width="30%" align="right"> <?php if (userIsGuilde()) { ?> <table class='mh_tdborder'> <tr align='center' class='mh_tdtitre' align="center"> <td> <a href='#' onClick='document.form_cockpit.cX.value=<?php echo $x_position - $taille_vue; ?> ;document.form_cockpit.cY.value=<?php echo $y_position + $taille_vue; ?> ;get_map_center();'>Haut Gauche</a> </td> <td> <a href='#' onClick='document.form_cockpit.cY.value=<?php echo $y_position + $taille_vue; ?> ;get_map_center();'>Haut</a> </td> <td> <a href='#' onClick='document.form_cockpit.cX.value=<?php echo $x_position + $taille_vue; ?> ;document.form_cockpit.cY.value=<?php echo $y_position + $taille_vue; ?> ;get_map_center();'>Haut Droit</a> </td> </tr> <tr class='mh_tdtitre' align="center"> <td> <a href='#' onClick='document.form_cockpit.cX.value=<?php echo $x_position - $taille_vue; ?> ;get_map_center();'>Gauche</a> </td> <td> <a href='#' onClick='document.form_cockpit.cX.value=<?php echo $myTroll[x_troll]; ?> ;document.form_cockpit.cY.value=<?php echo $myTroll[y_troll]; ?> ;get_map_center();'><?php echo $myTroll[id_troll]; ?> </a> </td> <td> <a href='#' onClick='document.form_cockpit.cX.value=<?php echo $x_position + $taille_vue; ?> ;get_map_center();'>Droit</a> </td> </tr> <tr class='mh_tdtitre' align="center"> <td> <a href='#' onClick='document.form_cockpit.cX.value=<?php echo $x_position - $taille_vue; ?> ;document.form_cockpit.cY.value=<?php echo $y_position - $taille_vue; ?> ;get_map_center();'>Bas Gauche</a> </td> <td> <a href='#' onClick='document.form_cockpit.cY.value=<?php echo $y_position - $taille_vue; ?> ;get_map_center();'>Bas</a> </td> <td> <a href='#' onClick='document.form_cockpit.cX.value=<?php echo $x_position + $taille_vue; ?> ;document.form_cockpit.cY.value=<?php echo $y_position - $taille_vue; ?> ;get_map_center();'>Bas Droit</a> </td> </tr> </table> </td> </tr> </table> <?php } ?> </td> </tr> <tr> <td class='mh_tdpage' valign="top"> <table valign="top"><tr> <td class='mh_tdpage'> </td> </tr> <tr> <td class='mh_tdpage'> <img src='images/shim.gif' width='20px'> <?php if (userIsGuilde()) { ?> <input type='button' onClick='document.form_cockpit.pcenter.value="oui";document.form_cockpit.cX.value=<?php echo $x_position - $taille_vue; ?> ;get_map_center();' value="<< X-<?php echo $taille_vue; ?> " class='mh_form_submit'> <?php } ?> </td> </tr> </table> </td> <td class='mh_tdpage' width='80%'> <table class='tableVue' border='0' cellpadding=0 cellspacing=0> <?php }