1 | <?php
|
---|
2 | function wp_install_guide(){
|
---|
3 | $mydirpath = dirname( dirname( dirname( __FILE__ ) ) ) ;
|
---|
4 | $mydirname = basename(dirname( dirname( dirname( __FILE__ ) ) )) ;
|
---|
5 | include_once $mydirpath . '/class/wpInfo_class.php';
|
---|
6 | $xoops_lang = @$GLOBALS["xoopsConfig"]['language'];
|
---|
7 | $wp_info = new wpInfo;
|
---|
8 | $wp_lang = $wp_info->get_wpLang($xoops_lang);
|
---|
9 | if (!$wp_info->is_wp_file_found()){
|
---|
10 | //Download
|
---|
11 | echo $wp_info->get_mod_image_link('check_bad_s.png');
|
---|
12 | echo '<font size="4" >'._AM_XP2_WP_CHK_0 .'</font><br />';
|
---|
13 | echo '<br />';
|
---|
14 | echo $wp_info->text_indent(_AM_XP2_WP_CHK_1 . _AM_XP2_WP_CHK_2);
|
---|
15 | echo '<br />';
|
---|
16 | echo $wp_info->text_indent(_AM_XP2_WP_STEP_1,1,'font-weight:bold;');
|
---|
17 | echo $wp_info->get_download_info('ja');
|
---|
18 | echo '<br />';
|
---|
19 | // Uncompress
|
---|
20 | echo $wp_info->text_indent(_AM_XP2_WP_STEP_2,1,'font-weight:bold;');
|
---|
21 | echo $wp_info->text_indent(_AM_XP2_WP_INFO_5,2);
|
---|
22 | echo '<br />';
|
---|
23 | echo '<div style="padding-left:60px;">'.$wp_info->get_mod_image_link('wp_uncompless.png') . '</div>';
|
---|
24 | echo '<br />';
|
---|
25 | // Upload Wordpress
|
---|
26 | echo $wp_info->text_indent(_AM_XP2_WP_STEP_3,1,'font-weight:bold;');
|
---|
27 | printf($wp_info->text_indent(_AM_XP2_WP_INFO_6,2),$mydirname);
|
---|
28 | printf($wp_info->text_indent(_AM_XP2_WP_INFO_7,3),$mydirpath);
|
---|
29 | echo $wp_info->text_indent(_AM_XP2_WP_INFO_8,2);
|
---|
30 | echo '<br />';
|
---|
31 | echo '<div style="padding-left:60px;">'.$wp_info->get_mod_image_link('wp_upload.png') . '</div>';
|
---|
32 | echo '<br />';
|
---|
33 | //Install
|
---|
34 | echo $wp_info->text_indent(_AM_XP2_WP_STEP_4,1,'font-weight:bold;');
|
---|
35 | echo $wp_info->text_indent(_AM_XP2_WP_INFO_9,2);
|
---|
36 |
|
---|
37 | } else {
|
---|
38 | echo $wp_info->get_mod_image_link('check_good_s.png');
|
---|
39 | echo '<font size="4" >'._AM_XP2_WP_CHK_0 .'</font><br />';
|
---|
40 | echo '<br />';
|
---|
41 | }
|
---|
42 | }
|
---|
43 | ?> |
---|