From: <dhe...@us...> - 2003-10-21 00:50:20
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1:/tmp/cvs-serv3356 Modified Files: tiki-install.php Log Message: tiki install profiles stuff. not functional yet, but shouldn't break anything. Index: tiki-install.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-install.php,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- tiki-install.php 16 Oct 2003 20:55:57 -0000 1.21 +++ tiki-install.php 20 Oct 2003 21:34:17 -0000 1.22 @@ -270,6 +270,9 @@ $wwwuser = 'SYSTEM'; $wwwgroup = 'SYSTEM'; +//} else { +// $wwwuser = shell_exec('id -un'); +// $wwwgroup = shell_exec('id -gn'); } if (function_exists('posix_getuid')) { @@ -544,6 +547,19 @@ } else { $smarty->assign('noadmin', 'n'); } + +//Load Profiles +$profiles = array(); +$h = opendir('db/profiles/'); + +while ($file = readdir($h)) { + if (strstr($file, '.prf')) { + $profiles[] = $file; + } +} + +closedir ($h); +$smarty->assign('profiles', $profiles); //Load SQL scripts $files = array(); |