Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
setsysrss.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package FDL
5
*/
6
/**
7
* Set RSS usable for all users
8
*
9
* @author Anakeen
10
* @version $Id: setsysrss.php,v 1.1 2006/11/27 11:43:04 marc Exp $
11
* @package FDL
12
* @subpackage GED
13
*/
14
/**
15
*/
16
include_once (
"FDL/Class.Doc.php"
);
17
18
function
setsysrss
(
Action
&
$action
)
19
{
20
// Set the globals elements
21
$dbaccess
= $action->dbaccess;
22
$docid
= GetHttpVars(
"id"
, 0);
// document to edit
23
$rss =
new_Doc
(
$dbaccess
,
$docid
);
24
if
(is_object($rss) && $rss->isAffected()) {
25
if
($rss->getValue(
"gui_sysrss"
) ==
"yes"
) {
26
$rss->setValue(
"gui_sysrss"
,
"no"
);
27
$msg = _(
"rss unavaible for users"
);
28
}
else
{
29
$rss->setValue(
"gui_isrss"
,
"yes"
);
30
$rss->setValue(
"gui_sysrss"
,
"yes"
);
31
$msg = _(
"rss avaible for users"
);
32
}
33
AddWarningMsg($msg);
34
$rss->modify(
true
, array(
35
"gui_isrss"
,
36
"gui_sysrss"
37
) ,
true
);
38
}
39
redirect($action,
"FDL"
,
"FDL_CARD&id=$docid"
, $action->GetParam(
"CORE_STANDURL"
));
40
}
$action
global $action
Definition:
accountRefreshGroup.php:16
setsysrss
setsysrss(Action &$action)
Definition:
setsysrss.php:18
Action
Definition:
Class.Action.php:24
$docid
$docid
Definition:
cleanFamily.php:13
new_Doc
new_Doc($dbaccess, $id= '', $latest=false)
Definition:
freedom_util.php:119
$dbaccess
$dbaccess
Definition:
checkVault.php:17
← centre documentaire
© anakeen