XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
page_modcheck.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
29 require_once './include/common.inc.php';
30 defined('XOOPS_INSTALL') or die('XOOPS Installation wizard die');
31 
33 $diagsOK = false;
34 
35 foreach ($wizard->configs['extensions'] as $ext => $value) {
36  if (extension_loaded($ext)) {
37  if (is_array($value[0])) {
38  $wizard->configs['extensions'][$ext][] = xoDiag(1, implode(',', $value[0]));
39  } else {
40  $wizard->configs['extensions'][$ext][] = xoDiag(1, $value[0]);
41  }
42  } else {
43  $wizard->configs['extensions'][$ext][] = xoDiag(0, NONE);
44  }
45 }
46 ob_start();
47 ?>
48 <table class="diags">
49 <caption><?php echo REQUIREMENTS; ?></caption>
50 <thead><tr><th colspan='2'></th></tr></thead>
51 <tfoot><tr><td colspan='2'></td></tr></tfoot>
52 <tbody>
53 <tr>
54  <th><?php echo SERVER_API; ?></th>
55  <td><?php echo php_sapi_name(); ?><br /> <?php echo $_SERVER["SERVER_SOFTWARE"]; ?></td>
56 </tr>
57 
58 <tr>
59  <th><?php echo _PHP_VERSION; ?></th>
60  <td><?php echo xoPhpVersion(); ?></td>
61 </tr>
62 
63 <tr>
64  <th><?php printf(PHP_EXTENSION,'MySQL'); ?></th>
65  <td><?php echo xoDiag(function_exists('mysql_connect') ? 1 : -1, @mysql_get_client_info()); ?></td>
66 </tr>
67 
68 <tr>
69  <th><?php printf(PHP_EXTENSION, 'Session'); ?></th>
70  <td><?php echo xoDiag(extension_loaded('session') ? 1 : -1 ); ?></td>
71 </tr>
72 
73 <tr>
74  <th><?php printf( PHP_EXTENSION, 'PCRE'); ?></th>
75  <td><?php echo xoDiag(extension_loaded('pcre') ? 1 : -1); ?></td>
76 </tr>
77 
78 <tr>
79  <th scope="row">file_uploads</th>
80  <td><?php echo xoDiagBoolSetting('file_uploads', true); ?></td>
81 </tr>
82 </tbody>
83 </table>
84 
85 <table class="diags">
86 <caption><?php echo RECOMMENDED_EXTENSIONS; ?></caption>
87 <thead>
88  <tr><th colspan="2"><div class='confirmMsg'><?php echo RECOMMENDED_EXTENSIONS_MSG; ?></div></th></tr>
89 </thead>
90 <tfoot><tr><td colspan='2'></td></tr></tfoot>
91 <tbody>
92 <?php
93 foreach ($wizard->configs['extensions'] as $key => $value) {
94  echo "<tr><th>" . $value[1] . "</th><td>" . $value[2] . "</td></tr>";
95 }
96 ?>
97 
98 </tbody>
99 </table>
100 <?php
101 $content = ob_get_contents();
102 ob_end_clean();
103 
104 include './include/install_tpl.php';
105 ?>