Parašė JaWa· 2010 Rugs. 29 12:09:41
#7
Nenoriu kurti naujos temos, bandau pasidaryti savo infusion.php ir infusion_db.php failus. Lyg ir viskas gerai, "Įskiepiuose" atsiranda nuoroda, tačiau duomenu baze nesusikuria. gal galite žvilgtelėti, dėl ko taip yra ?
infusion_db.php
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."reklama_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."reklama_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."reklama_panel/locale/Lithuanian.php";
}
if (!defined("DB_REKLAMA")) {
define("DB_REKLAMA", "".$db_prefix."reklama");
}
?>
infusion.php
<?
if (!defined("IN_FUSION")) { die("Access Denied"); }
include INFUSIONS."reklama_panel/infusion_db.php";
if (file_exists(INFUSIONS."reklama_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."reklama_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."reklama_panel/locale/English.php";
}
// Infusion Information
$inf_title = "Reklamos mainai";
$inf_description = "Reklamos mainai";
$inf_version = "0.1";
$inf_developer = "JaWa";
$inf_email = "jawa@vdnet.lt";;
$inf_weburl = "http://www.sostinespramogos.lt/";
// Infusion Paths
$inf_folder = "reklama_panel"; // The folder in which the infusion resides.
$inf_admin_image = ""; // Leave blank to use the default image.
$inf_admin_panel = "admin.php"; // The admin panel filename if required.
// DB
$inf_newtable[1] = DB_REKLAMA." (
`id` VARCHAR( 10 ) NOT NULL,
`name` VARCHAR( 200 ) unsigned NOT NULL,
`url` VARCHAR( 200 ) unsigned NOT NULL,
`imageurl` VARCHAR( 200 ) unsigned NOT NULL,
`skype` VARCHAR( 200 ) unsigned NOT NULL,
`mail` VARCHAR( 200 ) unsigned NOT NULL,
`date` int(10) unsigned NOT NULL,
`trukme` int(10) unsigned NOT NULL,
PRIMARY KEY ( `id` )
) ENGINE = MYISAM;";
$inf_droptable[1] = DB_REKLAMA;
$inf_adminpanel[1] = array(
"title" => "Reklamos mainai",
"image" => "image.gif",
"panel" => "admin.php",
"rights" => "REK"
);
?>