Skip to content

Commit

Permalink
0.2.31
Browse files Browse the repository at this point in the history
 - Add PWA (Service Worker) to "hiphp-desktop".
 - Updated installation options.
 - Update site files.
 - Add PWA installer as an option to settings in "hiphp-desktop".
 - Fix Dark Mode option.
 - Fix File Creation, Modification and Access Date in "hiphp-desktop".
 - Add a multiple selector in "hiphp-desktop".
 - Fix running on Windows.
 - Activate the arrow feature to return to previous commands (only for Linux).
 - Add login window on "hiphp-tk".
 - Update List information about the FILEs "hiphp-cli".
 - Bug fixes & performance improvements.

Signed-off-by: Boudjada Yasser <by.root96@gmail.com>
  • Loading branch information
yasserbdj96 authored Nov 26, 2022
1 parent 7a8fdf6 commit 8f52c4d
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 8 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.2.31-beta [Beta Version]
## 0.2.31 [27-11-2022][Last Version]
- Add PWA (Service Worker) to "hiphp-desktop".
- Updated installation options.
- Update site files.
Expand All @@ -9,9 +9,10 @@
- Fix running on Windows.
- Activate the arrow feature to return to previous commands (only for Linux).
- Add login window on "hiphp-tk".
- Update List information about the FILEs "hiphp-cli".
- Bug fixes & performance improvements.

## 0.2.30 [02-11-2022][Last Version]
## 0.2.30 [02-11-2022]
- Fix auto login in "hiphp-desktop".
- Fix file info in "hiphp-desktop".
- Add Dark Mode option to settings in "hiphp-desktop".
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ hiphp Commands :
<summary>Click to See changelog History</summary>

```
## 0.2.31-beta [Beta Version]
## 0.2.31 [27-11-2022][Last Version]
- Add PWA (Service Worker) to "hiphp-desktop".
- Updated installation options.
- Update site files.
Expand All @@ -605,9 +605,10 @@ hiphp Commands :
- Fix running on Windows.
- Activate the arrow feature to return to previous commands (only for Linux).
- Add login window on "hiphp-tk".
- Update List information about the FILEs "hiphp-cli".
- Bug fixes & performance improvements.
## 0.2.30 [02-11-2022][Last Version]
## 0.2.30 [02-11-2022]
- Fix auto login in "hiphp-desktop".
- Fix file info in "hiphp-desktop".
- Add Dark Mode option to settings in "hiphp-desktop".
Expand Down
2 changes: 1 addition & 1 deletion hiphp-desktop/src/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"Dark Mode": "True"
"Dark Mode": "False"
}
79 changes: 78 additions & 1 deletion hiphp/hiphpphpfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,84 @@ def scandir_all(dirx="./"):
$path=str_replace($dir,'',$path);
$path=ltrim($path, '/');
}
$fileList[]=$path;
$perms = fileperms($path);
switch ($perms & 0xF000) {
case 0xC000: // socket
$info = 's';
break;
case 0xA000: // symbolic link
$info = 'l';
break;
case 0x8000: // regular
$info = 'r';
break;
case 0x6000: // block special
$info = 'b';
break;
case 0x4000: // directory
$info = 'd';
break;
case 0x2000: // character special
$info = 'c';
break;
case 0x1000: // FIFO pipe
$info = 'p';
break;
default: // unknown
$info = 'u';
}
// Owner
$info .= (($perms & 0x0100) ? 'r' : '-');
$info .= (($perms & 0x0080) ? 'w' : '-');
$info .= (($perms & 0x0040) ?
(($perms & 0x0800) ? 's' : 'x' ) :
(($perms & 0x0800) ? 'S' : '-'));
// Group
$info .= (($perms & 0x0020) ? 'r' : '-');
$info .= (($perms & 0x0010) ? 'w' : '-');
$info .= (($perms & 0x0008) ?
(($perms & 0x0400) ? 's' : 'x' ) :
(($perms & 0x0400) ? 'S' : '-'));
// World
$info .= (($perms & 0x0004) ? 'r' : '-');
$info .= (($perms & 0x0002) ? 'w' : '-');
$info .= (($perms & 0x0001) ?
(($perms & 0x0200) ? 't' : 'x' ) :
(($perms & 0x0200) ? 'T' : '-'));
$file_stats = stat($path);
//
$last_use=date('M d H:m',$file_stats["mtime"]);
//
$bytes=filesize($path);
if ($bytes >= 1073741824){
$bytes = number_format($bytes / 1073741824, 2) . ' GB';
}elseif ($bytes >= 1048576){
$bytes = number_format($bytes / 1048576, 2) . ' MB';
}elseif ($bytes >= 1024){
$bytes = number_format($bytes / 1024, 2) . ' KB';
}elseif ($bytes > 1){
$bytes = $bytes . ' bytes';
}elseif ($bytes == 1){
$bytes = $bytes . ' byte';
}else{
$bytes = '0 bytes';
}
if(strlen($bytes)<11){
$s=11-strlen($bytes);
$bytes=str_repeat(" ",$s).$bytes;
}
//
$fileList[]=$info." ".$last_use." ".$bytes." ".$path;
}
return $fileList;
}
Expand Down
2 changes: 1 addition & 1 deletion hiphp/hiphpversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
# | |

#START{
__version__="0.2.31-beta"
__version__="0.2.31"
#}END.
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.31-beta
0.2.31

0 comments on commit 8f52c4d

Please sign in to comment.