Skip to content

Commit

Permalink
v2.0 - Fixed bugs when working with directories.
Browse files Browse the repository at this point in the history
-v2.0.
-Fixed bugs when performing some operations in folders.
-Fixed bugs when loading directories that are not sync'd between the CloudUsrDir and CloudTmpDir.
-Bugs still exist in some cases when directory names contain spaces.
-Added a helpful error message when a file is disguised as a directory (w/o an extension).
  • Loading branch information
zelon88 authored Nov 15, 2017
1 parent 5623225 commit 53c1ec3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions commonCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
// / -----
// / The following code checks if the Resources directory exists, and creates one if it does not.
if (!file_exists($ResourcesDir)) {
mkdir($TempResourcesDir, 0755);
@mkdir($TempResourcesDir, 0755);
if (file_exists($ResourcesDir)) {
$txt = ('OP-Act: Created a Resources Directory on '.$Time.'.');
$MAKELogFile = file_put_contents($LogFile, $txt.PHP_EOL, FILE_APPEND); }
Expand All @@ -221,7 +221,7 @@
// / -----
// / The following code checks if the TempResources directory exists, and creates one if it does not.
if (!file_exists($TempResourcesDir)) {
mkdir($TempResourcesDir, 0755);
@mkdir($TempResourcesDir, 0755);
if (file_exists($TempResourcesDir)) {
$txt = ('OP-Act: Created a Temp Resources Directory on '.$Time.'.');
$MAKELogFile = file_put_contents($LogFile, $txt.PHP_EOL, FILE_APPEND); }
Expand All @@ -232,7 +232,7 @@
// / -----
// / The following code checks if the ClientInstallers directory exists, and creates one if it does not.
if (!file_exists($ClientInstallDir)) {
mkdir($ClientInstallDir, 0755);
@mkdir($ClientInstallDir, 0755);
if (file_exists($ClientInstallDir)) {
$txt = ('OP-Act: Created a Client Installer Directory on '.$Time.'.');
$MAKELogFile = file_put_contents($LogFile, $txt.PHP_EOL, FILE_APPEND); }
Expand All @@ -243,7 +243,7 @@
// / -----
// / The following code checks if the Windows ClientInstallers directory exists, and creates one if it does not.
if (!file_exists($ClientInstallDirWin)) {
mkdir($ClientInstallDirWin, 0755);
@mkdir($ClientInstallDirWin, 0755);
if (file_exists($ClientInstallDirWin)) {
$txt = ('OP-Act: Created a Windows Client Installer Directory on '.$Time.'.');
$MAKELogFile = file_put_contents($LogFile, $txt.PHP_EOL, FILE_APPEND); }
Expand All @@ -254,7 +254,7 @@
// / -----
// / The following code checks if the Linux ClientInstallers directory exists, and creates one if it does not.
if (!file_exists($ClientInstallDirLin)) {
mkdir($ClientInstallDirLin, 0755);
@mkdir($ClientInstallDirLin, 0755);
if (file_exists($ClientInstallDirLin)) {
$txt = ('OP-Act: Created a Linux Client Installer Directory on '.$Time.'.');
$MAKELogFile = file_put_contents($LogFile, $txt.PHP_EOL, FILE_APPEND); }
Expand All @@ -265,7 +265,7 @@
// / -----
// / The following code checks if the OSX ClientInstallers directory exists, and creates one if it does not.
if (!file_exists($ClientInstallDirOsx)) {
mkdir($ClientInstallDirOsx, 0755);
@mkdir($ClientInstallDirOsx, 0755);
if (file_exists($ClientInstallDirOsx)) {
$txt = ('OP-Act: Created a OSX Client Installer Directory on '.$Time.'.');
$MAKELogFile = file_put_contents($LogFile, $txt.PHP_EOL, FILE_APPEND); }
Expand All @@ -276,7 +276,7 @@
// / -----
// / The following code checks if the CloudUsrDir exists, and creates one if it does not.
if (!file_exists($CloudUsrDir)) {
mkdir($CloudUsrDir, 0755);
@mkdir($CloudUsrDir, 0755);
if (file_exists($CloudUsrDir)) {
$txt = ('OP-Act: Created a Cloud User Directory on '.$Time.'.');
$MAKELogFile = file_put_contents($LogFile, $txt.PHP_EOL, FILE_APPEND); }
Expand All @@ -287,7 +287,7 @@
// / -----
// / The following code checks if the CloudAppDir exists, and creates one if it does not.
if (!file_exists($CloudAppDir)) {
mkdir($CloudAppDir, 0755);
@mkdir($CloudAppDir, 0755);
if (file_exists($CloudAppDir)) {
$txt = ('OP-Act: Created a CloudLoc Apps Directory on '.$Time.'.');
$MAKELogFile = file_put_contents($LogFile, $txt.PHP_EOL, FILE_APPEND); }
Expand All @@ -299,7 +299,7 @@
// / The following code will create a backup directory for restoration data.
// / NO USER DATA IS STORED IN THE BACKUP DIRECTORY!!! Only server configuration data.
if (!file_exists($BackupDir)) {
mkdir($BackupDir, 0755);
@mkdir($BackupDir, 0755);
if (file_exists($BackupDir)) {
$txt = ('OP-Act: Created a Backup Directory on '.$Time.'.');
$MAKELogFile = file_put_contents($LogFile, $txt.PHP_EOL, FILE_APPEND); }
Expand Down
2 changes: 1 addition & 1 deletion compatibilityCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/*
HRCLOUD2 VERSION INFORMATION
THIS VERSION : v1.9.9.5
THIS VERSION : v2.0
WRITTEN ON : 11/14/2017
*/

Expand Down
2 changes: 1 addition & 1 deletion versionInfo.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
// / This file contains the current HRCloud2 version for auto-update purposes.
// /
$Version = 'v1.9.9.5';
$Version = 'v2.0';

0 comments on commit 53c1ec3

Please sign in to comment.