-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added res fixes, improved debug logging, add error tile, fix collapse.
Fixed error conditions in res.php, such as starting from an empty file set. Also fixed having a not inified copied cache registry file. Helped during this process, and hopefully for any similar future errors where PHP would fail early during the process, creating incomplete data. Added new debug logging mode and converted to using it. Hopefully more convenient and automatic, especially for res.php. Fixed loading some scripts when renaming paths. Added library function for text file counting debug code. Added error tile config. To help clarify tile dev more. Fixed using collapse config properly. Code organizing.
- Loading branch information
Showing
7 changed files
with
295 additions
and
181 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
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,15 @@ | ||
<?php | ||
// Source: https://stackoverflow.com/a/2162528/1091943 | ||
function getLineCount($file) { | ||
$linecount = 0; | ||
$handle = fopen($file, "r"); | ||
while(!feof($handle)){ | ||
$line = fgets($handle); | ||
$linecount++; | ||
} | ||
|
||
fclose($handle); | ||
|
||
return $linecount; | ||
} | ||
?> |
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
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
Oops, something went wrong.