Example #1
0
    case "autoDelete":
        autodelete($anid);
        break;
    case "autoEdit":
        autoEdit($anid);
        break;
    case "autoSaveEdit":
        if (!$date_debval) {
            if (strlen($deb_day) == 1) {
                $deb_day = "0{$deb_day}";
            }
            if (strlen($deb_month) == 1) {
                $deb_month = "0{$deb_month}";
            }
            $date_debval = "{$deb_year}-{$deb_month}-{$deb_day} {$deb_hour}:{$deb_min}:00";
        }
        if (!$date_finval) {
            if (strlen($fin_day) == 1) {
                $fin_day = "0{$fin_day}";
            }
            if (strlen($fin_month) == 1) {
                $fin_month = "0{$fin_month}";
            }
            $date_finval = "{$fin_year}-{$fin_month}-{$fin_day} {$fin_hour}:{$fin_min}:00";
        }
        if ($date_finval < $date_debval) {
            $date_finval = $date_debval;
        }
        autoSaveEdit($anid, $title, $hometext, $bodytext, $topic, $notes, $catid, $ihome, $informant, $members, $Mmembers, $date_debval, $date_finval, $epur);
        break;
}
Example #2
0
            break;
        case "adminStory":
            adminStory($sid);
            break;
        case "PreviewAdminStory":
            previewAdminStory($automated, $year, $day, $month, $hour, $min, $subject, $hometext, $bodytext, $topic, $catid, $ihome, $alanguage, $acomm, $pollTitle, $optionText, $assotop);
            break;
        case "PostAdminStory":
            postAdminStory($automated, $year, $day, $month, $hour, $min, $subject, $hometext, $bodytext, $topic, $catid, $ihome, $alanguage, $acomm, $pollTitle, $optionText, $assotop);
            break;
        case "autoDelete":
            autodelete($anid);
            break;
        case "autoEdit":
            autoEdit($anid);
            break;
        case "autoSaveEdit":
            autoSaveEdit($anid, $year, $day, $month, $hour, $min, $title, $hometext, $bodytext, $topic, $notes, $catid, $ihome, $alanguage, $acomm);
            break;
        case "submissions":
            submissions();
            break;
    }
} else {
    include "header.php";
    GraphicAdmin();
    OpenTable();
    echo "<center><b>" . _ERROR . "</b><br><br>You do not have administration permission for module \"{$module_name}\"</center>";
    CloseTable();
    include "footer.php";
}