<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Sticky Note System
| Copyright (c) 2005-2011 Frank Pearson
| Version: 1.00
| Author: Frank Pearson
| Develpers: Mordak
| Site: http://extremefusion.co.uk
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+-------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
include INFUSIONS."sticky_note_system/infusion_db.php";
// Infusion general information
$inf_title = "Sticky Note System";
$inf_version = "1.0";
$inf_developer = "Mordak";
$inf_weburl = "http://extremefusion.co.uk";
$inf_email = "mordak@extremefusion.co.uk";
$inf_folder = "sticky_note_system";
$inf_description = "A Place to add notes";
$inf_newtable[1] = DB_NOTES." (
note_id int(10) unsigned NOT NULL auto_increment,
note_text varchar(128) collate utf8_unicode_ci NOT NULL default '',
note_author_id int(10) collate utf8_unicode_ci NOT NULL default '',
note_color enum('yellow','blue','green') collate utf8_unicode_ci NOT NULL default 'yellow',
note_xyz varchar(20) collate utf8_unicode_ci NOT NULL default '',
note_dt timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (note_id)
) TYPE=MyISAM;";
$inf_insertdbrow[1] = DB_NOTES." (note_id, note_text, note_author_id, note_color, note_xyz, note_dt) VALUES('1', 'Thank you for using my infusion.', '1', '1', '478x0x1', '2010-01-17 06:30:14')";
$inf_sitelink[1] = array(
"title" => "Notes",
"url" => "index.php",
"visibility" => "101"
);
?>
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2011 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| Author: Nick Jones
| Developers: Ankur Thakur
| Site: http://ankurthakur.in/
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
// Defining Database File
include INFUSIONS."my_infusion_panel/infusion_db.php";
// Loading Locale Files
if (file_exists(INFUSIONS."my_infusion_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."my_infusion_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."my_infusion_panel/locale/English.php";
}
// Infusion general information
$inf_title = $locale['ds_title'];
$inf_description = $locale['ds_desc'];
$inf_version = "1.0";
$inf_developer = "Ankur Thakur";
$inf_email = "thakurboyz2007@gmail.com";
$inf_weburl = "http://ankurthakur.in";
// Defining the name of folder of my infusion
$inf_folder = "my_infusion_panel";
// Creating a table
$inf_newtable[1] = DB_DEV_ADDONS_SITES." (
site_id SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
site_title VARCHAR(100) NOT NULL DEFAULT '',
site_url VARCHAR(200) NOT NULL DEFAULT '',
PRIMARY KEY (site_id)
) ENGINE=MyISAM;";
// Creating an other table
$inf_newtable[2] = DB_DEV_MYADDONS." (
addon_id SMALLINT(5) UNSIGNED NOT NULL AUTO_INCREMENT,
addon_name TEXT NOT NULL DEFAULT '',
addon_type TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
addon_version VARCHAR(10) NOT NULL DEFAULT '',
addon_thumb TEXT NOT NULL DEFAULT '',
addon_screenshot TEXT NOT NULL DEFAULT '',
addon_desc TEXT NOT NULL DEFAULT '',
addon_link TEXT NOT NULL DEFAULT '',
addon_datestamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (addon_id)
) ENGINE=MyISAM;";
// Inserting Rows into existing tables if required
$inf_insertdbrow[1] = DB_DEV_ADDONS_SITES." (site_id, site_title, site_url) VALUES('0', 'Ankur Thakur E-Stand', 'http://ankurthakur.in/infusions/my_infusion_panel/addons.xml')";
$inf_insertdbrow[2] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('showcasefilename', 'addons', '".$inf_folder."')";
$inf_insertdbrow[3] = DB_SETTINGS_INF." (settings_name, settings_value, settings_inf) VALUES('showcasedevname', 'My Addons', '".$inf_folder."')";
// These rows will be dropped when Defused
$inf_deldbrow[1] = DB_SETTINGS_INF." WHERE settings_inf='".$inf_folder."'";
// These tables will be dropped when Defused
$inf_droptable[1] = DB_DEV_ADDONS_SITES;
$inf_droptable[2] = DB_DEV_MYADDONS;
// Adding Links for Infusion in Admin Panel
$inf_adminpanel[1] = array(
"title" => $locale['ds_title'],
"image" => "my_infusion_panel.png",
"panel" => "my_infusion_panel_admin.php",
"rights" => "DS"
);
// Adding Extra Links for other file of Infusion in Admin Panel
$inf_adminpanel[2] = array(
"title" => $locale['ms_title'],
"image" => "my_infusion_panel.png",
"panel" => "anyother_file_admin.php",
"rights" => "MS"
);
?>
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
5 participants
Notifications
You are not receiving notifications from this thread.
Related Questions