Changeset 4953 for trunk/app.php
- Timestamp:
- 02/27/2007 03:24:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/app.php
r4937 r4953 24 24 25 25 $_SERVER['PATH_INFO'] = $action; 26 26 27 27 if ($eid) { 28 28 $_SERVER['PATH_INFO'] .= "/$eid"; … … 174 174 array_push($this->entry->categories, $attrs); 175 175 } 176 176 177 177 $this->ns_decls = array(); 178 178 } … … 202 202 203 203 array_shift($this->ns_contexts); 204 204 205 205 #print str_repeat(" ", $this->depth * $this->indent) . "end_element('$name')" ."\n"; 206 206 … … 343 343 } else { 344 344 // only allow what we have handlers for... 345 $this->not_allowed(array_keys($funcs)); 345 $this->not_allowed(array_keys($funcs)); 346 346 } 347 347 } … … 454 454 455 455 function put_post($postID) { 456 456 457 457 // checked for valid content-types (atom+xml) 458 458 // quick check and exit … … 509 509 $this->auth_required('Sorry, you do not have the right to delete this post.'); 510 510 } 511 511 512 512 if ($entry['post_type'] == 'attachment') { 513 $this->delete_attachment($postID); 513 $this->delete_attachment($postID); 514 514 } else { 515 515 $result = wp_delete_post($postID); … … 524 524 525 525 } 526 526 527 527 function get_attachment($postID = NULL) { 528 528 … … 552 552 } 553 553 fclose($fp); 554 554 555 555 $slug = ''; 556 556 if ( isset( $_SERVER['HTTP_SLUG'] ) ) … … 565 565 566 566 log_app('wp_upload_bits returns:',print_r($file,true)); 567 567 568 568 $url = $file['url']; 569 569 $file = $file['file']; … … 719 719 fclose($fp); 720 720 fclose($localfp); 721 721 722 722 log_app('function',"put_file($postID)"); 723 723 $this->ok(); … … 761 761 echo $url; 762 762 } 763 763 764 764 function get_attachments_url($page = NULL) { 765 765 global $use_querystring; … … 791 791 $postID = $GLOBALS['post']->ID; 792 792 } 793 793 794 794 if ($use_querystring) { 795 795 $url = get_bloginfo('url') . '/' . $this->script_name . '?action=/' . $this->ENTRY_PATH . "&eid=$postID"; … … 813 813 $postID = $GLOBALS['post']->ID; 814 814 } 815 815 816 816 if ($use_querystring) { 817 817 $url = get_bloginfo('url') . '/' . $this->script_name . '?action=/' . $this->MEDIA_SINGLE_PATH ."&eid=$postID"; … … 874 874 } 875 875 $page = (int) $page; 876 877 $count = get_option('posts_per_rss'); 876 877 $count = get_option('posts_per_rss'); 878 878 $query = "paged=$page&posts_per_page=$count&order=DESC"; 879 879 if($post_type == 'attachment') { … … 888 888 $blog_id = $GLOBALS['blog_id']; 889 889 $post_cache = $GLOBALS['post_cache']; 890 890 891 891 892 892 $total_count = $this->get_posts_count(); … … 1057 1057 exit; 1058 1058 } 1059 1059 1060 1060 function not_found() { 1061 1061 log_app('Status','404: Not Found'); … … 1078 1078 exit; 1079 1079 } 1080 1080 1081 1081 function created($post_ID, $content, $post_type = 'post') { 1082 1082 global $use_querystring; … … 1152 1152 $login_data = array(); 1153 1153 $already_md5 = false; 1154 1154 1155 1155 log_app("authenticate()",print_r($_ENV, true)); 1156 1156 … … 1210 1210 1211 1211 function process_conditionals() { 1212 1212 1213 1213 if(empty($this->params)) return; 1214 1214 if($_SERVER['REQUEST_METHOD'] == 'DELETE') return; … … 1241 1241 $client_modified_timestamp = $client_last_modified ? strtotime($client_last_modified) : 0; 1242 1242 1243 // Make a timestamp for our most recent modification... 1243 // Make a timestamp for our most recent modification... 1244 1244 $wp_modified_timestamp = strtotime($wp_last_modified); 1245 1245
Note: See TracChangeset
for help on using the changeset viewer.