mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
switched to a new distributed pref and admin which allow add-on apps to have their settings put into the main screens
This commit is contained in:
parent
9fc3998eb7
commit
24d5295a9d
@ -78,8 +78,8 @@
|
||||
$phpgw->db->query("delete from webcal_entry_user where cal_login='$lid'");
|
||||
|
||||
$phpgw->db->query("delete from preferences where owner='$lid'");
|
||||
$phpgw->db->query("delete from todo where owner='$lid'");
|
||||
$phpgw->db->query("delete from addressbook where owner='$lid'");
|
||||
$phpgw->db->query("delete from todo where todo_owner='$lid'");
|
||||
$phpgw->db->query("delete from addressbook where ab_owner='$lid'");
|
||||
$phpgw->db->query("delete from accounts where loginid='$lid'");
|
||||
//$phpgw->db->query("delete from users_headlines where owner='$lid'");
|
||||
//$phpgw->db->query("delete from profiles where owner='$lid'");
|
||||
@ -88,9 +88,11 @@
|
||||
|
||||
$sep = $phpgw->common->filesystem_separator();
|
||||
|
||||
$basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep . "users"
|
||||
. $sep;
|
||||
//$basedir = $phpgw_info["server"]["server_root"] . $sep . "filemanager" . $sep . "users"
|
||||
// . $sep;
|
||||
$basedir = $phpgw_info["server"]["files_dir"] . $sep . "users" . $sep;
|
||||
|
||||
//echo "<h1> rmdir:".$basedir . $lid."</h1>\n";
|
||||
if (! @rmdir($basedir . $lid)) {
|
||||
$cd = 34;
|
||||
} else {
|
||||
@ -99,4 +101,4 @@
|
||||
|
||||
Header("Location: " . $phpgw->link("accounts.php","cd=$cd"));
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -45,4 +45,4 @@
|
||||
|
||||
section_end();
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -3,6 +3,8 @@
|
||||
* phpGroupWare - administration *
|
||||
* http://www.phpgroupware.org *
|
||||
* Written by Joseph Engo <jengo@phpgroupware.org> *
|
||||
* Modified by Stephen Brown <steve@dataclarity.net> *
|
||||
* to distribute admin across the application directories *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
@ -16,17 +18,44 @@
|
||||
|
||||
include("../header.inc.php");
|
||||
check_code($cd);
|
||||
?>
|
||||
|
||||
<p>
|
||||
<br><a href="<?php echo $phpgw->link("accounts.php") . "\">" . lang("User accounts"); ?></a>
|
||||
<br><a href="<?php echo $phpgw->link("groups.php") . "\">" . lang("User groups"); ?></a>
|
||||
<br><a href="<?php echo $phpgw->link("applications.php") . "\">" . lang("Applications"); ?></a>
|
||||
<p><a href="<?php echo $phpgw->link("currentusers.php") . "\">" . lang("View sessions"); ?></a>
|
||||
<br><a href="<?php echo $phpgw->link("accesslog.php") . "\">" . lang("View Access Log"); ?></a>
|
||||
<p><a href="<?php echo $phpgw->link("headlines.php") . "\">" . lang("Headline Sites"); ?></a>
|
||||
<p><a href="<?php echo $phpgw->link("nntp.php") . "\">" . lang("Network News"); ?></a>
|
||||
<?php
|
||||
// This func called by the includes to dump a row header
|
||||
function section_start($name="",$icon="") {
|
||||
global $phpgw,$phpgw_info;
|
||||
echo "<TABLE WIDTH=\"75%\" BORDER=\"0\" CELLSPACING=\"0\" CELLPADDING=\"0\">\n";
|
||||
echo "<TR>";
|
||||
if ($icon != "") {
|
||||
echo "<TD WIDTH='5%'><img src='".$icon."' ALT='[Icon]' align='middle'></TD>";
|
||||
echo "<TD><fontsize='+2'>".lang($name)."</font></TD>";
|
||||
} else {
|
||||
echo "<TD colspan='2'><font size='+2'>$name</font></TD>";
|
||||
}
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD colspan='2'>\n";
|
||||
}
|
||||
function section_end() {
|
||||
echo "</TD></TR></TABLE>\n\n";
|
||||
}
|
||||
|
||||
// We only want to list applications that are enabled, plus the common stuff
|
||||
// (if they can get to the admin page, the admin app is enabled, hence it is shown)
|
||||
|
||||
$phpgw->db->query("select app_name from applications where app_enabled = 1 order by app_title");
|
||||
|
||||
// Stuff it in an array in the off chance the admin includes need the db
|
||||
while ($phpgw->db->next_record() ) {
|
||||
$apps[] = $phpgw->db->f("app_name");
|
||||
}
|
||||
|
||||
for( $i =0; $i < sizeof($apps); $i++) {
|
||||
$appname = $apps[$i];
|
||||
$f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/admin.inc.php";
|
||||
if (file_exists($f)) {
|
||||
include($f);
|
||||
echo "<p>\n";
|
||||
}
|
||||
}
|
||||
|
||||
if ( $SHOW_INFO > 0 ) {
|
||||
echo "<p><a href=\"".$phpgw->link($PHP_SELF, "SHOW_INFO=0")."\">Hide PHP Information</a>";
|
||||
echo "<hr>\n";
|
||||
|
@ -1,51 +0,0 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare - administration *
|
||||
* http://www.phpgroupware.org *
|
||||
* Written by Joseph Engo <jengo@phpgroupware.org> *
|
||||
* -------------------------------------------- *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms of the GNU General Public License as published by the *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
||||
|
||||
include("../header.inc.php");
|
||||
if (! $con)
|
||||
Header("Location: ".$phpgw->link("headlines.php"));
|
||||
|
||||
$phpgw->db->query("select * from news_site where con=$con");
|
||||
$phpgw->db->next_record();
|
||||
|
||||
?>
|
||||
<center>
|
||||
<table border=0 width=65%>
|
||||
<tr><td><?php echo lang("Display"); ?></td> <td><?php echo $phpgw->db->f("display"); ?></td></tr>
|
||||
<tr><td><?php echo lang("Base Url"); ?></td> <td><?php echo $phpgw->db->f("base_url"); ?></td></tr>
|
||||
<tr><td><?php echo lang("News File"); ?></td> <td><?php echo $phpgw->db->f("newsfile"); ?></td></tr>
|
||||
<tr><td><?php echo lang("Last Time Read"); ?></td> <td><?php echo $phpgw->common->show_date($phpgw->db->f("lastread")); ?></td></tr>
|
||||
<tr><td><?php echo lang("minutes between reloads"); ?></td> <td><?php echo $phpgw->db->f("cachetime"); ?></td></tr>
|
||||
<tr><td><?php echo lang("Listings Displayed"); ?></td> <td><?php echo $phpgw->db->f("listings"); ?></td></tr>
|
||||
<tr><td><?php echo lang("News Type"); ?></td> <td><?php echo $phpgw->db->f("newstype"); ?></td></tr>
|
||||
<?php
|
||||
$phpgw->db->query("select title,link from news_headlines where site=$con");
|
||||
|
||||
if ($phpgw->db->num_rows() <> 0) {
|
||||
echo "<tr><td><br><br><hr></td><td><br><br><hr></td></tr>";
|
||||
while($phpgw->db->next_record()) {
|
||||
?>
|
||||
<tr><td><a href="<?php echo $phpgw->db->f("link") ?>" target="_new"><?php echo $phpgw->db->f("title") ?></a></td></tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
<?php
|
||||
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
|
||||
?>
|
Loading…
Reference in New Issue
Block a user