2025-01-18 09:06:54 +01:00
|
|
|
<?php defined('KOBLOG') or die('Koblog CMS.');
|
2019-05-10 11:35:46 +02:00
|
|
|
header('Content-Type: application/json');
|
|
|
|
|
2019-05-10 20:02:24 +02:00
|
|
|
/*
|
|
|
|
| Delete the site logo
|
|
|
|
| This script delete the file and set and empty string in the database
|
|
|
|
|
|
|
|
|
| @return array
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Delete the file
|
2019-05-10 11:35:46 +02:00
|
|
|
$logoFilename = $site->logo(false);
|
|
|
|
if ($logoFilename) {
|
|
|
|
Filesystem::rmfile(PATH_UPLOADS.$logoFilename);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Remove the logo from the database
|
|
|
|
$site->set(array('logo'=>''));
|
|
|
|
|
|
|
|
ajaxResponse(0, 'Logo removed.');
|
|
|
|
|
|
|
|
?>
|