mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Removed uneed files that where moved to the phpgwapps cvs tree
This commit is contained in:
parent
4910fa7cd1
commit
b3f402db9f
@ -1,64 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**************************************************************************\
|
|
||||||
* phpGroupWare - administration *
|
|
||||||
* http://www.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$ */
|
|
||||||
|
|
||||||
if ($confirm) {
|
|
||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
|
||||||
}
|
|
||||||
|
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
|
||||||
include("../header.inc.php");
|
|
||||||
|
|
||||||
function remove_account_data($query,$t)
|
|
||||||
{
|
|
||||||
global $phpgw;
|
|
||||||
$phpgw->db->query("delete from $t where $query");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($con) && (! $confirm)) {
|
|
||||||
?>
|
|
||||||
<center>
|
|
||||||
<table border=0 with=65%>
|
|
||||||
<tr colspan=2>
|
|
||||||
<td align=center>
|
|
||||||
<?php echo lang("Are you sure you want to delete this news site ?"); ?>
|
|
||||||
<td>
|
|
||||||
</tr>
|
|
||||||
<tr colspan=2>
|
|
||||||
<td align=center>
|
|
||||||
<?php echo lang("All records and account information will be lost!"); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<a href="<?php echo $phpgw->link("headlines.php") . "\">" . lang("No"); ?></a>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="<?php echo $phpgw->link("deleteheadline.php","con=$con&confirm=true") . "\">" . lang("Yes"); ?></a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</center>
|
|
||||||
<?php
|
|
||||||
$phpgw->common->phpgw_footer();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$table_locks = array('news_site','news_headlines','users_headlines');
|
|
||||||
$phpgw->db->lock($table_locks);
|
|
||||||
|
|
||||||
remove_account_data("con=$con","news_site");
|
|
||||||
remove_account_data("site=$con","news_headlines");
|
|
||||||
remove_account_data("site=$con","users_headlines");
|
|
||||||
$phpgw->db->unlock();
|
|
||||||
|
|
||||||
Header("Location: " . $phpgw->link("headlines.php","cd=29"));
|
|
||||||
}
|
|
@ -1,92 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**************************************************************************\
|
|
||||||
* phpGroupWare - administration *
|
|
||||||
* http://www.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$ */
|
|
||||||
|
|
||||||
if ($submit) {
|
|
||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
|
||||||
}
|
|
||||||
|
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
|
||||||
include("../header.inc.php");
|
|
||||||
if (! $con)
|
|
||||||
Header("Location: " . $phpgw->link("headlines.php"));
|
|
||||||
|
|
||||||
if ((! $submit) && ($con)) {
|
|
||||||
|
|
||||||
$phpgw->db->query("select * from news_site where con=$con");
|
|
||||||
$phpgw->db->next_record();
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<form method="POST" action="<?php echo $phpgw->link("editheadline.php"); ?>">
|
|
||||||
<input type="hidden" name="o_con" value="<? echo $con; ?>">
|
|
||||||
|
|
||||||
<center>
|
|
||||||
<table border=0 width=65%>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("Display"); ?></td>
|
|
||||||
<td><input name="n_display" value="<?echo $phpgw->db->f("display"); ?>"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("Base URL"); ?></td>
|
|
||||||
<td><input name="n_base_url" value="<? echo $phpgw->db->f("base_url"); ?>"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("News File"); ?></td>
|
|
||||||
<td><input name="n_newsfile" value="<? echo $phpgw->db->f("newsfile"); ?>"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("Minutes between Reloads"); ?></td>
|
|
||||||
<td><input name="n_cachetime" value="<? echo $phpgw->db->f("cachetime"); ?>"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("Listings Displayed"); ?></td>
|
|
||||||
<td><input name="n_listings" value="<? echo $phpgw->db->f("listings"); ?>"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("News Type"); ?></td>
|
|
||||||
<td>
|
|
||||||
<?
|
|
||||||
$news_type = array('rdf','fm','lt','sf','rdf-chan');
|
|
||||||
for ($i=0;$i<count($news_type);$i++) {
|
|
||||||
echo "<input type=\"radio\" name=\"n_newstype\" value=\"" . $news_type[$i] . "\"";
|
|
||||||
if($phpgw->db->f("newstype") == $news_type[$i]) echo " checked";
|
|
||||||
echo "> $news_type[$i]<br>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan=2><input type="submit" name="submit" value="<?php echo lang("submit"); ?>"></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</center>
|
|
||||||
</form>
|
|
||||||
<?php
|
|
||||||
$phpgw->common->phpgw_footer();
|
|
||||||
|
|
||||||
} else {
|
|
||||||
$phpgw->db->lock("news_site");
|
|
||||||
|
|
||||||
$phpgw->db->query("UPDATE news_site SET display='" . addslashes($n_display) . "', "
|
|
||||||
. "base_url='" . addslashes($n_base_url) . "', "
|
|
||||||
. "newsfile='" . addslashes($n_newsfile) . "', "
|
|
||||||
. "lastread=0, newstype='" . $n_newstype . "', "
|
|
||||||
. "cachetime=$n_cachetime, listings=$n_listings "
|
|
||||||
. "WHERE con=$o_con");
|
|
||||||
|
|
||||||
$phpgw->db->unlock();
|
|
||||||
|
|
||||||
Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"]
|
|
||||||
. "/admin/headlines.php", "cd=27"));
|
|
||||||
}
|
|
||||||
?>
|
|
@ -1,46 +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");
|
|
||||||
echo "<p><center>" . lang("Headline Sites") . "<br><table border=0 width=65%>"
|
|
||||||
. "<tr bgcolor=" . $theme["th_bg"] . "><td>" . lang("Site") . "</td>"
|
|
||||||
. "<td> " . lang("Edit") . " </td> <td> " . lang("Delete") . " </td> <td> "
|
|
||||||
. lang("View") . " </td></tr>";
|
|
||||||
$phpgw->db->query("select con,display from news_site order by "
|
|
||||||
. "display");
|
|
||||||
|
|
||||||
while ($phpgw->db->next_record()) {
|
|
||||||
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
|
||||||
|
|
||||||
$display = $phpgw->db->f("display");
|
|
||||||
|
|
||||||
if (! $display)
|
|
||||||
$display = ' ';
|
|
||||||
|
|
||||||
echo "<tr bgcolor=$tr_color><td>$display</td>"
|
|
||||||
. "<td width=5%><a href=\"".$phpgw->link("editheadline.php",
|
|
||||||
"con=".$phpgw->db->f("con"))."\"> ".lang("Edit")." </a></td>";
|
|
||||||
|
|
||||||
echo "<td width=5%><a href=\"".$phpgw->link("deleteheadline.php",
|
|
||||||
"con=".$phpgw->db->f("con"))."\"> ".lang("Delete")." </a></td>";
|
|
||||||
echo "<td width=5%><a href=\"".$phpgw->link("viewheadline.php",
|
|
||||||
"con=".$phpgw->db->f("con"))."\"> ".lang("View")." </a> </td></tr>\n";
|
|
||||||
}
|
|
||||||
echo "<form method=POST action=\"".$phpgw->link("newheadline.php")."\">"
|
|
||||||
. "<tr><td colspan=\"5\"><input type=\"submit\" value=\"".lang("Add")
|
|
||||||
. "\"></td></tr></form></table></center>";
|
|
||||||
|
|
||||||
$phpgw->common->phpgw_footer();
|
|
||||||
?>
|
|
@ -1,115 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**************************************************************************\
|
|
||||||
* phpGroupWare - administration *
|
|
||||||
* http://www.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$ */
|
|
||||||
|
|
||||||
if ($submit) {
|
|
||||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True);
|
|
||||||
}
|
|
||||||
$phpgw_info["flags"]["currentapp"] = "admin";
|
|
||||||
include("../header.inc.php");
|
|
||||||
if (! $submit) {
|
|
||||||
?>
|
|
||||||
<form method="POST" action="<?php echo $phpgw->link("newheadline.php"); ?>">
|
|
||||||
<center>
|
|
||||||
<table border=0 width=65%>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("Display"); ?></td>
|
|
||||||
<td><input name="n_display"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("Base URL"); ?></td>
|
|
||||||
<td><input name="n_base_url"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("News File"); ?></td>
|
|
||||||
<td><input name="n_newsfile"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("Minutes between Reloads"); ?></td>
|
|
||||||
<td><input name="n_cachetime"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("Listings Displayed"); ?></td>
|
|
||||||
<td><input name="n_listings"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo lang("News Type"); ?></td>
|
|
||||||
<td>
|
|
||||||
<?
|
|
||||||
$news_type = array('rdf','fm','lt','sf','rdf-chan');
|
|
||||||
for($i=0;$i<count($news_type);$i++) {
|
|
||||||
echo "<input type=\"radio\" name=\"n_newstype\" value=\""
|
|
||||||
. $news_type[$i] . "\"> $news_type[$i]<br>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan=2>
|
|
||||||
<input type="submit" name="submit" value="<?php echo lang("submit"); ?>">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</center>
|
|
||||||
</form>
|
|
||||||
<?php
|
|
||||||
$phpgw->common->phpgw_footer();
|
|
||||||
|
|
||||||
} else {
|
|
||||||
if (! $n_display)
|
|
||||||
$error = "<br>" . lang("You must enter a display");
|
|
||||||
|
|
||||||
if (! $n_base_url)
|
|
||||||
$error = "<br>" . lang("You must enter a base url");
|
|
||||||
|
|
||||||
if (! $n_newsfile)
|
|
||||||
$error = "<br>" . lang("You must enter a news url");
|
|
||||||
|
|
||||||
if (! $n_cachetime)
|
|
||||||
$error = "<br>" . lang("You must enter the number of minutes between reload");
|
|
||||||
|
|
||||||
if (! $n_listings)
|
|
||||||
$error = "<br>" . lang("You must enter the number of listings display");
|
|
||||||
|
|
||||||
if (! $n_newstype)
|
|
||||||
$error = "<br>" . lang("You must select a file type");
|
|
||||||
|
|
||||||
if ($error)
|
|
||||||
exit;
|
|
||||||
|
|
||||||
$phpgw->db->query("select display from news_site where base_url='"
|
|
||||||
. addslashes(strtolower($n_base_url)) . "' and newsfile='"
|
|
||||||
. addslashes(strtolower($n_newsfile)) . "'");
|
|
||||||
$phpgw->db->next_record();
|
|
||||||
if ($phpgw->db->f("display")) {
|
|
||||||
navigation_bar();
|
|
||||||
echo "<center>" . lang("That site has already been entered") . "</center>";
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$phpgw->db->lock("news_site");
|
|
||||||
|
|
||||||
$sql = "insert into news_site (display,base_url,newsfile,"
|
|
||||||
. "lastread,newstype,cachetime,listings) "
|
|
||||||
. "values ('" . addslashes($n_display) . "','"
|
|
||||||
. addslashes(strtolower($n_base_url)) . "','"
|
|
||||||
. addslashes(strtolower($n_newsfile)) . "',0,'"
|
|
||||||
. $n_newstype . "',$n_cachetime,$n_listings)";
|
|
||||||
|
|
||||||
$phpgw->db->query($sql);
|
|
||||||
|
|
||||||
$phpgw->db->unlock();
|
|
||||||
|
|
||||||
Header("Location: " . $phpgw->link($directorys["webserver_url"]
|
|
||||||
. "/admin/headlines.php", "cd=28"));
|
|
||||||
}
|
|
||||||
?>
|
|
Loading…
Reference in New Issue
Block a user