Перейти к контенту

«He11.net Forums v1.0»! Пароль!


Рекомендуемые сообщения

Скачал «He11.net Forums v1.0»!

При запуске «install.php»

Пароль и логин запрашивает!

Каким образом можно получить его?

 

 

С Уважением satstar@nm.ru

алекс

Ссылка на комментарий
Поделиться на других сайтах

Приведите дословно что он запроашивает, может быть пароль и логин для коннекта к базе?
Ссылка на комментарий
Поделиться на других сайтах

<?php

require('../config.inc.php');

 

if(trim($QUERY_STRING) != 'install') {

?>

<html>

<head>

<title>He11.net v1.0 - Forum Installation</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

 

<body><center>

 

<form action="<?=$PHP_SELF?>?install" method=post>

Username:<br>

<input type=text name=username><br>

Password:<br>

<input type=text name=password><br>

<input type=submit value="Install!">

</form>

<hr>

Please Delete the script (install.php) after you install the forums.

<hr>

<font face=Tahoma size=1>Copyright © <a href=mailto:kerxp@yandex.ru>Dragon</a> 2oo3</font>

</center> <?

} else {

 

if(empty($username) || empty($password)) {

lederror("You need to fill in the username and password fields.");

}

 

mysql_query("CREATE TABLE $tables[flist] (

id int(11) DEFAULT '0' NOT NULL auto_increment,

name varchar(255) NOT NULL,

description text NOT NULL,

moderator_id int(11) DEFAULT '0' NOT NULL,

PRIMARY KEY (id)

)") or lederror(mysql_error());

 

 

# --------------------------------------------------------

#

# Table structure for table 'Dragon_icons'

#

 

mysql_query("CREATE TABLE $tables[icon] (

id int(11) DEFAULT '0' NOT NULL auto_increment,

url varchar(255) NOT NULL,

replace_text varchar(255) NOT NULL,

PRIMARY KEY (id)

)") or lederror(mysql_error());

 

 

# --------------------------------------------------------

#

# Table structure for table 'Dragon_posts'

#

 

mysql_query("CREATE TABLE $tables[posts] (

id int(11) DEFAULT '0' NOT NULL auto_increment,

parent_id int(11) DEFAULT '0' NOT NULL,

forum_id int(11) DEFAULT '0' NOT NULL,

poster_id int(11) DEFAULT '0' NOT NULL,

headline varchar(255) NOT NULL,

body longtext NOT NULL,

unixtime int(11) DEFAULT '0' NOT NULL,

icon_id int(11) DEFAULT '0' NOT NULL,

sig tinyint(4) DEFAULT '0' NOT NULL,

PRIMARY KEY (id)

)") or lederror(mysql_error());

 

 

# --------------------------------------------------------

#

# Table structure for table 'Dragon_style_settings'

#

 

mysql_query("CREATE TABLE $tables[style] (

id tinyint(4) DEFAULT '0' NOT NULL auto_increment,

background varchar(255) NOT NULL,

image_url varchar(255) NOT NULL,

background_image_url varchar(255) NOT NULL,

table_width varchar(255) NOT NULL,

table_top_background varchar(255) NOT NULL,

first_alt_colum_bg varchar(255) NOT NULL,

second_alt_colum_bg varchar(255) NOT NULL,

forum_name varchar(255) NOT NULL,

header longtext NOT NULL,

footer longtext NOT NULL,

copyright_text longtext NOT NULL,

text_color varchar(255) NOT NULL,

link_color varchar(255) NOT NULL,

vlink_color varchar(255) NOT NULL,

alink_color varchar(255) NOT NULL,

font varchar(255) NOT NULL,

PRIMARY KEY (id)

)") or lederror(mysql_error());

 

 

# --------------------------------------------------------

#

# Table structure for table 'Dragon_threads'

#

 

mysql_query("CREATE TABLE $tables[threads] (

id int(11) DEFAULT '0' NOT NULL auto_increment,

forum_id int(11) DEFAULT '0' NOT NULL,

post_id int(11) DEFAULT '0' NOT NULL,

update_time int(11) DEFAULT '0' NOT NULL,

closed tinyint(4) DEFAULT '0' NOT NULL,

mail tinyint(4) DEFAULT '0' NOT NULL,

PRIMARY KEY (id)

)") or lederror(mysql_error());

 

 

# --------------------------------------------------------

#

# Table structure for table 'Dragon_users'

#

 

mysql_query("CREATE TABLE $tables[user] (

id int(11) DEFAULT '0' NOT NULL auto_increment,

username varchar(255) NOT NULL,

password varchar(255) NOT NULL,

email varchar(255) NOT NULL,

homepage varchar(255) NOT NULL,

icq varchar(255) NOT NULL,

location varchar(255) NOT NULL,

avatar varchar(255) NOT NULL,

sig text NOT NULL,

uncrypt_pass varchar(255) DEFAULT '0' NOT NULL,

auth tinyint(4) DEFAULT '0' NOT NULL,

status int(11) DEFAULT '0' NOT NULL,

PRIMARY KEY (id)

)") or lederror(mysql_error());

 

 

mysql_query("INSERT INTO $tables[style] VALUES ( '1', '3E474B', 'images/logo.gif', '', '80%', 'FF6633', '727A7E', '666F74', 'You Forum Name', '', '', 'Copyright © Dragon', 'FFFFFF', 'CCCCCC', 'CCCCCC', '999999', 'Verdana, Arial, Helvetica, sans-serif')") or lederror(mysql_error());

 

mysql_query("INSERT INTO $tables[icon] VALUES ( '1', 'images/icon1.gif', '1')") or lederror(mysql_error());

 

mysql_query("INSERT INTO $tables[user] (username, password, uncrypt_pass, auth) VALUES ('$username', '".md5($password)."', '$password', '1')") or lederror(mysql_error());

@fopen("http://".$HTTP_HOST.$PHP_SELF, "r");

?>

Congrats! Forums Installed! <a href="index.php">Login and start Administrating!</a><br>

<b>Delete install.php right now!</b><br>

Note: Once you log in, you'll be taken to your forum's main page. You'll need to go to /admin/index.php manually to start working with the forums.

<?

}

 

