elimiz
شنبه 27 خرداد 1391, 11:03 صبح
سلام دوستان. چرا این فایل php رو وقتی اجرا میکنم دیتا بیس رو ایجاد نمیکنه ؟
فایل install رو به همراه فایل config میزارم تا بررسی کنید
دیتا بیس سیستم با اجرای فایل install.php ساخته میشه.اما من نتونستم این کار رو بکنم. و این دیتا بیس رو برا نصب سیستم نیاز دارم
ممنون میشم راهنمایی کنید
فایل install.php
<?php
echo "<html>
<head>
<meta http-equiv='Content-Type' content='text/html;'>
<title>Installer</title>
</head>
<body>
<p><font face='Verdana' style='font-size: 8pt'><font color='#FF3300'>Step1 :</font>
Please Edit config File and then click next</font></p>
<form method='POST' action=''>
<p>
<input type='submit' value=' Set Up' name='submit' style='font-family: Tahoma; font-size: 8pt; color: #FF3300; border: 1px solid #FFFFFF; background-color: #669999'></p>
</form>
</body>
</html>";
include ("config.php");
if($_POST['submit']){
mysql_query("
CREATE TABLE admin (
id bigint(40) NOT NULL auto_increment,
txtusername text NOT NULL,
txtemail text NOT NULL,
txtpassword text NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Users (
w_id bigint(40) NOT NULL auto_increment,
txtweblog text NOT NULL,
txtusername text NOT NULL,
txtpassword text NOT NULL,
txtemail text NOT NULL,
txttitle text NOT NULL,
txtauthor text NOT NULL,
txtItem text NOT NULL,
txtdescription text NOT NULL,
txtpostInpage text NOT NULL,
cmbPostDateFormat text NOT NULL,
cmbPostTimeFormat text NOT NULL,
blogcat text NOT NULL,
BlogAbout text NOT NULL,
BlogEmailEnable text NOT NULL,
image text NOT NULL,
template text NOT NULL,
commenttemplate text NOT NULL,
linkbox text NOT NULL,
news text NOT NULL,
signuptemplate text NOT NULL,
signuptext text NOT NULL,
titleforum text NOT NULL,
headerforum text NOT NULL,
footerforum text NOT NULL,
pageforum text NOT NULL,
regdate text NOT NULL,
PRIMARY KEY (w_id)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Authors (
a_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
username text NOT NULL,
password text NOT NULL,
email text NOT NULL,
Author text NOT NULL,
links text NOT NULL,
addpost text NOT NULL,
categories text NOT NULL,
page text NOT NULL,
members text NOT NULL,
news text NOT NULL,
ip text NOT NULL,
static text NOT NULL,
template text NOT NULL,
newsletter text NOT NULL,
poll text NOT NULL,
linkbox text NOT NULL,
setting text NOT NULL,
job text NOT NULL,
PRIMARY KEY (`w_id`,`a_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Category (
c_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
category text NOT NULL,
maincategory text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`c_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE MainCategory (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
category text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE entires (
e_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
weblog text NOT NULL,
author text NOT NULL,
title text NOT NULL,
how text NOT NULL,
catid text NOT NULL,
commenting text NOT NULL,
content text NOT NULL,
ContinuedPostContent text NOT NULL,
textmore text NOT NULL,
Source text NOT NULL,
Password text NOT NULL,
Keyword text NOT NULL,
totalvotes text NOT NULL,
uservotes text NOT NULL,
counter text NOT NULL,
member text NOT NULL,
signuptext text NOT NULL,
PRIMARY KEY (`w_id`,`e_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE comment (
c_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
t_id bigint(40) NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
weblog text NOT NULL,
author text NOT NULL,
name text NOT NULL,
email text NOT NULL,
webs text NOT NULL,
coment text NOT NULL,
answer text NOT NULL,
title text NOT NULL,
type text NOT NULL,
how text NOT NULL,
PRIMARY KEY (`w_id`,`c_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE links (
l_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
name text NOT NULL,
adress text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`l_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE members (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
name text NOT NULL,
username text NOT NULL,
password text NOT NULL,
email text NOT NULL,
weblog text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE news (
n_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
weblog text NOT NULL,
title text NOT NULL,
author text NOT NULL,
content text NOT NULL,
source text NOT NULL,
PRIMARY KEY (`w_id`,`n_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE template (
t_id bigint(40) NOT NULL auto_increment,
name text NOT NULL,
image text NOT NULL,
hometemp text NOT NULL,
comtemp text NOT NULL,
PRIMARY KEY (`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE term (
t_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
term text NOT NULL,
PRIMARY KEY (`w_id`,`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE ip (
i_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
ip text NOT NULL,
PRIMARY KEY (`w_id`,`i_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE static (
s_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
ip text NOT NULL,
referer text NOT NULL,
refereract text NOT NULL,
date text NOT NULL,
year text NOT NULL,
month text NOT NULL,
PRIMARY KEY (`w_id`,`s_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE newsletter (
n_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
email text NOT NULL,
PRIMARY KEY (`w_id`,`n_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE question (
q_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
question text NOT NULL,
totalvotes text NOT NULL,
PRIMARY KEY (`w_id`,`q_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE answer (
a_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
answer text NOT NULL,
votes text NOT NULL,
PRIMARY KEY (`w_id`,`a_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE linkbox (
l_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
name text NOT NULL,
adress text NOT NULL,
how text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`l_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE linkboxtemplate (
t_id bigint(40) NOT NULL auto_increment,
name text NOT NULL,
image text NOT NULL,
linkboxtemp text NOT NULL,
PRIMARY KEY (`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE page (
p_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
name text NOT NULL,
code text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`p_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE profile (
p_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
chkProfile text NOT NULL,
txtFirstname text NOT NULL,
txtLastname text NOT NULL,
txtBirthDay text NOT NULL,
cmbBirthMonth text NOT NULL,
txtBirthYear text NOT NULL,
cmbGender text NOT NULL,
txtCountry text NOT NULL,
txtCityName text NOT NULL,
txtAboutMe text NOT NULL,
txtEmail text NOT NULL,
txtYahoo text NOT NULL,
cmbEducationLevel text NOT NULL,
txtEducation text NOT NULL,
txtUniversity text NOT NULL,
txtProfession text NOT NULL,
txtFav text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`p_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE updates (
w_id bigint(40) NOT NULL auto_increment,
title text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Pollip (
i_id bigint(40) NOT NULL auto_increment,
ip text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`i_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Contact (
id bigint(40) NOT NULL auto_increment,
name text NOT NULL,
email text NOT NULL,
tel text NOT NULL,
text text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE abuse (
id bigint(40) NOT NULL auto_increment,
weblog text NOT NULL,
abuse text NOT NULL,
name text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE sitestatic (
id bigint(40) NOT NULL auto_increment,
ip text NOT NULL,
referer text NOT NULL,
refereract text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Categorypost (
c_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
catid bigint(40) NOT NULL,
p_id bigint(40) NOT NULL,
category text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`c_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Tagpost (
t_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
Tag text NOT NULL,
p_id tinyint(40) NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Sticky (
s_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
title text NOT NULL,
Sticky text NOT NULL,
How text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`s_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Domains (
d_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
domain text NOT NULL,
How text NOT NULL,
PRIMARY KEY (`w_id`,`d_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE yahoo (
y_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
yahoo text NOT NULL,
PRIMARY KEY (`w_id`,`y_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE mp3 (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
adress text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE thread (
t_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
title text NOT NULL,
author text NOT NULL,
count text NOT NULL,
lastdate text NOT NULL,
lastauthor text NOT NULL,
PRIMARY KEY (`w_id`,`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE answerthread (
a_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
t_id bigint(40) NOT NULL,
author text NOT NULL,
date text NOT NULL,
answer text NOT NULL,
title text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`a_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE menu (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
menuname text NOT NULL,
menutemp text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Leftmenu (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
menuname text NOT NULL,
menutemp text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Centermenu (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
menuname text NOT NULL,
menutemp text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE upjava (
u_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
code text NOT NULL,
PRIMARY KEY (`w_id`,`u_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE downjava (
d_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
code text NOT NULL,
PRIMARY KEY (`w_id`,`d_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE friend (
f_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
pm text NOT NULL,
PRIMARY KEY (`w_id`,`f_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE blogpm (
b_id bigint(40) NOT NULL auto_increment,
title text NOT NULL,
weblog text NOT NULL,
sendweblog text NOT NULL,
pm text NOT NULL,
PRIMARY KEY (`b_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE hostorder (
h_id bigint(40) NOT NULL auto_increment,
fullname text NOT NULL,
timehost text NOT NULL,
weblog text NOT NULL,
money text NOT NULL,
erja text NOT NULL,
usedhost text NOT NULL,
fullhost text NOT NULL,
active text NOT NULL,
PRIMARY KEY (`h_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE fullads (
h_id bigint(40) NOT NULL auto_increment,
fullname text NOT NULL,
timehost text NOT NULL,
weblog text NOT NULL,
date text NOT NULL,
money text NOT NULL,
erja text NOT NULL,
active text NOT NULL,
PRIMARY KEY (`h_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE tagads (
h_id bigint(40) NOT NULL auto_increment,
fullname text NOT NULL,
timehost text NOT NULL,
weblog text NOT NULL,
date text NOT NULL,
money text NOT NULL,
erja text NOT NULL,
active text NOT NULL,
PRIMARY KEY (`h_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE ads (
a_id bigint(40) NOT NULL auto_increment,
user text NOT NULL,
adress text NOT NULL,
logo text NOT NULL,
adsshow text NOT NULL,
allshow text NOT NULL,
click text NOT NULL,
type text NOT NULL,
PRIMARY KEY (`a_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE temp (
id bigint(40) NOT NULL auto_increment,
removeads text NOT NULL,
ads text NOT NULL,
hosting text NOT NULL,
service text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE topiconline (
id bigint(40) NOT NULL auto_increment,
user text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE thanks (
id bigint(40) NOT NULL auto_increment,
p_id text NOT NULL,
t_id text NOT NULL,
user text NOT NULL,
thanksuser text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE abuseblog (
id bigint(40) NOT NULL auto_increment,
blogname text NOT NULL,
abuse text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE forumstatic (
s_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
ip text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`w_id`,`s_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE blogonline (
b_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
ip text NOT NULL,
date text NOT NULL,
useronline text NOT NULL,
username text NOT NULL,
timestamp int(15) DEFAULT '0' NOT NULL,
PRIMARY KEY (`w_id`,`b_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE siteonline (
s_id bigint(40) NOT NULL auto_increment,
ip text NOT NULL,
date text NOT NULL,
useronline text NOT NULL,
username text NOT NULL,
timestamp int(15) DEFAULT '0' NOT NULL,
PRIMARY KEY (`s_id`)
) TYPE=MyISAM; ");
mysql_query("CREATE TABLE blocksite (
b_id bigint(40) NOT NULL auto_increment,
act text NOT NULL,
payam text NOT NULL,
PRIMARY KEY (`b_id`)
) TYPE=MyISAM; ");
echo"sakht";
}
?><p> </p>
اینم فایل کانفیک
<?php
@error_reporting ( E_ALL ^ E_NOTICE );
@ini_set ( 'display_errors', true );
@ini_set ( 'html_errors', false );
@ini_set ( 'error_reporting', E_ALL ^ E_NOTICE );
if (! defined ( 'blogveb' )) {
die ( "Hacking attempt!" );
}
$dbhost = "localhost";
$dbname = "localhost";
$dbuser = "localhost";
$dbpass = "=localhost";
@$con = mysql_connect("$dbhost","$dbuser","$dbpass");
mysql_select_db("$dbname",$con) or die(mysql_error());
?>
دانلود فایلها
88324
فایل install رو به همراه فایل config میزارم تا بررسی کنید
دیتا بیس سیستم با اجرای فایل install.php ساخته میشه.اما من نتونستم این کار رو بکنم. و این دیتا بیس رو برا نصب سیستم نیاز دارم
ممنون میشم راهنمایی کنید
فایل install.php
<?php
echo "<html>
<head>
<meta http-equiv='Content-Type' content='text/html;'>
<title>Installer</title>
</head>
<body>
<p><font face='Verdana' style='font-size: 8pt'><font color='#FF3300'>Step1 :</font>
Please Edit config File and then click next</font></p>
<form method='POST' action=''>
<p>
<input type='submit' value=' Set Up' name='submit' style='font-family: Tahoma; font-size: 8pt; color: #FF3300; border: 1px solid #FFFFFF; background-color: #669999'></p>
</form>
</body>
</html>";
include ("config.php");
if($_POST['submit']){
mysql_query("
CREATE TABLE admin (
id bigint(40) NOT NULL auto_increment,
txtusername text NOT NULL,
txtemail text NOT NULL,
txtpassword text NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Users (
w_id bigint(40) NOT NULL auto_increment,
txtweblog text NOT NULL,
txtusername text NOT NULL,
txtpassword text NOT NULL,
txtemail text NOT NULL,
txttitle text NOT NULL,
txtauthor text NOT NULL,
txtItem text NOT NULL,
txtdescription text NOT NULL,
txtpostInpage text NOT NULL,
cmbPostDateFormat text NOT NULL,
cmbPostTimeFormat text NOT NULL,
blogcat text NOT NULL,
BlogAbout text NOT NULL,
BlogEmailEnable text NOT NULL,
image text NOT NULL,
template text NOT NULL,
commenttemplate text NOT NULL,
linkbox text NOT NULL,
news text NOT NULL,
signuptemplate text NOT NULL,
signuptext text NOT NULL,
titleforum text NOT NULL,
headerforum text NOT NULL,
footerforum text NOT NULL,
pageforum text NOT NULL,
regdate text NOT NULL,
PRIMARY KEY (w_id)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Authors (
a_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
username text NOT NULL,
password text NOT NULL,
email text NOT NULL,
Author text NOT NULL,
links text NOT NULL,
addpost text NOT NULL,
categories text NOT NULL,
page text NOT NULL,
members text NOT NULL,
news text NOT NULL,
ip text NOT NULL,
static text NOT NULL,
template text NOT NULL,
newsletter text NOT NULL,
poll text NOT NULL,
linkbox text NOT NULL,
setting text NOT NULL,
job text NOT NULL,
PRIMARY KEY (`w_id`,`a_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Category (
c_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
category text NOT NULL,
maincategory text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`c_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE MainCategory (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
category text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE entires (
e_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
weblog text NOT NULL,
author text NOT NULL,
title text NOT NULL,
how text NOT NULL,
catid text NOT NULL,
commenting text NOT NULL,
content text NOT NULL,
ContinuedPostContent text NOT NULL,
textmore text NOT NULL,
Source text NOT NULL,
Password text NOT NULL,
Keyword text NOT NULL,
totalvotes text NOT NULL,
uservotes text NOT NULL,
counter text NOT NULL,
member text NOT NULL,
signuptext text NOT NULL,
PRIMARY KEY (`w_id`,`e_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE comment (
c_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
t_id bigint(40) NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
weblog text NOT NULL,
author text NOT NULL,
name text NOT NULL,
email text NOT NULL,
webs text NOT NULL,
coment text NOT NULL,
answer text NOT NULL,
title text NOT NULL,
type text NOT NULL,
how text NOT NULL,
PRIMARY KEY (`w_id`,`c_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE links (
l_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
name text NOT NULL,
adress text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`l_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE members (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
name text NOT NULL,
username text NOT NULL,
password text NOT NULL,
email text NOT NULL,
weblog text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE news (
n_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
weblog text NOT NULL,
title text NOT NULL,
author text NOT NULL,
content text NOT NULL,
source text NOT NULL,
PRIMARY KEY (`w_id`,`n_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE template (
t_id bigint(40) NOT NULL auto_increment,
name text NOT NULL,
image text NOT NULL,
hometemp text NOT NULL,
comtemp text NOT NULL,
PRIMARY KEY (`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE term (
t_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
term text NOT NULL,
PRIMARY KEY (`w_id`,`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE ip (
i_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
ip text NOT NULL,
PRIMARY KEY (`w_id`,`i_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE static (
s_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
ip text NOT NULL,
referer text NOT NULL,
refereract text NOT NULL,
date text NOT NULL,
year text NOT NULL,
month text NOT NULL,
PRIMARY KEY (`w_id`,`s_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE newsletter (
n_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
email text NOT NULL,
PRIMARY KEY (`w_id`,`n_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE question (
q_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
question text NOT NULL,
totalvotes text NOT NULL,
PRIMARY KEY (`w_id`,`q_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE answer (
a_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
answer text NOT NULL,
votes text NOT NULL,
PRIMARY KEY (`w_id`,`a_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE linkbox (
l_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
name text NOT NULL,
adress text NOT NULL,
how text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`l_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE linkboxtemplate (
t_id bigint(40) NOT NULL auto_increment,
name text NOT NULL,
image text NOT NULL,
linkboxtemp text NOT NULL,
PRIMARY KEY (`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE page (
p_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
name text NOT NULL,
code text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`p_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE profile (
p_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
chkProfile text NOT NULL,
txtFirstname text NOT NULL,
txtLastname text NOT NULL,
txtBirthDay text NOT NULL,
cmbBirthMonth text NOT NULL,
txtBirthYear text NOT NULL,
cmbGender text NOT NULL,
txtCountry text NOT NULL,
txtCityName text NOT NULL,
txtAboutMe text NOT NULL,
txtEmail text NOT NULL,
txtYahoo text NOT NULL,
cmbEducationLevel text NOT NULL,
txtEducation text NOT NULL,
txtUniversity text NOT NULL,
txtProfession text NOT NULL,
txtFav text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`p_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE updates (
w_id bigint(40) NOT NULL auto_increment,
title text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Pollip (
i_id bigint(40) NOT NULL auto_increment,
ip text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`i_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Contact (
id bigint(40) NOT NULL auto_increment,
name text NOT NULL,
email text NOT NULL,
tel text NOT NULL,
text text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE abuse (
id bigint(40) NOT NULL auto_increment,
weblog text NOT NULL,
abuse text NOT NULL,
name text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE sitestatic (
id bigint(40) NOT NULL auto_increment,
ip text NOT NULL,
referer text NOT NULL,
refereract text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Categorypost (
c_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
catid bigint(40) NOT NULL,
p_id bigint(40) NOT NULL,
category text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`c_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Tagpost (
t_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
Tag text NOT NULL,
p_id tinyint(40) NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Sticky (
s_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
title text NOT NULL,
Sticky text NOT NULL,
How text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`s_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Domains (
d_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
domain text NOT NULL,
How text NOT NULL,
PRIMARY KEY (`w_id`,`d_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE yahoo (
y_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
yahoo text NOT NULL,
PRIMARY KEY (`w_id`,`y_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE mp3 (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
adress text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE thread (
t_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
title text NOT NULL,
author text NOT NULL,
count text NOT NULL,
lastdate text NOT NULL,
lastauthor text NOT NULL,
PRIMARY KEY (`w_id`,`t_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE answerthread (
a_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
t_id bigint(40) NOT NULL,
author text NOT NULL,
date text NOT NULL,
answer text NOT NULL,
title text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`w_id`,`a_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE menu (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
menuname text NOT NULL,
menutemp text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Leftmenu (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
menuname text NOT NULL,
menutemp text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE Centermenu (
m_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
menuname text NOT NULL,
menutemp text NOT NULL,
PRIMARY KEY (`w_id`,`m_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE upjava (
u_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
code text NOT NULL,
PRIMARY KEY (`w_id`,`u_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE downjava (
d_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
code text NOT NULL,
PRIMARY KEY (`w_id`,`d_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE friend (
f_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
pm text NOT NULL,
PRIMARY KEY (`w_id`,`f_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE blogpm (
b_id bigint(40) NOT NULL auto_increment,
title text NOT NULL,
weblog text NOT NULL,
sendweblog text NOT NULL,
pm text NOT NULL,
PRIMARY KEY (`b_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE hostorder (
h_id bigint(40) NOT NULL auto_increment,
fullname text NOT NULL,
timehost text NOT NULL,
weblog text NOT NULL,
money text NOT NULL,
erja text NOT NULL,
usedhost text NOT NULL,
fullhost text NOT NULL,
active text NOT NULL,
PRIMARY KEY (`h_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE fullads (
h_id bigint(40) NOT NULL auto_increment,
fullname text NOT NULL,
timehost text NOT NULL,
weblog text NOT NULL,
date text NOT NULL,
money text NOT NULL,
erja text NOT NULL,
active text NOT NULL,
PRIMARY KEY (`h_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE tagads (
h_id bigint(40) NOT NULL auto_increment,
fullname text NOT NULL,
timehost text NOT NULL,
weblog text NOT NULL,
date text NOT NULL,
money text NOT NULL,
erja text NOT NULL,
active text NOT NULL,
PRIMARY KEY (`h_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE ads (
a_id bigint(40) NOT NULL auto_increment,
user text NOT NULL,
adress text NOT NULL,
logo text NOT NULL,
adsshow text NOT NULL,
allshow text NOT NULL,
click text NOT NULL,
type text NOT NULL,
PRIMARY KEY (`a_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE temp (
id bigint(40) NOT NULL auto_increment,
removeads text NOT NULL,
ads text NOT NULL,
hosting text NOT NULL,
service text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE topiconline (
id bigint(40) NOT NULL auto_increment,
user text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE thanks (
id bigint(40) NOT NULL auto_increment,
p_id text NOT NULL,
t_id text NOT NULL,
user text NOT NULL,
thanksuser text NOT NULL,
weblog text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE abuseblog (
id bigint(40) NOT NULL auto_increment,
blogname text NOT NULL,
abuse text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE forumstatic (
s_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
ip text NOT NULL,
date text NOT NULL,
PRIMARY KEY (`w_id`,`s_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE blogonline (
b_id bigint(40) NOT NULL auto_increment,
w_id bigint(40) NOT NULL,
weblog text NOT NULL,
ip text NOT NULL,
date text NOT NULL,
useronline text NOT NULL,
username text NOT NULL,
timestamp int(15) DEFAULT '0' NOT NULL,
PRIMARY KEY (`w_id`,`b_id`)
) TYPE=MyISAM; ");
mysql_query("
CREATE TABLE siteonline (
s_id bigint(40) NOT NULL auto_increment,
ip text NOT NULL,
date text NOT NULL,
useronline text NOT NULL,
username text NOT NULL,
timestamp int(15) DEFAULT '0' NOT NULL,
PRIMARY KEY (`s_id`)
) TYPE=MyISAM; ");
mysql_query("CREATE TABLE blocksite (
b_id bigint(40) NOT NULL auto_increment,
act text NOT NULL,
payam text NOT NULL,
PRIMARY KEY (`b_id`)
) TYPE=MyISAM; ");
echo"sakht";
}
?><p> </p>
اینم فایل کانفیک
<?php
@error_reporting ( E_ALL ^ E_NOTICE );
@ini_set ( 'display_errors', true );
@ini_set ( 'html_errors', false );
@ini_set ( 'error_reporting', E_ALL ^ E_NOTICE );
if (! defined ( 'blogveb' )) {
die ( "Hacking attempt!" );
}
$dbhost = "localhost";
$dbname = "localhost";
$dbuser = "localhost";
$dbpass = "=localhost";
@$con = mysql_connect("$dbhost","$dbuser","$dbpass");
mysql_select_db("$dbname",$con) or die(mysql_error());
?>
دانلود فایلها
88324