<?php
if (!defined('ADMIN_MOD_INSTALL')) { exit; }
class How-is-on-Pic {
var $radmin;
var $modname;
var $version;
var $author;
var $website;
var $description;
var $dbtables;
// class constructor
function How-is-on-Pic() {
$this->radmin = true ;
$this->modname = 'Mod-Coppermine-How-is-on-Pic';
$this->version = '0.0.0.1';
$this->author = 'SpAcEDeViL';
$this->website = 'www.emsland-partys.de';
$this->description = 'Mod for Coppermine - How-is-on-Pic';
$this->dbtables = array('Howpic');
}
// module installer
function install() {
global $installer;
$installer->add_query('CREATE', 'howpic', "
pid int(11) NOT NULL auto_increment,
pos_id INT UNSIGNED NOT NULL,
pos_user_id INT UNSIGNED NOT NULL,
PRIMARY KEY (`pid`)",'Howpic');
$source_modules = array('your_account','coppermine');
foreach ($source_modules as $module) {
define("MODULE","$module");
$installer->add_query('INSERT', 'config_custom', "'howpic', '".$module."_active', '0'");
$installer->add_query('INSERT', 'config_custom', "'howpic', '".$module."_allow_user_mod', '0'");
$installer->add_query('INSERT', 'config_custom', "'howpic', '".$module."_track_history', '0'");
}
return true;
}
// module uninstaller
function uninstall() {
global $installer;
$installer->add_query('DROP', 'howpic');
$installer->add_query('DELETE','config_custom',"cfg_name='Howpic'");
}
// module upgrader
function upgrade($prev_version) {
global $installer;
}
}
?>
Alle Zeitangaben sind in GMT + 1 Stunden