1
0
mirror of https://github.com/e107inc/e107.git synced 2025-02-19 22:14:45 +01:00
php-e107/e107_plugins/download/download_setup.php
2010-02-10 18:18:01 +00:00

54 lines
1.2 KiB
PHP

<?php
/*
* e107 website system
*
* Copyright (C) 2008-2009 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Custom download install/uninstall/update routines
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/download/download_setup.php,v $
* $Revision$
* $Date$
* $Author$
*
*/
class download_setup
{
function install_pre($var)
{
// print_a($var);
$mes = eMessage::getInstance();
// $mes->add("custom install 'pre' function.", E_MESSAGE_SUCCESS);
}
function install_post($var)
{
$sql = e107::getDb();
$mes = eMessage::getInstance();
// $mes->add("custom install 'post' function.", E_MESSAGE_SUCCESS);
}
function uninstall_pre($var)
{
$sql = e107::getDb();
$mes = eMessage::getInstance();
// $mes->add("custom uninstall 'pre' function.", E_MESSAGE_SUCCESS);
}
function upgrade_post($var)
{
$sql = e107::getDb();
$mes = eMessage::getInstance();
// $mes->add("custom upgrade 'post' function.", E_MESSAGE_SUCCESS);
//if(version_compare($var['current_plug']['plugin_version'], "1.2", "<"))
//{
// $qry = "ALTER TABLE #download ADD download_postclass TINYINT( 3 ) UNSIGNED DEFAULT '0' NOT NULL ;";
// $sql->db_Select_gen($qry);
//}
}
}