This file contains hidden or 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
<?php | |
namespace Application\Authentication\Example; | |
use Concrete\Core\Authentication\AuthenticationTypeController; | |
use Concrete\Core\Authentication\AuthenticationTypeFailureException; | |
use Concrete\Core\User\User; | |
class Controller extends AuthenticationTypeController | |
{ | |
public function getAuthenticationTypeIconHTML() |
This file contains hidden or 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
<?php | |
Route::register('/change-password', function() { | |
$u = Concrete\Core\User\User::getByUserID(USER_SUPER_ID); | |
$ui = $u->getUserInfoObject(); | |
$ui->changePassword('hogehoge'); | |
die('Done.'); | |
}); |
This file contains hidden or 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
<?php | |
return [ | |
'email' => [ | |
'enabled' => false, | |
], | |
'seo' => [ | |
'redirect_to_canonical_url' => false, | |
], | |
'debug' => [ | |
'display_errors' => true, |
This file contains hidden or 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
<?php | |
namespace Application\Concrete\Express\Service; | |
use Concrete\Core\Application\Application; | |
use Concrete\Core\Attribute\Category\PageCategory; | |
use Concrete\Core\Cache\Level\RequestCache; | |
use Concrete\Core\Database\Connection\Connection; | |
use Concrete\Core\Database\DatabaseManager; | |
use Concrete\Core\Entity\Attribute\Key\PageKey; | |
use Concrete\Core\Entity\Express\Entry; |
This file contains hidden or 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
<?php | |
/* config/site_post.php */ | |
$req = Request::get(); | |
if ($req->getRequestPath() == 'export_scrapbook_proxies') { | |
$root = new SimpleXMLElement("<concrete5-cif></concrete5-cif>"); | |
$root->addAttribute('version', '1.0'); | |
$pages = $root->addChild("pages"); | |
// Get all active scrapbook proxy blocks |
This file contains hidden or 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
<?php | |
Route::register('/bulk_move', function() { | |
$dist = \Concrete\Core\Page\Page::getByPath('/dist'); | |
$type = Concrete\Core\Page\Type\Type::getByHandle('type_handle'); | |
$template = \Concrete\Core\Page\Template::getByHandle('template_handle'); | |
$data = []; | |
$data['pTemplateID'] = $template->getPageTemplateID(); | |
$data['ptID'] = $type->getPageTypeID(); | |
$pl = new \Concrete\Core\Page\PageList(); |
This file contains hidden or 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
<?php | |
// application/src/Concrete/Console/Command/GenerateTestContents.php | |
namespace Application\Concrete\Console\Command; | |
use Concrete\Core\Block\BlockType\BlockType; | |
use Concrete\Core\Cache\CacheClearer; | |
use Concrete\Core\Console\Command; | |
use Concrete\Core\File\Importer; | |
use Concrete\Core\Page\Page; |
This file contains hidden or 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
<?php | |
Route::register('/import', function() { | |
$request = (string) $_POST['xml']; | |
if ($request) { | |
$importer = new \Concrete\Core\Backup\ContentImporter(); | |
$importer->importContentString($request); | |
} | |
?> | |
<form action="/index.php/import" method="post"> | |
<?php |
This file contains hidden or 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
<?php | |
namespace Application\Job; | |
use Concrete\Core\File\Importer; | |
use Concrete\Core\Job\QueueableJob; | |
use ZendQueue\Message as ZendQueueMessage; | |
use ZendQueue\Queue as ZendQueue; | |
class ImportFiles extends QueueableJob | |
{ |
This file contains hidden or 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
<?php | |
class RefreshThumbnails extends QueueableJob | |
{ | |
public $jNotUninstallable=0; | |
public $jSupportsQueue = true; | |
public function getJobName() | |
{ | |
return t('Refresh Thumbnails'); |