-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GSoC 2018: Setup Improvements Continue(libreehr) ** New (#1253)
* GSOC 2018 Setup improvements #1195 * setup polished and added mysql version for mac-os, ajax cloning database setup * recursicely scanned all directories in the sites folder for config variable * separated intalled sites and non installed sites for dropdown * multisite select login screen * adjust some ui issues
- Loading branch information
1 parent
6708e99
commit ff250a1
Showing
141 changed files
with
36,328 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/** | ||
* This file is responsible for grabbing the current status of the setup process in step 4 of the installation. | ||
* It reads from the tmp/ajaxprocess.txt file and returns the state of the setup process. | ||
* | ||
* LICENSE: This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0 | ||
* See the Mozilla Public License for more details. | ||
* If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
* | ||
* @package Librehealth EHR | ||
* @author Mua Laurent <[email protected]> | ||
* @link http://librehealth.io | ||
* | ||
* Please help the overall project by sending changes you make to the author and to the LibreEHR community. | ||
* | ||
*/ | ||
?> | ||
|
||
<?php | ||
// Tract down all processes of the ajax call one after another and reads them here | ||
// reads the temp/123213.txt and gets the json format (decodes and encodes it again). | ||
// Then sends the result to our step4.php process. | ||
|
||
|
||
// The file has JSON type. | ||
header('Content-Type: application/json'); | ||
|
||
// Prepare the file name from the query string. | ||
// Don't use session_start here. Otherwise this file will be only executed after the process.php execution is done. | ||
|
||
// $file = str_replace(".", "", $_GET['file']); | ||
$file = "tmp/ajaxprocess.txt"; | ||
|
||
|
||
// Make sure the file is exist. | ||
if (file_exists($file)) { | ||
// Get the content and echo it. | ||
$text = file_get_contents($file); | ||
echo $text; | ||
// Convert to JSON to read the status. | ||
$obj = json_decode($text); | ||
// If the process is finished, delete the file. | ||
if ($obj->percentage == 100) { | ||
unlink($file); | ||
} | ||
} | ||
else { | ||
echo json_encode(array("percent" => null, "message" => null)); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
?> |
Oops, something went wrong.