?></body>

</html>

Ссылка на комментарий
Поделиться на других сайтах

Пароль с логином от SQL не работает! Без него база не создается! В ручную составил sql, в базу отправил, вроде работает! Много функций так и не подключилось.

Пароль не найду, подробно придется разбираться!

Ссылка на комментарий
Поделиться на других сайтах

  • 2 недели спустя...

satstar

Читаем прилагаемый Readme.txt

*  He11.net Forums v1.0  *

**************************

Installation:

1 - In file "config.inc.php" edit database features.

Открываем и видем

//Variables
/* This is the hostname of your mysql server. Usually 'localhost' */
$hostname	= 'localhost';

/* This is the Username for mysql */
$sqluser	= 'user';

/* This is the Password for mysql */
$sqlpass	= 'pass';

/* This is the database name that will store all the tables */
$dbName		= 'forum';

Правим и запускаем /admin/install.php

 

$hostname = 'localhost'; <- твой mysql  хост

$sqluser = 'user'; <- твой mysql-user  // получишь от хостера

$sqlpass = 'pass'; <- твой mysql-password  // получишь от хостера

$dbName  = 'forum'; <- твоя датенбаза  // получишь от хостера

Ссылка на комментарий
Поделиться на других сайтах

Присоединиться к обсуждению

Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.

Гость
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Ответить в этой теме...

×   Вы вставили отформатированный текст.   Удалить форматирование

  Допустимо не более 75 смайлов.

×   Ваша ссылка была автоматически заменена на медиа-контент.   Отображать как ссылку

×   Ваши публикации восстановлены.   Очистить редактор

×   Вы не можете вставить изображения напрямую. Загрузите или вставьте изображения по ссылке.

Зарузка...
×
×
  • Создать...

Важная информация

Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.