Browse Source
Remove the public/picture/ directory to use only the main index.php entrypoint
Remove the public/picture/ directory to use only the main index.php entrypoint
Cleanup and simplify the avatar and picture handling code Add a CleatTemplatesCache command and call it when starting the daemonpull/1228/head
70 changed files with 234 additions and 232 deletions
-
6CHANGELOG.md
-
12INSTALL.md
-
4app/Conference.php
-
10app/Contact.php
-
6app/Info.php
-
10app/Roster.php
-
92app/helpers/UtilsHelper.php
-
2app/widgets/AdminSessions/adminsessions.tpl
-
2app/widgets/Avatar/_avatar.tpl
-
2app/widgets/Avatar/_avatar_form.tpl
-
1app/widgets/AvatarPlaceholder/AvatarPlaceholder.php
-
2app/widgets/Blog/Blog.php
-
4app/widgets/Blog/blog.tpl
-
4app/widgets/Chat/Chat.php
-
2app/widgets/Chat/_chat_bubble.tpl
-
2app/widgets/Chat/_chat_empty.tpl
-
2app/widgets/Chat/_chat_explore.tpl
-
6app/widgets/Chat/_chat_header.tpl
-
2app/widgets/Chats/_chats_item.tpl
-
2app/widgets/CommunitiesServer/_communitiesserver_ticket.tpl
-
4app/widgets/CommunityAffiliations/_communityaffiliations.tpl
-
2app/widgets/CommunityAffiliations/_communityaffiliations_config_content.tpl
-
2app/widgets/CommunityAffiliations/_communityaffiliations_public_subscriptions_list.tpl
-
2app/widgets/CommunityAffiliations/_communityaffiliations_subscriptions.tpl
-
2app/widgets/CommunityConfig/_communityconfig_avatar.tpl
-
2app/widgets/CommunityData/_communitydata_card.tpl
-
2app/widgets/CommunityHeader/_communityheader.tpl
-
2app/widgets/ContactActions/_contactactions_add.tpl
-
2app/widgets/ContactActions/_contactactions_drawer.tpl
-
2app/widgets/ContactData/_contactdata_card.tpl
-
2app/widgets/ContactHeader/_contactheader.tpl
-
2app/widgets/ContactSubscriptions/_contactsubscriptions.tpl
-
8app/widgets/Login/login.tpl
-
6app/widgets/Menu/Menu.php
-
2app/widgets/Notifications/Notifications.php
-
4app/widgets/Notifications/_notifications.tpl
-
6app/widgets/Post/_post.tpl
-
4app/widgets/Post/_post_card.tpl
-
4app/widgets/Post/_post_comments.tpl
-
4app/widgets/Post/_post_prevnext_back.tpl
-
2app/widgets/Post/_post_reply.tpl
-
4app/widgets/Post/_post_ticket.tpl
-
2app/widgets/Presence/_presence.tpl
-
2app/widgets/Presence/presence.tpl
-
2app/widgets/Publish/publish.tpl
-
2app/widgets/Rooms/Rooms.php
-
2app/widgets/Rooms/_rooms_room.tpl
-
2app/widgets/RoomsExplore/_roomsexplore_global.tpl
-
2app/widgets/RoomsExplore/_roomsexplore_local.tpl
-
2app/widgets/RoomsUtils/_rooms_avatar.tpl
-
8app/widgets/RoomsUtils/_rooms_drawer.tpl
-
2app/widgets/Search/_search_results.tpl
-
2app/widgets/Search/_search_results_contacts.tpl
-
2app/widgets/Search/_search_roster.tpl
-
4app/widgets/SendTo/_sendto_article.tpl
-
2app/widgets/SendTo/_sendto_share.tpl
-
2app/widgets/SendTo/_sendto_share_contacts.tpl
-
4app/widgets/Syndication/Syndication.php
-
2app/widgets/Visio/Visio.php
-
2app/widgets/Visio/_visio_dialog.tpl
-
2app/widgets/Visio/visio.tpl
-
60composer.lock
-
1daemon.php
-
10etc/caddy/Caddyfile
-
34etc/nginx/conf.d/movim.conf
-
12public/picture/index.php
-
36src/Movim/Console/ClearTemplatesCache.php
-
13src/Movim/Console/CompileStickers.php
-
4src/Movim/Console/DaemonCommand.php
-
5src/Movim/Route.php
@ -1,12 +0,0 @@ |
|||
<?php |
|||
|
|||
require '../../vendor/autoload.php'; |
|||
|
|||
use Movim\Bootstrap; |
|||
use Movim\Controller\Front; |
|||
|
|||
$bootstrap = new Bootstrap; |
|||
$bootstrap->boot(); |
|||
|
|||
$rqst = new Front; |
|||
$rqst->handle('picture'); |
|||
@ -0,0 +1,36 @@ |
|||
<?php |
|||
/* |
|||
* SPDX-FileCopyrightText: 2023 Jaussoin Timothée |
|||
* SPDX-License-Identifier: AGPL-3.0-or-later |
|||
*/ |
|||
|
|||
namespace Movim\Console; |
|||
|
|||
use Symfony\Component\Console\Command\Command; |
|||
use Symfony\Component\Console\Input\InputInterface; |
|||
use Symfony\Component\Console\Output\OutputInterface; |
|||
|
|||
class ClearTemplatesCache extends Command |
|||
{ |
|||
protected function configure() |
|||
{ |
|||
$this |
|||
->setName('clearTemplatesCache') |
|||
->setDescription('Clear the internal templates cache'); |
|||
} |
|||
|
|||
protected function execute(InputInterface $input, OutputInterface $output) |
|||
{ |
|||
foreach (glob( |
|||
CACHE_PATH . |
|||
'*.rtpl.php', |
|||
GLOB_NOSORT |
|||
) as $cacheFile) { |
|||
@unlink($cacheFile); |
|||
} |
|||
|
|||
$output->writeln('<info>Template cache cleared</info>'); |
|||
|
|||
return 0; |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue