Dotclear

Changeset 877:e012da998f83 for inc/core


Ignore:
Timestamp:
08/16/12 14:13:27 (13 years ago)
Author:
Dsls <dsls@…>
Branch:
sexy
Message:

Entries passwords will be a dedicated plugin.

Location:
inc/core
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.blog.php

    r875 r877  
    227227               $strReq = 
    228228               'SELECT P.post_id, P.blog_id, P.user_id, post_dt, '. 
    229                'post_tz, post_creadt, post_upddt, post_format, post_password, '. 
     229               'post_tz, post_creadt, post_upddt, post_format, '. 
    230230               'post_url, post_lang, post_title, '.$content_req. 
    231231               'post_type, post_meta, post_status, post_selected, post_position, '. 
     
    246246           
    247247          if (!$this->core->auth->check('contentadmin',$this->id)) { 
    248                $strReq .= 'AND ((post_status = 1 '; 
    249                 
    250                if ($this->without_password) { 
    251                     $strReq .= 'AND post_password IS NULL '; 
    252                } 
    253                $strReq .= ') '; 
     248               $strReq .= 'AND ((post_status = 1) '; 
    254249                
    255250               if ($this->core->auth->userID()) { 
     
    436431           
    437432          if (!$this->core->auth->check('contentadmin',$this->id)) { 
    438                $strReq .= 'AND ((post_status = 1 '; 
    439                 
    440                if ($this->without_password) { 
    441                     $strReq .= 'AND post_password IS NULL '; 
    442                } 
    443                $strReq .= ') '; 
     433               $strReq .= 'AND ((post_status = 1) '; 
    444434                
    445435               if ($this->core->auth->userID()) { 
     
    518508           
    519509          if (!$this->core->auth->check('contentadmin',$this->id)) { 
    520                $strReq .= 'AND ((post_status = 1 '; 
    521                 
    522                if ($this->without_password) { 
    523                     $strReq .= 'AND post_password IS NULL '; 
    524                } 
    525                $strReq .= ') '; 
     510               $strReq .= 'AND ((post_status = 1) '; 
    526511                
    527512               if ($this->core->auth->userID()) { 
     
    905890          } 
    906891           
    907           if ($cur->post_password === '') { 
    908                $cur->post_password = null; 
    909           } 
    910            
    911892          if ($cur->post_dt == '') { 
    912893               $offset = dt::getTimeOffset($this->core->auth->getInfo('user_tz')); 
  • inc/core/class.dc.meta.php

    r873 r877  
    317317           
    318318          if (!$this->core->auth->check('contentadmin',$this->core->blog->id)) { 
    319                $strReq .= 'AND ((post_status = 1 '; 
    320                 
    321                if ($this->core->blog->without_password) { 
    322                     $strReq .= 'AND post_password IS NULL '; 
    323                } 
    324                $strReq .= ') '; 
     319               $strReq .= 'AND ((post_status = 1) '; 
    325320                
    326321               if ($this->core->auth->userID()) { 
  • inc/core/class.dc.xmlrpc.php

    r873 r877  
    305305          } 
    306306           
    307           if (isset($struct['wp_password'])) { 
    308                $cur->post_password = $struct['wp_password']; 
    309           } 
    310            
    311307          $cur->post_type = 'post'; 
    312308          if (!empty($struct['post_type'])) { 
     
    398394          if (isset($struct['wp_slug'])) { 
    399395               $cur->post_url = $struct['wp_slug']; 
    400           } 
    401            
    402           if (isset($struct['wp_password'])) { 
    403                $cur->post_password = $struct['wp_password']; 
    404396          } 
    405397           
     
    728720                    "text_more"              => '', 
    729721                    "wp_slug"                => $post->post_url, 
    730                     "wp_password"            => $post->post_password, 
    731722                    "wp_author"              => $post->getAuthorCN(), 
    732723                    "wp_page_parent_id"      => 0, 
Note: See TracChangeset for help on using the changeset viewer.

Sites map