├── .DS_Store ├── helpers ├── .DS_Store ├── format_helper.php ├── system_helper.php └── db_helper.php ├── libraries ├── .DS_Store ├── Validator.php ├── Template.php ├── Database.php ├── User.php └── Topic.php ├── images └── avatars │ ├── amritms.jpg │ ├── dprabin.jpg │ ├── gravatar.jpg │ └── rkbhushal.jpg ├── templates ├── img │ └── gravatar.jpg ├── js │ ├── ckeditor │ │ ├── plugins │ │ │ ├── icons.png │ │ │ ├── icons_hidpi.png │ │ │ ├── link │ │ │ │ ├── images │ │ │ │ │ ├── anchor.png │ │ │ │ │ └── hidpi │ │ │ │ │ │ └── anchor.png │ │ │ │ └── dialogs │ │ │ │ │ └── anchor.js │ │ │ ├── about │ │ │ │ └── dialogs │ │ │ │ │ ├── logo_ckeditor.png │ │ │ │ │ ├── hidpi │ │ │ │ │ └── logo_ckeditor.png │ │ │ │ │ └── about.js │ │ │ ├── dialog │ │ │ │ └── dialogDefinition.js │ │ │ └── clipboard │ │ │ │ └── dialogs │ │ │ │ └── paste.js │ │ ├── skins │ │ │ └── moono │ │ │ │ ├── icons.png │ │ │ │ ├── icons_hidpi.png │ │ │ │ ├── images │ │ │ │ ├── arrow.png │ │ │ │ ├── close.png │ │ │ │ ├── lock.png │ │ │ │ ├── refresh.png │ │ │ │ ├── hidpi │ │ │ │ │ ├── lock.png │ │ │ │ │ ├── close.png │ │ │ │ │ ├── refresh.png │ │ │ │ │ └── lock-open.png │ │ │ │ └── lock-open.png │ │ │ │ └── readme.md │ │ ├── samples │ │ │ ├── assets │ │ │ │ ├── sample.jpg │ │ │ │ ├── inlineall │ │ │ │ │ └── logo.png │ │ │ │ ├── uilanguages │ │ │ │ │ └── languages.js │ │ │ │ ├── posteddata.php │ │ │ │ └── outputxhtml │ │ │ │ │ └── outputxhtml.css │ │ │ ├── sample_posteddata.php │ │ │ ├── plugins │ │ │ │ ├── dialog │ │ │ │ │ └── assets │ │ │ │ │ │ └── my_dialog.js │ │ │ │ └── enterkey │ │ │ │ │ └── enterkey.html │ │ │ ├── sample.js │ │ │ ├── appendto.html │ │ │ ├── tabindex.html │ │ │ ├── uicolor.html │ │ │ ├── ajax.html │ │ │ ├── readonly.html │ │ │ ├── uilanguages.html │ │ │ ├── divreplace.html │ │ │ ├── inlinetextarea.html │ │ │ └── index.html │ │ ├── config.js │ │ ├── README.md │ │ ├── contents.css │ │ ├── adapters │ │ │ └── jquery.js │ │ ├── build-config.js │ │ ├── lang │ │ │ ├── zh.js │ │ │ ├── zh-cn.js │ │ │ ├── ja.js │ │ │ ├── ko.js │ │ │ ├── he.js │ │ │ ├── ar.js │ │ │ ├── gu.js │ │ │ ├── hi.js │ │ │ ├── af.js │ │ │ ├── fa.js │ │ │ ├── si.js │ │ │ ├── sv.js │ │ │ ├── bn.js │ │ │ ├── en.js │ │ │ ├── mk.js │ │ │ ├── en-au.js │ │ │ └── en-ca.js │ │ └── styles.js │ └── npm.js ├── fonts │ ├── glyphicons-halflings-regular.eot │ ├── glyphicons-halflings-regular.ttf │ └── glyphicons-halflings-regular.woff ├── register.php ├── create.php ├── topics.php ├── frontpage.php ├── css │ └── custom.css ├── topic.php └── includes │ ├── header.php │ └── footer.php ├── config └── config.php ├── core └── init.php ├── logout.php ├── index.php ├── login.php ├── topics.php ├── create.php ├── topic.php ├── README.md └── register.php /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/.DS_Store -------------------------------------------------------------------------------- /helpers/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/helpers/.DS_Store -------------------------------------------------------------------------------- /libraries/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/libraries/.DS_Store -------------------------------------------------------------------------------- /images/avatars/amritms.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/images/avatars/amritms.jpg -------------------------------------------------------------------------------- /images/avatars/dprabin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/images/avatars/dprabin.jpg -------------------------------------------------------------------------------- /images/avatars/gravatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/images/avatars/gravatar.jpg -------------------------------------------------------------------------------- /images/avatars/rkbhushal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/images/avatars/rkbhushal.jpg -------------------------------------------------------------------------------- /templates/img/gravatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/img/gravatar.jpg -------------------------------------------------------------------------------- /templates/js/ckeditor/plugins/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/plugins/icons.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/icons.png -------------------------------------------------------------------------------- /templates/js/ckeditor/plugins/icons_hidpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/plugins/icons_hidpi.png -------------------------------------------------------------------------------- /templates/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /templates/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /templates/js/ckeditor/samples/assets/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/samples/assets/sample.jpg -------------------------------------------------------------------------------- /templates/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/icons_hidpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/icons_hidpi.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/images/arrow.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/images/close.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/images/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/images/lock.png -------------------------------------------------------------------------------- /templates/js/ckeditor/plugins/link/images/anchor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/plugins/link/images/anchor.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/images/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/images/refresh.png -------------------------------------------------------------------------------- /templates/js/ckeditor/samples/assets/inlineall/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/samples/assets/inlineall/logo.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/images/hidpi/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/images/hidpi/lock.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/images/lock-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/images/lock-open.png -------------------------------------------------------------------------------- /templates/js/ckeditor/plugins/link/images/hidpi/anchor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/plugins/link/images/hidpi/anchor.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/images/hidpi/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/images/hidpi/close.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/images/hidpi/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/images/hidpi/refresh.png -------------------------------------------------------------------------------- /templates/js/ckeditor/skins/moono/images/hidpi/lock-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/skins/moono/images/hidpi/lock-open.png -------------------------------------------------------------------------------- /templates/js/ckeditor/plugins/about/dialogs/logo_ckeditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/plugins/about/dialogs/logo_ckeditor.png -------------------------------------------------------------------------------- /templates/js/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dprabin/simple-php-forum-application/HEAD/templates/js/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png -------------------------------------------------------------------------------- /templates/js/ckeditor/plugins/dialog/dialogDefinition.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | -------------------------------------------------------------------------------- /config/config.php: -------------------------------------------------------------------------------- 1 | 2 | logout()){ 8 | redirect('index.php','You have been logged out.', 'success'); 9 | } else { 10 | redirect('index.php','Something went wrong.', 'error'); 11 | } 12 | } else { 13 | redirect('index.php'); 14 | } 15 | 16 | ?> -------------------------------------------------------------------------------- /templates/js/npm.js: -------------------------------------------------------------------------------- 1 | // This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment. 2 | require('../../js/transition.js') 3 | require('../../js/alert.js') 4 | require('../../js/button.js') 5 | require('../../js/carousel.js') 6 | require('../../js/collapse.js') 7 | require('../../js/dropdown.js') 8 | require('../../js/modal.js') 9 | require('../../js/tooltip.js') 10 | require('../../js/popover.js') 11 | require('../../js/scrollspy.js') 12 | require('../../js/tab.js') 13 | require('../../js/affix.js') -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 2 | topics = $topic->getAllTopics(); 13 | $template->totalTopics = $topic->getTotalTopics(); 14 | $template->totalCategories = $topic->getTotalCategories(); 15 | $template->totalUsers = $user->getTotalUsers(); 16 | 17 | //Display template 18 | echo $template; 19 | 20 | ?> -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | 2 | login($username, $password)){ 12 | redirect('index.php','You have been logged in.', 'success'); 13 | } else { 14 | redirect('index.php','Invalid login', 'error'); 15 | } 16 | } else { 17 | redirect('index.php'); 18 | } 19 | 20 | ?> -------------------------------------------------------------------------------- /libraries/Validator.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /helpers/format_helper.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /libraries/Template.php: -------------------------------------------------------------------------------- 1 | template = $template; 15 | } 16 | 17 | //Get template variables 18 | public function __get($key){ 19 | return $this->vars[$key]; 20 | } 21 | 22 | //Set template variables 23 | public function __set($key, $value){ 24 | $this->vars[$key] = $value; 25 | } 26 | 27 | //Convert Object to String 28 | public function __toString(){ 29 | extract($this->vars); 30 | chdir(dirname($this->template)); 31 | ob_start(); 32 | 33 | include basename($this->template); 34 | return ob_get_clean(); 35 | } 36 | } -------------------------------------------------------------------------------- /templates/js/ckeditor/samples/sample_posteddata.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | ------------------------------------------------------------------------------------------- 4 | CKEditor - Posted Data 5 | 6 | We are sorry, but your Web server does not support the PHP language used in this script. 7 | 8 | Please note that CKEditor can be used with any other server-side language than just PHP. 9 | To save the content created with CKEditor you need to read the POST data on the server 10 | side and write it to a file or the database. 11 | 12 | Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. 13 | For licensing, see LICENSE.md or http://ckeditor.com/license 14 | ------------------------------------------------------------------------------------------- 15 | 16 |