سلام آقاي sarallah
من با اجازتون نسخه php nuke farsi شما رو دانلود كردو اما وقتي خواستم كه در localhost فايل install.php رو اجرا كنم يه Error داد كه در اين قسمت برا تون مي نويسم.
Fatal error: Cannot instantiate non-existent class: sql_db in d:\program files\easyphp1-7\www\nuke\nuke7.3farsi\db\db.php on line 86
لطفا بگين بايد چكار كنم تا اين اشتباه برطرف بشه و من هم بتونم از نسخه فارسي نوك شما استفاده كنم
در ضمن در اين قسمت نمونه فايل db.php رو هم براتون نوشتم.
[align=left:a11167baa4]<?php
/***************************************************************************
* db.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email :
[email protected]
*
* $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
* This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
* by Tom Nitzschner (
[email protected])
*
http://bbtonuke.sourceforge.net (or
http://www.toms-home.com)
*
* As always, make a backup before messing with anything. All code
* release by me is considered sample code only. It may be fully
* functual, but you use it at your own risk, if you break it,
* you get to fix it too. No waranty is given or implied.
*
* Please post all questions/request about this port on
http://bbtonuke.sourceforge.net first,
* then on my site. All original header code and copyright messages will be maintained
* to give credit where credit is due. If you modify this, the only requirement is
* that you also maintain all original copyright messages. All my work is released
* under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
global $forum_admin;
if ($forum_admin == 1) {
$the_include = "../../../db";
} elseif ($inside_mod == 1) {
$the_include = "../../db";
} else {
$the_include = "db";
}
switch($dbtype) {
case 'MySQL':
include("".$the_include."/mysql.php");
break;
case 'mysql4':
include("".$the_include."/mysql4.php");
break;
case 'postgres':
include("".$the_include."/postgres7.php");
break;
case 'mssql':
include("".$the_include."/mssql.php");
break;
case 'oracle':
include("".$the_include."/oracle.php");
break;
case 'msaccess':
include("".$the_include."/msaccess.php");
break;
case 'mssql-odbc':
include("".$the_include."/mssql-odbc.php");
break;
case 'db2':
include("".$the_include."/db2.php");
break;
}
$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
die("<br><br><center><img src=images/logo.gif><br><br>
There seems to be a problem with the MySQL server, sorry for the inconvenience.<br><br>We should be back shortly.</center>");
}
?>[/align:a11167baa4]
اميد وارم تا با كمك شما بتونم موفق به نصب اين برنامه بشم