rendered paste bodyif (!defined("IN-GEKKO")) die("Get a life!"); class gekkoModule_Banners { function create_menu() { return true; } function configure() { conf::getKey("banners", "items_per_admin_page", 30, "i"); } function install() { $db =& $GLOBALS["db"]; $db->query(" CREATE TABLE ".db_table("banners")." ( id INT (11) UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (id), name VARCHAR (128), contact_name VARCHAR (50), contact_mail VARCHAR (50), url VARCHAR (255), image_url VARCHAR (255), author_id SMALLINT (8) UNSIGNED NOT NULL default '0', description TEXT, width SMALLINT (3) UNSIGNED NOT NULL default '50', height SMALLINT (3) UNSIGNED NOT NULL default '50', date_start DATETIME NOT NULL default '0000-00-00 00:00:00', date_end DATETIME NOT NULL default '0000-00-00 00:00:00', date_created DATETIME NOT NULL default '0000-00-00 00:00:00', date_modified TIMESTAMP(19) )", __FILE__, __LINE__, true); gekkoModule::register($GLOBALS["cgdb"]["banners"], "banners", "*", $GLOBALS["cgdb"]["banners"]); } function uninstall() { $GLOBALS["db"]->query("DROP TABLE IF EXISTS ".db_table("banners"), __FILE__, __LINE__, true); } function ext_uninstall($module) { } }