Changeset 4144 for trunk/xmlrpc.php
- Timestamp:
- 08/30/2006 09:46:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r4133 r4144 13 13 14 14 if ( isset( $_GET['rsd'] ) ) { // http://archipelago.phrasewise.com/rsd 15 header('Content-type: text/xml; charset=' . get_ settings('blog_charset'), true);15 header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); 16 16 17 17 ?> 18 <?php echo '<?xml version="1.0" encoding="'.get_ settings('blog_charset').'"?'.'>'; ?>18 <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?> 19 19 <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd"> 20 20 <service> … … 191 191 $struct = array( 192 192 'isAdmin' => $is_admin, 193 'url' => get_ settings('home') . '/',193 'url' => get_option('home') . '/', 194 194 'blogid' => '1', 195 'blogName' => get_ settings('blogname')195 'blogName' => get_option('blogname') 196 196 ); 197 197 … … 330 330 331 331 /* warning: here we make the assumption that the weblog's URL is on the same server */ 332 $filename = get_ settings('home') . '/';332 $filename = get_option('home') . '/'; 333 333 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 334 334 … … 365 365 366 366 /* warning: here we make the assumption that the weblog's URL is on the same server */ 367 $filename = get_ settings('home') . '/';367 $filename = get_option('home') . '/'; 368 368 $filename = preg_replace('#https?://.+?/#', $_SERVER['DOCUMENT_ROOT'].'/', $filename); 369 369 … … 545 545 546 546 $comment_status = (empty($content_struct['mt_allow_comments'])) ? 547 get_ settings('default_comment_status')547 get_option('default_comment_status') 548 548 : $content_struct['mt_allow_comments']; 549 549 550 550 $ping_status = (empty($content_struct['mt_allow_pings'])) ? 551 get_ settings('default_ping_status')551 get_option('default_ping_status') 552 552 : $content_struct['mt_allow_pings']; 553 553 … … 642 642 643 643 $comment_status = (empty($content_struct['mt_allow_comments'])) ? 644 get_ settings('default_comment_status')644 get_option('default_comment_status') 645 645 : $content_struct['mt_allow_comments']; 646 646 647 647 $ping_status = (empty($content_struct['mt_allow_pings'])) ? 648 get_ settings('default_ping_status')648 get_option('default_ping_status') 649 649 : $content_struct['mt_allow_pings']; 650 650 … … 1112 1112 1113 1113 // Check if the page linked to is in our site 1114 $pos1 = strpos($pagelinkedto, str_replace(array('http://www.','http://','https://www.','https://'), '', get_ settings('home')));1114 $pos1 = strpos($pagelinkedto, str_replace(array('http://www.','http://','https://www.','https://'), '', get_option('home'))); 1115 1115 if( !$pos1 ) 1116 1116 return new IXR_Error(0, 'Is there no link to us?');
Note: See TracChangeset
for help on using the changeset viewer.