Changeset 159 for trunk/admin/index.php
- Timestamp:
- Apr 6, 2009, 6:49:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/index.php
r107 r159 117 117 echo "</fieldset><br />"; 118 118 119 require_once dirname(dirname( __FILE__ )).'/class/config_from_xoops.class.php' ; 120 $xoops_config = new ConfigFromXoops; 121 echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_XOOPS_CONFIG_INFO . "</legend>"; 122 echo "<div style='padding: 8px;'>"; 123 echo '<table width="400" cellspacing="1" cellpadding="1" border="1">'; 124 echo '<tbody>'; 125 echo '<tr>'; 126 echo '<td>Define</td>'; 127 echo '<td>XOOPS</td>'; 128 echo '<td>xoops_config</td>'; 129 echo '</tr>'; 130 echo '<tr>'; 131 if(XOOPS_ROOT_PATH !== $xoops_config->xoops_root_path) 132 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_ROOT_PATH</span></strong></td>'; 133 else 134 echo '<td>XOOPS_ROOT_PATH</td>'; 135 echo '<td>' . XOOPS_ROOT_PATH . '</td>'; 136 echo '<td>' . $xoops_config->xoops_root_path . '</td>'; 137 echo '</tr>'; 138 139 echo '<tr>'; 140 if(XOOPS_TRUST_PATH !== $xoops_config->xoops_trust_path) 141 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_TRUST_PATH</span></strong></td>'; 142 else 143 echo '<td>XOOPS_TRUST_PATH</td>'; 144 echo '<td>' . XOOPS_TRUST_PATH . '</td>'; 145 echo '<td>' . $xoops_config->xoops_trust_path . '</td>'; 146 echo '</tr>'; 147 148 echo '<tr>'; 149 if(XOOPS_URL !== $xoops_config->xoops_url) 150 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_URL</span></strong></td>'; 151 else 152 echo '<td>XOOPS_URL</td>'; 153 echo '<td>' . XOOPS_URL . '</td>'; 154 echo '<td>' . $xoops_config->xoops_url . '</td>'; 155 echo '</tr>'; 156 157 if (defined('XOOPS_SALT')){ 158 echo '<tr>'; 159 if(XOOPS_SALT !== $xoops_config->xoops_salt) 160 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_SALT</span></strong></td>'; 161 else 162 echo '<td>XOOPS_SALT</td>'; 163 echo '<td>' . XOOPS_SALT . '</td>'; 164 echo '<td>' . $xoops_config->xoops_salt . '</td>'; 165 echo '</tr>'; 166 } 167 168 if (defined('XOOPS_DB_SALT')){ 169 echo '<tr>'; 170 if(XOOPS_DB_SALT !== $xoops_config->xoops_db_salt) 171 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_DB_SALT</span></strong></td>'; 172 else 173 echo '<td>XOOPS_DB_SALT</td>'; 174 echo '<td>' . XOOPS_DB_SALT . '</td>'; 175 echo '<td>' . $xoops_config->xoops_db_salt . '</td>'; 176 echo '</tr>'; 177 } 178 179 echo '<tr>'; 180 if(XOOPS_DB_HOST !== $xoops_config->xoops_db_host) 181 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_DB_HOST</span></strong></td>'; 182 else 183 echo '<td>XOOPS_DB_HOST</td>'; 184 echo '<td>' . XOOPS_DB_HOST . '</td>'; 185 echo '<td>' . $xoops_config->xoops_db_host . '</td>'; 186 echo '</tr>'; 187 188 echo '<tr>'; 189 if(XOOPS_DB_USER !== $xoops_config->xoops_db_user) 190 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_DB_USER</span></strong></td>'; 191 else 192 echo '<td>XOOPS_DB_USER</td>'; 193 echo '<td>' . XOOPS_DB_USER . '</td>'; 194 echo '<td>' . $xoops_config->xoops_db_user . '</td>'; 195 echo '</tr>'; 196 197 echo '<tr>'; 198 if(XOOPS_DB_PASS !== $xoops_config->xoops_db_pass) 199 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_DB_PASS</span></strong></td>'; 200 else 201 echo '<td>XOOPS_DB_PASS</td>'; 202 echo '<td>' . XOOPS_DB_PASS . '</td>'; 203 echo '<td>' . $xoops_config->xoops_db_pass . '</td>'; 204 echo '</tr>'; 205 206 echo '<tr>'; 207 if(XOOPS_DB_NAME !== $xoops_config->xoops_db_name) 208 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_DB_NAME</span></strong></td>'; 209 else 210 echo '<td>XOOPS_DB_NAME</td>'; 211 echo '<td>' . XOOPS_DB_NAME . '</td>'; 212 echo '<td>' . $xoops_config->xoops_db_name . '</td>'; 213 echo '</tr>'; 214 215 echo '<tr>'; 216 if(XOOPS_DB_PREFIX !== $xoops_config->xoops_db_prefix) 217 echo '<td><strong><span style="color: rgb(255, 0, 0);">XOOPS_DB_PREFIX</span></strong></td>'; 218 else 219 echo '<td>XOOPS_DB_PREFIX</td>'; 220 echo '<td>' . XOOPS_DB_PREFIX . '</td>'; 221 echo '<td>' . $xoops_config->xoops_db_prefix . '</td>'; 222 echo '</tr>'; 223 echo '</tbody>'; 224 echo '</table>'; 225 echo "</div>"; 226 echo "</fieldset><br />"; 227 119 228 $xp_prefix = $GLOBALS['xoopsModule']->getInfo('dirname'); 120 229 if ($xp_prefix == 'wordpress'){
Note: See TracChangeset
for help on using the changeset viewer.