diff --git a/admin/deleteheadline.php b/admin/deleteheadline.php deleted file mode 100755 index dce38eff9f..0000000000 --- a/admin/deleteheadline.php +++ /dev/null @@ -1,64 +0,0 @@ - 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)) { -?> -
- - - - - - - - - - -
- - -
- -
- " . lang("No"); ?> - - " . lang("Yes"); ?> -
-
-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")); - } diff --git a/admin/editheadline.php b/admin/editheadline.php deleted file mode 100755 index 7e130c9808..0000000000 --- a/admin/editheadline.php +++ /dev/null @@ -1,92 +0,0 @@ - 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(); - - ?> - -
"> - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
">
">
">
">
">
-db->f("newstype") == $news_type[$i]) echo " checked"; - echo "> $news_type[$i]
"; - } -?> -
">
-
-
- 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")); - } -?> diff --git a/admin/headlines.php b/admin/headlines.php deleted file mode 100755 index 4ae6cdc250..0000000000 --- a/admin/headlines.php +++ /dev/null @@ -1,46 +0,0 @@ - * - * -------------------------------------------- * - * 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 "

" . lang("Headline Sites") . "
" - . "" - . ""; - $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 "" - . ""; - - echo ""; - echo "\n"; - } - echo "link("newheadline.php")."\">" - . "
" . lang("Site") . " " . lang("Edit") . " " . lang("Delete") . " " - . lang("View") . "
$displaylink("editheadline.php", - "con=".$phpgw->db->f("con"))."\"> ".lang("Edit")." link("deleteheadline.php", - "con=".$phpgw->db->f("con"))."\"> ".lang("Delete")." link("viewheadline.php", - "con=".$phpgw->db->f("con"))."\"> ".lang("View")."
"; - - $phpgw->common->phpgw_footer(); -?> diff --git a/admin/newheadline.php b/admin/newheadline.php deleted file mode 100755 index 5280b691c1..0000000000 --- a/admin/newheadline.php +++ /dev/null @@ -1,115 +0,0 @@ - True, "nonavbar" => True); - } - $phpgw_info["flags"]["currentapp"] = "admin"; - include("../header.inc.php"); - if (! $submit) { - ?> -
"> -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- $news_type[$i]
"; - } -?> -
- "> -
-
-
- common->phpgw_footer(); - - } else { - if (! $n_display) - $error = "
" . lang("You must enter a display"); - - if (! $n_base_url) - $error = "
" . lang("You must enter a base url"); - - if (! $n_newsfile) - $error = "
" . lang("You must enter a news url"); - - if (! $n_cachetime) - $error = "
" . lang("You must enter the number of minutes between reload"); - - if (! $n_listings) - $error = "
" . lang("You must enter the number of listings display"); - - if (! $n_newstype) - $error = "
" . 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 "
" . lang("That site has already been entered") . "
"; - 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")); - } -?>