function zeitung_check_data()
{
- global $_POST;
-
if (empty($_POST['name']) ||
empty($_POST['city']) ||
empty($_POST['url']) ||
function zeitung_reportnew($id)
{
- global $_SESSION;
- global $_SERVER;
- global $_POST;
global $cfg;
$url = sprintf('%szeitung/%d.html', $cfg['home'], $id);
function zeitung_update($zid)
{
- global $_POST;
-
$query = sprintf("UPDATE zeitungen SET name='%s',city='%s',url='%s',description='%s' " .
'WHERE id = %d',
pg_escape_string(htmlspecialchars(trim($_POST['name']))),
function zeitung_insert()
{
- global $_POST;
-
// Bei Problemen das Feld 'deleted' wieder rausnehmen und manuell approven
$query = sprintf("INSERT INTO zeitungen (name,city,url,description,deleted,changed) " .
"VALUES ('%s','%s','%s','%s',false,now())",
function process_edit()
{
- global $_SESSION;
- global $_SERVER;
- global $_POST;
- global $_GET;
global $zlist;
if (isset($_GET['zeitung']) && is_numeric($_GET['zeitung']))
function process_new()
{
- global $_SESSION;
- global $_SERVER;
- global $_POST;
- global $_GET;
global $zlist;
$ok = false;
function ajax_zeitung_check_url()
{
- global $_POST;
-
if (empty($_POST['url'])) return false;
return zeitung_check_url($_POST['url']);
}
-
-?>
\ No newline at end of file