14include_once
'../mainfile.php';
16$detected = str_replace( [
'\\',
'/install'], [
'/',
''], getcwd() );
17if (
'/' === substr( $detected, - 1 ) ) {
18 $detected = substr( $detected, 0, - 1 );
21if ( empty( $detected ) ) {
22 $wizard->addArray(
'checks', _NGIMG . _INSTALL_L95 );
23} elseif ( XOOPS_ROOT_PATH !== $detected ) {
24 $wizard->addArray(
'checks', _NGIMG . sprintf( _INSTALL_L96, $detected ) );
26 $wizard->addArray(
'checks', _OKIMG . _INSTALL_L97 );
29if ( ! is_dir( XOOPS_ROOT_PATH ) ) {
30 $wizard->addArray(
'checks', _NGIMG . _INSTALL_L99 );
33if ( preg_match(
'/^http[s]?:\/\/(.*)[^\/]+$/i', XOOPS_URL ) ) {
34 $wizard->addArray(
'checks', _OKIMG . _INSTALL_L100 );
36 $wizard->addArray(
'checks', _NGIMG . _INSTALL_L101 );
39$wizard->render(
'install_mainfile.tpl.php' );