<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| Author: brzanek
+--------------------------------------------------------+
| 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."ostrzezenia_infusion/infusion_db.php";
if (file_exists(INFUSIONS."ostrzezenia_infusion/locale/".$settings['locale'].".php")) {
include INFUSIONS."ostrzezenia_infusion/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."ostrzezenia_infusion/locale/English.php";
}
$inf_title = $locale['DEV_ADMIN'];
$inf_description = $locale['DEV_ADMIN'];
$inf_version = "1.0.5";
$inf_developer = "BrzAneK";
$inf_email = "";
$inf_weburl = "http://pogoda-zachodniopomorskie.pl";
$inf_folder = "ostrzezenia_infusion"; // The folder in which the infusion resides.
$inf_image = "shout.png";
//Administration panel
$inf_adminpanel[] = array(
"title" => $locale['DEV_ADMIN'],
"image" => "shout.gif",
"panel" => "admin/ostrzezenia_admin.php",
"rights" => "OST",
"page" => 5
);
// Multilanguage table for Administration
$inf_mlt[] = array(
"title" => $locale['DEV_ADMIN'],
"rights" => "OS"
);
$inf_newtable[] = DB_OSTRZEZENIA." (
ost_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
user MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '',
ost_name VARCHAR(50) NOT NULL DEFAULT '',
ost_kat VARCHAR(20) NOT NULL DEFAULT '',
ost_keywords VARCHAR(50) NOT NULL DEFAULT '',
ost_image varchar(100) NOT NULL DEFAULT '',
ost_powiat varchar(500) NOT NULL DEFAULT '',
ost_startdzien VARCHAR(50) NOT NULL DEFAULT '',
ost_startgodzina VARCHAR(50) NOT NULL DEFAULT '',
ost_enddzien VARCHAR(50) NOT NULL DEFAULT '',
ost_endgodzina VARCHAR(50) NOT NULL DEFAULT '',
ost_synoptyczna TEXT NOT NULL,
ost_tresc TEXT NOT NULL,
ost_regiony TEXT NOT NULL,
ost_skutki TEXT NOT NULL,
ost_procent TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
ost_stopien TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
ost_visibility TINYINT(4) NOT NULL DEFAULT '0',
ost_count TINYINT(20) NOT NULL DEFAULT '0',
PRIMARY KEY (ost_id)
) ENGINE=MyISAM";
// Defuse cleanup
$inf_droptable[] = DB_OSTRZEZENIA;
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| Author: brzanek
+--------------------------------------------------------+
| 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");
}
if (defined("ADMIN_PANEL")) {
PHPFusion\Admins::getInstance()->setAdminPageIcons("OS", "<i class='fa fa-commenting fa-lg'></i>");
}
if (!defined("DB_OSTRZEZENIA")) {
define("DB_OSTRZEZENIA", DB_PREFIX."ostrzezenia");
}
// Added ostrzezenia Locale Constant
if (!defined("OSTRZEZENIA_LOCALE")) {
if (file_exists(INFUSIONS."ostrzezenia_infusion/locale/".LANGUAGE.".php")) {
define("OSTRZEZENIA_LOCALE", INFUSIONS."ostrzezenia_infusion/locale/".LANGUAGE.".php");
} else {
define("OSTRZEZENIA_LOCALE", INFUSIONS."ostrzezenia_infusion/locale/English.php");
}
}
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| Author: brzanek
+--------------------------------------------------------+
| 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");
}
if (defined("ADMIN_PANEL")) {
PHPFusion\Admins::getInstance()->setAdminPageIcons("OS", "<i class='fa fa-commenting fa-lg'></i>");
}
if (!defined("DB_OSTRZEZENIA")) {
define("DB_OSTRZEZENIA", DB_PREFIX."ostrzezenia");
}
// Added ostrzezenia Locale Constant
if (!defined("OSTRZEZENIA_LOCALE")) {
if (file_exists(INFUSIONS."ostrzezenia_infusion/locale/".LANGUAGE.".php")) {
define("OSTRZEZENIA_LOCALE", INFUSIONS."ostrzezenia_infusion/locale/".LANGUAGE.".php");
} else {
define("OSTRZEZENIA_LOCALE", INFUSIONS."ostrzezenia_infusion/locale/English.php");
}
}
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| Author: brzanek
+--------------------------------------------------------+
| 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."ostrzezenia_infusion/infusion_db.php";
$locale = fusion_get_locale("", OSTRZEZENIA_LOCALE);
$inf_title = $locale['DEV_ADMIN'];
$inf_description = $locale['DEV_ADMIN'];
$inf_version = "1.0.5";
$inf_developer = "BrzAneK";
$inf_email = "";
$inf_weburl = "http://pogoda-zachodniopomorskie.pl";
$inf_folder = "ostrzezenia_infusion"; // The folder in which the infusion resides.
$inf_image = "shout.png";
//Administration panel
$inf_adminpanel[] = array(
"title" => $locale['DEV_ADMIN'],
"image" => $inf_image,
"panel" => "admin/ostrzezenia_admin.php",
"rights" => "OS",
"page" => 5
);
// Multilanguage table for Administration
$inf_mlt[] = array(
"title" => $inf_title,
"rights" => "OS"
);
$inf_newtable[] = DB_OSTRZEZENIA." (
ost_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
user MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
ost_name VARCHAR(50) NOT NULL DEFAULT '',
ost_kat VARCHAR(20) NOT NULL DEFAULT '',
ost_keywords VARCHAR(50) NOT NULL DEFAULT '',
ost_image varchar(100) NOT NULL DEFAULT '',
ost_powiat varchar(500) NOT NULL DEFAULT '',
ost_startdzien VARCHAR(50) NOT NULL DEFAULT '',
ost_startgodzina VARCHAR(50) NOT NULL DEFAULT '',
ost_enddzien VARCHAR(50) NOT NULL DEFAULT '',
ost_endgodzina VARCHAR(50) NOT NULL DEFAULT '',
ost_synoptyczna TEXT NOT NULL,
ost_tresc TEXT NOT NULL,
ost_regiony TEXT NOT NULL,
ost_skutki TEXT NOT NULL,
ost_procent TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
ost_stopien TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
ost_visibility TINYINT(4) NOT NULL DEFAULT '0',
ost_count TINYINT(20) NOT NULL DEFAULT '0',
PRIMARY KEY (ost_id)
) ENGINE=MyISAM DEFAULT CHARSET=UTF8 COLLATE=utf8_unicode_ci";
// Defuse cleanup
$inf_droptable[] = DB_OSTRZEZENIA;
$inf_deldbrow[] = DB_ADMIN." WHERE admin_rights='OST'";
$inf_deldbrow[] = DB_LANGUAGE_TABLES." WHERE mlt_rights='OS'";
Category Forum
Modifications and Requests - 9Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions