PHP Classes

File: tools/www-updater.php

Recommend this page to a friend!
  Classes of Kristo Vaher  >  Wave Framework  >  tools/www-updater.php  >  Download  
File: tools/www-updater.php
Role: Auxiliary script
Content type: text/plain
Description: Updater Template
Class: Wave Framework
MVC framework for building Web sites and APIs
Author: By
Last change: Re-implemented system version number and updated versioning documentation. You can also limit API version numbers with API profiles now.
Date: 8 years ago
Size: 1,409 bytes


Class file image Download

 * Wave Framework <>
 * Self-Executed Updater Script
 * This is an update script template, if file with this name is added to root archive of update zip
 * files that is given to /tools/updater.php, then this script is also executed (and then removed).
 * This script is useful to store in other update-related commands, such as file permissions, database
 * changes and so on.
 * @package Tools
 * @author Kristo Vaher <>
 * @copyright Copyright (c) 2012, Kristo Vaher
 * @license GNU Lesser General Public License Version 3
 * @tutorial /doc/pages/guide_tools.htm
 * @since 1.0.0
 * @version 3.7.1

// It is always recommended to have this file return a plain-text log where each log entry is on a new line
header('Content-Type: text/plain;charset=utf-8');

// Error reporting is turned off in this script

// Updater script calls this function always with specific version numbers that can be used within the script
// Add here various functionality that is required for this version based on version numbers
echo 'Applying version update on Wave Framework version '.$_GET['www-version'].' and API version '.$_GET['api-version'];
} else {
// Version numbers are required
echo 'Unable to run updater without assigned version numbers';


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