Coder Social home page Coder Social logo

sruupl / batflat Goto Github PK

View Code? Open in Web Editor NEW
135.0 135.0 54.0 1.26 MB

Lightweight, fast and easy CMS for free. Bootstrap ready. https://batflat.org

License: MIT License

PHP 60.47% JavaScript 10.57% CSS 6.87% HTML 21.70% Less 0.40%
bootstrap cms flat-file markdown php

batflat's People

Contributors

andreasvirkus avatar klocus avatar komputronika avatar michu2k avatar mwasil avatar renatofrota avatar rjadr avatar romainodeval avatar shaplinx avatar sim2github avatar sruupl avatar timstoffel avatar vicdeo avatar ylorant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

batflat's Issues

Sitemap plugin - Error

I activate the sitemap module.
I go to the site address - mysite/sitemap.xml
and get an error 500
sitemap-error

Issues with https

Hi batflat Community,

Cover/featured image url, tags input in admin panel and og meta properties doesn't seems to work properly while using ssl.

  • Cover/featured image and some og meta properties( especially og:image ) seems to be using http link even after enabling https.
  • In the admin panel the tag input doesn't show tags as we type in https, but it is working fine without ssl.

Suggestions:
An option to add cover/featured image from an external link so that one can add image from cdns like cloudinary! It would be helpful for those who is on a shared hosting with limited resources.

Error on install - PDOException

I've been trying to test the free version of batflat today but have struggled to get it working. My development server appears to support the minimum requirements for the CMS but all I'm getting is the following error;

Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 no such table: modules' in /home/site/public_html/batflat/inc/core/lib/QueryBuilder.php:874
Stack trace:
#0 /home/site/public_html/batflat/inc/core/lib/QueryBuilder.php(874): PDO->prepare('SELECT * FROM m...')
#1 /home/site/public_html/batflat/inc/core/lib/QueryBuilder.php(861): Inc\Core\Lib\QueryBuilder->_query('SELECT * FROM m...')
#2 /home/site/public_html/batflat/inc/core/lib/QueryBuilder.php(639): Inc\Core\Lib\QueryBuilder->_build()
#3 /home/site/public_html/batflat/inc/core/lib/ModulesCollection.php(33): Inc\Core\Lib\QueryBuilder->toArray()
#4 /home/site/public_html/batflat/inc/core/Main.php(343): Inc\Core\Lib\ModulesCollection->__construct(Object(Inc\Core\Site))
#5 /home/site/public_html/batflat/inc/core/Site.php(34): Inc\Core\Main->loadModules()
#6 /home/site/public_html/batflat/index.php(28): Inc\Core\Site->__construct()
#7 {main}
  thrown in /home/site/public_html/batflat/inc/core/lib/QueryBuilder.php on line 874

I can see the SQLite database file has been created and looks like it has been populated with the correct default data.

I've successfully managed the install on another server but just not on my main development one.

Any ideas what I'm overlooking? Is there a min_requirements.php file that will check the server for support?

Thanks in advance.

Module inputs rounding down decimal values

I've been looking at creating a simple module for BatFlat and have been struggling with this issue for the last day or so. If I add a decimal figure to a module input (20.99 for example) the figure is rounded down to the nearest integer (20 in this case). I thought this was an issue with my code but all of the standard modules in the CMS also do the same thing. For example if you add a gallery image caption 99.22 then you'll get just 99.
What inside BatFlat is causing this to happen?

Search feature and where can i get enabled comments?

Hello batflat Team,

Awesome work here! Totally loved.
One doubt : Is there anyway to implement a search feature?
Second doubt : Where can i get comments enabled for posts?

Thanks!

PS: Reply myself:

Searchbox exists as module : Just activate SearchBox and use the short tag
For enabled comments: Settings > Disqus shortname

Multilang gallery module

Image description in gallery module must support multi lang as navigation and snippets modules does.

Not working category (tags) in Russian

Hello!
Your system, as I understand it, uses tags as categories.
So, if the tags are written in English - this system works, if in Russian - no.
Agree that this is not quite good. Missing sense of localization.

Password Reset

It's bound to happen. You might want to explain how to do a password reset if you're a superadmin. For instance, on WordPress, you copy a reset script into a certain directory and run it, and then you can login and change the main WordPress password.

What I ended up doing was installing a separate install, grabbing the password, and updating the SQLite table on the other install, in order to reset the password.

Can't Post US Currency In Pages / Posts -- Templates.php Tries To Process Them

In your Templates.php file, in replaceVariable(), your Regular Expression is interpreting something like...

$9.99
$9.99/mo

...as some sort of variable like $bat.path; (and others) and is changing this to:

$9['99']
$9['99']/mo

You'll want to improve your Regular Expression to handle purely numerical conditions.

Sort posts by tags

Hi, love the CMS!

I'm still a beginner with backend development and am struggling to grasp how posts populate. I want to only display posts with specific tags on specific pages and add extra post fields which can be displayed in my markup.
The end goal of my project is to have editable content for upcoming local events, so on my page I currently have a 2 column grid layout which i want to display each post in, howver i still ned to add more 'fields'. Some examples would be adding a date and location wyswig field to each post.

