Skip to content

Commit 35ca722

Browse files
cdevroeBrookeDot
andauthored
Beta/2025.1 (#293)
* Update CodeIgniter to 3.1.13 Updates CodeIgniter from 3.1.10 to 3.1.13. Mostly bug fixes and PHP 8.0 and PHP 8.1 compatibility Changelog: https://codeigniter.com/userguide3/changelog.html * Readme update to remove trunk from readme. New default branch is main. Addresses #284 * Updated Docker setup to run PHP 7.4. Updated license. Versioned. --------- Co-authored-by: Brooke <hi@broo.ke>
1 parent b35ddd5 commit 35ca722

204 files changed

Lines changed: 1542 additions & 672 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM php:5.6-apache
2-
RUN docker-php-ext-install -j$(nproc) mysqli && a2enmod rewrite
1+
FROM php:7.4-apache
2+
RUN docker-php-ext-install -j$(nproc) mysqli pdo pdo_mysql && a2enmod rewrite

application/config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
| version.point.release
1212
|
1313
*/
14-
$config['unmark_version'] = '2020.4';
14+
$config['unmark_version'] = '2025.1';
1515

1616
/*
1717
|--------------------------------------------------------------------------

docker-compose.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,60 @@
55
##
66
## Written by Colin Devroe cdevroe.com
77
##
8-
## Version 1.0 Build 001
8+
## Version 2.0
99
##
1010

11-
version: '3.3'
12-
1311
services:
1412
apache:
1513
container_name: unmark_apache
1614
build:
1715
context: ./
18-
image: php:5.6-apache
16+
platform: linux/amd64
1917
hostname: apache
2018
ports:
21-
- "80:80"
19+
- "8080:80"
2220
volumes:
2321
- ./:/var/www/html
2422
- ./docker-configs/php-custom.ini:/usr/local/etc/php/conf.d/custom.ini
2523
depends_on:
2624
- mysql
27-
links:
28-
- mysql
25+
networks:
26+
- unmark_network
2927
mysql:
3028
container_name: unmark_mysql
31-
image: mysql:5.7
29+
image: mysql:8.0
30+
platform: linux/amd64
3231
hostname: mysql
33-
command: --sql_mode=''
32+
command: --default-authentication-plugin=mysql_native_password --sql_mode=''
3433
ports:
35-
- "3306:3306"
34+
- "3307:3306"
3635
volumes:
3736
- unmark_db_volume:/var/lib/mysql
3837
environment:
3938
MYSQL_ROOT_PASSWORD: unmarkrootmysqlpass
4039
MYSQL_DATABASE: unmark
4140
MYSQL_USER: unmarkuser
4241
MYSQL_PASSWORD: unmarkpass
42+
networks:
43+
- unmark_network
4344
phpmyadmin:
4445
container_name: unmark_phpmyadmin
4546
image: phpmyadmin/phpmyadmin
46-
links:
47-
- mysql:db
47+
platform: linux/amd64
48+
depends_on:
49+
- mysql
4850
ports:
49-
- "8082:80"
51+
- "8083:80"
5052
environment:
53+
- PMA_HOST=mysql
5154
- PMA_USER=unmarkuser
5255
- PMA_PASSWORD=unmarkpass
5356
- PHP_UPLOAD_MAX_FILESIZE=100MB
57+
networks:
58+
- unmark_network
5459
volumes:
5560
unmark_db_volume:
61+
62+
networks:
63+
unmark_network:
64+
driver: bridge

license.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
== UNMARK LICENSE ==
22
The MIT License (MIT)
33

4-
Copyright (c) 2013-2019 Colin Devroe, Kyle Ruane, Plain, Unmark
4+
Copyright (c) 2013-2025 Colin Devroe, Kyle Ruane
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -25,7 +25,7 @@ SOFTWARE.
2525
== CODEIGNITER LICENSE ==
2626
The MIT License (MIT)
2727

28-
Copyright (c) 2014 - 2019, British Columbia Institute of Technology
28+
Copyright (c) 2014 - 2025, British Columbia Institute of Technology
2929

3030
Permission is hereby granted, free of charge, to any person obtaining a copy
3131
of this software and associated documentation files (the "Software"), to deal

readme.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Unmark
33

44
The open source to-do application for bookmarks.
55

6-
**NOTICE June 15, 2020:** The new default branch is named "trunk". ✊
7-
86
We offer this source code for Unmark completely free. We do so in hopes that Unmark will live on for many years even if we stop maintaining it. You can also use it for free (with a paid upgrade) at [Unmark.it](https://unmark.it/)
97

108
To support its further development please consider [subscribing to Unmark.it](https://unmark.it/), [donating via Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XSYNN4MGM826N). Or, you can contribute to the code.
@@ -88,7 +86,7 @@ No longer recommended, but do whatever you want!
8886
- That's it!
8987

9088
#### From git repository
91-
- Run `git pull origin trunk`
89+
- Run `git pull origin main`
9290
- Run `npm update` in the app's root directory
9391
- Run `grunt` in the app's root directory
9492
- Navigate to [http://localhost/upgrade](http://localhost/upgrade)
@@ -110,7 +108,7 @@ Another way is to contribute your own code via Pull Requests. Here are some note
110108
### Forking and Pull Requests
111109

112110
- Fork [the repository on GitHub](https://github.com/cdevroe/unmark/) into your own account
113-
- Create your own branch of the trunk branch `git checkout -b your-branch-name`
111+
- Create your own branch of the main branch `git checkout -b your-branch-name`
114112
- Update your code and push those code changes back to your fork's branch `git push origin your-branch-name`
115113
- [Submit a Pull Request](https://github.com/cdevroe/unmark/pulls) using that branch
116114
- And please accept our _thanks_!

system/.htaccess

100755100644
File mode changed.

system/core/Benchmark.php

100755100644
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This content is released under the MIT License (MIT)
88
*
9-
* Copyright (c) 2014 - 2019, British Columbia Institute of Technology
9+
* Copyright (c) 2019 - 2022, CodeIgniter Foundation
1010
*
1111
* Permission is hereby granted, free of charge, to any person obtaining a copy
1212
* of this software and associated documentation files (the "Software"), to deal
@@ -30,6 +30,7 @@
3030
* @author EllisLab Dev Team
3131
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
3232
* @copyright Copyright (c) 2014 - 2019, British Columbia Institute of Technology (https://bcit.ca/)
33+
* @copyright Copyright (c) 2019 - 2022, CodeIgniter Foundation (https://codeigniter.com/)
3334
* @license https://opensource.org/licenses/MIT MIT License
3435
* @link https://codeigniter.com
3536
* @since Version 1.0.0
@@ -47,7 +48,7 @@
4748
* @subpackage Libraries
4849
* @category Libraries
4950
* @author EllisLab Dev Team
50-
* @link https://codeigniter.com/user_guide/libraries/benchmark.html
51+
* @link https://codeigniter.com/userguide3/libraries/benchmark.html
5152
*/
5253
class CI_Benchmark {
5354

system/core/CodeIgniter.php

100755100644
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This content is released under the MIT License (MIT)
88
*
9-
* Copyright (c) 2014 - 2019, British Columbia Institute of Technology
9+
* Copyright (c) 2019 - 2022, CodeIgniter Foundation
1010
*
1111
* Permission is hereby granted, free of charge, to any person obtaining a copy
1212
* of this software and associated documentation files (the "Software"), to deal
@@ -30,6 +30,7 @@
3030
* @author EllisLab Dev Team
3131
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
3232
* @copyright Copyright (c) 2014 - 2019, British Columbia Institute of Technology (https://bcit.ca/)
33+
* @copyright Copyright (c) 2019 - 2022, CodeIgniter Foundation (https://codeigniter.com/)
3334
* @license https://opensource.org/licenses/MIT MIT License
3435
* @link https://codeigniter.com
3536
* @since Version 1.0.0
@@ -46,7 +47,7 @@
4647
* @subpackage CodeIgniter
4748
* @category Front-controller
4849
* @author EllisLab Dev Team
49-
* @link https://codeigniter.com/user_guide/
50+
* @link https://codeigniter.com/userguide3/
5051
*/
5152

5253
/**
@@ -55,7 +56,7 @@
5556
* @var string
5657
*
5758
*/
58-
const CI_VERSION = '3.1.10';
59+
const CI_VERSION = '3.1.13';
5960

6061
/*
6162
* ------------------------------------------------------
@@ -434,7 +435,7 @@ function &get_instance()
434435
* ReflectionMethod::isConstructor() is the ONLY reliable check,
435436
* knowing which method will be executed as a constructor.
436437
*/
437-
elseif ( ! is_callable(array($class, $method)))
438+
else
438439
{
439440
$reflection = new ReflectionMethod($class, $method);
440441
if ( ! $reflection->isPublic() OR $reflection->isConstructor())

system/core/Common.php

100755100644
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This content is released under the MIT License (MIT)
88
*
9-
* Copyright (c) 2014 - 2019, British Columbia Institute of Technology
9+
* Copyright (c) 2019 - 2022, CodeIgniter Foundation
1010
*
1111
* Permission is hereby granted, free of charge, to any person obtaining a copy
1212
* of this software and associated documentation files (the "Software"), to deal
@@ -30,6 +30,7 @@
3030
* @author EllisLab Dev Team
3131
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
3232
* @copyright Copyright (c) 2014 - 2019, British Columbia Institute of Technology (https://bcit.ca/)
33+
* @copyright Copyright (c) 2019 - 2022, CodeIgniter Foundation (https://codeigniter.com/)
3334
* @license https://opensource.org/licenses/MIT MIT License
3435
* @link https://codeigniter.com
3536
* @since Version 1.0.0
@@ -46,7 +47,7 @@
4647
* @subpackage CodeIgniter
4748
* @category Common Functions
4849
* @author EllisLab Dev Team
49-
* @link https://codeigniter.com/user_guide/
50+
* @link https://codeigniter.com/userguide3/
5051
*/
5152

5253
// ------------------------------------------------------------------------
@@ -565,7 +566,7 @@ function set_status_header($code = 200, $text = '')
565566
return;
566567
}
567568

568-
$server_protocol = (isset($_SERVER['SERVER_PROTOCOL']) && in_array($_SERVER['SERVER_PROTOCOL'], array('HTTP/1.0', 'HTTP/1.1', 'HTTP/2'), TRUE))
569+
$server_protocol = (isset($_SERVER['SERVER_PROTOCOL']) && in_array($_SERVER['SERVER_PROTOCOL'], array('HTTP/1.0', 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0'), TRUE))
569570
? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1';
570571
header($server_protocol.' '.$code.' '.$text, TRUE, $code);
571572
}
@@ -778,11 +779,9 @@ function html_escape($var, $double_encode = TRUE)
778779
*/
779780
function _stringify_attributes($attributes, $js = FALSE)
780781
{
781-
$atts = NULL;
782-
783782
if (empty($attributes))
784783
{
785-
return $atts;
784+
return NULL;
786785
}
787786

788787
if (is_string($attributes))
@@ -792,6 +791,7 @@ function _stringify_attributes($attributes, $js = FALSE)
792791

793792
$attributes = (array) $attributes;
794793

794+
$atts = '';
795795
foreach ($attributes as $key => $val)
796796
{
797797
$atts .= ($js) ? $key.'='.$val.',' : ' '.$key.'="'.$val.'"';

system/core/Config.php

100755100644
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This content is released under the MIT License (MIT)
88
*
9-
* Copyright (c) 2014 - 2019, British Columbia Institute of Technology
9+
* Copyright (c) 2019 - 2022, CodeIgniter Foundation
1010
*
1111
* Permission is hereby granted, free of charge, to any person obtaining a copy
1212
* of this software and associated documentation files (the "Software"), to deal
@@ -30,6 +30,7 @@
3030
* @author EllisLab Dev Team
3131
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
3232
* @copyright Copyright (c) 2014 - 2019, British Columbia Institute of Technology (https://bcit.ca/)
33+
* @copyright Copyright (c) 2019 - 2022, CodeIgniter Foundation (https://codeigniter.com/)
3334
* @license https://opensource.org/licenses/MIT MIT License
3435
* @link https://codeigniter.com
3536
* @since Version 1.0.0
@@ -46,7 +47,7 @@
4647
* @subpackage Libraries
4748
* @category Libraries
4849
* @author EllisLab Dev Team
49-
* @link https://codeigniter.com/user_guide/libraries/config.html
50+
* @link https://codeigniter.com/userguide3/libraries/config.html
5051
*/
5152
class CI_Config {
5253

0 commit comments

Comments
 (0)