czesc zainstalowalem lms dokaldnie tak jak jest w opisie i nie dziala mi po wpisaniu adresu wyskakuja mi kupa krzaczkow tj:
$val) $_CONFIG[$key] = $val; // Define directories $_SYSTEM_DIR = (! $_CONFIG[directories]['sys_dir'] ? getcwd() : $_CONFIG[directories]['sys_dir']); $_BACKUP_DIR = (! $_CONFIG[directories]['backup_dir'] ? $_SYSTEM_DIR."/backups/" : $_CONFIG[directories]['backup_dir']); $_LIB_DIR = (! $_CONFIG[directories]['lib_dir'] ? $_SYSTEM_DIR."/lib/" : $_CONFIG[directories]['lib_dir']); $_MODULES_DIR = (! $_CONFIG[directories]['modules_dir'] ? $_SYSTEM_DIR."/modules/" : $_CONFIG[directories]['modules_dir']); $_SMARTY_DIR = (! $_CONFIG[directories]['smarty_dir'] ? $_LIB_DIR."/Smarty/" : $_CONFIG[directories]['smarty_dir']); $_SMARTY_COMPILE_DIR = (! $_CONFIG[directories]['smarty_compile_dir'] ? $_SYSTEM_DIR."/templates_c" : $_CONFIG[directories]['smarty_compile_dir']); $_SMARTY_TEMPLATES_DIR = (! $_CONFIG[directories]['smarty_templates_dir'] ? $_SYSTEM_DIR."/templates" : $_CONFIG[directories]['smarty_templates_dir']); $_ADODB_DIR = (! $_CONFIG[directories]['adodb_dir'] ? $_LIB_DIR."/adodb/" : $_CONFIG[directories]['adodb_dir']); $_TIMEOUT = (! $_CONFIG[phpui]['timeout'] ? 600 : $_CONFIG[phpui]['timeout']); // Define database variables $_DBTYPE = (! $_CONFIG[database]['type'] ? "mysql" : $_CONFIG[database]['type']); $_DBHOST = (! $_CONFIG[database]['host'] ? "localhost" : $_CONFIG[database]['host']); $_DBUSER = (! $_CONFIG[database]['user'] ? "root" : $_CONFIG[database]['user']); $_DBPASS = (! $_CONFIG[database]['password'] ? "" : $_CONFIG[database]['password']); $_DBNAME = (! $_CONFIG[database]['database'] ? "lms" : $_CONFIG[database]['database']); // Set our sweet polish locales :> setlocale (LC_ALL, 'pl_PL'); // include required files require_once($_LIB_DIR."/common.php"); require_once($_LIB_DIR."/checkip.php"); require_once($_LIB_DIR."/checkdirs.php"); require_once($_LIB_DIR."/unstrip.php"); require_once($_SMARTY_DIR.'/Smarty.class.php'); require_once($_ADODB_DIR.'/adodb.inc.php'); require_once($_LIB_DIR."/LMS.class.php"); require_once($_LIB_DIR."/Session.class.php"); require_once($_LIB_DIR."/leftmenu.php"); require_once($_LIB_DIR."/TipOfTheDay.php"); // Initialize ADODB object $ADB = ADONewConnection($_DBTYPE); $ADB->debug = ($_CONFIG[phpui][adodb_debug] ? TRUE : FALSE); if($_CONFIG[phpui][adodb_debug_log] && is_writeable($_CONFIG[phpui][adodb_debug_log])) define(ADODB_OUTP,'writelog'); $ADB->Connect($_DBHOST,$_DBUSER,$_DBPASS,$_DBNAME); $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; // Initialize database and template classes $SESSION = new Session($ADB,$_TIMEOUT); $LMS = new LMS($ADB,$SESSION); $LMS->CONFIG[backup_dir] = $_BACKUP_DIR; $LMS->CONFIG[debug_email] = $_CONFIG[phpui][debug_email]; $SMARTY = new Smarty; $SMARTY->template_dir = $_SMARTY_TEMPLATES_DIR; $SMARTY->compile_dir = $_SMARTY_COMPILE_DIR; $SMARTY->cache_dir = $_SYSTEM_DIR.'/cache/'; $SMARTY->debugging = ($_CONFIG[phpui][smarty_debug] ? TRUE : FALSE); $layout[logname]=$SESSION->logname; $layout[logid]=$SESSION->id; $layout[lmsv]="1.0-pre5"; $layout[uptime]=uptime(); $layout[hostname]=hostname(); $SMARTY->assign("menu",$menu); $SMARTY->assign("layout",$layout); if($SESSION->islogged) { $module=$_GET['m']; if (file_exists($_MODULES_DIR."/".$module.'.php')) { $layout[module]=$module; include($_MODULES_DIR."/".$module.'.php'); }else{ $layout[module]="welcome"; include($_MODULES_DIR.'/welcome.php'); } if($_SESSION[lastmodule]!=$module) $_SESSION[lastmodule]=$module; }else{ $SMARTY->assign("error",$SESSION->error); $SMARTY->assign("target","?".$_SERVER[QUERY_STRING]); $SMARTY->display("login.html"); } ?>
bede bardzo wdzieczny jesli pomozecie mi to przejsc zeby odpalil zainstalowana wersja to lms-1.0pre5.tar.gz dzieki i pozdrawiam karol
uczestnicy (1)
-
Karol