<?php
/*
** Aratix
** Version 0.2.2beta9 (Anubis)
**
** Autor: Manuel Burghammer
** E-Mail: hide@address.com
** Homepage: http://www.xitara.net
**
** File: install.inc.php - Version 0.2.2 build 5
** Position: /setup/
** Last Modified: 20.04.2006 - 16:31:46
*/
$d = dir($current_path . 'setup/modules');
include("../inc/mysql.conf.php");
$db->connect($db_host, $db_user, $db_pass);
$db->select_db($db_base);
/* Neues Installationsobjekt
** erzeugen
*/
$install = new Install;
/* Für alle Dateien im Verzeichnis
** die Installationsroutine aufrufen
*/
while(false !== ($entry = $d->read())){
if(!is_dir($current_path . 'setup/modules/' . $entry) && $entry != "." && $entry != ".."){
$install->install_archive($current_path . 'setup/modules/' . $entry); // Installation aufrufen
$installed[] = $install->installed;
/* Array für die Templateausgabe
** erzeugen und an Smarty
** übergeben
*/
// $extensions = array("module" => "Modul", "block" => "Block", "plugin" => "Plugin");
// $ext = $install->xml['art'];
// echo "$ext - " . $extensions[$ext];
// $module['art'] = $extensions[$install->xml['art']];
// $module['name'] = $db->read(TB_PREFIX . $install->xml['art'], 'name', "name='" . $install->xml->name . "'");
// $module['version'] = $install->xml->version;
// echo $install->extension['name'] . "<br>";
}
}
$content->assign("installed", $installed);
?>