-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The web-based installer is mostly rewritten and should be easier to modify and maintain - Updated the way SQL updates are applied in updates as part of this. - This update moves category icon storage from the file system to the database. This migration process will be done for you during the upgrade process. - NOTE: Installer only tested with MySQL so far. YMMV with other databases. - The headless.php installer has not been tested and is likely broken for now. - Dropped support for MS SQL Server since that extension was dropped in PHP.
- Loading branch information
Showing
59 changed files
with
3,043 additions
and
2,616 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 |
---|---|---|
|
@@ -15,6 +15,7 @@ pub/ | |
__pycache__ | ||
*.save | ||
*.sha | ||
sqlite-data | ||
tests/.phpunit.result.cache | ||
vendor/ | ||
wc-icons/ | ||
wc-icons/ |
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
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
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,23 @@ | ||
<?php | ||
require_once 'includes/init.php'; | ||
|
||
$cat_id = isset($_GET['cat_id']) ? intval($_GET['cat_id']) : 0; | ||
|
||
// Query to get the icon blob data from the database | ||
$query = "SELECT cat_icon_blob, cat_icon_mime FROM webcal_categories WHERE cat_id = ?"; | ||
$res = dbi_execute($query, [$cat_id]); | ||
|
||
if ($res) { | ||
$row = dbi_fetch_row($res); | ||
if ($row && !empty($row[0])) { | ||
// Output the MIME type header | ||
header("Content-Type: " . $row[1]); | ||
// Output the image | ||
echo $row[0]; | ||
} else { | ||
// Handle error, e.g., display default image | ||
} | ||
dbi_free_result($res); | ||
} else { | ||
// Handle error, e.g., display default image | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.