CaMer0n on master
#4844: File Inspector: Do not t… Merge pull request #4845 from D… (compare)
Moc on master
Clarify e_event examples in _bl… (compare)
@aducom: e107 has a service locator called \e107
(source). You get access to it if you load class2.php
. \e107
can be used in a plugin (I think…?).
There is \e107::getUser()
, which returns the currently logged in user as the \e_user
model.
By the way, did you remember how latest changes in themes broke all my premium themes and THEME_LAYOUT was not defined in theme.php? They say that is no way how to fix it... Somebody found it - adding e_theme::initThemeLayout(); to theme.php fixed this and old Gaia now works for 2.3.3. But what is important, my old theme plugins work too. I have no idea how this is related to html/php themes and why it works (or when it works), but old Gaia is fixed now.
These things need to go on Github as they are missed in the chat here. Might be an unintentional bug.
Hello,
I need someone to help me create a block in hero_menu
<div class="carousel-item item {HERO_SLIDE_ACTIVE}">
<div class = "d-lg-none d-block"> {HERO_MEDIA: class = img-responsive img-fluid d-block w-100} </div> </div>
, to be inserted in views that contain only this image and that changes the images to position it in the areas of the template.
[Mon Aug 08 00:33:58.185203 2022] [php7:error] [pid xxxxxx] [client xxx.xxx.xxx.xxx:xxxxx] PHP Fatal error: Uncaught RuntimeException: SplFileInfo::isDir(): open_basedir restriction in effect. File(/var/www/www.mydomain.com/htdocs/..) is not within the allowed path(s): (/var/www/www.mydomain.com/htdocs/) in /var/www/www.mydomain.com/htdocs/e107_admin/fileinspector.php:608\nStack trace:\n#0 /var/www/www.mydomain.com/htdocs/e107_admin/fileinspector.php(608): SplFileInfo->isDir()\n#1 /var/www/www.mydomain.com/htdocs/e107_admin/fileinspector.php(594): file_inspector->inspect_existing()\n#2 /var/www/www.mydomain.com/htdocs/e107_admin/fileinspector.php(932): file_inspector->inspect()\n#3 /var/www/www.mydomain.com/htdocs/e107_admin/fileinspector.php(156): file_inspector->scan_results()\n#4 /var/www/www.mydomain.com/htdocs/e107_handlers/admin_ui.php(1080): fileinspector_admin->init()\n#5 /var/www/www.mydomain.com/htdocs/e107_admin/fileinspector.php(249): e_admin_dispatcher->__construct()\n#6 {main}\n thrown in /var/www/www.mydomain.com/htdocs/e107_admin/fileinspector.php on line 608, referer: https://www.mydomain.com/e107_admin/fileinspector.php?core=none&type=tree&missing=1&noncore=1&oldcore=1&scan=a4807caec4e844118a8c837616354631&mode=main&action=run
diff --git a/e107_admin/fileinspector.php b/e107_admin/fileinspector.php
--- a/e107_admin/fileinspector.php (revision a181afcbd80ac6434782816192ed6ca23c3793d0)
+++ b/e107_admin/fileinspector.php (date 1659944570925)
@@ -601,7 +601,11 @@
$absoluteBase = realpath($baseDir);
if (!is_dir($absoluteBase)) return;
- $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($baseDir));
+ $iterator = new RecursiveIteratorIterator(
+ new RecursiveDirectoryIterator(
+ $baseDir, FilesystemIterator::SKIP_DOTS
+ )
+ );
foreach ($iterator as $file)
{
$this->sendProgress(1);
Admin Area > Preferences > Site Information > Site URL
- make sure it's set correctly with "https://")Admin Area > Preferences > Security & Protection > Use SSL only
- make sure it's enabled. Something different for now, no question but look here, completely built with e107, together with Jimako for the theme, look at https://www.fysiotonvdven.nl/
So everything is possible with e107...