Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
inc
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

TSW Details Nano Blog

Overview

  • PHP, HTML5, Twitter Bootstrap, jQuery
  • Small foot-print blog platform
  • Easy to follow PHP - no hidden functions
  • Code is WYSIWYG on page
  • No hunting through folders to find model
  • Some helper routines but no controllers
  • Loads faster than MVC based blogs
  • Runs fater than MVC
  • Curates PHP as an API not an alternative
  • TSW Login-Register included
  • Utilises jQuery TE for text-editor
  • several security functions and sanitizers
  • Uses PHP Pagination Class

Code Example

Example of security measures using PDO and PHP5 var_filters

$prv_pub = filter_var( 1,  FILTER_VALIDATE_INT );
    //Grab all non-private items from db
    require_once 'inc/dbh.php';
    $sql = "SELECT * FROM tsw_details WHERE prv = $prv_pub";  //Placeholder not used(integer clean)
    $result = $dbh->query( $sql );
        //Parse returned data, and displays them
        while( $row = $result->fetch( PDO::FETCH_ASSOC )) {
        $idd_int = $row['idd']; if( !filter_var( $idd_int, FILTER_VALIDATE_INT ) === false ) { 

Motivation

Main motive is to advance the use of PHP out-of-the-box coding over MVC and framework deployment of a CMS. All code for the core application is written and executed in PDO so that any intermediate coder can run their website with a zero learning learning curve. There may be many whom disagree with my intentions to promote "less" MVC but this project is for intermediate learners of PDO and will remain devoted to those people so that the basics of PHP can be understood and the scope of applying PDO and PHP in there "raw" forms will promolgate better understanding of coding.

Installation

Very basic PHP Apache Server, LAMP style install:

  • Create a database or just add the tables to an existing database
  • The tables are in the inc directory; file named sql.txt
  • ** Change the URL in tsw_settings (theme_url) sql table BEFORE adding tables!!! **
  • Add database connection credentials in inc/dbh.php
  • You can register as a new editor or use default in inc/settings.php
  • IMPORTANT!
  • Remember this is viewable on Github so you better change login ASAP

demo: http://tradesouthwest.com/dev/details uri: http://tradesouthwest.com/apps/details/

Contributors

Open for contributions. thanks http://jqueryte.com/ - jQuery TE thanks http://www.daveismyname.com PHP Pagination Class thanks Twitter Bootstrap

License

Licensed under MIT License (MIT). http://opensource.org/licenses/MIT

About

Small foot-print blog platform

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.