Login   Register  
PHP Classes
elePHPant
Icontem

File: tools/www-updater.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: Made session starting configurations possible to be changed at runtime.
Updated documentation with indexes and anchors.
Added jQuery 2.0 as an alternative - to use the new version of jQuery that ignores Internet Explorer up to and including 8, then change jquery.js file to jquery2.js in the View Controller.
Developer tools Debugger and Log Reader for internal log messages are now browser IP and session-based, allowing to separate messages from one another based on client that makes the request.
Added a warning to developer tools when using the default password.
Fixed bug with tester script that did not properly autoload certain PHP scripts.
Implemented an improved getState() method that allows to return data better from nested arrays.
Implemented an improved setState() that allows to set nested array values in State more easily.
PNG images will also now get a background, if RGB setting is set in the dynamic image loading.
Date: 2013-05-21 01:44
Size: 1,418 bytes
 

Contents

Class file image Download
<?php

/**
 * Wave Framework <http://www.waveframework.com>
 * 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 <kristo@waher.net>
 * @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.6.0
 */

// 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
error_reporting(0);

// Updater script calls this function always with specific version numbers that can be used within the script
if(isset($_GET['www-version'],$_GET['system-version'])){
    
// 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 system version '.$_GET['system-version'];
} else {
    
// Version numbers are required
    
echo 'Unable to run updater without assigned version numbers';
}

?>