Да странно выходит, и сайт домашний не пашет. и инстала нету... :-D
» 7.9.04 14:50
Гость
Re: AzDG
Файл т.е содержимон файла install.php взят с оригинального AzDGDatingLite2, пользуйтесь кому нужно !!!
<?php ############################################################ # \-\-\-\-\-\-\ AzDG - S C R I P T S /-/-/-/-/-/-/ # ############################################################ # AzDGDatingLite Version 2.0.5 # # Writed by AzDG (support@azdg.com) # # Created 03/01/03 Last Modified 20/03/03 # # Scripts Home: http://www.azdg.com # ############################################################ # File name install.php # # File purpose Installation script # # File created by AzDG <support@azdg.com> # ############################################################ include_once 'include/config.inc.php'; include_once 'include/options.inc.php'; include_once 'include/security.inc.php'; include_once 'languages/'.C_ADMINLANG.'/'.C_ADMINLANG.'a.php';
$int_path = realpath("."); $int_path=str_replace("\\","/",$int_path); $ext_path='http://'.getenv('SERVER_NAME').dirname(getenv('REQUEST_URI')); $ext_path=str_replace("\\","/",$ext_path); $err="0"; ?> <html><head><title><?=C_SNAME?> INSTALLATION</title> </head> <body bgcolor="#C2FBFE"> <center><table width="80%"><tr><td> <basefont size="4" color="navy" face="Verdana,Tahoma"> <center><b><?=C_SNAME?> Installation</b></center> <hr color=navy size=2> <font size="2" color="black" face="Verdana"> First of all you must change your <b>include/config.inc.php</b> file!<br><br> Some <b>(most important)</b> variables for your <b>config.inc.php</b>:<br><br> <b>define('C_URL', '<?=$ext_path?>');</b><br> <? if($int_path != '') {?><b>define('C_PATH','<?=$int_path?>');</b> <?} else {?><b>C_PATH</b> don`t detected - ask from your hosting<?}?> <br><br> Copy and paste it instead of default variables! </font>
<hr color=navy size=2>
<? /////// C_URL NOT SET if (C_URL == "http://www.test.net/AzDGDatingLite") {?> <center><h3 style='color:red'>Installation Error: Please Change C_URL in config.inc.php</h3></center> <?die;} //////////////////////////
/////// C_PATH NOT SET if (C_PATH == "Z:/home/www.test.net/www/AzDGDatingLite") {?> <center><h3 style='color:red'>Installation Error: Please Change C_PATH in config.inc.php</h3></center> <?die;} //////////////////////////
/////// C_PASS NOT SET if (C_PASS == "password") {?> <center><h3 style='color:red'>Installation Error: Please Check MySQL settings in config.inc.php</h3></center> <?die;} //////////////////////////
/////// C_ADMINP NOT SET if (C_ADMINP == "") {?> <center><h3 style='color:red'>Installation Error: Please change your admin login and password in config.inc.php</h3></center> <?die;} //////////////////////////
@mysql_connect(C_HOST, C_USER, C_PASS) or die($w[113]); @mysql_select_db(C_BASE) or die($w[114]);
$sql = "CREATE TABLE ".C_MYSQL_TEMP." ( id smallint unsigned NOT NULL, date DATE NOT NULL default '0', code char(32) NOT NULL default '' )"; mysql_query($sql);
$sql = "CREATE TABLE ".C_MYSQL_MEMBERS." ( id smallint unsigned ZEROFILL NOT NULL auto_increment, fname varchar(16) NOT NULL default '', lname varchar(30) NOT NULL default '', password char(16) NOT NULL default '', birthday DATE NOT NULL default '0', gender tinyint unsigned NOT NULL default '0', purposes tinyint unsigned NOT NULL default '0', country tinyint unsigned NOT NULL default '0', email varchar(64) NOT NULL default '', url varchar(64) NOT NULL default '', icq int unsigned NOT NULL default '0', aim varchar(16) NOT NULL default '', phone varchar(20) NOT NULL default '', city varchar(32) NOT NULL default '', marstat tinyint unsigned NOT NULL default '0', child tinyint unsigned NOT NULL default '0', height tinyint unsigned NOT NULL default '0', weight tinyint unsigned NOT NULL default '0', hcolor tinyint unsigned NOT NULL default '0', ecolor tinyint unsigned NOT NULL default '0', etnicity tinyint unsigned NOT NULL default '0', religion tinyint unsigned NOT NULL default '0', smoke tinyint unsigned NOT NULL default '0', drink tinyint unsigned NOT NULL default '0', education tinyint unsigned NOT NULL default '0', job varchar(30) NOT NULL default '', hobby tinytext NOT NULL default '', descr text NOT NULL default '', sgender tinyint unsigned NOT NULL default '0', setnicity tinyint unsigned NOT NULL default '0', sreligion tinyint unsigned NOT NULL default '0', agef tinyint unsigned NOT NULL default '0', aget tinyint unsigned NOT NULL default '0', heightf tinyint unsigned NOT NULL default '0', heightt tinyint unsigned NOT NULL default '0', weightf tinyint unsigned NOT NULL default '0', weightt tinyint unsigned NOT NULL default '0', hdyfu tinyint unsigned NOT NULL default '0', pic1 varchar(24) NOT NULL default '', pic2 varchar(24) NOT NULL default '', pic3 varchar(24) NOT NULL default '', horo tinyint unsigned NOT NULL default '0', regdate DATETIME NOT NULL default '0', editdate DATETIME NOT NULL default '0', ip int unsigned NOT NULL default '0', status tinyint unsigned NOT NULL default '0', req tinyint unsigned NOT NULL default '0', UNIQUE KEY id (id) )"; mysql_query($sql);
$sql = "CREATE TABLE ".C_MYSQL_ONLINE_USERS." ( time time NOT NULL, user smallint unsigned NOT NULL default '0' )"; mysql_query($sql);
$sql = "CREATE TABLE ".C_MYSQL_ONLINE_QUESTS." ( time time NOT NULL, ip int( unsigned NOT NULL default '0' )"; mysql_query($sql);
echo "<center><h2>Tables for ".C_SNAME." has been installed.<br><br><u>Note: You can`t remove copyrights on the bottom of any script page</u><br><br>Troubles??? Read readme.txt file, and visit our forum <a href=\"http://www.azdg.com/forum/\" target=\"_blank\">http://www.azdg.com/forum/</a></h2>";
Привет! Скрипт работает если взять базу с оф сайта и добавить в свою, при этом изменить настройки скрипта. Но работает не всё, Изменить, удалить профайл нельзя нужно файлы логинов подгонять под цмс.