This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Index file

By: mrojas on May 15th, 2012  |  syntax: None  |  size: 21.88 KB  |  views: 594  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // Page créé par Shepard [Fabian Pijcke] <Shepard8@laposte.net>
  4. // Arno Esterhuizen <arno.esterhuizen@gmail.com>
  5. // et Romain Bourdon <rromain@romainbourdon.com>
  6. // et Hervé Leclerc <herve.leclerc@alterway.fr>
  7. //  
  8. // Mise a jour par Herve Leclerc herve.leclerc@alterway.fr
  9. // Ici par Mark James <http://www.famfamfam.com/lab/icons/silk/>
  10.  
  11.  
  12.  
  13. //chemin jusqu'au fichier de conf de WampServer
  14. $wampConfFile = '../wampmanager.conf';
  15.  
  16. //chemin jusqu'aux fichiers alias
  17. $aliasDir = '../alias/';
  18.  
  19. //chemin jusqu'aux fichiers vhosts
  20. $vhostsDir = '../vhosts/';
  21.  
  22. // on charge le fichier de conf locale
  23. if (!is_file($wampConfFile))
  24.     die ('Unable to open WampServer\'s config file, please change path in index.php file');
  25. //require $wampConfFile;
  26. $fp = fopen($wampConfFile,'r');
  27. $wampConfFileContents = fread ($fp, filesize ($wampConfFile));
  28. fclose ($fp);
  29.  
  30.  
  31. //on rs les versions des applis
  32. preg_match('|phpVersion = (.*)\n|',$wampConfFileContents,$result);
  33. $phpVersion = str_replace('"','',$result[1]);
  34. preg_match('|apacheVersion = (.*)\n|',$wampConfFileContents,$result);
  35. $apacheVersion = str_replace('"','',$result[1]);
  36. preg_match('|mysqlVersion = (.*)\n|',$wampConfFileContents,$result);
  37. $mysqlVersion = str_replace('"','',$result[1]);
  38. preg_match('|wampserverVersion = (.*)\n|',$wampConfFileContents,$result);
  39. $wampserverVersion = str_replace('"','',$result[1]);
  40.  
  41.  
  42.  
  43. // repertoires  gnorer dans les projets
  44. $projectsListIgnore = array ('.','..');
  45.  
  46.  
  47. // textes
  48. $langues = array(
  49.         'en' => array(
  50.                 'langue' => 'English',
  51.                 'autreLangue' => 'Version Fran&ccedil;aise',
  52.                 'autreLangueLien' => 'fr',
  53.                 'titreHtml' => 'WAMPSERVER Homepage',
  54.                 'titreConf' => 'Server Configuration',
  55.                 'versa' => 'Apache Version :',
  56.                 'versp' => 'PHP Version :',
  57.                 'versm' => 'MySQL Version :',
  58.                 'phpExt' => 'Loaded Extensions : ',
  59.                 'titrePage' => 'Tools',
  60.                 'txtProjet' => 'Your Projects',
  61.                 'txtNoProjet' => 'No projects yet.<br />To create a new one, just create a directory in \'www\'.',
  62.                 'txtAlias' => 'Your Aliases',
  63.                 'txtNoAlias' => 'No Alias yet.<br />To create a new one, use the WAMPSERVER menu.',
  64.                 'txtVhosts' => 'Your Virtual Hosts',
  65.                 'txtNoVhosts' => 'No Virtual Hosts yet.<br />To create a new one, use the WAMPSERVER menu.',
  66.                 'faq' => 'http://www.en.wampserver.com/faq.php'
  67.         ),
  68.         'fr' => array(
  69.                 'langue' => 'Fran?s',
  70.                 'autreLangue' => 'English Version',
  71.                 'autreLangueLien' => 'en',
  72.                 'titreHtml' => 'Accueil WAMPSERVER',
  73.                 'titreConf' => 'Configuration Serveur',
  74.                 'versa' => 'Version de Apache:',
  75.                 'versp' => 'Version de PHP:',
  76.                 'versm' => 'Version de MySQL:',
  77.                 'phpExt' => 'Extensions Charg&eacute;es: ',
  78.                 'titrePage' => 'Outils',
  79.                 'txtProjet' => 'Vos Projets',
  80.                 'txtNoProjet' => 'Aucun projet.<br /> Pour en ajouter un nouveau, cr&eacute;ez simplement un r&eacute;pertoire dans \'www\'.',
  81.                 'txtAlias' => 'Vos Alias',
  82.                 'txtNoAlias' => 'Aucun alias.<br /> Pour en ajouter un nouveau, utilisez le menu de WAMPSERVER.',
  83.                 'txtVhosts' => 'Vos Virtual Hosts',
  84.                 'txtNoVhosts' => 'Aucun Virtual Hosts encore.<br />Pour en ajouter un nouveau, utilisez le menu de WAMPSERVER.',
  85.                 'faq' => 'http://www.wampserver.com/faq.php'
  86.         )
  87. );
  88.  
  89.  
  90.  
  91. // images
  92. $pngFolder = <<< EOFILE
  93. iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAA3NCSVQICAjb4U/gAAABhlBMVEX//v7//v3///7//fr//fj+/v3//fb+/fT+/Pf//PX+/Pb+/PP+/PL+/PH+/PD+++/+++7++u/9+vL9+vH79+r79+n79uj89tj89Nf889D88sj78sz78sr58N3u7u7u7ev777j67bL67Kv46sHt6uP26cns6d356aP56aD56Jv45pT45pP45ZD45I324av344r344T14J734oT34YD13pD24Hv03af13pP233X025303JL23nX23nHz2pX23Gvn2a7122fz2I3122T12mLz14Xv1JPy1YD12Vz02Fvy1H7v04T011Py03j011b01k7v0n/x0nHz1Ejv0Hnuz3Xx0Gvz00buzofz00Pxz2juz3Hy0TrmznzmzoHy0Djqy2vtymnxzS3xzi/kyG3jyG7wyyXkwJjpwHLiw2Liw2HhwmDdvlXevVPduVThsX7btDrbsj/gq3DbsDzbrT7brDvaqzjapjrbpTraojnboTrbmzrbmjrbl0Tbljrakz3ajzzZjTfZijLZiTJdVmhqAAAAgnRSTlP///////////////////////////////////////8A////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9XzUpQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAB90RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgOLVo0ngAAACqSURBVBiVY5BDAwxECGRlpgNBtpoKCMjLM8jnsYKASFJycnJ0tD1QRT6HromhHj8YMOcABYqEzc3d4uO9vIKCIkULgQIlYq5haao8YMBUDBQoZWIBAnFtAwsHD4kyoEA5l5SCkqa+qZ27X7hkBVCgUkhRXcvI2sk3MCpRugooUCOooWNs4+wdGpuQIlMDFKiWNbO0dXTx9AwICVGuBQqkFtQ1wEB9LhGeAwDSdzMEmZfC0wAAAABJRU5ErkJggg==
  94. EOFILE;
  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SAfFlQECddlfWswqqX1g3qUE0lNM6VM3q7yaEtrAg+Yk9zuf3qdZgT39KPUZ
  154. IFCTnZwb2TbIrP9gasdj4mb+pFzyKNsaJ8hC5FpEH7BZmMyR64pAlttbSAgDQqmmR+hW6sR/8wL5
  155. MFVJ7o9hZFQKkS7y49lu3fhMSLufZf1/7INupjeogLazgS2N0xK2pDBAQR67q9+l6zh66MkBXW0+
  156. koxTrqamSjXdG25+JTtAuG20i2V0C5O7rNzI60NtqWVgWqAMz8ykYFFehnY+h43DYSb4Opb0T1jd
  157. 7KFj5apUqOIxIDjYM5j4udSQqjMj6lIvJtkw6sgMEvt7hjaxCmjE9jc7QDg//JAMPlOTCb+fptJy
  158. 1ssFrNBKQuQ9KtFdbIHGU29mxVVshY+yRB+kI6zNt7KUX09XUjdqw0/YGvDhDwSqTRIH5f5lgByk
  159. yv8QkBExiW7n4KDNBWmuwwZdYQNmVieOviu7zFJLu750beA+ExrF5FzFzgCFSRsBlzLoAq+XJt4P
  160. v/tvZG0ZRsjXPERWNcFsre33yFrEICtFFiX5e64ja7/nOvD1ZceTXWnFDXBkIZTtDO1yF5yTKLK6
  161. FhJ+jPPjk9z9pzRXSqG4P+PSgeYBumsMGI4P2EjBmadntA/rgXNXk1XFJtavVRK/QwlHERJ7PyJr
  162. l0WpgOiWLgzQVdBa+HitkQaQ6UB960n5LZVhNyBdIKPgM/iEPXFeRoeUoyzT8hDi1vRB8kuk89tk
  163. 1fxIDZBUJvQja8JGip7WG4k6ubcABK2P96twVBFZanqewO/X8ayzF9l3a044DwK2mILTjKp/u3Cf
  164. 1K5+DnXWFfkjVcQram4MvmMq2kf6bCmHnxVKBYmzvB03y8fXJquGUo0ARZzf4Hgmjn9lqADB97Qc
  165. Ti+cO2e0WYFkmDpWq9wVrMN5vQ+ibn6I6w/hnJS1tKHwW4l1QA5If/c7WnvVv9NGm8e1fqs6o7tx
  166. rgDCFtWzw6kggv5XL++P35J9+g84eCWO/WSVESoj+CqkRaRyC66PwPWeWnj6MxBOMWMTiD4Hxzu0
  167. 0HYlzklBrCxtzcfxZqhI2UbypPZhe8DUsRQs86uEd8h1qf1sj5Emx6OM/okATIL9UNeUNA/E8Xwc
  168. q/ntaJ492o4Bg3CDbKz3mvaymfg9CRwXAjYJkcUUfB5tnzE6oZegr9FGmhraorJOUHCFyirj4xtj
  169. 6Eu1m9rLoTOIdNCQQrVdfiscb0V6W/o3AOeU99YDx+tCjJ4huDYHHmGh5pBcE+2z7RjQhIK7Wp3Q
  170. ht9gPOgw/m7QDPUdkMpitD+PNpMNBvxD64OS7u44FnV1PAwDul7IMlhtTlH5Xa4IBBF7MhHSJkO+
  171. GhikPKOzRv+24d7uIfpHmmAUQgOMRLt8g7gRPzucESYYHrlZVS6vh8StAVOULlRqqLHWoYkYHQMQ
  172. J5iQYeR79XMZFL7mJ7dcqtL6WJUkyqbgNmOCsgn4YyB+HQpOuAgBn0T78yBWUZi+6HAUcdEwbUSr
  173. 7z0b47NDXvBT+W0ll+HvASq/PF/VyTcEgXbBGM8l77b8UsNyOIb7CBi3LzFS+mAkykR6RxjEqSD+
  174. frTbi1GTB+GajXtEXSwxiBQO8rVvlULff+J4pwfPDpkL6qfpUn1x3OOa362WflaFDvRjpBzR7p1i
  175. eALrQng4ys2tC6kupWDJ4MoQ3pUfPj/B5w91XSRT3wJ5nHatUPvd26Z/OlQBgaWNud91VM+2U0FK
  176. 7awAd/XNiRZAn++AdBF0rfwfroeRmtiK673gvRCYsko7VjHHGQouVy2G4Sctke/TGN8GTJe53Ola
  177. 6mQJBKYFPvQjSOwm7V3T4CGJMW+KUTGPgostQvVPhyKMrP7l/Hdvnp1a2VAD1C62N1fEZJzCVN65
  178. 5BiMYCZVYPBd/n/CyYXLO2ZdZsClDf8XYACcVJnoRcTY2AAAAABJRU5ErkJggg==
  179. EOFILE;
  180. $pngPlugin = <<< EOFILE
  181. iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsSAAALEgH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5t4nt57nth7ntp4nt15ndp3nd6ZmZmYmJhym956mtJzm96WlpaVlZVwmNyTk5Nvl9lultuSkpKNjY2Li4uKioqIiIiHh4eGhoZQgtVKfNFdha6iAAAAaXRSTlMA//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////914ivwAAAACXBIWXMAAAsSAAALEgHS3X78AAAAH3RFWHRTb2Z0d2FyZQBNYWNyb21lZGlhIEZpcmV3b3JrcyA4tWjSeAAAAKFJREFUGJVjYIABASc/PwYkIODDxBCNLODEzGiQgCwQxsTlzJCYmAgXiGKVdHFxYEuB8dkTOIS1tRUVocaIWiWI8IiIKKikaoD50kYWrpwmKSkpsRC+lBk3t2NEMgtMu4wpr5aeuHcAjC9vzadjYyjn7w7lK9kK6tqZK4d4wBQECenZW6pHesEdFC9mbK0W7otwsqenqmpMILIn4tIzgpG4ADUpGMOpkOiuAAAAAElFTkSuQmCC
  185. EOFILE;
  186. $favicon = <<< EOFILE
  187. iVBORw0KGgoAAAANSUhEUgAAAB8AAAAfCAYAAAAfrhY5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ
  188. bWFnZVJlYWR5ccllPAAAA2RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdp
  189. bj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6
  190. eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEz
  191. NDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJo
  192. dHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlw
  193. dGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS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207. QFdxhujkFMNtSkj3m1ftjTnxEg0f0XNXAYb1mmatwFPSFM1s4NTwuUp18QU9CiyonWj2rhkHWXAK
  208. kNeh7gdMQ5wzRdnKcAo9DwZcsRBtqL70qm7Ior3B/5zbI0IKrvv8mxarhXSsXtrY8m5OfjB+F5SN
  209. BkhKrpi8635uaxAvkO9HpgZSB/v57f2cFpEQzz+UeZ28Yvq+bMXpkb5rSgwLc+Z5Fylwb+y68x4p
  210. MlNW2CLnPUmnrE/d7F1dOGXJ+Qb0neQqre9ptZiAscTI38ng7YTQ8g6Budlg75pktkxPV9idctss
  211. 1mGYOKciupsxatQB8pJkmkUTpgCvHZ0jDtg+t4/60vAf3tVGBf8WYAC3Rq8Ub3mHyQAAAABJRU5E
  212. rkJggg==
  213. EOFILE;
  214.  
  215.  
  216. //affichage du phpinfo
  217. if (isset($_GET['phpinfo']))
  218. {
  219.         phpinfo();
  220.         exit();
  221. }
  222.  
  223.  
  224. //affichage des images
  225. if (isset($_GET['img']))
  226. {
  227.     switch ($_GET['img'])
  228.     {
  229.         case 'pngFolder' :
  230.         header("Content-type: image/png");
  231.         echo base64_decode($pngFolder);
  232.         exit();
  233.        
  234.         case 'pngFolderGo' :
  235.         header("Content-type: image/png");
  236.         echo base64_decode($pngFolderGo);
  237.         exit();
  238.        
  239.         case 'gifLogo' :
  240.         header("Content-type: image/gif");
  241.         echo base64_decode($gifLogo);
  242.         exit();
  243.        
  244.         case 'pngPlugin' :
  245.         header("Content-type: image/png");
  246.         echo base64_decode($pngPlugin);
  247.         exit();
  248.        
  249.         case 'pngWrench' :
  250.         header("Content-type: image/png");
  251.         echo base64_decode($pngWrench);
  252.         exit();
  253.        
  254.         case 'favicon' :
  255.         header("Content-type: image/x-icon");
  256.         echo base64_decode($favicon);
  257.         exit();
  258.     }
  259. }
  260.  
  261.  
  262.  
  263. // Definition de la langue et des textes
  264.  
  265. if (isset ($_GET['lang']))
  266. {
  267.   $langue = htmlspecialchars($_GET['lang'],ENT_QUOTES);
  268.   if ($langue != 'en' && $langue != 'en' ) {
  269.    $langue = 'fr';
  270.   }
  271. }
  272. elseif (isset ($_SERVER['HTTP_ACCEPT_LANGUAGE']) AND preg_match("/^fr/", $_SERVER['HTTP_ACCEPT_LANGUAGE']))
  273. {
  274.         $langue = 'fr';
  275. }
  276. else
  277. {
  278.         $langue = 'en';
  279. }
  280.  
  281. //initialisation
  282. $aliasContents = '';
  283.  
  284. // recuperation des alias
  285. if (is_dir($aliasDir))
  286. {
  287.     $handle=opendir($aliasDir);
  288.     while ($file = readdir($handle))
  289.     {
  290.             if (is_file($aliasDir.$file) && strstr($file, '.conf'))
  291.             {          
  292.                     $msg = '';
  293.                     $aliasContents .= '<li><a href="'.str_replace('.conf','',$file).'/">'.str_replace('.conf','',$file).'</a></li>';
  294.             }
  295.     }
  296.     closedir($handle);
  297. }
  298. if (!isset($aliasContents))
  299.         $aliasContents = $langues[$langue]['txtNoAlias'];
  300.  
  301.  
  302. $vhostsContents = '';
  303.  
  304. // recuperation des vhosts
  305. if (is_dir($vhostsDir))
  306. {
  307.     $handle=opendir($vhostsDir);
  308.     while ($file = readdir($handle))
  309.     {
  310.             if (is_file($vhostsDir.$file) && strstr($file, '.conf'))
  311.             {          
  312.                     $msg = '';
  313.                     $vhostsContents .= '<li><a href="http://'.str_replace('.conf','',$file).'/">http://'.str_replace('.conf','',$file).'</a></li>';
  314.             }
  315.     }
  316.     closedir($handle);
  317. }
  318. if (!isset($vhostsContents))
  319.         $vhostsContents = $langues[$langue]['txtNovhosts'];
  320.  
  321.  
  322.  
  323. // recuperation des projets
  324. $handle=opendir(".");
  325. $projectContents = '';
  326. while ($file = readdir($handle))
  327. {
  328.         if (is_dir($file) && !in_array($file,$projectsListIgnore))
  329.         {              
  330.                 $projectContents .= '<li><a href="'.$file.'">'.$file.'</a></li>';
  331.         }
  332. }
  333. closedir($handle);
  334. if (!isset($projectContents))
  335.         $projectContents = $langues[$langue]['txtNoProjet'];
  336.  
  337.  
  338. //initialisation
  339. $phpExtContents = '';
  340.  
  341. // recuperation des extensions PHP
  342. $loaded_extensions = get_loaded_extensions();
  343. foreach ($loaded_extensions as $extension)
  344.         $phpExtContents .= "<li>${extension}</li>";
  345.  
  346.  
  347.  
  348.  
  349. $pageContents = <<< EOPAGE
  350. <?xml version="1.0" encoding="iso-8859-1"?>
  351. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  352.         "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  353.  
  354. <html lang="en" xml:lang="en">
  355. <head>
  356.         <title>{$langues[$langue]['titreHtml']}</title>
  357.         <meta http-equiv="Content-Type" content="txt/html; charset=utf-8" />
  358.  
  359.         <style type="text/css">
  360. * {
  361.         margin: 0;
  362.         padding: 0;
  363. }
  364.  
  365. html {
  366.         background: #ddd;
  367. }
  368. body {
  369.         margin: 1em 10%;
  370.         padding: 1em 3em;
  371.         font: 80%/1.4 tahoma, arial, helvetica, lucida sans, sans-serif;
  372.         border: 1px solid #999;
  373.         background: #eee;
  374.         position: relative;
  375. }
  376. #head {
  377.         margin-bottom: 1.8em;
  378.         margin-top: 1.8em;
  379.         padding-bottom: 0em;
  380.         border-bottom: 1px solid #999;
  381.         letter-spacing: -500em;
  382.         text-indent: -500em;
  383.         height: 125px;
  384.         background: url(index.php?img=gifLogo) 0 0 no-repeat;
  385. }
  386. .utility {
  387.         position: absolute;
  388.         right: 4em;
  389.         top: 145px;
  390.         font-size: 0.85em;
  391. }
  392. .utility li {
  393.         display: inline;
  394. }
  395.  
  396. h2 {
  397.         margin: 0.8em 0 0 0;
  398. }
  399.  
  400. ul {
  401.         list-style: none;
  402.         margin: 0;
  403.         padding: 0;
  404. }
  405. #head ul li, dl ul li, #foot li {
  406.         list-style: none;
  407.         display: inline;
  408.         margin: 0;
  409.         padding: 0 0.2em;
  410. }
  411. ul.vhosts, ul.aliases, ul.projects, ul.tools {
  412.         list-style: none;
  413.         line-height: 24px;
  414. }
  415. ul.vhosts a, ul.aliases a, ul.projects a, ul.tools a {
  416.         padding-left: 22px;
  417.         background: url(index.php?img=pngFolder) 0 100% no-repeat;
  418. }
  419. ul.tools a {
  420.         background: url(index.php?img=pngWrench) 0 100% no-repeat;
  421. }
  422. ul.aliases a {
  423.         background: url(index.php?img=pngFolderGo) 0 100% no-repeat;
  424. }
  425. ul.vhosts a {
  426.         background: url(index.php?img=pngFolderGo) 0 100% no-repeat;
  427. }
  428. dl {
  429.         margin: 0;
  430.         padding: 0;
  431. }
  432. dt {
  433.         font-weight: bold;
  434.         text-align: right;
  435.         width: 11em;
  436.         clear: both;
  437. }
  438. dd {
  439.         margin: -1.35em 0 0 12em;
  440.         padding-bottom: 0.4em;
  441.         overflow: auto;
  442. }
  443. dd ul li {
  444.         float: left;
  445.         display: block;
  446.         width: 16.5%;
  447.         margin: 0;
  448.         padding: 0 0 0 20px;
  449.         background: url(index.php?img=pngPlugin) 2px 50% no-repeat;
  450.         line-height: 1.6;
  451. }
  452. a {
  453.         color: #024378;
  454.         font-weight: bold;
  455.         text-decoration: none;
  456. }
  457. a:hover {
  458.         color: #04569A;
  459.         text-decoration: underline;
  460. }
  461. #foot {
  462.         text-align: center;
  463.         margin-top: 1.8em;
  464.         border-top: 1px solid #999;
  465.         padding-top: 1em;
  466.         font-size: 0.85em;
  467. }
  468. </style>
  469.    
  470.         <link rel="shortcut icon" href="index.php?img=favicon" type="image/ico" />
  471. </head>
  472.  
  473. <body>
  474.         <div id="head">
  475.                 <h1><abbr title="Windows">W</abbr><abbr title="Apache">A</abbr><abbr title="MySQL">M</abbr><abbr title="PHP">P</abbr></h1>
  476.                 <ul>
  477.                         <li>PHP 5</li>
  478.                         <li>Apache 2</li>
  479.                         <li>MySQL 5</li>
  480.                 </ul>
  481.         </div>
  482.  
  483.         <ul class="utility">
  484.                 <li>Version ${wampserverVersion}</li>
  485.                 <li><a href="?lang={$langues[$langue]['autreLangueLien']}">{$langues[$langue]['autreLangue']}</a></li>
  486.         </ul>
  487.  
  488.         <h2> {$langues[$langue]['titreConf']} </h2>
  489.  
  490.         <dl class="content">
  491.                 <dt>{$langues[$langue]['versa']}</dt>
  492.                 <dd>${apacheVersion} &nbsp;</dd>
  493.                 <dt>{$langues[$langue]['versp']}</dt>
  494.                 <dd>${phpVersion} &nbsp;</dd>
  495.                 <dt>{$langues[$langue]['phpExt']}</dt>
  496.                 <dd>
  497.                         <ul>
  498.                         ${phpExtContents}
  499.                         </ul>
  500.                 </dd>
  501.                 <dt>{$langues[$langue]['versm']}</dt>
  502.                 <dd>${mysqlVersion} &nbsp;</dd>
  503.         </dl>
  504.         <h2>{$langues[$langue]['titrePage']}</h2>
  505.         <ul class="tools">
  506.                 <li><a href="?phpinfo=1">phpinfo()</a></li>
  507.                 <li><a href="phpmyadmin/">phpmyadmin</a></li>
  508.         </ul>
  509.         <h2>{$langues[$langue]['txtProjet']}</h2>
  510.         <ul class="projects">
  511.         $projectContents
  512.         </ul>
  513.         <h2>{$langues[$langue]['txtVhosts']}</h2>
  514.         <ul class="vhosts">
  515.         ${vhostsContents}                      
  516.         </ul>
  517.         <h2>{$langues[$langue]['txtAlias']}</h2>
  518.         <ul class="aliases">
  519.         ${aliasContents}                       
  520.         </ul>
  521.         <ul id="foot">
  522.                 <li><a href="http://www.wampserver.com">WampServer</a></li> -
  523.         <li><a href="http://www.wampserver.com/en/donations.php">Donate</a></li> -
  524.                 <li><a href="http://www.alterway.fr">Alter Way</a></li>
  525.         </ul>
  526. </body>
  527. </html>
  528. EOPAGE;
  529.  
  530. echo $pageContents;
  531. ?>
clone this paste RAW Paste Data