Changes in [3284:e2c6add4816b:3285:3ca3e4cf422b]
- Files:
-
- 2 added
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r2999 r3260 25 25 ./$(DC)/features ./$(DC)/travis ./$(DC)/behat.yml.dist ./$(DC)/composer.* 26 26 27 ## Create cache, db, plugins and public folders28 mkdir ./$(DC)/cache ./$(DC)/ db ./$(DC)/plugins ./$(DC)/public ./$(DC)/themes27 ## Create cache, var, db, plugins, themes and public folders 28 mkdir ./$(DC)/cache ./$(DC)/var ./$(DC)/db ./$(DC)/plugins ./$(DC)/themes ./$(DC)/public 29 29 cp -p inc/.htaccess ./$(DC)/cache/ 30 cp -p inc/.htaccess ./$(DC)/var/ 30 31 cp -p inc/.htaccess ./$(DC)/db/ 31 32 cp -p inc/.htaccess ./$(DC)/plugins/ … … 73 74 ## Create digest 74 75 cd $(DC) && ( \ 75 md5sum `find . -type f -not -path "./inc/digest" -not -path "./cache/*" -not -path "./ db/*" -not -path ./CHANGELOG` \76 md5sum `find . -type f -not -path "./inc/digest" -not -path "./cache/*" -not -path "./var/*" -not -path "./db/*" -not -path ./CHANGELOG` \ 76 77 > inc/digests \ 77 78 ) -
admin/comments.php
r3182 r3263 54 54 /* Get comments 55 55 -------------------------------------------------------- */ 56 $author = isset($_GET['author']) ? $_GET['author'] : ''; 57 $status = isset($_GET['status']) ? $_GET['status'] : ''; 58 $type = !empty($_GET['type']) ? $_GET['type'] : ''; 59 $sortby = !empty($_GET['sortby']) ? $_GET['sortby'] : 'comment_dt'; 60 $order = !empty($_GET['order']) ? $_GET['order'] : 'desc'; 61 $ip = !empty($_GET['ip']) ? $_GET['ip'] : ''; 56 $author = isset($_GET['author']) ? $_GET['author'] : ''; 57 $status = isset($_GET['status']) ? $_GET['status'] : ''; 58 $type = !empty($_GET['type']) ? $_GET['type'] : ''; 59 $sortby = !empty($_GET['sortby']) ? $_GET['sortby'] : 'comment_dt'; 60 $order = !empty($_GET['order']) ? $_GET['order'] : 'desc'; 61 $ip = !empty($_GET['ip']) ? $_GET['ip'] : ''; 62 $email = !empty($_GET['email']) ? $_GET['email'] : ''; 63 $site = !empty($_GET['site']) ? $_GET['site'] : ''; 62 64 63 65 $with_spam = $author || $status || $type || $sortby != 'comment_dt' || $order != 'desc' || $ip; … … 108 110 if ($ip) { 109 111 $params['comment_ip'] = $ip; 112 $show_filters = true; 113 } 114 115 # - email filter 116 if ($email) { 117 $params['comment_email'] = $email; 118 $show_filters = true; 119 } 120 121 # - site filter 122 if ($site) { 123 $params['comment_site'] = $site; 110 124 $show_filters = true; 111 125 } … … 237 251 '<p><label for="ip" class="ib">'.__('IP address:').'</label> '. 238 252 form::field('ip',20,39,html::escapeHTML($ip)).'</p>'. 253 '<p><label for="email" class="ib">'.__('Email:').'</label> '. 254 form::field('email',20,255,html::escapeHTML($email)).'</p>'. 255 '<p><label for="site" class="ib">'.__('Web site:').'</label> '. 256 form::field('site',20,255,html::escapeHTML($site)).'</p>'. 239 257 '</div>'. 240 258 … … 276 294 form::hidden(array('page'),$page). 277 295 form::hidden(array('nb'),$nb_per_page). 296 form::hidden(array('email'),html::escapeHTML(preg_replace('/%/','%%',$email))). 297 form::hidden(array('site'),html::escapeHTML(preg_replace('/%/','%%',$site))). 278 298 '</div>'. 279 299 -
admin/index.php
r3238 r3260 13 13 if (!empty($_GET['pf'])) { 14 14 require dirname(__FILE__).'/../inc/load_plugin_file.php'; 15 exit; 16 } 17 18 if (!empty($_GET['vf'])) { 19 require dirname(__FILE__).'/../inc/load_var_file.php'; 15 20 exit; 16 21 } -
admin/style/default.css
r3245 r3264 37 37 box-sizing: border-box; 38 38 } 39 #dotclear-admin { 40 display: flex; 41 min-height: 100vh; 42 flex-direction: column; 43 } 39 44 #header { 40 45 background: #676e78; 41 46 color: #FFF; 42 47 border-bottom: 4px solid #A2CBE9; 43 width: 100%;48 width: 99.99%; /* Bugfix Chrome >= 49.0.2623.108 */ 44 49 display: table; 45 50 position: relative; … … 52 57 z-index: 10; 53 58 background: #F7F7F7 url(bg_wrapper.png) repeat-y 15em; 59 flex: 1; 54 60 } 55 61 .with-js #wrapper { -
inc/admin/lib.dc.page.php
r3256 r3262 1007 1007 } 1008 1008 1009 public static function getVF($file) 1010 { 1011 return $GLOBALS['core']->adminurl->get('load.var.file',array('vf' => $file)); 1012 } 1013 1009 1014 public static function setXFrameOptions($origin = null) 1010 1015 { -
inc/admin/prepend.php
r3109 r3262 208 208 209 209 $core->adminurl->registercopy('load.plugin.file','admin.home',array('pf' => 'dummy.css')); 210 $core->adminurl->registercopy('load.var.file','admin.home',array('vf' => 'dummy.json')); 210 211 211 212 if ($core->auth->userID() && $core->blog !== null) -
inc/config.php.in
r3137 r3260 52 52 define('DC_TPL_CACHE',path::real(dirname(__FILE__).'/..').'/cache'); 53 53 54 // Var directory 55 define('DC_VAR',path::real(dirname(__FILE__).'/..').'/var'); 56 54 57 55 58 // If you have PATH_INFO issue, uncomment following lines -
inc/core/class.dc.blog.php
r3134 r3263 138 138 { 139 139 $ret = $this->getQmarkURL().'pf='.$pf; 140 if ($strip_host) { 141 $ret = html::stripHostURL($ret); 142 } 143 return $ret; 144 } 145 146 /** 147 Returns public URL of specified var file. 148 */ 149 public function getVF($vf, $strip_host=true) 150 { 151 $ret = $this->getQmarkURL().'vf='.$vf; 140 152 if ($strip_host) { 141 153 $ret = html::stripHostURL($ret); … … 2027 2039 } 2028 2040 2041 if (isset($params['comment_email'])) { 2042 $comment_email = $this->con->escape(str_replace('*','%',$params['comment_email'])); 2043 $strReq .= "AND comment_email LIKE '".$comment_email."' "; 2044 } 2045 2029 2046 if (isset($params['comment_site'])) { 2030 2047 $comment_site = $this->con->escape(str_replace('*','%',$params['comment_site'])); -
inc/dbschema/upgrade.php
r3237 r3261 544 544 @unlink(DC_ROOT.'/'.'admin/js/jsUpload/vendor/jquery.ui.widget.js'); 545 545 @rmdir(DC_ROOT.'/'.'admin/js/jsUpload/vendor'); 546 547 # Create new var directory and its .htaccess file 548 @files::makeDir(DC_VAR); 549 $f = DC_VAR.'/.htaccess'; 550 if (!file_exists($f)) 551 { 552 @file_put_contents($f,'Require all denied'."\n".'Deny from all'."\n"); 553 } 546 554 } 547 555 -
inc/prepend.php
r3255 r3260 197 197 if (strlen(crypt::hmac(DC_MASTER_KEY,DC_VENDOR_NAME,DC_CRYPT_ALGO)) < 40) { 198 198 if (!defined('DC_CONTEXT_ADMIN')) { 199 exit('Site temporarily unavailable');199 __error('Server error','Site temporarily unavailable'); 200 200 } else { 201 exit(DC_CRYPT_ALGO.' cryptographic algorithm configured is not strong enough, please change it.'); 202 } 201 __error('Dotclear error',DC_CRYPT_ALGO.' cryptographic algorithm configured is not strong enough, please change it.'); 202 } 203 exit; 204 } 205 } 206 207 if (!defined('DC_VAR')) { 208 define('DC_VAR',path::real(dirname(__FILE__).'/..').'/var'); 209 } 210 // Check existence of var directory 211 if (!is_dir(DC_VAR)) { 212 // Try to create it 213 @files::makeDir(DC_VAR); 214 if (!is_dir(DC_VAR)) { 215 // Admin must create it 216 if (!defined('DC_CONTEXT_ADMIN')) { 217 __error('Server error','Site temporarily unavailable'); 218 } else { 219 __error('Dotclear error',DC_VAR.' directory does not exist. Please create it.'); 220 } 221 exit; 203 222 } 204 223 } -
inc/public/class.dc.template.php
r3172 r3259 1095 1095 category CDATA #IMPLIED -- get entries for specific categories only (multiple comma-separated categories can be specified. Use "!" as prefix to exclude a category) 1096 1096 no_category CDATA #IMPLIED -- get entries without category 1097 with_category CDATA #IMPLIED -- get entries with category 1097 1098 no_context (1|0) #IMPLIED -- Override context information 1098 1099 sortby (title|selected|author|date|id) #IMPLIED -- specify entries sort criteria (default : date) (multiple comma-separated sortby can be specified. Use "?asc" or "?desc" as suffix to provide an order for each sorby) … … 1153 1154 } 1154 1155 1156 if (isset($attr['with_category']) && $attr['with_category']) { 1157 $p .= "@\$params['sql'] .= ' AND P.cat_id IS NOT NULL ';\n"; 1158 } 1159 1155 1160 if (isset($attr['no_category']) && $attr['no_category']) { 1156 1161 $p .= "@\$params['sql'] .= ' AND P.cat_id IS NULL ';\n"; -
inc/public/prepend.php
r3059 r3260 13 13 if (!empty($_GET['pf'])) { 14 14 require dirname(__FILE__).'/../load_plugin_file.php'; 15 exit; 16 } 17 18 if (!empty($_GET['vf'])) { 19 require dirname(__FILE__).'/../load_var_file.php'; 15 20 exit; 16 21 } -
plugins/dcLegacyEditor/_define.php
r3016 r3258 16 16 /* Description*/ "dotclear legacy editor", 17 17 /* Author */ "dotclear Team", 18 /* Version */ '0.1. 3',18 /* Version */ '0.1.4', 19 19 array( 20 20 'permissions' => 'usage,contentadmin', -
plugins/dcLegacyEditor/css/jsToolBar/jsToolBar.css
r2614 r3258 116 116 background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_code.png); 117 117 } 118 button.jstb_mark { 119 background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_mark.png); 120 } 118 121 button.jstb_paragraph { 119 122 background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_paragraph.png); -
plugins/dcLegacyEditor/inc/dc.legacy.editor.behaviors.php
r3024 r3258 112 112 "jsToolBar.prototype.elements.quote.title = '".html::escapeJS(__('Inline quote'))."'; ". 113 113 "jsToolBar.prototype.elements.code.title = '".html::escapeJS(__('Code'))."'; ". 114 "jsToolBar.prototype.elements.mark.title = '".html::escapeJS(__('Mark'))."'; ". 114 115 "jsToolBar.prototype.elements.br.title = '".html::escapeJS(__('Line break'))."'; ". 115 116 "jsToolBar.prototype.elements.blockquote.title = '".html::escapeJS(__('Blockquote'))."'; ". -
plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.js
r3003 r3258 429 429 }; 430 430 431 // code 432 jsToolBar.prototype.elements.mark = { 433 type: 'button', 434 title: 'Mark', 435 fn: { 436 wiki: function() { this.singleTag('""') }, 437 xhtml: function() { this.singleTag('<mark>','</mark>')} 438 } 439 }; 440 431 441 // spacer 432 442 jsToolBar.prototype.elements.space1 = { -
plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.wysiwyg.js
r2614 r3258 655 655 }; 656 656 657 jsToolBar.prototype.elements.mark.fn.wysiwyg = function() { 658 var n = this.getSelectedNode(); 659 var mark = this.iwin.document.createElement('mark'); 660 mark.appendChild(n); 661 this.insertNode(mark); 662 }; 663 657 664 jsToolBar.prototype.elements.br.fn.wysiwyg = function() { 658 665 var n = this.iwin.document.createElement('br');
Note: See TracChangeset
for help on using the changeset viewer.