Changeset 2042908
- Timestamp:
- 03/02/2019 06:07:58 PM (7 years ago)
- Location:
- wp-settings/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-settings.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-settings/trunk/readme.txt
r2042805 r2042908 1 1 === WP Settings === 2 2 Contributors: codecompiled 3 Tags: wordpress settings,php Inf roamtion,mysql version,theme details,apache version,WP Settings,mysql information,installed plugins,codecompiled3 Tags: wordpress settings,php Informtion,database backup,database backup script,mysql version,theme details,apache version,WP Settings,mysql information,installed plugins,codecompiled 4 4 Tested up to: 5.1 5 5 Requires PHP: 5.2.4 … … 18 18 19 19 20 Some of the details you can view usingthis plugin:20 Some of the options in this plugin: 21 21 22 22 * WordPress settings such as version and url. 23 23 24 24 * MySQL details such as version and database. 25 26 * Generate Database Backup Script 25 27 26 28 * Server details such as Apache version. -
wp-settings/trunk/wp-settings.php
r2042807 r2042908 13 13 /*ceating tabs*/ 14 14 function ilc_admin_tabs( $current = '00' ) { 15 $tabs = array( 'homepage' => 'Home Settings', 'databse' => 'Datab se');15 $tabs = array( 'homepage' => 'Home Settings', 'databse' => 'Database Settings'); 16 16 echo '<div id="tabs" class="icon32"><br></div>'; 17 17 echo '<h2 class="nav-tab-wrapper">'; … … 210 210 211 211 $tab=''; 212 //echo 'in wpsettings_GetWPInfo';213 212 if(isset($_GET['tab'])) 214 213 $tab=$_GET['tab'] ; 215 214 216 //$regstration = $_GET['registration'];217 218 215 //echo $tab; 219 216 //check which tab to display 220 if($tab!='') 221 { 217 222 218 echo '<table class="form-table">'; 223 219 switch ( $tab ){ 224 220 225 221 case 'databse' : 226 //echo 'aaaaaa'; 227 //backup_tables(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME); 228 // echo "f"; 229 ?> 222 ?> 230 223 231 224 <?php … … 247 240 <?php 248 241 break; 242 default: 243 getHomePageContent(); ?> 244 245 246 <?php 247 break; 249 248 case 'homepage' : 250 249 ?> … … 254 253 } 255 254 echo '</table>'; 256 } 255 257 256 } 258 257 //check which tab to display … … 265 264 <?php $sqldetails=wpsettings_getMySqlDetails();?> 266 265 <tr> 267 <th colspan="2">268 MySQL Details266 <th > 267 Following is the information about the database 269 268 </th> 270 269 … … 283 282 }?> 284 283 <tr> 285 <td >286 Download database script 284 <td colspan="2"> 285 Click the download button to take backup of the database 287 286 <input type="submit" value="Download" name="submit_btn"> 288 287 </td> … … 314 313 $result = $mysqli->query('SHOW TABLES'); 315 314 316 if(isset($result)) 317 { 318 echo 'variable is null'; 319 } 320 else 321 { 322 echo 'variable is null'; 323 } 324 315 325 316 $tableCount=0; 326 317 $tables = array(); … … 332 323 } 333 324 334 echo 'tableCount'.$tableCount; 335 336 337 338 foreach($tables as $table) 325 foreach($tables as $table) 339 326 { 340 327 echo "step no 2"; … … 351 338 for ($i = 0; $i < $num_fields; $i++) 352 339 { 353 while($row = mysqli_fetch_row($ mysqli ,$result))340 while($row = mysqli_fetch_row($result)) 354 341 { 355 342 $return.= 'INSERT INTO '.$table.' VALUES(';
Note: See TracChangeset
for help on using the changeset viewer.