PHP Classes

MVC Membership System: Membership system using the MVC design pattern

Recommend this page to a friend!
  Info   View files View files (46)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2003-12-30 (16 years ago) RSS 2.0 feedStarStarStar 51%Total: 3,167 All time: 1,121 This week: 342Up
Version License Categories
mvcms 1.0.0GNU General Publi...User Management
Description Author

This is a package of classes that implements an user membership system using the Model-View-Controller design pattern.

This package has a base class that models abstract users and has specialized sub-classes that implement regular members and administrator users.

The package uses Smarty as presentation templating system and ADODB database access layer.

  Performance   Level  
Name: Voznyak Nazar <contact>
Classes: 4 packages by
Country: Ukraine Ukraine
Innovation award
Innovation award
Nominee: 1x

 

Details
 ----------------------------------------------------------------------
 Model-View-Controller-like Membership System - Web authentication suite
 Copyright (C) 2003 Voznyak Nazar
 narkov@yahoo.com
 ----------------------------------------------------------------------
 LICENSE
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License (GPL)
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 You should have recieved the lincence included with the disribution.
 If not visit http://www.gnu.org/copyleft/gpl.html
 ----------------------------------------------------------------------

MVC-like Membership System v.0.0.1

"Membership System" is a compact MVC-like suite which can easily be used in
any PHP script. MVC-like (model-view-controller) means that system is separated onto
three different parts: system logic, access to databases and pages lookout.
With Membership System, developers can build applications with the standard user authentication complete, 
and developers can drop-in modules to handle extra user information and 
add functionality.</p>

Requirements:
>> Smarty 2.6.0
>> ADODB 4.05 

Sections
> 1. Intro
> 2. Model
> 3. View
> 4. Controller
> 5. Setup
> 6. Example

1. Intro
2. Model
3. View
4. Controller

5. Setup
a) Edit setup.php
You must edit the vales shown below:

/*** ADOdb library path */
  define('LIB_ADODB', ROOT.'../adodb/');

/*** Smarty library path */
  define('LIB_SMARTY', ROOT.'../smarty/');

b) Edit db/dbsetup.inc
You must edit the vales shown below:

  $dbHost = "localhost";
  $dbUsername = "root";
  $dbPassword = "0";
  $dbName = "escort";
  $go_conn = &ADONewConnection('mysql');

c) Then you need to run install/installdb.php to create tables

6. Example
The first thing that has to be added is:
require_once '../setup.php';

That needs to be placed before anything else in the page.
  Files folder image Files  
File Role Description
Accessible without login Plain text file actions.php Conf. Actions configurate
Accessible without login Plain text file adminhandle.php Appl. admin actions
Accessible without login Plain text file adminindex.php Appl. admin index page
Accessible without login Plain text file adminsql.inc Aux. sql commands for adminstrator handling
Accessible without login Plain text file admin_list.tpl Data smarty template
Accessible without login Plain text file admin_login_failed.tpl Data smarty template
Accessible without login Plain text file admin_login_form.tpl Data smarty template
Accessible without login Plain text file admin_logout.tpl Data smarty template
Accessible without login Plain text file admin_page_start.tpl Data smarty template
Plain text file cadmin.inc Class CAdmin
Plain text file cadmins.inc Class CAdmins
Plain text file cmember.php Class Member class
Plain text file cmembers.inc Class CMembers class
Plain text file cpartner.php Class partner class
Plain text file cpartners.php Class cpartners class
Accessible without login Plain text file dbsetup.php Conf. database configuration script
Accessible without login Plain text file filelist.txt Doc. list of project files
Accessible without login Plain text file functions.php Aux. Auxiliary functions
Accessible without login Plain text file indexpages.php Appl. main site page
Accessible without login Plain text file installdb.inc Conf. sql commands for installation
Accessible without login Plain text file installdb.php Conf. installation script
Plain text file iuser.inc Class User interface
Accessible without login Plain text file mainpage.tpl Data smarty template
Accessible without login Plain text file memberhandle.php Appl. member handling functions
Accessible without login Plain text file memberpages.php Appl. member action controller
Accessible without login Plain text file membersql.inc Aux. sql commands for member handling
Accessible without login Plain text file member_list.tpl Data smarty template
Accessible without login Plain text file member_login_failed.tpl Data smarty template
Accessible without login Plain text file member_login_form.tpl Data smarty template
Accessible without login Plain text file member_logout.tpl Data smarty template
Accessible without login Plain text file member_page_next.tpl Data smarty template
Accessible without login Plain text file member_page_start.tpll Data smarty template
Accessible without login Plain text file member_registrate_form.tpl Data smarty template
Accessible without login Plain text file partnerhandle.php Appl. partner handling functions
Accessible without login Plain text file partnerpages.php Appl. partner controller
Accessible without login Plain text file partnersql.inc Aux. sql commands for partner handling
Accessible without login Plain text file partner_list.tpl Data smarty template
Accessible without login Plain text file partner_login_failed.tpl Data smarty template
Accessible without login Plain text file partner_login_form.tpl Data smarty template
Accessible without login Plain text file partner_logout.tpl Data smarty template
Accessible without login Plain text file partner_page_next.tpl Data smarty template
Accessible without login Plain text file partner_page_start.tpl Data smarty template
Accessible without login Plain text file partner_registrate_form.tpl Data smarty template
Accessible without login Plain text file readme.txt Doc. documentation
Accessible without login Plain text file setup.php Conf. Configuration script
Accessible without login Plain text file unknownpage.tpl Data smarty template

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,167
This week:0
All time:1,121
This week:342Up
User Ratings User Comments (2)
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:65%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2225
  

For more information send a message to info at phpclasses dot org.