Changeset 3200363
- Timestamp:
- 12/01/2024 07:37:49 PM (15 months ago)
- File:
-
- 1 edited
-
wp-settings/trunk/wp-settings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-settings/trunk/wp-settings.php
r3200017 r3200363 305 305 { 306 306 ?> 307 <form action="" method="POST"> 308 <table class="headerInfo" > 309 <?php $sqldetails=wpsettings_getMySqlDetails();?> 310 <tr> 311 <tr> 312 <td colspan="4"> 313 Following is the information about the database: 314 </td> 315 </tr> 316 317 </tr> 318 <?php foreach($sqldetails as $sqlKey=>$sqlValue) { ?> 319 <tr> 320 <td style="width:30%"> 321 <?php echo $sqlKey;?> 322 </td> 323 <td> 324 <?php echo $sqlValue;?> 325 </td> 326 </tr> 327 <?php 328 329 }?> 330 <tr> 331 <td colspan="2"> 332 Click the download button to take backup of the database 333 <input type="submit" value="Download" name="submit_btn"> 334 </td> 335 336 </tr> 337 </table> 338 <input type="hidden" name="names" id="names"> 339 307 <form action="" method="POST"> 308 <table class="headerInfo"> 309 <tr> 310 <td colspan="4" style="text-align: left; padding: 10px; font-weight: bold; background-color: #0073aa; color: #fff;"> 311 Following is the information about the database: 312 </td> 313 </tr> 314 <?php $sqldetails = wpsettings_getMySqlDetails(); ?> 315 <?php foreach ($sqldetails as $sqlKey => $sqlValue) { ?> 316 <tr> 317 <td style="width: 30%; background-color: #f9f9f9;"><?php echo $sqlKey; ?></td> 318 <td><?php echo $sqlValue; ?></td> 319 </tr> 320 <?php } ?> 321 <tr> 322 <td colspan="4" style="text-align: left; padding: 10px;"> 323 Click the download button to take a backup of the database 324 <input type="submit" value="Download" name="submit_btn" style="margin-left: 10px; padding: 5px 15px; background-color: #0073aa; color: #fff; border: none; cursor: pointer;"> 325 </td> 326 </tr> 327 </table> 328 <input type="hidden" name="names" id="names"> 340 329 </form> 341 330 <?php … … 409 398 410 399 411 function getHomePageContent ()400 function getHomePageContent1() 412 401 { 413 402 $wpdetails= array(); … … 415 404 $serverdetails=array(); 416 405 ?> 417 <table class="headerInfo" > 418 <tr > 419 <td colspan="6"> 420 Following is some of the important information about this wordpress installation. 421 </td> 422 <td></td> 423 </tr> 424 <tr> 425 <td> 426 </td> 427 </tr> 428 429 <tr > 430 <td> 431 Wordpress <input type="checkbox" id="chkWordpress"> 432 </td> 433 <td> 434 Theme <input type="checkbox" id="chkThemeDetails"> 435 </td> 436 <td> 437 MySQL <input type="checkbox" id="chkMySQLDetails"> 438 </td> 439 <td> 440 Server <input type="checkbox" id="chkPhpDetails"> 441 </td> 442 <td> 443 Plugins <input type="checkbox" id="chkPluginDetails"> 444 </td> 445 <td> 446 Show All Details 447 <input type="checkbox" id="chkShowHide"> 448 449 </td> 450 </tr> 451 </table> 406 <table class="headerInfo"> 407 <tr> 408 <td colspan="6" style="text-align: left; padding: 10px; font-weight: bold; background-color: #0073aa; color: #fff;"> 409 Select the options to get the required information about this WordPress installation. 410 </td> 411 </tr> 412 <tr> 413 <td>WordPress <input type="checkbox" id="chkWordpress"></td> 414 <td>Theme <input type="checkbox" id="chkThemeDetails"></td> 415 <td>MySQL <input type="checkbox" id="chkMySQLDetails"></td> 416 <td>Server <input type="checkbox" id="chkPhpDetails"></td> 417 <td>Plugins <input type="checkbox" id="chkPluginDetails"></td> 418 <td>Show All Details <input type="checkbox" id="chkShowHide"></td> 419 </tr> 420 </table> 452 421 <?php if (!function_exists('get_bloginfo')) { 453 422 } else{?> … … 567 536 <?php }?> 568 537 <!-- SQL DETAILS ENDS--> 569 <?php } function wpsettings_DisplaySetingsPage() { 538 <?php } 539 540 //function wpsettings_DisplaySetingsPage() { 541 // include(plugin_dir_path( __FILE__ ).'/wp-settings-options.php'); 542 //} 543 544 function getHomePageContent() 545 { 546 $wpdetails = array(); 547 $serverdetails = array(); 548 ?> 549 <!DOCTYPE html> 550 <html lang="en"> 551 <head> 552 <meta charset="UTF-8"> 553 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 554 <title>WordPress Installation Info</title> 555 <style> 556 body { 557 font-family: Arial, sans-serif; 558 margin: 20px; 559 padding: 0; 560 background-color: #f4f4f9; 561 } 562 table { 563 border-collapse: collapse; 564 width: 100%; 565 margin-bottom: 20px; 566 background-color: #fff; 567 border: 1px solid #ddd; 568 } 569 th, td { 570 text-align: left; 571 padding: 10px; 572 border: 1px solid #ddd; 573 } 574 th { 575 background-color: #0073aa; 576 color: #fff; 577 } 578 tr:nth-child(even) { 579 background-color: #f9f9f9; 580 } 581 tr:hover { 582 background-color: #f1f1f1; 583 } 584 .headerInfo td { 585 background-color: #0073aa; 586 color: #fff; 587 text-align: center; 588 font-weight: bold; 589 } 590 .headerInfo input { 591 margin-left: 10px; 592 } 593 </style> 594 </head> 595 <body> 596 <table class="headerInfo"> 597 <tr> 598 <td colspan="6">Following is some important information about this WordPress installation.</td> 599 </tr> 600 <tr> 601 <td>WordPress <input type="checkbox" id="chkWordpress"></td> 602 <td>Theme <input type="checkbox" id="chkThemeDetails"></td> 603 <td>MySQL <input type="checkbox" id="chkMySQLDetails"></td> 604 <td>Server <input type="checkbox" id="chkPhpDetails"></td> 605 <td>Plugins <input type="checkbox" id="chkPluginDetails"></td> 606 <td>Show All Details <input type="checkbox" id="chkShowHide"></td> 607 </tr> 608 </table> 609 610 <?php if (function_exists('get_bloginfo')) { ?> 611 <!-- WordPress Details --> 612 <table id="wordpressDetails"> 613 <tr> 614 <th colspan="2">WordPress Details</th> 615 </tr> 616 <?php 617 $wpdetails = wpsettings_bloginfo_array(); 618 foreach ($wpdetails as $key => $wpdetail) { ?> 619 <tr> 620 <td style="width:30%"><?php echo wpsettings_getFormattedKey($key); ?></td> 621 <td><?php echo $wpdetail; ?></td> 622 </tr> 623 <?php } ?> 624 </table> 625 626 <!-- Theme Details --> 627 <table id="themeDetails"> 628 <tr> 629 <th colspan="2">Theme Details</th> 630 </tr> 631 <?php 632 $wptheme = wpsettings_theminfo_array(); 633 foreach ($wptheme as $key => $themeValue) { ?> 634 <tr> 635 <td style="width:30%"><?php echo wpsettings_getFormattedKeyTheme($key); ?></td> 636 <td><?php echo is_array($themeValue) ? implode(', ', $themeValue) : $themeValue; ?></td> 637 </tr> 638 <?php } ?> 639 </table> 640 641 <!-- MySQL Details --> 642 <table id="mySQLDetails"> 643 <tr> 644 <th colspan="2">MySQL Details</th> 645 </tr> 646 <?php 647 $sqldetails = wpsettings_getMySqlDetails(); 648 foreach ($sqldetails as $sqlKey => $sqlValue) { ?> 649 <tr> 650 <td style="width:30%"><?php echo $sqlKey; ?></td> 651 <td><?php echo $sqlValue; ?></td> 652 </tr> 653 <?php } ?> 654 </table> 655 656 <!-- Server Details --> 657 <table id="PhpDetails"> 658 <tr> 659 <th colspan="2">Server Details</th> 660 </tr> 661 <?php 662 $phpdetails = wpsettings__getPHPDetails(); 663 foreach ($phpdetails as $sqlKey => $sqlValue) { ?> 664 <tr> 665 <td style="width:30%"><?php echo $sqlKey; ?></td> 666 <td><?php echo $sqlValue; ?></td> 667 </tr> 668 <?php } ?> 669 </table> 670 671 <!-- Plugin Details --> 672 <table id="PluginDetails"> 673 <tr> 674 <th colspan="2">Plugin Details</th> 675 </tr> 676 <?php 677 $plugindetails = wpsettings__getPluginsDetails(); 678 foreach ($plugindetails as $sqlKey => $sqlValue) { ?> 679 <tr> 680 <td style="width:30%"><?php echo $sqlKey; ?></td> 681 <td><?php echo $sqlValue; ?></td> 682 </tr> 683 <?php } ?> 684 </table> 685 <?php } ?> 686 </body> 687 </html> 688 <?php 689 } 690 function wpsettings_DisplaySetingsPage() { 570 691 include(plugin_dir_path( __FILE__ ).'/wp-settings-options.php'); 571 } ?> 692 } 693 ?>
Note: See TracChangeset
for help on using the changeset viewer.