Heres my code (I've added different variable names to represent the new fields - you get the picture):

**{template: inc/header.html}

    <div class="logo-mobile"></div>

    {template: inc/sidebar.html}

    <div class="content">
            <h1>{$page.title}</h1>
       
        <div class="content-area" id="dining">

                {loop: $blog.posts}

                <article class="content-box">
                        {if: $value.cover_photo}
                        <img src="{$value.cover_url}" class="featuring-image" />
                        {/if}
                        <div class="inner-content">
                          <span class="title">{$event.title}</span><br>
                          <span class="location">{$location.content}</span>
                          <p class="booking-details">
                              <span class="action">Book now</span> <br>
                              <a href="https://askitalian.co.uk/christmas">www.askitalian.co.uk/christmas</a> <br>
                              <span>{$contactnumber.content}</span>
                          </p>
                          {$value.content}
                      </div>
                  </article>
            {/loop}
        </div>

{template: inc/footer.html}

{template: inc/nav.html}
{template: inc/scripts.html}**

Ive also tried adding to the site.php page but i'm not sure how to go about this. Sorry if its a bad question, didn't want to use wordpress and this was the best lightweight alternative i've found!

404

404 Page is not working with the delivered .htaccess..
I cannot assign any ErrorDocument 404 /404.html (or any other relative/absolute link)

I think the htaccess is messing with the configs?

# Prevent directory listings
Options -Indexes

# Prevent visitors from viewing files directly
<FilesMatch "\.(sdb|md|html|txt)$">
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
        Satisfy All
    </IfModule>
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
</FilesMatch>

# URL rewrites
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(inc/|themes/|tmp/).*\.(php|html)$ - [F,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [L]
</IfModule>

BatFlat-FilesToDownload

Hi,
I found the module on GitHub and it is very useful. Is there a way to rewrite the script that it checks before uploading is the file or slug already exists in the database?

The problem is if you upload twice time a file with the same name, you can no longer delete it or it can only be deleted once, the other entry is retained but without the file.

Thx and regrads.

Access navigation items

Hi, is there a way to access {$navigation.main} items inside a template ? I mean, I need to access the navigation item "name" and its "link" to be able to render the navbar using Bootstrap 4.
This version of Bootstrap requires a class "nav-item" and a class "nav-link" to render correctly.
See http://getbootstrap.com/docs/4.1/components/navbar/#nav for details.
Today the {$navigation.main} is rendering all the HTML code without having possibility to modify it.
Thanks

Copyright bug ?

I don't know if it's a bug, but when you comment {$bat.powered}, it not showing up on page and we also don't see license system error.

Admin panel does not work?

I have just installed version 1.3.3, went to my website, admin folder, logged in with "admin" username and password, then got a page as shown.

There are no tabs. Nothing. Is this a bug? Have I done something wrong?

Note, I have a shared account, host is omnis.com

Snapshot of admin window:

http://barryk.org/easy/batflat-admin.png

Regards,
Barry

Routing reneval segment bug

When I have Batflat in subfolder e.g domain.com/batflat i can't go into post list from tag named "batflat" in blog.

example:
domain.com/batflat/blog/tag/whatever // work
domain.com/batflat/blog/tag/batflat // error 404

It's about the name of the subfolder not the "batflat" name:

domain.com/cms/blog/tag/whatever // work
domain.com/cms/blog/tag/cms // error 404

The error occurs in freshly installed cms

In debug mode last query is: SELECT * FROM pages WHERE slug LIKE ? AND lang = ?
as if i was asking about a non-existent nested subpage like: domain.com/page/notexist. No blog module query.

Security Bugs to be reported.

Hello,
I am Vinit Patil, a Security Researcher.I have found a few bugs in the cms.
Can I get your email id for the same?

Snippets editor overwrites languages if html is edited directly

Hi, I have an issue with the snippets module. When I edit the snippet in the code view - once saved, the last edited code is saved in all languages.

  • create snippet
  • put some text in each language version in normal editor
  • go to language 1
  • click on code editor
  • insert i.e.:
<header class="align-center">
  <p>visit our venue</p>
  <h2><a href="" class="button">Book now!</a></h2>
</header>
  • click save

what should happen:

  • only version for language 1 should resemble the code

what happens:

  • all version are overwritten with the edited code

So far tried only on my dev host.

Batflat throws an error on XAMPP default installation during freshInstall

In clear XAMPP instalation and eneable debug mode in batflat i receive information:

Fatal error: Uncaught PDOException: could not find driver in C:\xampp\htdocs\project\inc\core\lib\QueryBuilder.php:114 Stack trace:
#0 C:\xampp\htdocs\project\inc\core\lib\QueryBuilder.php(114): PDO->__construct('sqlite:C:\\xampp...', '', '')
#1 C:\xampp\htdocs\project\inc\core\Main.php(354): Inc\Core\Lib\QueryBuilder::connect('sqlite:C:\\xampp...')
#2 C:\xampp\htdocs\project\inc\core\Main.php(93): Inc\Core\Main->freshInstall('C:\\xampp\\htdocs...')
#3 C:\xampp\htdocs\project\inc\core\Site.php(32): Inc\Core\Main->__construct()
#4 C:\xampp\htdocs\project\index.php(28): Inc\Core\Site->__construct()
#5 {main} thrown in C:\xampp\htdocs\project\inc\core\lib\QueryBuilder.php on line 114

The problem occurs on two machines and two clear installations of xampp.
If there is need to change a same variable in php.ini?
I attach a default php.ini file of xampp.
php.txt

Menu dropdown + funkcjonalność DEV_MODE

Jak można naprawić problem z elementem menu rozwijanego ponieważ kiedy dodam nowy element i przypisując go do rodzica sam rodzic przestaje działać (nie przenosi do danej strony).

Czy w przyszłości będzie możliwość włączając tryb deweloperski tworzyć szablon do panelu administracyjnego np. w xampp? W chwili obecnej nie ma możliwość wykonania takiego szablonu - jedyną opcją jest zapewne wykupienie licencji i praca na danej domenie co może być uciążliwe...

Łączę pozdrowienia :)

Potential Router problems

Right now the way the Router works will produce conflicts when two (or more) modules have overlapping route rules. Let's consider an alternative Pages plugin, PagesEx for example, with route pattern (?:([a-z]{2})/)?([-\w/]+).

  1. Pages module has a page with slug starting-page
  2. PagesEx module has a page with slug extended-page and a subpage of extended-page with url i-has-bucket, its full url being extended-page/i-has-bucket.

The problem is that 2. will never work, because the Pages module "steals" its route with rule (:str)/(:str), not finding the page and serving 404 instead.

Current workarounds are:

  • prefixing the route with a literal string like pages-ex/extended-page/i-has-bucket (ugly, unreliable)
  • hacking core defines.php file to allow disabling of Pages module (even more ugly and also unreliable in case of more conflicting routes)

To fix this issue changes in core and modules are required to make it work as follows:

  1. Router searches for matching pattern.
  2. Pattern match is found, execution is turned over to the owning module while waiting for response.
  3. Module tries to get data and either A - succedes or B - fails
    4A. Module found data and reported success to the Router, which stops further search and returns.
    4B. Module reports failure to the Router, which continues search for further matches.
    5B. Router either finds another match or no other matches are found and router.notfound event is called.

PSR2

Since 1.3.4 announced PSR2 code style usage.
./composer.json:

{
    "require": {
        "squizlabs/php_codesniffer": "^3.3"
    }
}

./phpcs.xml configuration file:

<?xml version="1.0" encoding="utf-8"?>
<ruleset name="Batflat coding standard">
    <description>Batflat coding standard</description>
    <!-- Paths to check -->
    <file>inc/core</file>
    <file>inc/modules</file>
    <exclude-pattern>*/css/*</exclude-pattern>
    <exclude-pattern>*/img/*</exclude-pattern>
    <exclude-pattern>*/js/*</exclude-pattern>
    <exclude-pattern>*/lang/*</exclude-pattern>
    <exclude-pattern>*/view/*</exclude-pattern>
    
    <!-- use colors in output -->
    <arg name="colors"/>

    <!-- inherit rules from: -->
    <rule ref="PSR2"/>
    <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
    <rule ref="Generic.Commenting.Todo" />
</ruleset>
[~/www/batflat]$ ./vendor/bin/phpcs   

�[1mFILE: ~/www/batflat/inc/core/Admin.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES�[0m
----------------------------------------------------------------------
  68 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 122 characters
 112 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 121 characters
 117 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 121 characters
 119 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 124 characters
 271 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 130 characters
 289 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 125 characters
 296 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 124 characters
 301 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 129 characters
 304 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 134 characters
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/BaseModule.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 101 | �[33mWARNING�[0m | Method name "_getLanguages" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/defines.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 1 | �[33mWARNING�[0m | A file should declare new symbols (classes, functions, constants, etc.) and
   |         | cause no other side effects, or it should execute logic with side effects, but
   |         | should not do both. The first symbol is defined on line 18 and the first side
   |         | effect is on line 14.
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/lib/Autoloader.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 1 | �[33mWARNING�[0m | A file should declare new symbols (classes, functions, constants, etc.) and
   |         | cause no other side effects, or it should execute logic with side effects, but
   |         | should not do both. The first symbol is defined on line 20 and the first side
   |         | effect is on line 14.
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/lib/Image.php�[0m
------------------------------------------------------------------------------------
�[1mFOUND 3 ERRORS AFFECTING 3 LINES�[0m
------------------------------------------------------------------------------------
  64 | �[31mERROR�[0m | [x] Short array syntax must be used to define arrays
 439 | �[31mERROR�[0m | [x] The CASE body must start on the line following the statement
 440 | �[31mERROR�[0m | [x] Line indented incorrectly; expected at least 20 spaces, found 16
------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/lib/Indenter.php�[0m
--------------------------------------------------------------------------
�[1mFOUND 11 ERRORS AND 4 WARNINGS AFFECTING 14 LINES�[0m
--------------------------------------------------------------------------
  14 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  15 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  18 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  18 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 196 characters
  19 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  20 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  33 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  52 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  68 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  70 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 146 characters
  83 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 121 characters
  99 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 117 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 121 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 146 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 124 characters
--------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
--------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/lib/License.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES�[0m
----------------------------------------------------------------------
 32 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 136 characters
 56 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 160 characters
 80 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 143 characters
 85 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 192 characters
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/lib/Pagination.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES�[0m
------------------------------------------------------------------------------------------------
  15 | �[33mWARNING�[0m | Property name "$_currentPage" should not be prefixed with an underscore to
     |         | indicate visibility
  16 | �[33mWARNING�[0m | Property name "$_totalRecords" should not be prefixed with an underscore to
     |         | indicate visibility
  17 | �[33mWARNING�[0m | Property name "$_recordsPerPage" should not be prefixed with an underscore to
     |         | indicate visibility
  18 | �[33mWARNING�[0m | Property name "$_url" should not be prefixed with an underscore to indicate
     |         | visibility
  52 | �[33mWARNING�[0m | Method name "_totalPages" should not be prefixed with an underscore to
     |         | indicate visibility
  61 | �[33mWARNING�[0m | Method name "_previousPage" should not be prefixed with an underscore to
     |         | indicate visibility
  70 | �[33mWARNING�[0m | Method name "_nextPage" should not be prefixed with an underscore to indicate
     |         | visibility
  79 | �[33mWARNING�[0m | Method name "_hasPreviousPage" should not be prefixed with an underscore to
     |         | indicate visibility
  88 | �[33mWARNING�[0m | Method name "_hasNextPage" should not be prefixed with an underscore to
     |         | indicate visibility
 112 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 127 characters
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/lib/Parsedown.php�[0m
--------------------------------------------------------------------------------------------
�[1mFOUND 125 ERRORS AND 7 WARNINGS AFFECTING 128 LINES�[0m
--------------------------------------------------------------------------------------------
   19 | �[31mERROR�[0m   | [ ] Class constants must be uppercase; expected VERSION but found version
   24 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
   28 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
   32 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
   37 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
   40 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
   51 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
   56 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
   59 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
   99 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  100 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  101 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  102 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  103 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  104 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  105 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  106 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  107 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  108 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  109 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  110 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  111 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  112 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  113 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  114 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  115 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  116 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  117 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  118 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  119 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  120 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  121 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  122 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  125 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  167 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  288 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  289 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  292 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  339 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 125 characters
  340 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  370 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  378 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  383 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  385 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  448 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  449 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  462 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  462 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  465 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  468 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  474 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  477 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  490 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 133 characters
  501 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  504 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  542 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  543 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  578 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  579 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  614 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  655 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  657 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  659 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  678 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  689 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  704 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  735 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  747 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  756 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  766 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  769 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  775 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  780 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  783 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  786 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  803 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  815 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  822 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  830 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  844 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  845 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  855 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  856 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  857 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  858 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  859 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  860 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  861 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  862 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  863 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  864 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  865 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  866 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  867 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  881 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  935 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 121 characters
  940 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  942 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  952 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 128 characters
  959 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  961 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  964 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  988 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
  990 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1001 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1022 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1024 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1026 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1042 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1046 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1094 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1094 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1094 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 126 characters
 1096 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1109 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1116 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1122 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 143 characters
 1123 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1133 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1139 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1142 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1156 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1158 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1174 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1177 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1180 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1192 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 124 characters
 1193 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1193 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1195 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1197 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 1200 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 124 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
--------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/lib/QueryBuilder.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 5 ERRORS AND 3 WARNINGS AFFECTING 8 LINES�[0m
------------------------------------------------------------------------------------------------
 158 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 248 | �[31mERROR�[0m   | [x] Spaces must be used for alignment; tabs are not allowed
 306 | �[31mERROR�[0m   | [x] Spaces must be used for alignment; tabs are not allowed
 797 | �[31mERROR�[0m   | [ ] Expected 1 space after closing brace; newline found
 809 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 859 | �[33mWARNING�[0m | [ ] Method name "_build" should not be prefixed with an underscore to indicate
     |         |     visibility
 871 | �[33mWARNING�[0m | [ ] Method name "_query" should not be prefixed with an underscore to indicate
     |         |     visibility
 892 | �[33mWARNING�[0m | [ ] Method name "_getColumns" should not be prefixed with an underscore to
     |         |     indicate visibility
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/lib/Router.php�[0m
----------------------------------------------------------------------
�[1mFOUND 2 ERRORS AFFECTING 2 LINES�[0m
----------------------------------------------------------------------
 24 | �[31mERROR�[0m | [x] Short array syntax must be used to define arrays
 31 | �[31mERROR�[0m | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/lib/Templates.php�[0m
-----------------------------------------------------------------------------------------
�[1mFOUND 11 ERRORS AND 2 WARNINGS AFFECTING 12 LINES�[0m
-----------------------------------------------------------------------------------------
  51 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 128 characters
  55 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 127 characters
 162 | �[31mERROR�[0m   | [ ] Method name "Templates::organize_array" is not in camel caps format
 162 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 163 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 165 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 166 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 167 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 168 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 170 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 171 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 254 | �[31mERROR�[0m   | [ ] Method name "Templates::noParse_array" is not in camel caps format
 283 | �[31mERROR�[0m   | [x] Expected 1 space before "=>"; 2 found
-----------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
-----------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/Main.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES�[0m
----------------------------------------------------------------------
 257 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 128 characters
 259 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 133 characters
 271 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 138 characters
 289 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 257 characters
 300 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 169 characters
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/core/Site.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
----------------------------------------------------------------------
 113 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 138 characters
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/blog/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES�[0m
------------------------------------------------------------------------------------------------
 103 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 20 spaces, found 24
 165 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 226 characters
 442 | �[33mWARNING�[0m | [ ] Method name "_addHeaderFiles" should not be prefixed with an underscore to
     |         |     indicate visibility
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/blog/Info.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES�[0m
----------------------------------------------------------------------
 49 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 1236 characters
 50 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 1681 characters
 51 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 167 characters
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/blog/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 25 WARNINGS AFFECTING 25 LINES�[0m
------------------------------------------------------------------------------------------------
  22 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 137 characters
  46 | �[33mWARNING�[0m | Method name "_getLatestPosts" should not be prefixed with an underscore to
     |         | indicate visibility
  56 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 130 characters
  66 | �[33mWARNING�[0m | Method name "_getAllTags" should not be prefixed with an underscore to
     |         | indicate visibility
  84 | �[33mWARNING�[0m | Method name "_importPost" should not be prefixed with an underscore to
     |         | indicate visibility
  91 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 138 characters
  97 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 134 characters
 128 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 134 characters
 131 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 135 characters
 136 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 143 characters
 142 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 211 characters
 153 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 150 characters
 157 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 217 characters
 159 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 153 characters
 168 | �[33mWARNING�[0m | Method name "_importAllPosts" should not be prefixed with an underscore to
     |         | indicate visibility
 188 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 130 characters
 204 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 133 characters
 228 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 135 characters
 244 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 155 characters
 251 | �[33mWARNING�[0m | Method name "_importTagPosts" should not be prefixed with an underscore to
     |         | indicate visibility
 278 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 130 characters
 295 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 133 characters
 319 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 267 characters
 338 | �[33mWARNING�[0m | Method name "_generateRSS" should not be prefixed with an underscore to
     |         | indicate visibility
 360 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 121 characters
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/carousel/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 23 | �[33mWARNING�[0m | Method name "_insertCarousels" should not be prefixed with an underscore to
    |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/contact/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 84 | �[33mWARNING�[0m | Method name "_getUsers" should not be prefixed with an underscore to indicate
    |         | visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/contact/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 2 ERRORS AND 11 WARNINGS AFFECTING 13 LINES�[0m
------------------------------------------------------------------------------------------------
  18 | �[33mWARNING�[0m | [ ] Property name "$_headers" should not be prefixed with an underscore to
     |         |     indicate visibility
  19 | �[33mWARNING�[0m | [ ] Property name "$_params" should not be prefixed with an underscore to
     |         |     indicate visibility
  20 | �[33mWARNING�[0m | [ ] Property name "$_error" should not be prefixed with an underscore to
     |         |     indicate visibility
  44 | �[33mWARNING�[0m | [ ] Method name "_insertForm" should not be prefixed with an underscore to
     |         |     indicate visibility
  54 | �[33mWARNING�[0m | [ ] Method name "_initDriver" should not be prefixed with an underscore to
     |         |     indicate visibility
  91 | �[33mWARNING�[0m | [ ] Method name "_checkErrors" should not be prefixed with an underscore to
     |         |     indicate visibility
 117 | �[33mWARNING�[0m | [ ] Method name "_sendEmail" should not be prefixed with an underscore to
     |         |     indicate visibility
 125 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 137 characters
 128 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 124 characters
 140 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 128 characters
 155 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 156 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 167 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 128 characters
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/dashboard/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES�[0m
------------------------------------------------------------------------------------------------
 31 | �[33mWARNING�[0m | Method name "_modulesList" should not be prefixed with an underscore to
    |         | indicate visibility
 62 | �[33mWARNING�[0m | Method name "_fetchNews" should not be prefixed with an underscore to indicate
    |         | visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/devbar/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 1 | �[33mWARNING�[0m | A file should declare new symbols (classes, functions, constants, etc.) and
   |         | cause no other side effects, or it should execute logic with side effects, but
   |         | should not do both. The first symbol is defined on line 16 and the first side
   |         | effect is on line 62.
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/devbar/functions.php�[0m
----------------------------------------------------------------------------------------------
�[1mFOUND 149 ERRORS AND 1 WARNING AFFECTING 39 LINES�[0m
----------------------------------------------------------------------------------------------
 16 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 123 characters
 25 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 25 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 25 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 25 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 26 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 26 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 26 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 26 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 27 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 27 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 27 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 27 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 28 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 28 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 28 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 28 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 29 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 29 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 29 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 29 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 30 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 30 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 30 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 30 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 31 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 31 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 31 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 31 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 32 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 32 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 32 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 32 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 33 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 33 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 33 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 33 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 34 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 34 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 34 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 34 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 35 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 35 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 35 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 35 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 36 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 36 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 36 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 36 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 37 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 37 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 37 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 37 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 38 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 38 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 38 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 38 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 39 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 39 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 39 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 39 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 40 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 40 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 40 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 40 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 41 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 41 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 41 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 41 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 42 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 42 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 42 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 42 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 43 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 43 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 43 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 43 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 44 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 44 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 44 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 44 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 45 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 45 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 45 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 45 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 46 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 46 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 46 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 46 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 47 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 47 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 47 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 47 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 48 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 48 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 48 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 48 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 49 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 49 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 49 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 49 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 50 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 50 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 50 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 50 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 51 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 51 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 51 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 51 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 52 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 52 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 52 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 52 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 53 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 53 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 53 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 53 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 54 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 54 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 54 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 54 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 55 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 55 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 55 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 55 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 56 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 56 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 56 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 56 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 57 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 57 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 57 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 57 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 58 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 58 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 58 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 58 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 59 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 59 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 59 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 59 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 60 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 60 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 60 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 60 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 61 | �[31mERROR�[0m   | [x] The CASE body must start on the line following the statement
 61 | �[31mERROR�[0m   | [x] Terminating statement must be on a line by itself
 61 | �[31mERROR�[0m   | [x] Closing brace must be on a line by itself
 61 | �[31mERROR�[0m   | [x] Each PHP statement must be on a line by itself
 64 | �[31mERROR�[0m   | [x] Terminating statement must be indented to the same level as the CASE body
----------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 149 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
----------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/devbar/Info.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 13 ERRORS AFFECTING 9 LINES�[0m
------------------------------------------------------------------------------------------------
  4 | �[31mERROR�[0m | [x] Whitespace found at end of line
 17 | �[31mERROR�[0m | [x] Spaces must be used to indent lines; tabs are not allowed
 17 | �[31mERROR�[0m | [x] Spaces must be used for alignment; tabs are not allowed
 17 | �[31mERROR�[0m | [x] Spaces must be used for alignment; tabs are not allowed
 20 | �[31mERROR�[0m | [x] Expected 1 space after FUNCTION keyword; 0 found
 20 | �[31mERROR�[0m | [x] Expected 1 space after USE keyword; found 0
 21 | �[31mERROR�[0m | [x] Opening brace should be on the same line as the declaration
 23 | �[31mERROR�[0m | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 24 | �[31mERROR�[0m | [x] Expected 1 space after FUNCTION keyword; 0 found
 24 | �[31mERROR�[0m | [x] Expected 1 space after USE keyword; found 0
 25 | �[31mERROR�[0m | [x] Opening brace should be on the same line as the declaration
 27 | �[31mERROR�[0m | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 28 | �[31mERROR�[0m | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/devbar/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 1 | �[33mWARNING�[0m | A file should declare new symbols (classes, functions, constants, etc.) and
   |         | cause no other side effects, or it should execute logic with side effects, but
   |         | should not do both. The first symbol is defined on line 16 and the first side
   |         | effect is on line 62.
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/galleries/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES�[0m
------------------------------------------------------------------------------------------------
  18 | �[33mWARNING�[0m | Property name "$_thumbs" should not be prefixed with an underscore to indicate
     |         | visibility
  19 | �[33mWARNING�[0m | Property name "$_uploads" should not be prefixed with an underscore to
     |         | indicate visibility
 111 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 130 characters
 173 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 121 characters
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/galleries/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES�[0m
------------------------------------------------------------------------------------------------
 23 | �[33mWARNING�[0m | [ ] Method name "_importGalleries" should not be prefixed with an underscore to
    |         |     indicate visibility
 59 | �[31mERROR�[0m   | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/modules/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES�[0m
------------------------------------------------------------------------------------------------
  54 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 103 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 140 characters
 187 | �[33mWARNING�[0m | [ ] Method name "_modulesList" should not be prefixed with an underscore to
     |         |     indicate visibility
 206 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 158 characters
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/navigation/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES�[0m
------------------------------------------------------------------------------------------------
 110 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 172 characters
 283 | �[33mWARNING�[0m | Method name "_getPages" should not be prefixed with an underscore to indicate
     |         | visibility
 305 | �[33mWARNING�[0m | Method name "_getParents" should not be prefixed with an underscore to
     |         | indicate visibility
 343 | �[33mWARNING�[0m | Method name "_getNavItems" should not be prefixed with an underscore to
     |         | indicate visibility
 358 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 151 characters
 432 | �[33mWARNING�[0m | Method name "_getHighestOrder" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/navigation/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES�[0m
------------------------------------------------------------------------------------------------
 26 | �[33mWARNING�[0m | Method name "_insertMenu" should not be prefixed with an underscore to indicate
    |         | visibility
 42 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 251 characters
 57 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 243 characters
 64 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 173 characters
 75 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 132 characters
 87 | �[33mWARNING�[0m | Method name "_isChildActive" should not be prefixed with an underscore to
    |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/pages/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES�[0m
------------------------------------------------------------------------------------------------
  46 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 123 characters
  80 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 189 characters
 107 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 197 characters
 153 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 146 characters
 156 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 128 characters
 239 | �[33mWARNING�[0m | Method name "_getTemplates" should not be prefixed with an underscore to
     |         | indicate visibility
 256 | �[33mWARNING�[0m | Method name "_addHeaderFiles" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/pages/Info.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES�[0m
----------------------------------------------------------------------
 35 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 153 characters
 36 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 430 characters
 37 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 573 characters
 42 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 150 characters
 43 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 623 characters
 44 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 537 characters
 50 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 145 characters
 57 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 150 characters
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/pages/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES�[0m
------------------------------------------------------------------------------------------------
  63 | �[33mWARNING�[0m | Method name "_importPage" should not be prefixed with an underscore to
     |         | indicate visibility
  88 | �[33mWARNING�[0m | Method name "_importAllPages" should not be prefixed with an underscore to
     |         | indicate visibility
 116 | �[33mWARNING�[0m | Method name "_getCurrentLang" should not be prefixed with an underscore to
     |         | indicate visibility
 125 | �[33mWARNING�[0m | Method name "_getLanguageBySlug" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/searchbox/Info.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 13 ERRORS AFFECTING 9 LINES�[0m
------------------------------------------------------------------------------------------------
  4 | �[31mERROR�[0m | [x] Whitespace found at end of line
 17 | �[31mERROR�[0m | [x] Spaces must be used to indent lines; tabs are not allowed
 17 | �[31mERROR�[0m | [x] Spaces must be used for alignment; tabs are not allowed
 17 | �[31mERROR�[0m | [x] Spaces must be used for alignment; tabs are not allowed
 20 | �[31mERROR�[0m | [x] Expected 1 space after FUNCTION keyword; 0 found
 20 | �[31mERROR�[0m | [x] Expected 1 space after USE keyword; found 0
 21 | �[31mERROR�[0m | [x] Opening brace should be on the same line as the declaration
 23 | �[31mERROR�[0m | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 24 | �[31mERROR�[0m | [x] Expected 1 space after FUNCTION keyword; 0 found
 24 | �[31mERROR�[0m | [x] Expected 1 space after USE keyword; found 0
 25 | �[31mERROR�[0m | [x] Opening brace should be on the same line as the declaration
 27 | �[31mERROR�[0m | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 28 | �[31mERROR�[0m | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/searchbox/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 56 ERRORS AND 5 WARNINGS AFFECTING 35 LINES�[0m
------------------------------------------------------------------------------------------------
   4 | �[31mERROR�[0m   | [x] Whitespace found at end of line
  16 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 0 spaces, found 4
  19 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
  21 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
  21 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
  25 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
  28 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
  32 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
  34 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
  46 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
  46 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
  48 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 8 spaces, found 12
  48 | �[31mERROR�[0m   | [x] Expected 1 space(s) after ELSE keyword; newline found
  48 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
  52 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
  52 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
  54 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 8 spaces, found 12
  54 | �[31mERROR�[0m   | [x] Expected 1 space(s) after ELSE keyword; newline found
  54 | �[31mERROR�[0m   | [x] Whitespace found at end of line
  57 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 128 characters
  62 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  62 | �[31mERROR�[0m   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
  62 | �[31mERROR�[0m   | [x] Expected 1 space(s) after closing parenthesis; found newline
  65 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  68 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 141 characters
  73 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  73 | �[31mERROR�[0m   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
  73 | �[31mERROR�[0m   | [x] Expected 1 space(s) after closing parenthesis; found newline
  76 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  82 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  82 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
  82 | �[31mERROR�[0m   | [x] Expected 1 space(s) after closing parenthesis; found newline
  83 | �[31mERROR�[0m   | [x] Whitespace found at end of line
  87 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  87 | �[31mERROR�[0m   | [x] Expected 1 space after closing brace; newline found
  88 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
  88 | �[31mERROR�[0m   | [x] Expected 1 space(s) after ELSE keyword; newline found
  88 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
  90 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 8 spaces, found 12
  93 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
  95 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
  95 | �[33mWARNING�[0m | [ ] Method name "_insertSearchBox" should not be prefixed with an underscore
     |         |     to indicate visibility
  98 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
 100 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
 100 | �[33mWARNING�[0m | [ ] Method name "_insertResults" should not be prefixed with an underscore to
     |         |     indicate visibility
 102 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 8 spaces, found 12
 102 | �[31mERROR�[0m   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
 102 | �[31mERROR�[0m   | [x] Expected 1 space(s) after closing parenthesis; found newline
 106 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 8 spaces, found 12
 108 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
 110 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
 110 | �[33mWARNING�[0m | [ ] Method name "_currentLanguage" should not be prefixed with an underscore
     |         |     to indicate visibility
 112 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
 112 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
 114 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 8 spaces, found 12
 114 | �[31mERROR�[0m   | [x] Expected 1 space(s) after ELSE keyword; newline found
 114 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
 116 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
 118 | �[31mERROR�[0m   | [x] Expected 1 newline at end of file; 0 found
 118 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 0 spaces, found 4
 118 | �[31mERROR�[0m   | [x] The closing brace for the class must go on the next line after the body
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 56 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/settings/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 8 ERRORS AND 16 WARNINGS AFFECTING 24 LINES�[0m
------------------------------------------------------------------------------------------------
 112 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 125 characters
 226 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 160 characters
 414 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 122 characters
 416 | �[31mERROR�[0m   | [x] Expected 1 space after closing brace; newline found
 421 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 436 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 447 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 122 characters
 453 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 510 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 187 characters
 574 | �[33mWARNING�[0m | [ ] Method name "_checkUpdate" should not be prefixed with an underscore to
     |         |     indicate visibility
 629 | �[33mWARNING�[0m | [ ] Method name "_getThemes" should not be prefixed with an underscore to
     |         |     indicate visibility
 660 | �[33mWARNING�[0m | [ ] Method name "_getPages" should not be prefixed with an underscore to
     |         |     indicate visibility
 676 | �[33mWARNING�[0m | [ ] Method name "_getThemeFiles" should not be prefixed with an underscore to
     |         |     indicate visibility
 691 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 143 characters
 697 | �[33mWARNING�[0m | [ ] Method name "_updateSettings" should not be prefixed with an underscore to
     |         |     indicate visibility
 739 | �[33mWARNING�[0m | [ ] Method name "_verifyLicense" should not be prefixed with an underscore to
     |         |     indicate visibility
 756 | �[33mWARNING�[0m | [ ] Method name "_getTimezones" should not be prefixed with an underscore to
     |         |     indicate visibility
 758 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 771 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 776 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 785 | �[31mERROR�[0m   | [x] Short array syntax must be used to define arrays
 798 | �[33mWARNING�[0m | [ ] Method name "_getAllTranslations" should not be prefixed with an
     |         |     underscore to indicate visibility
 870 | �[33mWARNING�[0m | [ ] Method name "_directorySize" should not be prefixed with an underscore to
     |         |     indicate visibility
 875 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 166 characters
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/settings/Info.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 15 WARNINGS AFFECTING 15 LINES�[0m
----------------------------------------------------------------------
 28 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 128 characters
 29 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 150 characters
 30 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 134 characters
 31 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 193 characters
 32 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 128 characters
 33 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 155 characters
 34 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 128 characters
 35 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 129 characters
 36 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 135 characters
 37 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 136 characters
 38 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 128 characters
 39 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 129 characters
 40 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 132 characters
 41 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 131 characters
 42 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 123 characters
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/settings/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 23 | �[33mWARNING�[0m | Method name "_importSettings" should not be prefixed with an underscore to
    |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/sitemap/Info.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 13 ERRORS AFFECTING 9 LINES�[0m
------------------------------------------------------------------------------------------------
  4 | �[31mERROR�[0m | [x] Whitespace found at end of line
 17 | �[31mERROR�[0m | [x] Spaces must be used to indent lines; tabs are not allowed
 17 | �[31mERROR�[0m | [x] Spaces must be used for alignment; tabs are not allowed
 17 | �[31mERROR�[0m | [x] Spaces must be used for alignment; tabs are not allowed
 20 | �[31mERROR�[0m | [x] Expected 1 space after FUNCTION keyword; 0 found
 20 | �[31mERROR�[0m | [x] Expected 1 space after USE keyword; found 0
 21 | �[31mERROR�[0m | [x] Opening brace should be on the same line as the declaration
 23 | �[31mERROR�[0m | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 24 | �[31mERROR�[0m | [x] Expected 1 space after FUNCTION keyword; 0 found
 24 | �[31mERROR�[0m | [x] Expected 1 space after USE keyword; found 0
 25 | �[31mERROR�[0m | [x] Opening brace should be on the same line as the declaration
 27 | �[31mERROR�[0m | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 28 | �[31mERROR�[0m | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/sitemap/Site.php�[0m
-----------------------------------------------------------------------------------------------
�[1mFOUND 42 ERRORS AND 3 WARNINGS AFFECTING 23 LINES�[0m
-----------------------------------------------------------------------------------------------
  4 | �[31mERROR�[0m   | [x] Whitespace found at end of line
 16 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 0 spaces, found 4
 18 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
 20 | �[31mERROR�[0m   | [x] Expected 1 space after FUNCTION keyword; 0 found
 36 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 36 | �[31mERROR�[0m   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
 36 | �[31mERROR�[0m   | [x] Expected 1 space(s) after closing parenthesis; found newline
 41 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
 41 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
 41 | �[31mERROR�[0m   | [x] TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
 44 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
 44 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
 46 | �[33mWARNING�[0m | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
 46 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 16 spaces, found 20
 46 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
 46 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
 48 | �[33mWARNING�[0m | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
 48 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 16 spaces, found 20
 48 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
 48 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
 50 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 16 spaces, found 20
 50 | �[31mERROR�[0m   | [x] Expected 1 space(s) after ELSE keyword; newline found
 50 | �[31mERROR�[0m   | [x] Inline control structures are not allowed
 52 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 56 | �[33mWARNING�[0m | [ ] Line exceeds 120 characters; contains 293 characters
 57 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 57 | �[31mERROR�[0m   | [x] Expected 1 space(s) after IF keyword; 0 found
 57 | �[31mERROR�[0m   | [x] Expected 1 space(s) after closing parenthesis; found newline
 63 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 63 | �[31mERROR�[0m   | [x] Expected 1 space after closing brace; newline found
 64 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 64 | �[31mERROR�[0m   | [x] Expected 1 space(s) after ELSE keyword; newline found
 67 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 68 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 68 | �[31mERROR�[0m   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
 68 | �[31mERROR�[0m   | [x] Expected 1 space(s) after closing parenthesis; found newline
 75 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 76 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 76 | �[31mERROR�[0m   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
 76 | �[31mERROR�[0m   | [x] Expected 1 space(s) after closing parenthesis; found newline
 82 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 12 spaces, found 16
 85 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 8 spaces, found 12
 86 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 4 spaces, found 8
 87 | �[31mERROR�[0m   | [x] Expected 1 newline at end of file; 0 found
 87 | �[31mERROR�[0m   | [x] Line indented incorrectly; expected 0 spaces, found 4
-----------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 44 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
-----------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/snippets/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 166 | �[33mWARNING�[0m | Method name "_add2header" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/snippets/Site.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
------------------------------------------------------------------------------------------------
 23 | �[33mWARNING�[0m | Method name "_importSnippets" should not be prefixed with an underscore to
    |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/statistics/DB.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES�[0m
------------------------------------------------------------------------------------------------
  1 | �[33mWARNING�[0m | [ ] A file should declare new symbols (classes, functions, constants, etc.) and
    |         |     cause no other side effects, or it should execute logic with side effects,
    |         |     but should not do both. The first symbol is defined on line 7 and the first
    |         |     side effect is on line 15.
 16 | �[31mERROR�[0m   | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/statistics/Info.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
----------------------------------------------------------------------
 42 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 130 characters
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/statistics/phpbrowserdetector/BrowserDetector.php�[0m
------------------------------------------------------------------------------------------
�[1mFOUND 7 ERRORS AFFECTING 7 LINES�[0m
------------------------------------------------------------------------------------------
  16 | �[31mERROR�[0m | [x] Short array syntax must be used to define arrays
 212 | �[31mERROR�[0m | [ ] Expected 1 space after closing brace; newline found
 221 | �[31mERROR�[0m | [x] Short array syntax must be used to define arrays
 229 | �[31mERROR�[0m | [x] Short array syntax must be used to define arrays
 269 | �[31mERROR�[0m | [ ] Expected 1 space after closing brace; newline found
 282 | �[31mERROR�[0m | [ ] Expected 1 space after closing brace; newline found
 524 | �[31mERROR�[0m | [x] Short array syntax must be used to define arrays
------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/statistics/phpbrowserdetector/LanguageDetector.php�[0m
-------------------------------------------------------------------------------------------
�[1mFOUND 1 ERROR AFFECTING 1 LINE�[0m
-------------------------------------------------------------------------------------------
 18 | �[31mERROR�[0m | [x] Short array syntax must be used to define arrays
-------------------------------------------------------------------------------------------
�[1mPHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY�[0m
-------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/statistics/phpbrowserdetector/OsDetector.php�[0m
-------------------------------------------------------------------------------------
�[1mFOUND 2 ERRORS AFFECTING 2 LINES�[0m
-------------------------------------------------------------------------------------
  60 | �[31mERROR�[0m | Expected 1 space after closing brace; newline found
 188 | �[31mERROR�[0m | Expected 1 space after closing brace; newline found
-------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/users/Admin.php�[0m
------------------------------------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES�[0m
------------------------------------------------------------------------------------------------
 214 | �[33mWARNING�[0m | Method name "_getModules" should not be prefixed with an underscore to
     |         | indicate visibility
 238 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 124 characters
 248 | �[33mWARNING�[0m | Method name "_userAlreadyExists" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/users/Info.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES�[0m
----------------------------------------------------------------------
 47 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 142 characters
 48 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 402 characters
----------------------------------------------------------------------


�[1mFILE: ~/www/batflat/inc/modules/users/Site.php�[0m
----------------------------------------------------------------------
�[1mFOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE�[0m
----------------------------------------------------------------------
 22 | �[33mWARNING�[0m | Line exceeds 120 characters; contains 125 characters
----------------------------------------------------------------------

Time: 10.73 secs; Memory: 18Mb

Blog module

I've got 2 posts but I can't display list.

The following code does not return anything.

{loop: $blog.posts}
<article class="project">
    <header>
        {if: $value.cover_photo}
            <a href="{$value.url}">
                <img src="{$value.cover_url}" alt="{$value.title}" class="thumbnail">
            </a>
        {/if}
        <h3>{$value.title}</h3>
    </header>
    <p>{$value.desc}</p>
    <div class="text-right">
        <a href="{$value.url}" target="blank">(...)</a>
    </div>
</article>
{/loop}

The following code does return only "1".

{?= print_r($blog.posts) ?}

Where do I make a mistake?

pages not showing up

Hello,

New install, no changes made other than changing the password.

default pages of /content and /about-me not showing up. When clicking on preview, it redirects to /en/about-me.
When creating a new page, same thing, redirects to /en/new-page

I get a 404 error message.

Phpmailer in contact form

Hi,
I have installed PhpMailer in the project directory with composer. So I have a "vendor" folder with inside the autoload.php and the phpmailer folder.
But the contact form is not working and I still get the message "Sorry, I can't find PHPMailer class. Please, execute composer require phpmailer/phpmailer in your project terminal."
Thanks for helping.

Fix translations load

Would be nice to zip parser fix relative path to inc/ folder.
For example batflat-se-master.zip or taged realeases like batflat-ru-1.3.3.zip.

Any way translation contain js file for wysiwyg editor and most available translations not compatible with current parser.

My proposal:

diff --git a/inc/modules/settings/Admin.php b/inc/modules/settings/Admin.php
index f05b812..856a178 100644
--- a/inc/modules/settings/Admin.php
+++ b/inc/modules/settings/Admin.php
@@ -271,31 +271,38 @@ class Admin extends AdminModule
             
         if (isset($_POST['upload']) && FILE_LOCK === false) {
             $zip = new ZipArchive();
-            $error = false;
+            $allowedDest = '/(.*?inc\/)((jscripts|lang|modules).*$)/';
+            $count = 0;
             $file = !empty($_FILES['lang_package']['tmp_name']) ? $_FILES['lang_package']['tmp_name'] : '/';
             $open = $zip->open($file);
             if ($open === true) {
                 for ($i = 0; $i < $zip->numFiles; $i++) {
                     $filename = pathinfo($zip->getNameIndex($i));
+                    if (isset($filename['extension'])
+                            && ($filename['extension'] == 'ini' || $filename['extension'] == 'js')
+                        ) {
+                        preg_match($allowedDest, $filename['dirname'], $matches);
+                        $dest = realpath(BASE_DIR) . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . $matches[2];
+                        if (!file_exists($dest)) {
+                            mkdir($dest, 0755, true);
+                        }
 
-                    if (strpos($filename['dirname'].'/', '/lang/') === false) {
-                        $error = true;
-                        break;
-                    }
-
-                    if ($filename['extension'] != 'ini') {
-                        $error = true;
-                        break;
+                        copy(
+                            'zip://' . $file . '#' . $filename['dirname']
+                                . DIRECTORY_SEPARATOR . $filename['basename'],
+                            $dest . DIRECTORY_SEPARATOR . $filename['basename']
+                        );
+                        $count++;
                     }
                 }
-
-                if (!$error) {
-                    $zip->extractTo(BASE_DIR);
-                    $zip->close();
+                
+                if ($count > 0) {
                     $this->notify('success', $this->lang('lang_import_success'));
                 } else {
                     $this->notify('failure', $this->lang('lang_import_error'));
                 }
+                
+                $zip->close();
             }
         }
 

P.S.: Why you not load repo on github for community contribution? Much simpler use git function to share and discuss code.

Custom field as css class for posts

Hello batflat Team!
I would like to include a special css class for each post. Can I add / set up this type of feature as a text input field? If is a "yes" how?
Thanks!

No fallback in Gallery for thumbnail if $width < 150 px

If image uploaded to Gallery will have smaller width than 150 px - there is no fallback, so there will be no thumbnail and thus no image preview in Admin.

This will also generate:
Notice: Undefined index: xs in C:\xampp\htdocs\batflat\inc\modules\galleries\Admin.php on line 133

Basic workaround (it will treat image itself as thumbnail):

 else
 {
	$src[$key] = str_replace(BASE_DIR.'/', null, $imgPath);
 }

Missing Batflat translations

Hello, Batflat community! 🦇
We miss several translations and we need your help!

ℹ️ After clicking Click to expand you will see source translations. All you need to do is translate English phrases into the given languages.

🇹🇷 Turkish:

Click to expand!

modules/dashboard/lang/admin:

rss_fail_title = "Connection timeout"
rss_fail_desc = "Unable to download latest news from Batflat.org."

modules/devbar/lang/admin:

module_name = "Debug bar"
module_desc = "Shows helpful information for developers"

modules/searchbox/lang:

placeholder = "Search for..."
results_fo = "Search results for '%s'"
too_short_phrase  = "The phrase you entered is too short! Please enter at least %d characters."
no_results = "No results found for '%s'."

modules/searchbox/lang/admin:

module_desc = "Allows you to search for pages and blog entries that contain the phrase you entered."

modules/sitemap/lang/admin:

module_name = "Sitemap generator"
module_desc = "Sitemap.xml generator for Batflat."

modules/statstics/lang/admin:

Missing all translations below:

module_name     = "Statistics"
module_desc     = "Provides simple statistics information about website."
unique_today    = "Unique today"
today_visits    = "Today visits"
online          = "Online"
unique          = "Unique"
all_unique      = "All unique"
visits          = "Visits"
all_visits      = "All visits"
show            = "Show all"
all_referrals   = "All referrals"
yesterday       = "Yesterday"
7days           = "Latest 7 days"
30days          = "Latest 30 days"
total           = "Total"
target          = "Target"
pages           = "Pages"
os              = "Operating Systems"
browsers        = "Browsers"
countries       = "Countries"
referrals       = "Referral URLs"
direct_visit    = "direct visit"
url             = "Url"
all_pages       = "All website visits"
referrals_from  = "All pages reffered from"
from_address    = "From url"
stats_page      = "Stats for page"

🇸🇪 Swedish:

Click to expand!

modules/devbar/lang/admin:

module_name = "Debug bar"
module_desc = "Shows helpful information for developers"

modules/searchbox/lang:

placeholder = "Search for..."
results_fo = "Search results for '%s'"
too_short_phrase  = "The phrase you entered is too short! Please enter at least %d characters."
no_results = "No results found for '%s'."

modules/searchbox/lang/admin:

module_desc = "Allows you to search for pages and blog entries that contain the phrase you entered."

modules/sitemap/lang/admin:

module_name = "Sitemap generator"
module_desc = "Sitemap.xml generator for Batflat."

modules/statstics/lang/admin:

module_name     = "Statistics"
module_desc     = "Provides simple statistics information about website."
unique_today    = "Unique today"
today_visits    = "Today visits"
online          = "Online"
unique          = "Unique"
all_unique      = "All unique"
visits          = "Visits"
all_visits      = "All visits"
show            = "Show all"
all_referrals   = "All referrals"
yesterday       = "Yesterday"
7days           = "Latest 7 days"
30days          = "Latest 30 days"
total           = "Total"
target          = "Target"
pages           = "Pages"
os              = "Operating Systems"
browsers        = "Browsers"
countries       = "Countries"
referrals       = "Referral URLs"
direct_visit    = "direct visit"
url             = "Url"
all_pages       = "All website visits"
referrals_from  = "All pages reffered from"
from_address    = "From url"
stats_page      = "Stats for page"

🇮🇹 Italian:

Click to expand!

modules/searchbox/lang:

Done. Thanks @tecnoweb

modules/searchbox/lang/admin:

module_desc = "Allows you to search for pages and blog entries that contain the phrase you entered."

modules/sitemap/lang/admin:

module_name = "Sitemap generator"
module_desc = "Sitemap.xml generator for Batflat."

modules/statstics/lang/admin:

module_name     = "Statistics"
module_desc     = "Provides simple statistics information about website."
unique_today    = "Unique today"
today_visits    = "Today visits"
online          = "Online"
unique          = "Unique"
all_unique      = "All unique"
visits          = "Visits"
all_visits      = "All visits"
show            = "Show all"
all_referrals   = "All referrals"
yesterday       = "Yesterday"
7days           = "Latest 7 days"
30days          = "Latest 30 days"
total           = "Total"
target          = "Target"
pages           = "Pages"
os              = "Operating Systems"
browsers        = "Browsers"
countries       = "Countries"
referrals       = "Referral URLs"
direct_visit    = "direct visit"
url             = "Url"
all_pages       = "All website visits"
referrals_from  = "All pages reffered from"
from_address    = "From url"
stats_page      = "Stats for page"

ℹ️ In the reply, please write:

  • language name,
  • path/to/file
  • code = translation

Fix miss devbar translation

Sorry that the Polish translation is empty.

diff --git a/inc/modules/devbar/Info.php b/inc/modules/devbar/Info.php
index 93aae06..b19b3bf 100644
--- a/inc/modules/devbar/Info.php
+++ b/inc/modules/devbar/Info.php
@@ -10,8 +10,8 @@
 */
 
 return [
-    'name'          =>  'Debug bar',
-    'description'   =>  'Shows helpful information for developers',
+    'name'          =>  $core->lang['devbar']['module_name'],
+    'description'   =>  $core->lang['devbar']['module_desc'],
     'author'        =>  'Sruu.pl',
     'version'       =>  '1.0',
     'compatibility' =>  '1.3.*',
diff --git a/inc/modules/devbar/lang/admin/en_english.ini b/inc/modules/devbar/lang/admin/en_english.ini
new file mode 100644
index 0000000..4d1a54a
--- /dev/null
+++ b/inc/modules/devbar/lang/admin/en_english.ini
@@ -0,0 +1,2 @@
+module_name             = "Debug bar"
+module_desc             = "Shows helpful information for developers"
diff --git a/inc/modules/devbar/lang/admin/pl_polski.ini b/inc/modules/devbar/lang/admin/pl_polski.ini
new file mode 100644
index 0000000..e80ebb8
--- /dev/null
+++ b/inc/modules/devbar/lang/admin/pl_polski.ini
@@ -0,0 +1,2 @@
+module_name             = ""
+module_desc             = ""

Labels not visible after creating new language file

Hello,

I like the simplicity of this CMS, but I have run into one issue: I created a new language file (German) from the backend and then switched the backend to this new language. But nearly all of the labels were gone, like those in the left navigation bar and also below the tiles on the dashboard. It seems like in the Englisch language file, many expressions are missing, which could be translated.

Kind regards,
Torsten

Batflat license system - The return link has been deleted or modified.

Recently I noticed that all my batflat blogs are not working. There is an info: "Batflat license system - The return link has been deleted or modified."

There were no changes in configuration (or templates) made by me for aprox. 1 year.

I tried to google the solution but with no success.

I use the Batblog template, footer contains section:

<!-- Footer -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                    <p class="copyright text-muted">
                        {$settings.footer}
                        {$bat.powered}.
                    </p>
                </div>
            </div>
        </div>
    </footer>

    {loop: $bat.footer}{$value}{/loop}

</body>

</html>

Batflat: 1.3.5,
License: free
PHP: 5.6.39
SQLite: 3.8.10.2

My blog: www.zakrzowek.info

Any clues?

Bootstrap 4 Navigation

I think there is should be an option on the settings page to use Bootstrap 3 or 4. Because the HTML structure of the navigation is slightly different. Thanks.

Change Editor in Batflat CMS, and more Addons

Change Editor in Batflat CMS,

Maybe you should bring something better about this part.

Maybe, https://imperavi.com/redactor/ , https://froala.com/wysiwyg-editor/

Will we have any innovations from the Addons, Themes, Plugins section.

Suggestions:
A general manual is needed that explains each plugin how to use, what should be used in the template, etc ... ( Sample: https://www.pulsecms.com/help/convert-html-template-to-pulse )

For the good of Batflat,
All the best,
Armendi :)

FTP/ Server config

Hi all, after using the CMS to create my site, i've gone to upload it to my host domain but only the index page shows up and everything else returns an error if i go to click on a new page or login.

Its super weird because it works perfectly and is super fast when i was testing using MAMP. Ive also double checked my host requirements such as PHP and Apache and they are all the same as my localhost. Have i done something wrong?

My hosting provider is go daddy and i'm using a mac.

Appreciate the help and love the product.

Security issue

There is a big security-issue. The only thing you need is to download the database and open it with notepad. You can view all users and all hashed passwords.

How to change the thumbnail's width ?

Hello,
How to change the thumbnail's width when the image format is landscape?
When the format is "portrait" I manage to modify the height by replacing in theme.js

$('.thumbnail', this).height( $(this).width()*1 );
by
$('.thumbnail', this).height( $(this).width() - 5 );
By doing this the height is increased. However I do not manage to do the same for the width.
Thanks for any help.

Best regards

Tino

Admin dashboard

Hello

I just downloaded the free batflat version from the project website.

Unfortunately, the admin directory contains only the index and htaccess files. There are no directories, therefore logging into the administration panel always results in the message NOT FOUND admin/dashboard .....

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.