Home English Deutsch Русский
English Deutsch Русский

ANOTHER CONTENT MANAGEMENT SYSTEM

BUILT WITH PHP AND SQLITE

Content: 40 html website templates, install another CMS, simple menu, news, HTTP security headers.


40 html website templates

Some responsive W3.CSS website templates.


Install another CMS

Before installing another CMS verify you have installed PHP and Sqlite3 extension. On Debian server it would be like apt-get install php-fpm php-sqlite3 php-gd.

  1. Download and unzip the archive
  2. Upload the CMS files to the desired location on your web server
  3. Run the setup script from web browser http://domain/setup/index.php
  4. Once configuration is successfully finished remove the setup folder

Simple menu

In case you need to display on page one particular level of menu create template first.

1. Go to Home -> Modules -> File Manager. Open the file /templates/menu_top.tpl in text editor, put the code and save:

<div class="w3-bar w3-teal w3-card w3-medium">
{section name=custom loop=$menu_tree}
{if $menu_tree[custom].active>0 and $menu_tree[custom].level==1 and $menu_tree[custom].content_type ne 'folder'}
<a href="{$menu_tree[custom].name}" class="w3-bar-item w3-button w3-padding-medium">{$menu_tree[custom].title}</a>
{/if}
{/section}
</div>

2. Then go to Home -> Modules -> Web Pages

3. and assign new template to menu items

4. Open the page in web browser and verify result


News

If the website is updated regularly, a news area makes sense. First create a template.

1. Go to Home -> Modules -> File Manager Open the file /templates/content_news.tpl in text editor, put the code and save:

{section name=custom loop=$news_list}
<div class="w3-row-padding w3-padding-8 w3-container w3-white">
<div class="w3-content">
{$news_list[custom].message}
<hr />{$news_list[custom].modifytime|date_format:"%d.%m.%Y %H:%M"}
</div>
</div>
{/section}

2. Then go to Home -> Modules -> Web Pages

3. and assign new template to menu items

38: sample_menu_004.png

4. Finally create news under Home -> Modules -> News Feed and assign them to webpages

37: sample_menu_005.png


Hardening HTTP security headers

Important security headers are preconfigured in another CMS.
Open the file .htaccess in root folder of Apache web server, here you find

# Security headers
Header always set X-Powered-By "Me"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Referrer-Policy "strict-origin"
Header always set X-Content-Type-Options "nosniff"

In case of lighttpd web server find the configuration in /etc/lighttpd/lighttpd.conf

# https headers
$HTTP["scheme"] == "https" {
setenv.add-response-header = ( "Strict-Transport-Security" => "max-age=31536000; includeSubDomains" )
setenv.add-response-header += ( "X-Frame-Options" => "SAMEORIGIN")
setenv.add-response-header += ( "X-Powered-By" => "Me")
setenv.add-response-header += ( "X-Content-Type-Options" => "nosniff")
setenv.add-response-header += ( "Referrer-Policy" => "strict-origin")
}

 

Contact

Andrey Marchenko
Riedererstr.10
85737 Ismaning
Tel.: +49 (0)89 230046610 (No Support)