PHP Classes
Icontem

File: server/example.maintenance.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Oliver Lillie  >  PADL (PHP Application Distribution License System)  >  server/example.maintenance.php  
File: server/example.maintenance.php
Role: Example script
Content type: text/plain
Description: Demo file
Class: PADL (PHP Application Distribution License System)
Generate PHP application license keys
 

Contents

Class file image Download
<?php

    
/**
    * Project:        Distrubution License Class
    * File:            example.maintenance.php
    * File type:     DEMO
    * Notes:        This file is a demonstration file that illustrates how the
    *                a call from a clients server may be recieved and process
    *                a license request
    *
    * Copyright (C) 2005 Oliver Lillie
    * 
    * This program is free software; you can redistribute it and/or modify it 
    * under the terms of the GNU General Public License 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 received a copy of the GNU General Public License along 
    * with this program; if not, write to the Free Software Foundation, Inc., 
    * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA    
    *
    * @link http://www.buggedcom.co.uk/
    * @author Oliver Lillie, buggedcom <publicmail at buggedcom dot co dot uk>
    * @version 0.2
    * @history---------------------------------------------
    * see CHANGELOG
    */
    
    # note this demo file is note yet complete, as there are many more functions
    # to add... it will be updated when the janitor class is updated.
    
    # import db cofigs
    
include_once('db.config.php');

    
# import the classes
    
include_once('../shared/class.license.lib.php');
    include_once(
'class.license.server.php');
    include_once(
'class.license.janitor.php');
    
    
# create the new maintenaince object
    
$janitor = new license_janitor();
    
    
# connect to the db
    
$janitor->connect($table$user$pass);
    
    
trace_r$janitor->update_license_date(160*60*24*7*52true) );
    
    
# disconnect the db
    
$janitor->disconnect();
    

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products