| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -350,7 +350,7 @@ function blogger_newPost($params) | |||
| 350 | 350 | $contents = $this->_getBloggerContents($content); | |
| 351 | 351 | ||
| 352 | 352 | $contents['Section'] = $blogid; | |
| 353 | - $contents['Status'] = $publish ? '4' : '1'; | ||
| 353 | + $contents['Status'] = $publish ? '4' : '1'; | ||
| 354 | 354 | ||
| 355 | 355 | $rs = $txp->newArticle($contents); | |
| 356 | 356 | ||
@@ -443,7 +443,7 @@ function blogger_getUserInfo($params) | |||
| 443 | 443 | list($firstname, $lastname) = explode(' ', $RealName); | |
| 444 | 444 | } else { | |
| 445 | 445 | $firstname = $RealName; | |
| 446 | - $lastname = ''; | ||
| 446 | + $lastname = ''; | ||
| 447 | 447 | } | |
| 448 | 448 | ||
| 449 | 449 | $uinfo = array( | |
@@ -956,7 +956,7 @@ function _getBloggerContents($content) | |||
| 956 | 956 | ||
| 957 | 957 | // Trick to add title, category and excerpts using XML-RPC. | |
| 958 | 958 | if (preg_match('/<title>(.*)<\/title>(.*)/s', $content, $matches)) { | |
| 959 | - $body = $matches[2]; | ||
| 959 | + $body = $matches[2]; | ||
| 960 | 960 | $title = $matches[1]; | |
| 961 | 961 | } | |
| 962 | 962 | ||
@@ -977,9 +977,9 @@ function _getMetaWeblogContents($struct, $publish, $txp) | |||
| 977 | 977 | global $gmtoffset, $is_dst; | |
| 978 | 978 | ||
| 979 | 979 | $contents = array( | |
| 980 | - 'Body' => str_replace('\n', n, $struct['description']), | ||
| 980 | + 'Body' => str_replace('\n', n, $struct['description']), | ||
| 981 | 981 | 'Status' => $publish ? '4' : '1', | |
| 982 | - 'Title' => $struct['title'], | ||
| 982 | + 'Title' => $struct['title'], | ||
| 983 | 983 | ); | |
| 984 | 984 | ||
| 985 | 985 | if (!empty($struct['categories'])) { | |
@@ -1088,9 +1088,9 @@ function _buildMetaWeblogStruct($rs, $txp) | |||
| 1088 | 1088 | break; | |
| 1089 | 1089 | } | |
| 1090 | 1090 | ||
| 1091 | - $cat = $txp->getCategory($rs['Category1']); | ||
| 1091 | + $cat = $txp->getCategory($rs['Category1']); | ||
| 1092 | 1092 | $cat1 = isset($cat['title']) ? $cat['title'] : ''; | |
| 1093 | - $cat = $txp->getCategory($rs['Category2']); | ||
| 1093 | + $cat = $txp->getCategory($rs['Category2']); | ||
| 1094 | 1094 | $cat2 = isset($cat['title']) ? $cat['title'] : ''; | |
| 1095 | 1095 | ||
| 1096 | 1096 | switch ($rs['Status']) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -249,17 +249,17 @@ function doTxpValidate() | |||
| 249 | 249 | { | |
| 250 | 250 | global $logout, $txp_user; | |
| 251 | 251 | ||
| 252 | - $p_userid = ps('p_userid'); | ||
| 252 | + $p_userid = ps('p_userid'); | ||
| 253 | 253 | $p_password = ps('p_password'); | |
| 254 | - $p_reset = ps('p_reset'); | ||
| 255 | - $p_alter = ps('p_alter'); | ||
| 256 | - $p_set = ps('p_set'); | ||
| 257 | - $stay = ps('stay'); | ||
| 258 | - $p_confirm = gps('confirm'); | ||
| 259 | - $logout = gps('logout'); | ||
| 260 | - $lang = sanitizeForUrl(gps('lang')); | ||
| 261 | - $message = ''; | ||
| 262 | - $pub_path = preg_replace('|//$|', '/', rhu . '/'); | ||
| 254 | + $p_reset = ps('p_reset'); | ||
| 255 | + $p_alter = ps('p_alter'); | ||
| 256 | + $p_set = ps('p_set'); | ||
| 257 | + $stay = ps('stay'); | ||
| 258 | + $p_confirm = gps('confirm'); | ||
| 259 | + $logout = gps('logout'); | ||
| 260 | + $lang = sanitizeForUrl(gps('lang')); | ||
| 261 | + $message = ''; | ||
| 262 | + $pub_path = preg_replace('|//$|', '/', rhu . '/'); | ||
| 263 | 263 | $cookie_domain = (defined('cookie_domain')) ? cookie_domain : ''; | |
| 264 | 264 | $conUsers = do_list_unique(get_pref('concurrent_logins')); | |
| 265 | 265 | ||
@@ -268,7 +268,7 @@ function doTxpValidate() | |||
| 268 | 268 | $c_hash = end($txp_login); | |
| 269 | 269 | $c_userid = join(',', array_slice($txp_login, 0, -1)); | |
| 270 | 270 | } else { | |
| 271 | - $c_hash = ''; | ||
| 271 | + $c_hash = ''; | ||
| 272 | 272 | $c_userid = ''; | |
| 273 | 273 | } | |
| 274 | 274 | ||
@@ -313,7 +313,7 @@ function doTxpValidate() | |||
| 313 | 313 | ||
| 314 | 314 | if ($name !== false) { | |
| 315 | 315 | $c_hash = md5(uniqid(mt_rand(), true)); | |
| 316 | - $nonce = md5($name . pack('H*', $c_hash)); | ||
| 316 | + $nonce = md5($name . pack('H*', $c_hash)); | ||
| 317 | 317 | ||
| 318 | 318 | safe_update( | |
| 319 | 319 | 'txp_users', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -537,7 +537,7 @@ function cat_event_category_create($event) | |||
| 537 | 537 | ||
| 538 | 538 | function cat_event_category_edit($evname, $message = '') | |
| 539 | 539 | { | |
| 540 | - $id = assert_int(gps('id')); | ||
| 540 | + $id = assert_int(gps('id')); | ||
| 541 | 541 | $parent = doSlash(gps('parent')); | |
| 542 | 542 | $fieldSizes = Txp::get('\Textpattern\DB\Core')->columnSizes('txp_category', 'name, title, description'); | |
| 543 | 543 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -528,20 +528,20 @@ function file_multiedit_form($page, $sort, $dir, $crit, $search_method) | |||
| 528 | 528 | $status = selectInput('status', $file_statuses, '', true); | |
| 529 | 529 | ||
| 530 | 530 | $methods = array( | |
| 531 | - 'changestatus' => array( | ||
| 531 | + 'changestatus' => array( | ||
| 532 | 532 | 'label' => gTxt('changestatus'), | |
| 533 | 533 | 'html' => $status, | |
| 534 | 534 | ), | |
| 535 | 535 | 'changecategory' => array( | |
| 536 | 536 | 'label' => gTxt('changecategory'), | |
| 537 | 537 | 'html' => $categories, | |
| 538 | 538 | ), | |
| 539 | - 'changeauthor' => array( | ||
| 539 | + 'changeauthor' => array( | ||
| 540 | 540 | 'label' => gTxt('changeauthor'), | |
| 541 | 541 | 'html' => $authors, | |
| 542 | 542 | ), | |
| 543 | - 'changecount' => array('label' => gTxt('reset_download_count')), | ||
| 544 | - 'delete' => gTxt('delete'), | ||
| 543 | + 'changecount' => array('label' => gTxt('reset_download_count')), | ||
| 544 | + 'delete' => gTxt('delete'), | ||
| 545 | 545 | ); | |
| 546 | 546 | ||
| 547 | 547 | if (!$categories) { | |
@@ -579,8 +579,8 @@ function file_multi_edit() | |||
| 579 | 579 | } | |
| 580 | 580 | ||
| 581 | 581 | $selected = array_map('assert_int', $selected); | |
| 582 | - $method = ps('edit_method'); | ||
| 583 | - $changed = array(); | ||
| 582 | + $method = ps('edit_method'); | ||
| 583 | + $changed = array(); | ||
| 584 | 584 | $key = ''; | |
| 585 | 585 | ||
| 586 | 586 | switch ($method) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -676,7 +676,7 @@ function query() | |||
| 676 | 676 | $length = $request->getLength(); | |
| 677 | 677 | $xml = $request->getXml(); | |
| 678 | 678 | $r = "\r\n"; | |
| 679 | - $request = "POST {$this->path} HTTP/1.0$r"; | ||
| 679 | + $request = "POST {$this->path} HTTP/1.0$r"; | ||
| 680 | 680 | ||
| 681 | 681 | // Merged from WP #8145 - allow custom headers | |
| 682 | 682 | $this->headers['Host'] = $this->server; | |
@@ -686,7 +686,7 @@ function query() | |||
| 686 | 686 | ||
| 687 | 687 | // Accept gzipped response if zlib and if php4.3+ (fgets turned binary safe) | |
| 688 | 688 | if ( extension_loaded('zlib') && preg_match('#^(4\.[3-9])|([5-9])#',phpversion()) ) | |
| 689 | - $this->headers['Accept-Encoding'] = 'gzip'; | ||
| 689 | + $this->headers['Accept-Encoding'] = 'gzip'; | ||
| 690 | 690 | ||
| 691 | 691 | foreach( $this->headers as $header => $value ) { | |
| 692 | 692 | $request .= "{$header}: {$value}{$r}"; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -221,13 +221,13 @@ public function write($infile, $outfile) | |||
| 221 | 221 | return false; | |
| 222 | 222 | } | |
| 223 | 223 | ||
| 224 | - $this->_SRC['file'] = $infile; | ||
| 225 | - $this->_SRC['width'] = $temp[0]; | ||
| 226 | - $this->_SRC['height'] = $temp[1]; | ||
| 227 | - $this->_SRC['type'] = $temp[2]; // 1=GIF, 2=JPEG, 3=PNG, 18=WebP, 19=AVIF, 99=SVG. | ||
| 228 | - $this->_SRC['string'] = $temp[3]; | ||
| 229 | - $this->_SRC['image'] = $temp['image']; | ||
| 230 | - $this->_SRC['filename'] = basename($infile); | ||
| 224 | + $this->_SRC['file'] = $infile; | ||
| 225 | + $this->_SRC['width'] = $temp[0]; | ||
| 226 | + $this->_SRC['height'] = $temp[1]; | ||
| 227 | + $this->_SRC['type'] = $temp[2]; // 1=GIF, 2=JPEG, 3=PNG, 18=WebP, 19=AVIF, 99=SVG. | ||
| 228 | + $this->_SRC['string'] = $temp[3]; | ||
| 229 | + $this->_SRC['image'] = $temp['image']; | ||
| 230 | + $this->_SRC['filename'] = basename($infile); | ||
| 231 | 231 | //$this->_SRC['modified'] = filemtime($infile); | |
| 232 | 232 | /* | |
| 233 | 233 | // Make sure we have enough memory if the image is large. | |
@@ -288,8 +288,8 @@ public function write($infile, $outfile) | |||
| 288 | 288 | } | |
| 289 | 289 | // Swap height and width values if thumbnail is rotated by 90°. | |
| 290 | 290 | if (in_array($exif['Orientation'], [5, 6, 7, 8])) { | |
| 291 | - $this->_SRC['width'] = $temp[1]; | ||
| 292 | - $this->_SRC['height'] = $temp[0]; | ||
| 291 | + $this->_SRC['width'] = $temp[1]; | ||
| 292 | + $this->_SRC['height'] = $temp[0]; | ||
| 293 | 293 | } | |
| 294 | 294 | // Flip thumbnail if exif orientation is mirrored. | |
| 295 | 295 | if (in_array($exif['Orientation'], [2, 5, 7, 4])) { | |
@@ -307,36 +307,36 @@ public function write($infile, $outfile) | |||
| 307 | 307 | ||
| 308 | 308 | // Get destination image info. | |
| 309 | 309 | if (is_numeric($this->width) and empty($this->height)) { | |
| 310 | - $this->_DST['width'] = $this->width; | ||
| 310 | + $this->_DST['width'] = $this->width; | ||
| 311 | 311 | $this->_DST['height'] = round($this->width/($this->_SRC['width']/$this->_SRC['height'])); | |
| 312 | 312 | } elseif (is_numeric($this->height) and empty($this->width)) { | |
| 313 | 313 | $this->_DST['height'] = $this->height; | |
| 314 | - $this->_DST['width'] = round($this->height/($this->_SRC['height']/$this->_SRC['width'])); | ||
| 314 | + $this->_DST['width'] = round($this->height/($this->_SRC['height']/$this->_SRC['width'])); | ||
| 315 | 315 | } elseif (is_numeric($this->width) and is_numeric($this->height)) { | |
| 316 | - $this->_DST['width'] = $this->width; | ||
| 316 | + $this->_DST['width'] = $this->width; | ||
| 317 | 317 | $this->_DST['height'] = $this->height; | |
| 318 | 318 | } elseif (is_numeric($this->longside) and empty($this->shortside)) { | |
| 319 | 319 | // Preserve aspect ratio based on provided height. | |
| 320 | 320 | if ($this->_SRC['format'] == 'portrait') { | |
| 321 | 321 | $this->_DST['height'] = $this->longside; | |
| 322 | - $this->_DST['width'] = round($this->longside/($this->_SRC['height']/$this->_SRC['width'])); | ||
| 322 | + $this->_DST['width'] = round($this->longside/($this->_SRC['height']/$this->_SRC['width'])); | ||
| 323 | 323 | } else { | |
| 324 | - $this->_DST['width'] = $this->longside; | ||
| 324 | + $this->_DST['width'] = $this->longside; | ||
| 325 | 325 | $this->_DST['height'] = round($this->longside/($this->_SRC['width']/$this->_SRC['height'])); | |
| 326 | 326 | } | |
| 327 | 327 | } elseif (is_numeric($this->shortside)) { | |
| 328 | 328 | // Preserve aspect ratio based on provided width. | |
| 329 | 329 | if ($this->_SRC['format'] == 'portrait') { | |
| 330 | - $this->_DST['width'] = $this->shortside; | ||
| 330 | + $this->_DST['width'] = $this->shortside; | ||
| 331 | 331 | $this->_DST['height'] = round($this->shortside/($this->_SRC['width']/$this->_SRC['height'])); | |
| 332 | 332 | } else { | |
| 333 | 333 | $this->_DST['height'] = $this->shortside; | |
| 334 | - $this->_DST['width'] = round($this->shortside/($this->_SRC['height']/$this->_SRC['width'])); | ||
| 334 | + $this->_DST['width'] = round($this->shortside/($this->_SRC['height']/$this->_SRC['width'])); | ||
| 335 | 335 | } | |
| 336 | 336 | } else { | |
| 337 | 337 | // Default dimensions. | |
| 338 | - $this->width = 100; | ||
| 339 | - $this->_DST['width'] = $this->width; | ||
| 338 | + $this->width = 100; | ||
| 339 | + $this->_DST['width'] = $this->width; | ||
| 340 | 340 | $this->_DST['height'] = round($this->width/($this->_SRC['width']/$this->_SRC['height'])); | |
| 341 | 341 | } | |
| 342 | 342 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,7 @@ private function traceAdd($msg, $query = false, $stats = null) | |||
| 29 | 29 | $trace['level'] = sizeof($this->nest); | |
| 30 | 30 | $trace['begin'] = microtime(true); | |
| 31 | 31 | $trace['query'] = $query; | |
| 32 | - $trace['msg'] = $msg; | ||
| 32 | + $trace['msg'] = $msg; | ||
| 33 | 33 | array_push($this->trace, $trace); | |
| 34 | 34 | ||
| 35 | 35 | if (is_array($stats)) { | |
@@ -122,9 +122,9 @@ private function out($str) | |||
| 122 | 122 | public function summary($array = false) | |
| 123 | 123 | { | |
| 124 | 124 | $summary = array( | |
| 125 | - 'Runtime' => sprintf('%4.2f', (microtime(true) - $this->bigBang) * 1000).' ms', | ||
| 125 | + 'Runtime' => sprintf('%4.2f', (microtime(true) - $this->bigBang) * 1000).' ms', | ||
| 126 | 126 | 'Query time' => sprintf('%4.2f', $this->queryTime * 1000).' ms', | |
| 127 | - 'Queries' => $this->queries, | ||
| 127 | + 'Queries' => $this->queries, | ||
| 128 | 128 | ); | |
| 129 | 129 | ||
| 130 | 130 | if ($this->memFunc) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -727,14 +727,14 @@ function get_essential_forms() | |||
| 727 | 727 | function permlinkmodes($name, $val, $blank = false) | |
| 728 | 728 | { | |
| 729 | 729 | $vals = array( | |
| 730 | - 'messy' => gTxt('messy'), | ||
| 731 | - 'id_title' => gTxt('id_title'), | ||
| 732 | - 'section_id_title' => gTxt('section_id_title'), | ||
| 733 | - 'section_category_title' => gTxt('section_category_title'), | ||
| 734 | - 'year_month_day_title' => gTxt('year_month_day_title'), | ||
| 735 | - 'breadcrumb_title' => gTxt('breadcrumb_title'), | ||
| 736 | - 'section_title' => gTxt('section_title'), | ||
| 737 | - 'title_only' => gTxt('title_only') | ||
| 730 | + 'messy' => gTxt('messy'), | ||
| 731 | + 'id_title' => gTxt('id_title'), | ||
| 732 | + 'section_id_title' => gTxt('section_id_title'), | ||
| 733 | + 'section_category_title' => gTxt('section_category_title'), | ||
| 734 | + 'year_month_day_title' => gTxt('year_month_day_title'), | ||
| 735 | + 'breadcrumb_title' => gTxt('breadcrumb_title'), | ||
| 736 | + 'section_title' => gTxt('section_title'), | ||
| 737 | + 'title_only' => gTxt('title_only') | ||
| 738 | 738 | ); | |
| 739 | 739 | ||
| 740 | 740 | return selectInput($name, $vals, $val, $blank, '', $name); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -226,8 +226,8 @@ function eLink($event, $step, $thing, $value, $linktext, $thing2 = '', $val2 = ' | |||
| 226 | 226 | } | |
| 227 | 227 | ||
| 228 | 228 | return href($linktext, array( | |
| 229 | - 'event' => $event, | ||
| 230 | - 'step' => $step, | ||
| 229 | + 'event' => $event, | ||
| 230 | + 'step' => $step, | ||
| 231 | 231 | ) + $atts, array( | |
| 232 | 232 | 'class' => $class, | |
| 233 | 233 | 'title' => $title, | |
@@ -1200,9 +1200,9 @@ function popHelp($help_var, $width = 0, $height = 0, $class = 'pophelp', $inline | |||
| 1200 | 1200 | $url = filter_var($help_var, FILTER_VALIDATE_URL); | |
| 1201 | 1201 | ||
| 1202 | 1202 | $atts = array( | |
| 1203 | - 'rel' => 'help', | ||
| 1204 | - 'title' => gTxt('help'), | ||
| 1205 | - 'role' => 'button', | ||
| 1203 | + 'rel' => 'help', | ||
| 1204 | + 'title' => gTxt('help'), | ||
| 1205 | + 'role' => 'button', | ||
| 1206 | 1206 | ); | |
| 1207 | 1207 | ||
| 1208 | 1208 | if ($url === false) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2167,7 +2167,7 @@ function is_blocklisted($ip, $checks = '') | |||
| 2167 | 2167 | ||
| 2168 | 2168 | foreach ((array) $checks as $a) { | |
| 2169 | 2169 | $parts = explode(':', $a, 2); | |
| 2170 | - $rbl = $parts[0]; | ||
| 2170 | + $rbl = $parts[0]; | ||
| 2171 | 2171 | ||
| 2172 | 2172 | if (isset($parts[1])) { | |
| 2173 | 2173 | foreach (explode(':', $parts[1]) as $code) { | |
@@ -3430,14 +3430,14 @@ function txp_tokenize($thing, $hash = null, $transform = null) | |||
| 3430 | 3430 | $hash = txp_hash($thing); | |
| 3431 | 3431 | } | |
| 3432 | 3432 | ||
| 3433 | - $inside = array($parsed[0]); | ||
| 3434 | - $tags = array($inside); | ||
| 3435 | - $tag = array(); | ||
| 3433 | + $inside = array($parsed[0]); | ||
| 3434 | + $tags = array($inside); | ||
| 3435 | + $tag = array(); | ||
| 3436 | 3436 | $outside = array(); | |
| 3437 | 3437 | $order = array(array()); | |
| 3438 | - $else = array(-1); | ||
| 3439 | - $count = array(-1); | ||
| 3440 | - $level = 0; | ||
| 3438 | + $else = array(-1); | ||
| 3439 | + $count = array(-1); | ||
| 3440 | + $level = 0; | ||
| 3441 | 3441 | ||
| 3442 | 3442 | for ($i = 1; $i < $last || $level > 0; $i++) { | |
| 3443 | 3443 | $chunk = $i < $last ? $parsed[$i] : '</txp:'.$tag[$level-1][2].'>'; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments