Removed the templates, it should now work

This commit is contained in:
jengo 2000-08-27 01:59:30 +00:00
parent 0637628c84
commit 6b0c6ae7ca

View File

@ -25,18 +25,6 @@
} }
if (($con) && (! $confirm)) { if (($con) && (! $confirm)) {
$t = new Template($phpgw_info["server"]["template_dir"]);
$t->set_file(array("form" => "delete_common.tpl",
"message_row" => "delete_common.tpl"));
$t->set_var("yes","yes");
$t->set_var("no","no");
$t->set_var("message_display",lang_admin("Are you sure you want to delete this account ?"));
$t->set_var("message_display",lang_admin("All records and account information will be lost!"));
$t->parse("messages","message_row");
$t->pparse("out","form");
/*
?> ?>
<center> <center>
<table border=0 with=65%> <table border=0 with=65%>
@ -60,8 +48,7 @@
</tr> </tr>
</table> </table>
</center> </center>
<?php <?
*/
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php"); include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
} }
@ -78,8 +65,8 @@
} }
$table_locks = array('preferences','todo','addressbook','accounts','users_headlines', $table_locks = array('preferences','todo','addressbook','accounts','users_headlines',
'webcal_entry','webcal_entry_user','webcal_entry_repeats', 'webcal_entry','webcal_entry_user','webcal_entry_repeats',
'webcal_entry_groups'); 'webcal_entry_groups');
$phpgw->db->lock($table_locks); $phpgw->db->lock($table_locks);
for ($i=0; $i<count($cal_id); $i++) { for ($i=0; $i<count($cal_id); $i++) {
@ -101,7 +88,8 @@
$sep = $phpgw->common->filesystem_separator(); $sep = $phpgw->common->filesystem_separator();
$basedir = $phpgw_info["server"]["files_dir"] . $sep . "users" . $sep; $basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep . "users"
. $sep;
if (! @rmdir($basedir . $lid)) { if (! @rmdir($basedir . $lid)) {
$cd = 34; $cd = 34;
@ -111,4 +99,4 @@
Header("Location: " . $phpgw->link("accounts.php","cd=$cd")); Header("Location: " . $phpgw->link("accounts.php","cd=$cd"));
} }
?> ?>