Changes in [144:c7ce5ceade9a:145:a3e1dd53fa0a]
- Files:
-
- 1 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
.hgsubstate
r55 r138 1 8859cc5a74a0a4e2cf71307786b69f35126c6b2cinc/libs/clearbricks1 43d339c0455203dfc0cc82601c43c2d2cb57e09b inc/libs/clearbricks -
admin/auth.php
r73 r133 365 365 echo '<legend>'.__('Safe mode login').'</legend>'; 366 366 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').' '.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').' <br />'. 369 369 __('Disable or delete any plugin suspected to cause trouble, then log out and log back in normally.'). 370 370 '</p>'; -
admin/blog.php
r38 r133 78 78 '<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').' '. 79 79 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>'. 82 82 83 83 '<p><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').' '. -
admin/blog_pref.php
r122 r133 268 268 '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:'). 269 269 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>'; 272 272 } 273 273 -
admin/index.php
r130 r142 44 44 45 45 # Check dashboard module prefs 46 $core->auth->user_prefs->loadPrefs();47 48 // Set favorites menu49 $ws = $core->auth->user_prefs->addWorkspace('favorites');50 $count = 0;51 foreach ($ws->dumpPrefs() as $k => $v) {52 // User favorites only53 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 any63 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" fav73 $_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');78 46 if (!$core->auth->user_prefs->dashboard->prefExists('doclinks')) { 79 47 if (!$core->auth->user_prefs->dashboard->prefExists('doclinks',true)) { -
admin/media.php
r68 r133 328 328 echo 329 329 '<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>'. 330 331 '<form id="media-upload" class="clear" action="'.html::escapeURL($page_url).'" method="post" enctype="multipart/form-data">'. 331 332 '<div>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). … … 343 344 '</fieldset>'. 344 345 '</form>'. 345 '<p class="form-note">'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'.346 346 '</div>'; 347 347 -
admin/preferences.php
r115 r133 487 487 488 488 echo '<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>';489 echo '<p class="form-note info clear">'.__('Those favorites are displayed when My Favorites list is empty.').'</p>'; 490 490 $count = 0; 491 491 foreach ($ws->dumpPrefs() as $k => $v) { -
admin/style/default.css
r131 r133 272 272 float: left; 273 273 overflow: hidden; 274 padding: 1em 1%;275 width: 66%;274 padding: 1em 2% 1em 0; 275 width: 70%; 276 276 } 277 277 #dashboard-main.fullwidth { … … 319 319 #dashboard-items { 320 320 float: left; 321 width: 2 9%;321 width: 27%; 322 322 overflow: hidden; 323 margin-left: 2%;324 323 padding-bottom: 1em; 325 324 padding-top: 3em; … … 1075 1074 } 1076 1075 p.form-note { 1077 font-style:normal; 1076 font-style:italic; 1077 margin-top: -.7em; 1078 color: #666; 1079 } 1080 p.form-note.warn, p.form-note.info { 1081 font-style: normal; 1082 padding: .2em 1em .1em 24px; 1083 } 1084 p.form-note.warn { 1085 background: #ffd url(warning.png) no-repeat .2em .2em; 1086 border: 1px solid #f0c020; 1087 } 1088 p.form-note.info { 1078 1089 background: #eef url(info.png) no-repeat .2em .2em; 1079 1090 border: 1px solid #99f; 1080 padding: .2em 1em .1em 24px;1081 margin-top: -.7em;1082 color: #666;1083 1091 } 1084 1092 .form-note a {border-bottom: 1px solid #99f;} … … 1188 1196 text-align: center; 1189 1197 text-decoration: none; 1190 padding: .1em . 75em .1em;1198 padding: .1em .5em; 1191 1199 text-shadow: 0 1px 1px rgba(0,0,0,.3); 1192 1200 -webkit-border-radius: .2em; -
inc/admin/prepend.php
r106 r140 292 292 $core->auth->isSuperAdmin() || 293 293 $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 } 295 325 ?> -
inc/core/class.dc.core.php
r0 r136 1424 1424 public function countAllComments() 1425 1425 { 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); 1447 1441 } 1448 1442 -
inc/core/class.dc.prefs.php
r106 r141 42 42 $this->table = $core->prefix.'pref'; 43 43 $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 } 45 49 } 46 50 … … 48 52 Retrieves all workspaces (and their prefs) from database, with one query. 49 53 */ 50 p ublicfunction loadPrefs()54 private function loadPrefs() 51 55 { 52 56 $strReq = 'SELECT user_id, pref_id, pref_value, '. … … 59 63 $rs = $this->con->select($strReq); 60 64 } 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); 62 67 throw $e; 63 68 } -
inc/core/class.dc.workspace.php
r33 r141 46 46 $this->user_id =& $user_id; 47 47 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 } 49 53 } 50 54 … … 63 67 $rs = $this->con->select($strReq); 64 68 } 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; 66 71 } 67 72 } -
locales/es/date.po
r0 r135 21 21 msgid "%Y-%m-%d %H:%M" 22 22 msgstr "%d/%m/%Y %H:%M" 23 24 msgid "%A %e %B %Y" 25 msgstr "%A %e de %B de %Y" 23 26 24 27 msgid "_Jan" -
locales/fr/main.po
r115 r132 956 956 957 957 msgid "Last Name:" 958 msgstr "Nom "958 msgstr "Nom :" 959 959 960 960 msgid "Username and password" -
themes/blueSilence/_define.php
r0 r134 14 14 $this->registerModule( 15 15 /* Name */ "Blue Silence", 16 /* Description*/ "D efault Dotclear Theme",16 /* Description*/ "Dotclear Theme", 17 17 /* Author */ "Marco / marcarea.com", 18 18 /* Version */ '1.0' -
themes/default/_define.php
r0 r134 14 14 $this->registerModule( 15 15 /* Name */ "Blowup", 16 /* Description*/ " Fully customizable theme",16 /* Description*/ "Default Dotclear theme, fully customizable", 17 17 /* Author */ "Marco & Olivier", 18 18 /* Version */ '1.0'
Note: See TracChangeset
for help on using the changeset viewer.