Quote
// 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,
date
int(10) unsigned NOT NULL,
trukme
int(10) unsigned NOT NULL,
PRIMARY KEY (id
)
) ENGINE = MYISAM;";
Quote
<?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"
}
?>
Quote
<?
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,
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"
);
?>
Quote
VARCHAR is no numeric field, so "unsigned" for VARCHAR-fields is totally wrong. Also the id should be autoincrement.
Category Forum
Installation Issues - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions