Git Product home page Git Product logo

jan-paul-kleijn / simplecs Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.38 MB

Simple content system: A small but powerful content system which can create webpages, blogpages and an agenda. It produces true XHTML (content-type: application/xhtml+xml).

Home Page: https://web2.werkzien.nl/

License: GNU General Public License v3.0

PHP 55.36% CSS 6.90% JavaScript 26.16% ColdFusion 2.16% Java 5.26% Lasso 0.16% Python 0.47% HTML 0.17% Classic ASP 2.48% ASP.NET 0.83% SourcePawn 0.06%
content-management-system xhtml agenda blog-platform single-user

simplecs's Introduction

SimpleCS

Lightweight XHTML Content System

About

SimpleCS is a lightweight Content System written in PHP and paired with a MySQL database. This multilingual system gives you the maximum amount of freedom for creating outrageous and extravagant websites. It features FCKeditor as content editor and produces a very efficient XHTML result.

Included is an events calendar that sports various modes of display and a handy javascript enhanced gallery that is coupled with the FCKeditor plugin called Artistry. For uploading pictures and the like, SimpleCS is equipped with an easy to use Filemanager.

The blog pages and events can be expanded with comments which can be turned on or off on each page. A straightforward website contact page is standard available after installation. Further features include Clean URLs, categories & subcategories, RSS/Atom, website search and more.

Installation

The installation of SimpleCS is pretty straightforward.
  • Copy all files in this repository to your web directory.
  • Create a new MySQL database along with a database user and make sure that the user has all rights to use this database.
  • Edit scs-config.php to reflect the database and database user information that you just created.
  • Run scs-install.php to create the neccessary database tables and content.

Logging in for the first time

After you installed SimpleCS you can log in by navigating to https//www.yourdomain.com/login, where yourdomain.com is a placeholder for your domain name and TLD.

To login you can fill in your username and password, which are set both as administrator by default.

After you log in for the first time it's very important to change the default username and password to make sure that only you have access to the backend of your website.

Functions available

isHomepage()

Indicates if the page shown is the homepage.

Returns true or false (bool)

isUser()

Indicates if the current user is logged in as administrator or not.

Returns true or false (bool)

frontendMode()

Indicates if the current page shown is the frontend or the backend.

Returns true or false (bool)

getIdentity()

Identifies the name of the underlying page that produces the current webpage that is shown. Normally speaking this would be index.php.

Returns the physical page name (string)

is404()

Indicates if the current page exists or not.

Returns true or false (bool)

isArticle(slug)

Indicates if the page named [slug] is a blogpage.

Returns true or false (bool)

isPage(slug)

Indicates if the page named [slug] is a webpage.

Returns true or false (bool)

isEvent(slug)

Indicates if the page named [slug] is a event page (for the agenda).

Returns true or false (bool)

isCategory(slug)

Indicates if the page named [slug] is a blog category.

Returns true or false (bool)

isMainCategory(slug)

Indicates if the the page named [slug] is a main category of the blog.

Returns true or false (bool)

isSubCategory(slug)

Indicates if the page named [slug] is a sub category of the blog

Returns true or false (bool)

getCatIdBySEF(slug)

This function can be used to get the id of the category by slug.

Returns the category id (INT)

getCat(categoryID)

This function can be used to get the slug of the category by id.

Returns the category slug (INT)

s(name)

Retrieve a value from the SimpleCS settings.

Returns the setting value (string)

l(key)

Translates a key to the language set in the SimpleCS settings.

Returns the translated value that corresponds with the provided [key] (string)

tabindex(interval)

Retrieves the current tabindex. The [interval] value can be used to start the tabindex with this number.

Returns the (HTML) tabindex (INT)

simplecs's People

Contributors

jan-paul-kleijn avatar

Watchers

 avatar

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.