mirror of
https://github.com/e107inc/e107.git
synced 2025-01-18 05:09:05 +01:00
deprecated-file removal.
This commit is contained in:
parent
c82fc9269c
commit
1c1a0566b2
@ -1,75 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| ©Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_install.php,v $
|
||||
| $Revision: 1.1 $
|
||||
| $Date: 2008-08-11 21:24:42 $
|
||||
| $Author: e107steved $
|
||||
|
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
|
||||
|
||||
class calendarInstall
|
||||
{
|
||||
/*
|
||||
function calendarInstall()
|
||||
{
|
||||
echo "Calendar constructor routine<br />";
|
||||
}
|
||||
*/
|
||||
|
||||
// Installation routine
|
||||
function postInstall($param)
|
||||
{
|
||||
// echo "Calendar install routine<br />";
|
||||
$result = $this->insertDefaultCategory(FALSE);
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
function preUninstall($param)
|
||||
{
|
||||
// echo "Calendar uninstall routine<br />";
|
||||
}
|
||||
|
||||
|
||||
function postUpgrade($param)
|
||||
{
|
||||
// echo "Calendar upgrade routine<br />";
|
||||
$result = $this->insertDefaultCategory(TRUE);
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Insert the text for the default category into the DB here
|
||||
function insertDefaultCategory($isUpgrade = FALSE)
|
||||
{
|
||||
global $sql;
|
||||
|
||||
require_once('ecal_class.php'); // Gets the define for the 'Default' category
|
||||
if ($isUpgrade && $sql->db_Select('event_cat','event_cat_name',"event_cat_name='".EC_DEFAULT_CATEGORY."' ", TRUE))
|
||||
{
|
||||
return EC_ADINST_LAN_08.'<br />';
|
||||
}
|
||||
$ec_insert_entries = "INSERT INTO `#event_cat` (event_cat_name, event_cat_description, event_cat_ahead, event_cat_msg1, event_cat_msg2, event_cat_lastupdate)
|
||||
VALUES ('".EC_DEFAULT_CATEGORY."', '".EC_ADINST_LAN_03."', 5,
|
||||
'".EC_ADINST_LAN_01."', '".EC_ADINST_LAN_02."',
|
||||
'".intval(time())."') ";
|
||||
$result = $sql->db_Select_gen($ec_insert_entries);
|
||||
return ($result) ? EC_ADINST_LAN_06.'<br />' : EC_ADINST_LAN_07.'<br />';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -1,48 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright ( c ) 2001-2008 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_management.php,v $
|
||||
* $Revision: 1.1 $
|
||||
* $Date: 2009-01-11 02:59:10 $
|
||||
* $Author: bugrain $
|
||||
*
|
||||
*/
|
||||
|
||||
class download_management
|
||||
{
|
||||
function download_install_pre(&$var)
|
||||
{
|
||||
print_a($var);
|
||||
echo "custom install 'pre' function<br /><br />";
|
||||
}
|
||||
|
||||
function download_install_post(&$var)
|
||||
{
|
||||
global $sql;
|
||||
echo "custom install 'post' function<br /><br />";
|
||||
}
|
||||
|
||||
function download_uninstatll(&$var)
|
||||
{
|
||||
global $sql;
|
||||
echo "custom uninstall function<br /><br />";
|
||||
}
|
||||
|
||||
function download_upgrade(&$var)
|
||||
{
|
||||
global $sql;
|
||||
echo "custom upgrade function<br /><br />";
|
||||
//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);
|
||||
//}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user