Dotclear


Ignore:
Files:
1 added
16 edited

Legend:

Unmodified
Added
Removed
  • .hgsubstate

    r55 r138  
    1 8859cc5a74a0a4e2cf71307786b69f35126c6b2c inc/libs/clearbricks 
     143d339c0455203dfc0cc82601c43c2d2cb57e09b inc/libs/clearbricks 
  • admin/auth.php

    r73 r133  
    365365               echo '<legend>'.__('Safe mode login').'</legend>'; 
    366366               echo  
    367                     '<p class="form-note">'. 
    368                     __('This mode allows you to login without activating any of your plugins. This may be useful to solve compatibility problems').'&nbsp;'. 
     367                    '<p class="form-note info">'. 
     368                    __('This mode allows you to login without activating any of your plugins. This may be useful to solve compatibility problems').'&nbsp;<br />'. 
    369369                    __('Disable or delete any plugin suspected to cause trouble, then log out and log back in normally.'). 
    370370                    '</p>'; 
  • admin/blog.php

    r38 r133  
    7878     '<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').' '. 
    7979     form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</label></p>'. 
    80      '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').' '. 
    81      __('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'. 
     80     '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '. 
     81     '<p class="form-note warn">'.__('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'. 
    8282      
    8383     '<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').' '. 
  • admin/blog_pref.php

    r122 r133  
    268268          '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:'). 
    269269          form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</label></p>'. 
    270           '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').' '. 
    271           __('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'; 
     270          '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '. 
     271          '<p class="form-note warn">'.__('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'; 
    272272     } 
    273273      
  • admin/index.php

    r130 r142  
    4444 
    4545# Check dashboard module prefs 
    46 $core->auth->user_prefs->loadPrefs(); 
    47       
    48      // Set favorites menu 
    49      $ws = $core->auth->user_prefs->addWorkspace('favorites'); 
    50      $count = 0; 
    51      foreach ($ws->dumpPrefs() as $k => $v) { 
    52           // User favorites only 
    53           if (!$v['global']) { 
    54                $count++; 
    55                $fav = unserialize($v['value']); 
    56                $_menu['Favorites']->addItem($fav['title'],$fav['url'],$fav['small-icon'], 
    57                     preg_match('/'.$fav['url'].'(\?.*)?$/',$_SERVER['REQUEST_URI']), 
    58                     (($fav['permissions'] == '*') || $core->auth->check($fav['permissions'],$core->blog->id)),$fav['id'],$fav['class']); 
    59           } 
    60      }     
    61      if (!$count) { 
    62           // Global favorites if any 
    63           foreach ($ws->dumpPrefs() as $k => $v) { 
    64                $count++; 
    65                $fav = unserialize($v['value']); 
    66                $_menu['Favorites']->addItem($fav['title'],$fav['url'],$fav['small-icon'], 
    67                     preg_match('/'.$fav['url'].'(\?.*)?$/',$_SERVER['REQUEST_URI']), 
    68                     (($fav['permissions'] == '*') || $core->auth->check($fav['permissions'],$core->blog->id)),$fav['id'],$fav['class']); 
    69           } 
    70      } 
    71      if (!$count) { 
    72           // No user or global favorites, add "new entry" fav 
    73           $_menu['Favorites']->addItem(__('New entry'),'post.php','images/menu/edit.png', 
    74                preg_match('/post.php$/',$_SERVER['REQUEST_URI']), 
    75                $core->auth->check('usage,contentadmin',$core->blog->id),'menu-new-post',null); 
    76      } 
    77 $core->auth->user_prefs->addWorkspace('dashboard'); 
    7846if (!$core->auth->user_prefs->dashboard->prefExists('doclinks')) { 
    7947     if (!$core->auth->user_prefs->dashboard->prefExists('doclinks',true)) { 
  • admin/media.php

    r68 r133  
    328328     echo 
    329329     '<div class="col"><h3 id="add-file">'.__('Add files').'</h3>'. 
     330     '<p class="form-note info">'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
    330331     '<form id="media-upload" class="clear" action="'.html::escapeURL($page_url).'" method="post" enctype="multipart/form-data">'. 
    331332     '<div>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 
     
    343344     '</fieldset>'. 
    344345     '</form>'. 
    345      '<p class="form-note">'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
    346346     '</div>'; 
    347347      
  • admin/preferences.php

    r115 r133  
    487487 
    488488echo '<div id="default-favs"><h3>'.__('Default favorites').'</h3>'; 
    489 echo '<p class="form-note clear">'.__('Those favorites are displayed when My Favorites list is empty.').'</p>'; 
     489echo '<p class="form-note info clear">'.__('Those favorites are displayed when My Favorites list is empty.').'</p>'; 
    490490$count = 0; 
    491491foreach ($ws->dumpPrefs() as $k => $v) { 
  • admin/style/default.css

    r131 r133  
    272272     float: left; 
    273273     overflow: hidden; 
    274      padding: 1em 1%; 
    275      width: 66%; 
     274     padding: 1em 2% 1em 0; 
     275     width: 70%; 
    276276} 
    277277#dashboard-main.fullwidth { 
     
    319319#dashboard-items { 
    320320     float: left; 
    321      width: 29%; 
     321     width: 27%; 
    322322     overflow: hidden; 
    323      margin-left: 2%; 
    324323     padding-bottom: 1em; 
    325324     padding-top: 3em; 
     
    10751074} 
    10761075p.form-note { 
    1077      font-style:normal; 
     1076     font-style:italic; 
     1077     margin-top: -.7em; 
     1078     color: #666; 
     1079} 
     1080p.form-note.warn, p.form-note.info { 
     1081     font-style: normal; 
     1082     padding: .2em 1em .1em 24px; 
     1083} 
     1084p.form-note.warn { 
     1085     background: #ffd url(warning.png) no-repeat .2em .2em; 
     1086     border: 1px solid #f0c020; 
     1087} 
     1088p.form-note.info { 
    10781089     background: #eef url(info.png) no-repeat .2em .2em; 
    10791090     border: 1px solid #99f; 
    1080      padding: .2em 1em .1em 24px; 
    1081      margin-top: -.7em; 
    1082      color: #666; 
    10831091} 
    10841092.form-note a {border-bottom: 1px solid #99f;} 
     
    11881196     text-align: center; 
    11891197     text-decoration: none; 
    1190      padding: .1em .75em .1em; 
     1198     padding: .1em .5em; 
    11911199     text-shadow: 0 1px 1px rgba(0,0,0,.3); 
    11921200     -webkit-border-radius: .2em; 
  • inc/admin/prepend.php

    r106 r140  
    292292          $core->auth->isSuperAdmin() || 
    293293          $core->auth->check('usage,contentadmin',$core->blog->id) && $core->auth->blog_count > 1); 
    294      } 
     294 
     295          // Set favorites menu 
     296          $ws = $core->auth->user_prefs->addWorkspace('favorites'); 
     297          $count = 0; 
     298          foreach ($ws->dumpPrefs() as $k => $v) { 
     299               // User favorites only 
     300               if (!$v['global']) { 
     301                    $count++; 
     302                    $fav = unserialize($v['value']); 
     303                    $_menu['Favorites']->addItem($fav['title'],$fav['url'],$fav['small-icon'], 
     304                         preg_match('/'.$fav['url'].'(\?.*)?$/',$_SERVER['REQUEST_URI']), 
     305                         (($fav['permissions'] == '*') || $core->auth->check($fav['permissions'],$core->blog->id)),$fav['id'],$fav['class']); 
     306               } 
     307          }     
     308          if (!$count) { 
     309               // Global favorites if any 
     310               foreach ($ws->dumpPrefs() as $k => $v) { 
     311                    $count++; 
     312                    $fav = unserialize($v['value']); 
     313                    $_menu['Favorites']->addItem($fav['title'],$fav['url'],$fav['small-icon'], 
     314                         preg_match('/'.$fav['url'].'(\?.*)?$/',$_SERVER['REQUEST_URI']), 
     315                         (($fav['permissions'] == '*') || $core->auth->check($fav['permissions'],$core->blog->id)),$fav['id'],$fav['class']); 
     316               } 
     317          } 
     318          if (!$count) { 
     319               // No user or global favorites, add "new entry" fav 
     320               $_menu['Favorites']->addItem(__('New entry'),'post.php','images/menu/edit.png', 
     321                    preg_match('/post.php$/',$_SERVER['REQUEST_URI']), 
     322                    $core->auth->check('usage,contentadmin',$core->blog->id),'menu-new-post',null); 
     323          } 
     324} 
    295325?> 
  • inc/core/class.dc.core.php

    r0 r136  
    14241424     public function countAllComments() 
    14251425     { 
    1426           $strReq = 'SELECT COUNT(comment_id) AS nb, post_id '. 
    1427                     'FROM '.$this->prefix.'comment '. 
    1428                     'WHERE comment_trackback %s 1 '. 
    1429                     'AND comment_status = 1 '. 
    1430                     'GROUP BY post_id '; 
    1431            
    1432           $rsC = $this->con->select(sprintf($strReq,'<>')); 
    1433           $rsT = $this->con->select(sprintf($strReq,'=')); 
    1434            
    1435           $cur = $this->con->openCursor($this->prefix.'post'); 
    1436           while ($rsC->fetch()) { 
    1437                $cur->nb_comment = (integer) $rsC->nb; 
    1438                $cur->update('WHERE post_id = '.(integer) $rsC->post_id); 
    1439                $cur->clean(); 
    1440           } 
    1441            
    1442           while ($rsT->fetch()) { 
    1443                $cur->nb_trackback = (integer) $rsT->nb; 
    1444                $cur->update('WHERE post_id = '.(integer) $rsT->post_id); 
    1445                $cur->clean(); 
    1446           } 
     1426      
     1427          $updCommentReq = 'UPDATE '.$this->prefix.'post P '. 
     1428               'SET nb_comment = ('. 
     1429                    'SELECT COUNT(C.comment_id) from '.$this->prefix.'comment C '. 
     1430                    'WHERE C.post_id = P.post_id AND C.comment_trackback <> 1 '. 
     1431                    'AND C.comment_status = 1 '. 
     1432               ')'; 
     1433          $updTrackbackReq = 'UPDATE '.$this->prefix.'post P '. 
     1434               'SET nb_trackback = ('. 
     1435                    'SELECT COUNT(C.comment_id) from '.$this->prefix.'comment C '. 
     1436                    'WHERE C.post_id = P.post_id AND C.comment_trackback = 1 '. 
     1437                    'AND C.comment_status = 1 '. 
     1438               ')'; 
     1439          $this->con->execute($updCommentReq); 
     1440          $this->con->execute($updTrackbackReq); 
    14471441     } 
    14481442      
  • inc/core/class.dc.prefs.php

    r106 r141  
    4242          $this->table = $core->prefix.'pref'; 
    4343          $this->user_id =& $user_id; 
    44           //~ $this->loadPrefs(); 
     44          try {$this->loadPrefs();} catch (Exception $e) { 
     45               if (version_compare($core->getVersion('core'),'2.3','>')) { 
     46                    trigger_error($e->getMessage()); 
     47               } 
     48          } 
    4549     } 
    4650      
     
    4852     Retrieves all workspaces (and their prefs) from database, with one query.  
    4953     */ 
    50      public function loadPrefs() 
     54     private function loadPrefs() 
    5155     { 
    5256          $strReq = 'SELECT user_id, pref_id, pref_value, '. 
     
    5963               $rs = $this->con->select($strReq); 
    6064          } catch (Exception $e) { 
    61                trigger_error(__('Unable to retrieve workspaces:').' '.$this->con->error(), E_USER_ERROR); 
     65               //~ trigger_error(__('Unable to retrieve workspaces:').' '.$this->con->error(), E_USER_ERROR); 
     66               //~ throw new Exception(__('Unable to retrieve workspaces:').' '.$this->con->error(), E_USER_ERROR); 
    6267               throw $e; 
    6368          } 
  • inc/core/class.dc.workspace.php

    r33 r141  
    4646          $this->user_id =& $user_id; 
    4747           
    48           $this->getPrefs($rs); 
     48          try {$this->getPrefs($rs);} catch (Exception $e) { 
     49               if (version_compare($core->getVersion('core'),'2.3','>')) { 
     50                    trigger_error($e->getMessage()); 
     51               } 
     52          } 
    4953     } 
    5054      
     
    6367                    $rs = $this->con->select($strReq); 
    6468               } catch (Exception $e) { 
    65                     trigger_error(__('Unable to retrieve prefs:').' '.$this->con->error(), E_USER_ERROR); 
     69                    //~ trigger_error(__('Unable to retrieve prefs:').' '.$this->con->error(), E_USER_ERROR); 
     70                    throw $e; 
    6671               } 
    6772          } 
  • locales/es/date.po

    r0 r135  
    2121msgid "%Y-%m-%d %H:%M" 
    2222msgstr "%d/%m/%Y %H:%M" 
     23 
     24msgid "%A %e %B %Y" 
     25msgstr "%A %e de %B de %Y" 
    2326 
    2427msgid "_Jan" 
  • locales/fr/main.po

    r115 r132  
    956956 
    957957msgid "Last Name:" 
    958 msgstr "Nom" 
     958msgstr "Nom :" 
    959959 
    960960msgid "Username and password" 
  • themes/blueSilence/_define.php

    r0 r134  
    1414$this->registerModule( 
    1515     /* Name */               "Blue Silence", 
    16      /* Description*/         "Default Dotclear Theme", 
     16     /* Description*/         "Dotclear Theme", 
    1717     /* Author */             "Marco / marcarea.com", 
    1818     /* Version */            '1.0' 
  • themes/default/_define.php

    r0 r134  
    1414$this->registerModule( 
    1515     /* Name */               "Blowup", 
    16      /* Description*/         "Fully customizable theme", 
     16     /* Description*/         "Default Dotclear theme, fully customizable", 
    1717     /* Author */             "Marco & Olivier", 
    1818     /* Version */            '1.0' 
Note: See TracChangeset for help on using the changeset viewer.

Sites map