if (file_exists(INFUSIONS."button_panel/locale/".$settings['locale'].".php")) {
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright © 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: infusion.php
| CVS Version: 1.12
| Author: cmike
| Web: http://freeware.wnet.net.pl
| Email: mike@wnet.net.pl
+--------------------------------------------------------+
| v7 by Diemux
| www.phpfusion-mods.net
+--------------------------------------------------------+
| Bugfixes and Working v7.01.02 by snowballsn
| www.phpfusion-mods.net
+--------------------------------------------------------+
| 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."button_panel/infusion_db.php";
if (file_exists(INFUSIONS."button_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."button_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."button_panel/locale/English.php";
}
// Infusion Information
$inf_title = "Button Panel";
$inf_description = "Button panel with click-counting and login system for clients.";
$inf_version = "1.12";
$inf_developer = "cmike, v7 by Diemux";
$inf_email = "mike@wnet.net.pl";
$inf_weburl = "http://freeware.wnet.net.pl";
// Infusion Paths
$inf_folder = "button_panel";
$inf_adminpanel[1] = array(
"title" => "Button Panel",
"image" => "image.gif",
"panel" => "button_admin.php",
"rights" => "BUP"
);
// Database Table information : Create database tables.
$inf_newtable[1] = DB_BUTTONS." (
button_id
int(11) NOT NULL auto_increment,
button_name
varchar(250) NOT NULL default '',
button_pic
varchar(200) NOT NULL default '',
button_link
varchar(200) NOT NULL default '',
button_count
int(11) NOT NULL default '0',
button_user
varchar(100) NOT NULL default '',
button_pass
varchar(100) NOT NULL default '',
PRIMARY KEY (button_id
)
) ENGINE=MyISAM";
// Database Table Drop Command : Drop tables if infusion is uninstalled.
$inf_droptable_[1] = DB_BUTTONS;
?>
$locale = fusion_get_locale(); // loads all your current locale to $locale string.
echo fusion_get_locale("SPR011"); // equivalent to $locale['SPR011'];
// add additional file.php into the locale cache.
$locale = fusion_get_locale("", LOCALE.LOCALESET."/file.php");
echo $locale['new_file_key']; // you can access additional now.
// Load the current site settings to $settings variable.
$settings = fusion_get_settings();
echo fusion_get_settings("locale"}; // equivalent to $settings['locale']
$userdata = fusion_get_userdata(); // load your account data.
echo fusion_get_userdata("user_name");
$other_user = fusion_get_user(6); // load user id 6
print_p($other_user);
Category Forum
Modifications and Requests - 9Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions