Remove unused function

This commit is contained in:
Miles Lott 2002-01-02 15:46:17 +00:00
parent 0ce125a2d2
commit 49f7216e19
2 changed files with 0 additions and 44 deletions

View File

@ -241,7 +241,6 @@
unset($t); unset($t);
} }
//$phpgw_setup->execute_script('config',array('phpgwapi','admin','preferences')); /* ;,'preferences','email','nntp')); */
$setup_tpl->set_var('more_configs',lang('Please login to phpgroupware and run the admin application for additional site configuration') . '.'); $setup_tpl->set_var('more_configs',lang('Please login to phpgroupware and run the admin application for additional site configuration') . '.');
$setup_tpl->set_var('lang_submit',lang('submit')); $setup_tpl->set_var('lang_submit',lang('submit'));

View File

@ -531,49 +531,6 @@
$this->db->query("DELETE FROM phpgw_hooks WHERE hook_appname='". $appname ."'"); $this->db->query("DELETE FROM phpgw_hooks WHERE hook_appname='". $appname ."'");
} }
/* The following function is only used by config.php */
/*!
@function execute_script
@abstract Run scripts (form sections) per application for a particular setup screen
@param $script Name of script to run, e.g. 'config' == 'config.inc.php'
@param $order optional, set to a sorting array to run scripts in a
particular order
*/
function execute_script($script, $order = '')
{
if ($order != '' && !is_array($order))
{
$new_order = $order;
unset($order);
$order = array($new_order);
}
if ($order == '')
{
unset($order);
$order = array();
}
/* First include the ordered setup script file */
@reset ($order);
while (list (,$appname) = @each($order))
{
$f = PHPGW_SERVER_ROOT . '/' . $appname . '/setup/' . $script . '.inc.php';
if (file_exists($f)) { include($f); }
$completed_scripts[$appname] = True;
}
/* Then add the rest */
/*
$d = dir(PHPGW_SERVER_ROOT);
while ($entry=$d->read())
{
if ($entry != "" && $completed_scripts[$entry] != True)
{
$f = PHPGW_SERVER_ROOT . '/' . $entry . '/setup/' . $script . '.inc.php';
if (file_exists($f)) { include($f); }
}
}
*/
}
/*! /*!
@function alessthanb @function alessthanb
@abstract phpgw version checking, is param 1 < param 2 in phpgw versionspeak? @abstract phpgw version checking, is param 1 < param 2 in phpgw versionspeak?