Skip to content

speleoalex/finis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FINIS Framework and CMS

F.I.N.I.S.: Flatnux Is Now Infinitely Scalable

Installation instructions (C.M.S.):

  1. Copy include/config.vars.local.php.sample to config.vars.local.php
  2. Upload all files to your website folder
  3. Go to http://[your website]/
  4. Run the wizard

Documentation

FINIS includes comprehensive documentation in the /doc folder:

Italian Documentation

Creating PHP applications in framework mode

./sections/home/section.en.html

<h1>FINIS !!!</h1>

./sections/home/section.php

<?php
global $_FN;
echo "<h1>FINIS !!!</h1>";
echo $_FN['siteurl'];

example.php

<?php
require_once "../finis/FINIS.php";
$FINIS = new FINIS();
$FINIS->runSection("home");

Creating Python application in framework mode

./sections/home/section.py

import json
import sys

json_data = sys.argv[1]
# Parse the JSON data
FN = json.loads(json_data)
print(f"""
Site url: {FN['siteurl']}
""")

./example.php

<?php
require_once "../finis/FINIS.php";
$FINIS = new FINIS();
$FINIS->runSection("home");

Creating NodeJS application in framework mode

./sections/home/section.js

// Funzione per ottenere la data e l'ora correnti
function getCurrentDateTime() {
    const now = new Date();
    const date = now.toLocaleDateString();
    const time = now.toLocaleTimeString();
    return {date, time};
}

// Funzione per creare il contenuto HTML
function createHtmlContent() {
    const {date, time} = getCurrentDateTime();
    const message = "Benvenuto nel nostro sito!";
    return `
        <h1>${message}</h1>
        <p>Data: ${date}</p>
        <p>Ora: ${time}</p>
    `;
}
console.log(createHtmlContent());

try {
    const FN = JSON.parse(process.argv[2]);
    console.log("<pre>");
    console.log("Site url:" + FN['siteurl']);
    console.log("User:" + FN['user']);
    console.log("</pre>");
} catch (error) {
    const FN = {};
}

Create a complete, configurable website, complete with backend, administration interface and user management

<?php
require_once "path_src_finis/FINIS.php";
$FINIS = new FINIS(array("src_application"=> "."));

$FINIS->finis();

About

FINIS: Flatnux Is Now Infinitely Scalable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors