Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Kazkokia klaida

Parašė Rytis· 2007 Spa. 3 19:10:09
#11

Dėk šitą į pridėtinius puslapius (spausk peržiūra) ir tada iš naujo puslapio nustatymus nusistatyk.

dbquery("DROP TABLE IF EXISTS ".$db_prefix."settings");
dbquery("CREATE TABLE ".$db_prefix."settings (
   sitename VARCHAR(200) NOT NULL DEFAULT '',
   siteurl VARCHAR(200) NOT NULL DEFAULT '',
   sitebanner VARCHAR(200) NOT NULL DEFAULT '',
   siteemail VARCHAR(100) NOT NULL DEFAULT '',
   siteusername VARCHAR(30) NOT NULL DEFAULT '',
   siteintro TEXT NOT NULL,
   description TEXT NOT NULL,
   keywords TEXT NOT NULL,
   footer TEXT NOT NULL,
   opening_page VARCHAR(100) NOT NULL DEFAULT '',
   locale VARCHAR(20) NOT NULL DEFAULT 'English',
   theme VARCHAR(100) NOT NULL DEFAULT '',
   shortdate VARCHAR(50) NOT NULL DEFAULT '',
   longdate VARCHAR(50) NOT NULL DEFAULT '',
   forumdate VARCHAR(50) NOT NULL DEFAULT '',
   subheaderdate VARCHAR(50) NOT NULL DEFAULT '',
   timeoffset VARCHAR(3) NOT NULL DEFAULT '0',
   numofthreads SMALLINT(2) UNSIGNED NOT NULL DEFAULT '5',
   attachments TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
   attachmax INT(12) UNSIGNED NOT NULL DEFAULT '150000',
   attachtypes VARCHAR(150) NOT NULL DEFAULT '.gif,.jpg,.png,.zip,.rar,.tar',
   enable_registration TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL,
   email_verification TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL,
   admin_activation TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL,
   display_validation TINYINT(1) UNSIGNED DEFAULT '1' NOT NULL,
   validation_method VARCHAR(5) DEFAULT 'image' NOT NULL,
   album_image_w SMALLINT(3) UNSIGNED NOT NULL DEFAULT '80',
   album_image_h SMALLINT(3) UNSIGNED NOT NULL DEFAULT '60',
   thumb_image_w SMALLINT(3) UNSIGNED NOT NULL DEFAULT '120',
   thumb_image_h SMALLINT(3) UNSIGNED NOT NULL DEFAULT '100',
   thumb_compression CHAR(3) DEFAULT 'gd2' NOT NULL,
   album_comments TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
   albums_per_row SMALLINT(2) UNSIGNED NOT NULL DEFAULT '4',
   albums_per_page SMALLINT(2) UNSIGNED NOT NULL DEFAULT '16',
   thumbs_per_row SMALLINT(2) UNSIGNED NOT NULL DEFAULT '4',
   thumbs_per_page SMALLINT(2) UNSIGNED NOT NULL DEFAULT '12',
   album_max_w SMALLINT(4) UNSIGNED NOT NULL DEFAULT '400',
   album_max_h SMALLINT(4) UNSIGNED NOT NULL DEFAULT '300',
   album_max_b INT(10) UNSIGNED NOT NULL DEFAULT '150000',
   bad_words_enaaš TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
   bad_words TEXT NOT NULL,
   bad_word_replace VARCHAR(20) DEFAULT '[censored]' NOT NULL,
   guestposts TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
   numofshouts TINYINT(2) UNSIGNED NOT NULL DEFAULT '10',
   counter BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
   version VARCHAR(10) NOT NULL DEFAULT '6.00',
   maintenance TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
   maintenance_message TEXT NOT NULL
   ) TYPE=MyISAM;");
dbquery(
         "INSERT INTO ".$db_prefix."settings VALUES('PHP-Fusion Powered Website', 'http://www.yourdomain.com/',
         'images/banner.gif', 'you@yourdomain.com', '$username', '<center>Welcome to your site</center>', '', '',
         '<center>Copyright &copy; 2005</center>', 'news.php', '$localeset', 'Milestone',
         '%d/%m/%Y %H:%M', '%B %d %Y %H:%M:%S', '%d-%m-%Y %H:%M', '%B %d %Y %H:%M:%S', '0',
         '5', '0', '150000', '.gif,.jpg,.png,.zip,.rar,.tar',
         '1', '1', '0', '1', 'image',
         '80', '60', '120', '100', 'gd2', '1', '4', '16', '4', '12', '400', '300', '150000',
         '0', '', '****', '0', '10',
         '0', '6.00.110', '0', '')"
      );