Location: PHPKode > projects > Netautor Professional > netautor/napro4/admin/index/create_index.php
<?php 
/* +----------------------------------------------------------------------+
   | Netautor Professional Application Server                             |
   +----------------------------------------------------------------------+
   | Copyright (C) 1998-2005 digiconcept GmbH. <www.digiconcept.net>      |
   +----------------------------------------------------------------------+
   | This file is subject to license, that is bundled with this package   |
   | in the file LICENSE.TXT, and is available at through the             |
   | world-wide-web at http://www.netautor.com/license/                   |
   |                                                                      |
   | If you did not receive a copy of the license and are unable to       |
   | obtain it through the world-wide-web, please send a note to          |
   | hide@address.com so we can mail you a copy.                      |
   +----------------------------------------------------------------------+
   | Authors: Stefan Rottensteiner <hide@address.com>    |
   |          Marek  Kadziela      <hide@address.com>	      |
   |          Gregor Wollner                                              |
   |          Christian Unger                                             |
   |          Helli  Kleinhans  									      |
   +----------------------------------------------------------------------+*/

/**
 * @version	$Revision: 1.8 $
 * @author	Stefan Rottensteiner
 */

require_once('../../include/init.inc'); 
if(!$GLOBALS['USER']->check_feature('Admin'))
{
	$GLOBALS['USER']->login_call();
}

includeNaPro('form,swish');	

	$LOCALE->textdomain('index');

	$GFX_Path = "../../grafik/";
//	error_reporting(255);
	if (!empty($idx_path) && !empty($GLOBALS['WINDIR'])) $idx_path= str_replace("/","\\",$idx_path);
	if (!empty($idx_name)) $idx_name= str_replace(" ","_",$idx_name);
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//DE">
<html>
	<head>
		<title><?php echo $LOCALE->gettext('idx_create'); ?></title>
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<meta http-equiv="pragma" 			content="no-cache"> 
		<meta http-equiv="cache-control" 	content="no-cache">
		<meta name		="robots" 			content="noindex">
		<link href="../../include/netautor.css" rel="stylesheet" type="text/css">	
	</head>
<body class="blue">
<table width="95%" align="center" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td bgcolor="#f6f6f6" align="left" class="text">
			<?php
			$Params = array();
			// Wenn es ein Config-File gibt, dann bitte dieses verwenden
			if (@file_exists($idx_path."/config.swish-e"))	
			{
				$Params['c']=$idx_path."/config.swish-e";
				echo("Configuration file \"".$idx_path."/config.swish-e"."\"<br>");
			}
			// Wenn es kein Config-File gibt, dann wird noch nichts weiteres getan	
			else
			{
				echo ("No configuration file detected ..<br>");
			}

			$SW = create_Swish();
			$e = $SW->createIndexFromFiles($idx_path,$idx_path."/index.swish-e",$Params);

			if (is_array($e)) $e = implode("<br>",$e);

			echo '<hr><code><pre>'.$e.'</pre></code>';
			?>
		</font>
		</td>						
	</tr>
</table>

<center>
	<a onClick="window.opener.document.forms[0].submit();window.close();" href="#funz" ><img border=0 src="<?php echo($GFX_Path);?>findex/back.gif"></a>
</center>
</body>
</html>
Return current item: Netautor Professional