$form.=form_textfield("Title","title",$edit[title],50,64,"The name of the feed; typically the name of the website you syndicate content from.");
$form.=form_textfield("Url","url",$edit[url],50,128,"The fully-qualified URL of the feed.");
$form.=form_textfield("Attributes","attributes",$edit[attributes],50,128,"A comma-seperated list of keywords describing the feed.");
$form.=form_select("Update interval","refresh",$edit[refresh],$period,"The refresh interval indicating how often you want to update this feed. Requires crontab.");
$form.=form_select("Expiration time","uncache",$edit[uncache],$period,"The time cached items should be kept. Older items will be automatically discarded. Requires crontab.");
$form.=form_submit("Submit");
...
...
@@ -286,7 +296,7 @@ function import_form_feed($edit = array()) {
functionimport_save_feed($edit){
if($edit[fid]&&$edit[title]){
db_query("UPDATE feed SET title = '".check_input($edit[title])."', url = '".check_input($edit[url])."', attributes = '".check_input($edit[attributes])."', refresh = '".check_input($edit[refresh])."', uncache = '".check_input($edit[uncache])."' WHERE fid = '".check_input($edit[fid])."'");
db_query("UPDATE feed SET title = '".check_input($edit[title])."', url = '".check_input($edit[url])."', attributes = '".check_input($edit[attributes])."', refresh = '".check_input($edit[refresh])."' WHERE fid = '".check_input($edit[fid])."'");
db_query("DELETE FROM item WHERE fid = '".check_input($edit[fid])."'");
}
elseif($edit[fid]){
...
...
@@ -294,7 +304,7 @@ function import_save_feed($edit) {
db_query("DELETE FROM item WHERE fid = '".check_input($edit[fid])."'");
@@ -314,7 +324,7 @@ function import_get_bundle($bid) {
}
functionimport_view(){
$result=db_query("SELECT f.*, COUNT(i.iid) AS items FROM feed f LEFT JOIN item i ON f.fid = i.fid GROUP BY f.fid, f.title, f.url, f.refresh, f.uncache, f.timestamp, f.attributes, f.link, f.description ORDER BY f.title");
$result=db_query("SELECT f.*, COUNT(i.iid) AS items FROM feed f LEFT JOIN item i ON f.fid = i.fid GROUP BY f.fid, f.title, f.url, f.refresh, f.timestamp, f.attributes, f.link, f.description ORDER BY f.title");
$form.=form_textfield("Title","title",$edit[title],50,64,"The name of the feed; typically the name of the website you syndicate content from.");
$form.=form_textfield("Url","url",$edit[url],50,128,"The fully-qualified URL of the feed.");
$form.=form_textfield("Attributes","attributes",$edit[attributes],50,128,"A comma-seperated list of keywords describing the feed.");
$form.=form_select("Update interval","refresh",$edit[refresh],$period,"The refresh interval indicating how often you want to update this feed. Requires crontab.");
$form.=form_select("Expiration time","uncache",$edit[uncache],$period,"The time cached items should be kept. Older items will be automatically discarded. Requires crontab.");
$form.=form_submit("Submit");
...
...
@@ -286,7 +296,7 @@ function import_form_feed($edit = array()) {
functionimport_save_feed($edit){
if($edit[fid]&&$edit[title]){
db_query("UPDATE feed SET title = '".check_input($edit[title])."', url = '".check_input($edit[url])."', attributes = '".check_input($edit[attributes])."', refresh = '".check_input($edit[refresh])."', uncache = '".check_input($edit[uncache])."' WHERE fid = '".check_input($edit[fid])."'");
db_query("UPDATE feed SET title = '".check_input($edit[title])."', url = '".check_input($edit[url])."', attributes = '".check_input($edit[attributes])."', refresh = '".check_input($edit[refresh])."' WHERE fid = '".check_input($edit[fid])."'");
db_query("DELETE FROM item WHERE fid = '".check_input($edit[fid])."'");
}
elseif($edit[fid]){
...
...
@@ -294,7 +304,7 @@ function import_save_feed($edit) {
db_query("DELETE FROM item WHERE fid = '".check_input($edit[fid])."'");
@@ -314,7 +324,7 @@ function import_get_bundle($bid) {
}
functionimport_view(){
$result=db_query("SELECT f.*, COUNT(i.iid) AS items FROM feed f LEFT JOIN item i ON f.fid = i.fid GROUP BY f.fid, f.title, f.url, f.refresh, f.uncache, f.timestamp, f.attributes, f.link, f.description ORDER BY f.title");
$result=db_query("SELECT f.*, COUNT(i.iid) AS items FROM feed f LEFT JOIN item i ON f.fid = i.fid GROUP BY f.fid, f.title, f.url, f.refresh, f.timestamp, f.attributes, f.link, f.description ORDER BY f.title");
$form.=form_textfield("Title","title",$edit[title],50,64,"The name of the feed; typically the name of the website you syndicate content from.");
$form.=form_textfield("Url","url",$edit[url],50,128,"The fully-qualified URL of the feed.");
$form.=form_textfield("Attributes","attributes",$edit[attributes],50,128,"A comma-seperated list of keywords describing the feed.");
$form.=form_select("Update interval","refresh",$edit[refresh],$period,"The refresh interval indicating how often you want to update this feed. Requires crontab.");
$form.=form_select("Expiration time","uncache",$edit[uncache],$period,"The time cached items should be kept. Older items will be automatically discarded. Requires crontab.");
$form.=form_submit("Submit");
...
...
@@ -286,7 +296,7 @@ function import_form_feed($edit = array()) {
functionimport_save_feed($edit){
if($edit[fid]&&$edit[title]){
db_query("UPDATE feed SET title = '".check_input($edit[title])."', url = '".check_input($edit[url])."', attributes = '".check_input($edit[attributes])."', refresh = '".check_input($edit[refresh])."', uncache = '".check_input($edit[uncache])."' WHERE fid = '".check_input($edit[fid])."'");
db_query("UPDATE feed SET title = '".check_input($edit[title])."', url = '".check_input($edit[url])."', attributes = '".check_input($edit[attributes])."', refresh = '".check_input($edit[refresh])."' WHERE fid = '".check_input($edit[fid])."'");
db_query("DELETE FROM item WHERE fid = '".check_input($edit[fid])."'");
}
elseif($edit[fid]){
...
...
@@ -294,7 +304,7 @@ function import_save_feed($edit) {
db_query("DELETE FROM item WHERE fid = '".check_input($edit[fid])."'");
@@ -314,7 +324,7 @@ function import_get_bundle($bid) {
}
functionimport_view(){
$result=db_query("SELECT f.*, COUNT(i.iid) AS items FROM feed f LEFT JOIN item i ON f.fid = i.fid GROUP BY f.fid, f.title, f.url, f.refresh, f.uncache, f.timestamp, f.attributes, f.link, f.description ORDER BY f.title");
$result=db_query("SELECT f.*, COUNT(i.iid) AS items FROM feed f LEFT JOIN item i ON f.fid = i.fid GROUP BY f.fid, f.title, f.url, f.refresh, f.timestamp, f.attributes, f.link, f.description ORDER BY f.title");