Changeset 744 for branches/Ver3.0/xpressme_integration_kit/admin/index.php
- Timestamp:
- May 18, 2011, 9:07:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver3.0/xpressme_integration_kit/admin/index.php
r735 r744 774 774 $mydirpath = dirname( dirname( __FILE__ ) ) ; 775 775 //require_once($mydirpath.'/wp-config.php'); 776 776 777 777 require_once '../../../include/cp_header.php' ; 778 778 //require_once '../include/gtickets.php' ; … … 795 795 exit ; 796 796 } 797 include_once $mydirpath .'/include/wp_check.php' ; 797 798 798 799 // beggining of Output 799 800 xoops_cp_header(); 800 include( './mymenu.php' ) ; 801 802 echo " 803 <style type=\"text/css\"> 804 label,text { 805 display: block; 806 float: left; 807 margin-bottom: 2px; 808 } 809 label { 810 text-align: right; 811 width: 200px; 812 padding-right: 20px; 813 } 814 br { 815 clear: left; 816 } 817 </style> 818 "; 819 820 if (!empty($_POST['submit_report'])) $report = true; else $report = false; 821 xpress_sys_info($report); 822 xpress_config_from_xoops_view($report); 823 xpress_active_plugin_list($report); 824 xpress_block_state($report); 825 xpress_block_options($report); 826 xpress_group_role_state($report); 827 admin_check_user_meta_prefix($report); 828 xpress_state($report); 829 echo '<form method="POST">'."\n"; 830 echo '<input type="submit" name="submit_report" value="' . _AM_XP2_SYS_REPORT .' " />'.' '; 831 echo '<input type="submit" name="submit_normal" value="' . _AM_XP2_SYS_NORMAL .' " />'."<br />\n"; 832 echo "</form>\n"; 833 801 if(is_wpdb_installed()){ 802 include( './mymenu.php' ) ; 803 804 echo " 805 <style type=\"text/css\"> 806 label,text { 807 display: block; 808 float: left; 809 margin-bottom: 2px; 810 } 811 label { 812 text-align: right; 813 width: 200px; 814 padding-right: 20px; 815 } 816 br { 817 clear: left; 818 } 819 </style> 820 "; 821 if (!empty($_POST['submit_report'])) $report = true; else $report = false; 822 xpress_sys_info($report); 823 xpress_config_from_xoops_view($report); 824 xpress_active_plugin_list($report); 825 xpress_block_state($report); 826 xpress_block_options($report); 827 xpress_group_role_state($report); 828 admin_check_user_meta_prefix($report); 829 xpress_state($report); 830 echo '<form method="POST">'."\n"; 831 echo '<input type="submit" name="submit_report" value="' . _AM_XP2_SYS_REPORT .' " />'.' '; 832 echo '<input type="submit" name="submit_normal" value="' . _AM_XP2_SYS_NORMAL .' " />'."<br />\n"; 833 echo "</form>\n"; 834 } else { 835 836 include_once $mydirpath .'/include/wp_installer.php' ; 837 if (!empty($_POST['submit_install'])) { 838 $i_mess = wp_installer($mydirname); 839 foreach( $i_mess as $message ) { 840 echo $message ; 841 } 842 843 } else { 844 echo '<font size="5" color="#ff0000">'. _AM_XP2_NO_WP. '</font><br /><br />'; 845 846 if (xp_permission_check($mydirname , $mydirpath)){ 847 echo '<form method="POST">'."\n"; 848 echo '<input type="submit" name="submit_install" value="' . _AM_XP2_WP_INSTALL .' " />'.' '; 849 echo "</form>\n"; 850 } else { 851 include_once $mydirpath .'/admin/help/wp_install_help.php' ; 852 wp_install_guide(); 853 echo '<form method="POST">'."\n"; 854 echo '<input type="submit" name="submit_recheck" value="' . _AM_XP2_WP_RE_CHK .' " />'.' '; 855 echo "</form>\n"; 856 } 857 } 858 } 834 859 xoops_cp_footer(); 835 860
Note: See TracChangeset
for help on using the changeset viewer.