Skip to content

Commit bbec6bb

Browse files
committed
fix #44
1 parent b08d714 commit bbec6bb

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ In the directory samples you'll find phpminiconfig.php for known OpenSource pack
3939

4040
## Change Log
4141

42-
### changes in phpMiniAdmin 1.9.240801 (latest)
42+
### changes in phpMiniAdmin 1.9.251125 (latest)
43+
- reverted back from str_starts_with to strpos to support PHP 7
44+
45+
### changes in phpMiniAdmin 1.9.240801
4346
- fixed one php short open tag
4447

4548
### changes in phpMiniAdmin 1.9.240727
@@ -54,10 +57,4 @@ In the directory samples you'll find phpminiconfig.php for known OpenSource pack
5457
- `$ACCESS_PWD` now is enforced except for local usage
5558
- added by default "SET GLOBAL local_infile=0" to prevent unwanted use of `LOAD DATA LOCAL INFILE`. Controlled by `$IS_LOCAL_INFILE` on the beginning of the script.
5659

57-
### changes in phpMiniAdmin 1.9.210705
58-
- removed use of function `get_magic_quotes_gpc` deprecated since PHP 7.4.0
59-
- utf8mb4 is now default charset
60-
- tested in PHP 8, cleaned up several PHP Warnings
61-
6260
[see older changes in changelog](changelog.md)
63-

changelog.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
### changes in phpMiniAdmin 1.9.240727 (latest)
1+
### changes in phpMiniAdmin 1.9.251125 (latest)
2+
- reverted back from str_starts_with to strpos to support PHP 7
3+
4+
### changes in phpMiniAdmin 1.9.240801
5+
- fixed one php short open tag
6+
7+
### changes in phpMiniAdmin 1.9.240727
28
- support for PHP 8.3 (cleaned up some PHP Warnings, deprecations)
39
- enhancements:
410
- multiple db servers support - define server's configs via `$DBSERVERS` and quickly switch between servers via top navbar dropdown
@@ -90,4 +96,3 @@
9096
- fixed: unable to relogin on XSS error
9197
- fixed: truncate button doesn't work
9298
- minor changes in text labels and css styles
93-

phpminiadmin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/*
33
PHP Mini MySQL Admin
4-
(c) 2004-2024 Oleg Savchuk <osalabs@gmail.com> http://osalabs.com
4+
(c) 2004-2025 Oleg Savchuk <osalabs@gmail.com> http://osalabs.com
55
66
Light standalone PHP script for quick and easy access MySQL databases.
77
http://phpminiadmin.sourceforge.net
@@ -34,7 +34,7 @@
3434
if (function_exists('date_default_timezone_set')) date_default_timezone_set('UTC');#required by PHP 5.1+
3535

3636
//constants
37-
$VERSION='1.9.240801';
37+
$VERSION='1.9.251125';
3838
$MAX_ROWS_PER_PAGE=50; #max number of rows in select per one page
3939
$D="\r\n"; #default delimiter for export
4040
$BOM=chr(239).chr(187).chr(191);
@@ -915,7 +915,7 @@ function do_export(){
915915
if ($ct==1&&($_REQUEST['et']??'')=='csv'){
916916
ex_start('.csv');
917917
ex_hdr($ctp?:'text/csv',"$t[0].csv$aext");
918-
if (str_starts_with($DB['chset'],'utf8')) ex_w($BOM);
918+
if (strpos($DB['chset']??'','utf8')===0) ex_w($BOM);
919919

920920
$sth=db_query("select * from ".dbqid($t[0]),NULL,0,MYSQLI_USE_RESULT);
921921
$fn=mysqli_field_count($dbh);

0 commit comments

Comments
 (0)