Changeset 549
- Timestamp:
- Mar 16, 2010, 3:55:32 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/add_xpress_process.php
r548 r549 19 19 update_option('home' , $_POST['home_url_set']); 20 20 } 21 } 22 if (!empty($_POST['submit_redirect'])) { 23 $url = get_option('home') . '/wp-admin/options-permalink.php'; 24 // echo $url; 25 wp_redirect($url); 26 exit(); 21 27 } 22 28 … … 52 58 $form .= '<tbody>'; 53 59 if ($site_url_error){ 54 $site_url_error_log = sprintf('Can not access WordPress Site URL(%s)',$siteurl);60 $site_url_error_log = __('Can not access WordPress address (URL).','xpressme'); 55 61 $form .= '<tr><td colspan="3"><font color="red"><b>' . $site_url_error_log . '</b></font></td></tr>'; 56 62 $form .= '<tr>'; 57 63 $form .= '<td width="16"> </td>'; 58 $form .= '<td width="64">Site URL</td>'; 59 $form .= '<td><input name="site_url_set" type="text" size="64" maxlength="200" value="' . $guess_url . '" /></td>'; 64 $form .= '<td width="64">'.__('WordPress address (URL)').'</td>'; 65 $form .= '<td>'; 66 $form .= $siteurl . '<br />'; 67 $form .= ' to<br />'; 68 $form .= '<input name="site_url_set" type="text" size="64" maxlength="200" value="' . $guess_url . '" /></td>'; 60 69 $form .= '</tr>'; 61 70 … … 63 72 if ($home_url_error){ 64 73 if ($site_url_error) $form .= '<tr><td colspan="3"> </td></tr>';; 65 $home_url_error_log = sprintf('WordPress Home URL(%s) is different from access URL. ',$home);74 $home_url_error_log = __('WordPress Blog address (URL) is different from access URL.','xpressme'); 66 75 $form .= '<tr><td colspan="3"><font color="red"><b>' . $home_url_error_log . '</b></font></td></tr>'; 67 76 $form .= '<tr>'; 68 77 $form .= '<td width="16"> </td>'; 69 $form .= '<td width="64">Home URL</td>'; 70 $form .= '<td><input name="home_url_set" type="text" size="64" maxlength="200" value="' . $guess_url . '" /></td>'; 78 $form .= '<td width="144">'. __('Blog address (URL)') .'</td>'; 79 $form .= '<td>'; 80 $form .= $home . '<br />'; 81 $form .= ' to<br />'; 82 $form .= '<input name="home_url_set" type="text" size="64" maxlength="200" value="' . $guess_url . '" /></td>'; 71 83 $form .= '</tr>'; 72 84 } 73 85 $form .= '</tbody>'; 74 86 $form .= '</table><br />'; 75 $form .= '<input type="submit" value= "Setting" name="submit_url_change" />' ."\n"; 87 $form .= '<input type="submit" value= "'.__('Save Changes').'" name="submit_url_change" />' ."\n"; 88 $form .= '</form>' ."\n"; 76 89 echo $form; 77 90 include $xoops_config->xoops_root_path . '/footer.php'; 78 91 exit(); 79 92 } 93 if (!empty($_POST['home_url_set'])) { 94 $url = get_option('home') . '/wp-admin/options-permalink.php'; 95 $form = '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n"; 96 $form .= '<p><font color="blue"><b>'. __('After Blog address (URL) is set, it is necessary to set the permalink again.','xpressme').'</b></font></p>'; 97 $form .= '<input type="submit" value= "'.__('Permalink Settings').'" name="submit_redirect" />' ."\n"; 98 $form .= '</form>' ."\n"; 99 include $xoops_config->xoops_root_path ."/header.php"; 100 echo $form; 101 include $xoops_config->xoops_root_path . '/footer.php'; 102 exit(); 103 } 104 80 105 } 81 106 } -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php
r543 r549 5 5 $xoops_config = new ConfigFromXoops; 6 6 } 7 8 $dummy = __('After Blog address (URL) is set, it is necessary to set the permalink again.','xpressme'); 9 $dummy = __('Can not access WordPress address (URL).','xpressme'); 10 $dummy = __('WordPress Blog address (URL) is different from access URL.','xpressme'); 11 7 12 8 13 function get_xoops_config($config_name,$module_dir){
Note: See TracChangeset
for help on using the changeset viewer.